:root {
  --case-bg: #f7f7f5;
  --case-ink: #111111;
  --case-muted: #6c6c67;
  --case-line: #d8d8d3;
  --case-media: #e9e9e6;
  --case-width: 1100px;
  --case-reading: 720px;
}

html,
body.case-study-page,
.case-study-page .site-shell,
.case-study-page .page-surface,
.case-study-page main {
  background: var(--case-bg) !important;
}

body.case-study-page {
  color: var(--case-ink);
  overflow-x: hidden;
}

.case-study-page :where(a, button, [tabindex]):focus-visible {
  outline: 2px solid #1649d8;
  outline-offset: 3px;
}

.case-study-page .site-shell,
.case-study-page .page-surface {
  width: 100%;
  margin: 0;
}

.case-study-page .page-surface {
  min-height: 100vh;
}

.case-topbar {
  margin-inline: 0;
  background: transparent !important;
}

.case-study-page .case-topbar::before {
  background: linear-gradient(
    to bottom,
    rgb(247 247 245) 0%,
    rgb(247 247 245 / 0) 100%
  );
}

.case-study-page .home-header-actions,
.case-study-page .portfolio-header .brand-wordmark {
  opacity: 1;
  transform: none;
  animation: none;
}

.case-study-page .portfolio-header .brand-name {
  animation: none;
}

.case-return {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17, 17, 18, 0.16);
  border-radius: 5px;
  background: #ffffff;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.case-return:hover,
.case-return:focus-visible {
  background: var(--case-ink);
  border-color: var(--case-ink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(17, 17, 18, 0.14);
  outline: none;
}

.editorial-study {
  width: min(var(--case-width), calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(52px, 4vw, 64px);
}

.case-intro {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 86px) 0 0;
}

.case-intro-copy {
  max-width: 860px;
}

.case-kicker,
.case-section-index,
.case-close-label {
  margin: 0 0 22px;
  color: var(--case-muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-intro h1,
.case-section-heading h2,
.case-rule,
.case-conclusion,
.case-delivery-copy h3,
.case-footer > a {
  text-wrap: balance;
}

.case-intro h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.2rem, 4.2vw, 4.15rem);
  font-weight: 590;
  line-height: 1;
  letter-spacing: -0.05em;
}

.case-intro h1.case-title-full {
  max-width: none;
  text-wrap: wrap;
}

.case-deck {
  max-width: 800px;
  margin: 44px 0 0;
  color: #30302d;
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  font-weight: 380;
  line-height: 1.45;
}

.case-hero-media {
  position: relative;
  margin: clamp(46px, 4vw, 58px) 0 0;
  aspect-ratio: 3200 / 2198;
  overflow: hidden;
  background: #d2d2d0;
  border-radius: 12px;
}

.case-hero-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-hero-mockup {
  display: block;
  object-fit: cover;
}

.case-hero-media--grain {
  isolation: isolate;
}

.case-hero-media--grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch' seed='8'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23808080' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

.case-meta {
  margin: 34px 0 0;
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  border-bottom: 0;
}

.case-meta div,
.case-team div {
  min-width: 0;
}

.case-meta dt,
.case-team dt {
  margin: 0 0 8px;
  color: var(--case-muted);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-meta dd,
.case-team dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 540;
  line-height: 1.35;
}

.case-meta dt {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px 6px;
  border-radius: 5px;
  background: #e7e7e4;
  color: var(--case-ink);
  font-size: 0.72rem;
  font-weight: 540;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.case-meta dd {
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  font-weight: 380;
  line-height: 1.45;
}

.case-section {
  margin-top: clamp(130px, 14vw, 190px);
  padding-top: 28px;
  border-top: 1px solid var(--case-line);
}

.case-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  column-gap: clamp(60px, 8vw, 120px);
  row-gap: 26px;
  align-items: start;
}

.case-section-heading .case-section-index {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.case-section-heading h2 {
  margin: 0;
  font-size: clamp(3.1rem, 5vw, 4.45rem);
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.05em;
}

.case-section-heading > p:last-child {
  margin: 6px 0 0;
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.case-section-heading--narrow {
  display: block;
  max-width: 880px;
}

.case-section-heading--narrow .case-section-index {
  margin-bottom: 22px;
}

.case-section-heading--narrow h2 {
  max-width: 860px;
}

.case-section-heading--narrow > p:last-child {
  max-width: var(--case-reading);
  margin-top: 34px;
}

.case-compare {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(50px, 8vw, 110px);
}

.case-compare article {
  padding-top: 18px;
  border-top: 1px solid var(--case-ink);
}

.case-section.case-brief {
  width: min(860px, 100%);
  margin: -32px auto 0;
  padding-top: 0;
  border-top: 0;
}

.case-section.case-evidence,
.case-section.case-editorial-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--case-line);
}

.case-research-heading {
  width: min(860px, 100%);
  margin: 0 auto;
}

.case-research-heading > h2 {
  margin: 0;
  font-size: clamp(2.7rem, 3.4vw, 3.25rem);
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.045em;
}

.case-research-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 9vw, 130px);
}

.case-research-grid h3 {
  margin: 0 0 24px;
  color: var(--case-ink);
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.035em;
}

.case-research-grid p {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  font-weight: 380;
  line-height: 1.45;
}

.case-research-artifact {
  width: min(860px, 100%);
  margin: 72px auto 0;
}

.case-research-card {
  padding: 18px;
  background: var(--case-media);
  border-radius: 10px;
}

.case-research-card-label,
.case-research-card-meta {
  margin: 0;
  color: var(--case-muted);
  font-size: 0.7rem;
  font-weight: 560;
  line-height: 1.25;
}

.case-research-card-label {
  margin-bottom: 14px;
}

.case-research-card-meta {
  margin-top: 14px;
}

.case-research-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.case-research-takeaway {
  width: min(860px, 100%);
  margin: 48px auto 0;
}

.case-brief .case-compare {
  margin-top: 0;
  gap: clamp(56px, 9vw, 130px);
}

.case-brief .case-compare article {
  padding-top: 0;
  border-top: 0;
}

.case-brief .case-compare h2,
.case-research-takeaway h3 {
  margin: 0 0 40px;
  color: var(--case-ink);
  font-size: clamp(1.85rem, 2.3vw, 2.25rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

.case-brief .case-compare p,
.case-brief .case-compare li,
.case-research-takeaway p {
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  font-weight: 380;
  line-height: 1.45;
}

.case-brief .case-compare p {
  margin: 0 0 28px;
}

.case-research-takeaway p {
  max-width: 620px;
  margin: 0;
}

.case-brief .case-compare ul {
  margin: 0 0 28px;
  padding-left: 1.15em;
}

.case-brief .case-compare li + li {
  margin-top: 8px;
}

.case-compare h3,
.case-steps h3,
.case-delivery-copy h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 680;
  line-height: 1.15;
}

.case-compare p,
.case-steps p,
.case-application-notes p,
.case-delivery-copy p {
  margin: 22px 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.case-ownership {
  max-width: 900px;
  margin: 92px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.case-evidence-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.case-media {
  min-width: 0;
  margin: 0;
}

.purchase-video-overlay,
.linkberry-video-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(17 17 17 / 82%);
  box-shadow: 0 6px 24px rgb(0 0 0 / 24%);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 160ms ease, transform 160ms ease;
}

.purchase-video-overlay[hidden],
.linkberry-video-toggle[hidden] {
  display: none;
}

.purchase-video-overlay svg,
.linkberry-video-toggle svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

@media (hover: hover) {
  .purchase-video-overlay:hover,
  .linkberry-video-toggle:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgb(17 17 17 / 92%);
  }
}

.purchase-video-overlay:focus-visible,
.linkberry-video-toggle:focus-visible {
  outline: 3px solid #1649d8;
  outline-offset: 3px;
}

.case-media-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 620px;
  overflow: hidden;
  background: var(--case-media);
  border-radius: 10px;
}

.case-media-stage > img {
  display: block;
  max-width: 100%;
}

.case-media--portrait .case-media-stage > img,
.case-heatmap .case-media-stage > img,
.case-media--qa .case-media-stage > img {
  width: auto;
  height: calc(100% - 48px);
  object-fit: contain;
}

.case-media figcaption {
  max-width: 640px;
  margin-top: 16px;
  color: var(--case-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.case-media figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--case-ink);
  font-weight: 680;
}

.case-heatmap-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.case-heatmap-tabs {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.case-heatmap-tabs label {
  position: relative;
  padding: 0 0 10px;
  color: var(--case-muted);
  font-size: 0.8rem;
  font-weight: 620;
  cursor: pointer;
}

.case-heatmap-tabs label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: transparent;
}

#case-scroll:checked ~ .case-heatmap-tabs label[for="case-scroll"],
#case-attention:checked ~ .case-heatmap-tabs label[for="case-attention"],
#case-clicks:checked ~ .case-heatmap-tabs label[for="case-clicks"] {
  color: var(--case-ink);
}

#case-scroll:checked ~ .case-heatmap-tabs label[for="case-scroll"]::after,
#case-attention:checked ~ .case-heatmap-tabs label[for="case-attention"]::after,
#case-clicks:checked ~ .case-heatmap-tabs label[for="case-clicks"]::after {
  background: var(--case-ink);
}

.case-heatmap-image {
  display: none !important;
}

#case-scroll:checked ~ .case-media-stage .case-heatmap-image--scroll,
#case-attention:checked ~ .case-media-stage .case-heatmap-image--attention,
#case-clicks:checked ~ .case-media-stage .case-heatmap-image--clicks {
  display: block !important;
}

.case-findings {
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.case-findings article,
.case-application-notes article {
  padding-top: 16px;
  border-top: 1px solid var(--case-ink);
}

.case-findings span,
.case-steps > li > span,
.case-application-notes span {
  color: var(--case-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-findings p {
  margin: 46px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.case-conclusion {
  max-width: 1000px;
  margin: clamp(110px, 13vw, 160px) 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(2.8rem, 5vw, 4.35rem);
  font-weight: 570;
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.case-media--wide {
  margin-top: 72px;
}

.case-brand-review {
  width: min(860px, 100%);
  margin: 72px auto 0;
}

.case-shopping-models {
  width: min(860px, 100%);
  margin: 72px auto 0;
}

.case-shopping-models .case-shopping-model-story {
  width: 100%;
  margin-top: 24px;
}

.case-shopping-models .case-module-story-track {
  width: min(80%, 448px);
}

.case-shopping-models .case-research-takeaway {
  width: 100%;
}

.case-brand-review-heading {
  padding: 18px;
  margin-bottom: 24px;
  background: var(--case-media);
  border-radius: 10px;
}

.case-brand-review-heading h3,
.case-brand-review-heading p {
  margin: 0;
}

.case-brand-review-heading h3 {
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.3;
}

.case-brand-review-heading p {
  margin-top: 8px;
  color: var(--case-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.case-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.case-brand-card {
  min-width: 0;
  overflow: hidden;
  background: var(--case-media);
  border-radius: 10px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.case-brand-card:hover,
.case-brand-card.is-expanded {
  background: var(--case-media);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.055);
}

.case-brand-card-toggle {
  width: 100%;
  min-height: 94px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--case-ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.case-brand-card-toggle:focus-visible {
  outline: 2px solid var(--case-ink);
  outline-offset: -4px;
  border-radius: 10px;
}

.case-brand-logo {
  width: auto;
  max-width: 42px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.case-brand-logo--wide {
  max-width: 54px;
}

.case-brand-name {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.15;
}

.case-brand-card-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--case-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  border: 1px solid var(--case-line);
  border-radius: 50%;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-brand-card.is-expanded .case-brand-card-icon {
  transform: rotate(45deg);
}

.case-brand-card-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
}

.case-brand-card-panel > div {
  min-height: 0;
  overflow: hidden;
}

.case-brand-card.is-expanded .case-brand-card-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.case-brand-card dl {
  margin: 0 16px 18px;
  padding-top: 16px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--case-line);
}

.case-brand-card dl div {
  display: grid;
  gap: 3px;
}

.case-brand-card dt,
.case-brand-card dd {
  margin: 0;
}

.case-brand-card dt {
  color: var(--case-muted);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.case-brand-card dd {
  font-size: 0.72rem;
  line-height: 1.38;
}

.case-brand-selection {
  display: none;
}

@media (min-width: 901px) {
  .case-brand-grid {
    height: 380px;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .case-brand-grid.has-expanded {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded {
    grid-column: 1 / span 6;
    grid-row: 1 / -1;
  }

  .case-brand-selection {
    grid-column: var(--brand-column, 7);
    grid-row: var(--brand-row, 1);
    display: grid;
    place-items: center;
    min-width: 0;
    background: var(--case-media);
    border: 1px solid var(--case-ink);
    border-radius: 10px;
  }

  .case-brand-selection .case-brand-logo {
    max-width: 38px;
    max-height: 22px;
  }

  .case-brand-grid.has-expanded .case-brand-card:not(.is-expanded) {
    min-height: 0;
    grid-column: var(--brand-column);
    grid-row: var(--brand-row);
  }

  .case-brand-grid.has-expanded .case-brand-card:not(.is-expanded) .case-brand-card-toggle {
    height: 100%;
    min-height: 0;
    padding: 7px;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .case-brand-grid.has-expanded .case-brand-card:not(.is-expanded) .case-brand-name,
  .case-brand-grid.has-expanded .case-brand-card:not(.is-expanded) .case-brand-card-icon {
    display: none;
  }

  .case-brand-grid.has-expanded .case-brand-card:not(.is-expanded) .case-brand-logo {
    max-width: 38px;
    max-height: 22px;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded .case-brand-card-toggle {
    min-height: 102px;
    padding: 22px 24px 18px;
    grid-template-columns: 110px minmax(0, 1fr) auto;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded .case-brand-card-icon {
    display: none;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded .case-brand-logo {
    max-width: 96px;
    max-height: 48px;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded .case-brand-logo--wide {
    max-width: 106px;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded .case-brand-name {
    font-size: 1.3rem;
    font-weight: 610;
    letter-spacing: -0.025em;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded dl {
    margin: 0 24px 22px;
    padding-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 16px;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded dt {
    font-size: 0.68rem;
  }

  .case-brand-grid.has-expanded .case-brand-card.is-expanded dd {
    font-size: 0.82rem;
    line-height: 1.42;
  }
}

.case-media-stage--fit {
  height: auto;
  min-height: 220px;
  padding: clamp(12px, 2vw, 24px);
}

.case-media-stage--fit > img {
  width: 100%;
  height: auto;
}

.case-steps {
  margin: 88px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  list-style: none;
}

.case-steps li {
  padding-top: 16px;
  border-top: 1px solid var(--case-ink);
}

.case-steps h3 {
  margin-top: 38px;
}

.case-rule {
  max-width: 980px;
  margin: clamp(100px, 12vw, 150px) 0 0;
  font-size: clamp(2.7rem, 5vw, 4.25rem);
  font-weight: 570;
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.case-media--library {
  max-width: 780px;
  margin: 72px auto 0;
}

.case-module-story {
  position: relative;
  width: min(860px, 100%);
  margin: 72px auto 0;
}

.case-module-story-pin {
  position: relative;
}

.case-module-story-stage {
  position: relative;
  height: min(70vh, 660px);
  min-height: 520px;
  overflow: hidden;
  background: var(--case-media);
  border-radius: 10px;
}

.case-module-story-track {
  --module-shift: 0px;
  position: absolute;
  top: 0;
  left: 50%;
  width: min(62%, 540px);
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
  transform: translate3d(-50%, var(--module-shift), 0);
  will-change: transform;
}

.case-module-story-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

.case-module-story-card img {
  display: block;
  width: 100%;
  height: auto;
}

.case-module-story-card--dummy {
  aspect-ratio: 1550 / 1056;
  pointer-events: none;
}

.case-shopping-model-story .case-module-story-card--dummy {
  aspect-ratio: 986 / 962;
}

.case-module-story-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
}

.case-module-story-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--case-ink);
  cursor: pointer;
  transition: opacity 180ms ease;
}

.case-module-story-toggle::before {
  width: 10px;
  height: 12px;
  content: "";
  background: linear-gradient(
    to right,
    currentColor 0 3px,
    transparent 3px 7px,
    currentColor 7px 10px
  );
}

.case-module-story-toggle[aria-pressed="true"]::before {
  width: 11px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.case-module-story-toggle:hover,
.case-module-story-toggle:focus-visible {
  background: transparent;
  opacity: 0.64;
}

.case-module-story figcaption {
  max-width: none;
  margin-top: 12px;
  padding: 18px;
  background: var(--case-media);
  border-radius: 8px;
  color: var(--case-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.case-module-story figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--case-ink);
  font-weight: 680;
}

.case-application-notes {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.case-application-notes p {
  margin-top: 42px;
}

.case-delivery-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(70px, 10vw, 140px);
  align-items: start;
}

.case-delivery-copy {
  padding-top: 4px;
}

.case-delivery-copy h3 {
  max-width: 500px;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.case-delivery-copy p {
  max-width: 500px;
  margin-top: 34px;
}

.case-media--qa .case-media-stage {
  height: 660px;
}

.case-impact {
  margin-top: clamp(110px, 13vw, 160px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-impact article {
  display: flex;
  min-width: 0;
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px);
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background: var(--case-media);
  border-radius: 10px;
}

.case-impact .case-impact-wide {
  min-height: 180px;
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-end;
}

.case-impact h3 {
  margin: 0;
  color: var(--case-ink);
  font-size: 3.75rem;
  font-weight: 570;
  line-height: 0.95;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.case-impact .case-impact-wide h3 {
  font-size: 4.25rem;
}

.case-impact p {
  max-width: 190px;
  margin: 0;
  color: var(--case-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.case-outcome {
  width: min(860px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.case-outcome .case-impact {
  margin-top: 96px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-process-cta {
  margin-top: clamp(96px, 12vw, 140px);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  background: var(--case-media);
  border-radius: 10px;
}

.case-outcome .case-research-takeaway h3 {
  text-wrap: balance;
}

.case-process-cta > div {
  min-width: 0;
  max-width: 610px;
  flex: 1 1 0;
}

.case-process-cta h3 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.case-process-cta h3 + p {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--case-muted);
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  font-weight: 380;
  line-height: 1.5;
}

.case-process-cta > a {
  padding: 11px 15px;
  flex: 0 0 auto;
  border: 1px solid var(--case-ink);
  border-radius: 6px;
  background: var(--case-ink);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 550;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.case-process-cta > a:hover,
.case-process-cta > a:focus-visible {
  border-color: #1649d8;
  background: #1649d8;
  color: #ffffff;
}

.case-impact h3 span {
  max-width: none;
  color: inherit;
  font: inherit;
}

.case-close {
  margin-top: clamp(110px, 12vw, 150px);
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(70px, 10vw, 140px);
  border-top: 1px solid var(--case-line);
}

.case-close-label {
  margin-bottom: 30px;
}

.case-close-statement {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.case-team {
  margin: 0;
  display: grid;
  gap: 24px;
}

.case-navigation {
  width: min(860px, 100%);
  margin-top: clamp(32px, 4vw, 40px);
  margin-right: auto;
  margin-left: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.case-navigation a {
  font-size: 0.85rem;
  font-weight: 650;
}

.case-footer {
  width: min(860px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(90px, 12vw, 150px) 0 32px;
  text-align: center;
}

.case-footer-prompt {
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 4.5rem);
  font-weight: 570;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.case-footer-line {
  display: block;
}

.case-footer-line--dynamic {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.22em;
}

.case-footer-word {
  display: inline-block;
  text-align: left;
}

.case-footer-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.case-footer-actions a {
  padding: 11px 15px;
  border: 1px solid var(--case-line);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 550;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.case-footer-actions a:first-child {
  border-color: var(--case-ink);
  background: var(--case-ink);
  color: #ffffff;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.case-footer-actions a:hover,
.case-footer-actions a:focus-visible {
  border-color: #1649d8;
  background: #1649d8;
  color: #ffffff;
}

.case-footer-actions a:first-child:hover,
.case-footer-actions a:first-child:focus-visible {
  border-color: #2a2a2c;
  background: #2a2a2c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(17, 17, 18, 0.16);
  outline: none;
}

.case-footer-actions a:first-child:focus-visible {
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.34),
    0 9px 20px rgba(17, 17, 18, 0.16);
}

.case-footer-signature {
  margin-top: clamp(100px, 12vw, 140px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.case-footer-signature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
}

.case-footer-marks {
  display: flex;
  align-items: center;
  gap: 1px;
}

.case-footer-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.case-footer-meta {
  position: relative;
  left: 50%;
  width: calc(100vw - clamp(48px, 8vw, 128px));
  max-width: none;
  margin-top: 36px;
  margin-left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 550;
  text-align: left;
  transform: translateX(-50%);
}

.case-footer-meta time,
.case-footer-day {
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.case-footer-meta > span:first-child {
  justify-self: start;
}

.case-footer-meta > span:last-child {
  justify-self: end;
  font-weight: 650;
  line-height: 1;
  text-align: right;
}

.case-footer-meta .case-footer-day {
  justify-self: center;
  white-space: nowrap;
}

.case-footer-meta a {
  text-align: right;
  transition: color 180ms ease;
}

.case-footer-meta a:visited {
  color: var(--case-ink);
}

.case-footer-meta a:hover,
.case-footer-meta a:focus-visible,
.case-footer-meta a:active {
  color: #1649d8;
}

.case-footer > p {
  margin: 0;
  color: var(--case-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .editorial-study {
    width: min(var(--case-width), calc(100% - 40px));
  }

  .case-intro h1 {
    font-size: clamp(3.5rem, 9vw, 5rem);
  }

  .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .case-section-heading,
  .case-compare,
  .case-research-grid,
  .case-evidence-grid,
  .case-delivery-grid,
  .case-close {
    grid-template-columns: 1fr;
  }

  .case-section-heading {
    gap: 32px;
  }

  .case-section-heading h2,
  .case-section-heading > p:last-child {
    max-width: 760px;
  }

  .case-compare {
    gap: 64px;
  }

  .case-research-grid {
    gap: 48px;
  }

  .case-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-evidence-grid {
    gap: 70px;
  }

  .case-media-stage {
    height: 680px;
  }

  .case-media-stage--fit {
    height: auto;
  }

  .case-delivery-grid {
    gap: 64px;
  }

  .case-delivery-copy p {
    max-width: 680px;
  }

  .case-media--qa {
    max-width: 520px;
  }

  .case-close {
    gap: 80px;
  }

  .case-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .case-study-page .portfolio-header .header-icon-button,
  .case-study-page .portfolio-header .header-action-divider,
  .case-study-page .portfolio-header .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .case-return {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .editorial-study {
    width: calc(100% - 32px);
  }

  .case-intro {
    padding-top: 48px;
  }

  .case-intro h1 {
    font-size: clamp(2.6rem, 12vw, 3.3rem);
    line-height: 1;
  }

  .case-deck {
    margin-top: 28px;
    font-size: 0.9rem;
  }

  .case-hero-media {
    margin-top: 38px;
    border-radius: 8px;
  }

  .case-meta {
    padding-bottom: 40px;
    column-gap: 20px;
  }

  .case-section {
    margin-top: 104px;
    padding-top: 20px;
  }

  .case-section.case-evidence,
  .case-section.case-editorial-section {
    margin-top: 40px;
    padding-top: 32px;
  }

  .case-section-heading h2 {
    font-size: clamp(2.55rem, 12vw, 3.5rem);
  }

  .case-section-heading > p:last-child,
  .case-compare p,
  .case-steps p,
  .case-application-notes p,
  .case-delivery-copy p {
    font-size: 1rem;
  }

  .case-ownership {
    margin-top: 72px;
  }

  .case-evidence-grid,
  .case-compare {
    margin-top: 56px;
  }

  .case-brief .case-compare {
    margin-top: 0;
  }

  .case-brand-review {
    margin-top: 56px;
  }

  .case-shopping-models {
    margin-top: 56px;
  }

  .case-brand-review-heading,
  .case-brand-grid {
    grid-template-columns: 1fr;
  }

  .case-brand-review-heading {
    gap: 10px;
  }

  .case-brand-card-toggle {
    min-height: 76px;
  }

  .case-media-stage {
    height: 520px;
    border-radius: 8px;
  }

  .case-media-stage--fit {
    height: auto;
    min-height: 0;
    padding: 8px;
  }

  .case-heatmap-tabs {
    min-height: 50px;
    gap: 22px;
  }

  .case-heatmap-tabs label {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .case-findings,
  .case-steps,
  .case-application-notes,
  .case-impact {
    grid-template-columns: 1fr;
  }

  .case-findings,
  .case-steps,
  .case-application-notes {
    gap: 54px;
  }

  .case-findings p,
  .case-steps h3,
  .case-application-notes p {
    margin-top: 28px;
  }

  .case-conclusion,
  .case-rule {
    margin-top: 96px;
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .case-media--wide,
  .case-media--library {
    margin-top: 56px;
  }

  .case-steps {
    margin-top: 72px;
  }

  .case-delivery-grid {
    margin-top: 64px;
  }

  .case-media--qa,
  .case-media--library {
    max-width: none;
  }

  .case-module-story {
    margin-top: 56px;
  }

  .case-module-story-pin {
    position: relative;
  }

  .case-module-story-stage {
    height: min(66vh, 580px);
    min-height: 500px;
    border-radius: 8px;
  }

  .case-module-story-track {
    width: calc(100% - 72px);
    gap: 16px;
  }

  .case-media--qa .case-media-stage {
    height: 560px;
  }

  .case-impact {
    margin-top: 96px;
    gap: 12px;
  }

  .case-outcome .case-impact {
    grid-template-columns: 1fr;
  }

  .case-impact article {
    min-height: 200px;
    padding: 18px;
    gap: 14px;
  }

  .case-impact h3 {
    font-size: 1.95rem;
    white-space: nowrap;
  }

  .case-impact p {
    font-size: 0.78rem;
  }

  .case-impact .case-impact-wide {
    min-height: 154px;
    padding: 22px;
  }

  .case-impact .case-impact-wide h3 {
    font-size: 2.25rem;
  }

  .case-impact p {
    max-width: 240px;
  }

  .case-process-cta {
    margin-top: 88px;
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .case-process-cta h3 {
    font-size: 2rem;
  }

  .case-close {
    margin-top: 100px;
    gap: 68px;
  }

  .case-team {
    grid-template-columns: 1fr;
  }

  .case-navigation {
    margin-top: 32px;
  }

  .case-footer {
    padding-top: 88px;
  }

  .case-footer-prompt {
    font-size: 2.25rem;
  }

  .case-footer-meta {
    width: calc(100vw - 32px);
    margin-top: 32px;
    gap: 8px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-return {
    transition: none;
  }

  .case-footer-actions a:first-child {
    animation: none;
    transition: none;
  }

  .case-footer-actions a:first-child:hover,
  .case-footer-actions a:first-child:focus-visible {
    transform: none;
  }

  .case-module-story {
    height: auto;
  }

  .case-module-story-pin {
    position: static;
  }

  .case-module-story-stage {
    height: auto;
    padding: 12px;
  }

  .case-module-story-track {
    position: static;
    width: 100%;
    transform: none !important;
  }

  .case-brand-card,
  .case-brand-card-icon,
  .case-brand-card-panel {
    transition: none;
  }

  .case-module-story-card[aria-hidden="true"] {
    display: none;
  }

  .case-module-story-controls {
    display: none;
  }
}
