.page--case {
  background: var(--color-bg);
}

.l-page-shell--case {
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 38px);
}

.l-shell {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.c-footer.l-shell {
  margin: 0 var(--page-gutter) var(--section-gap-desktop);
}

.c-back-link {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.6);
  border-color: var(--color-border);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  gap: 8px;
}

.c-back-link__icon {
  width: 8px;
  height: 8px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.c-back-link:hover {
  color: var(--color-text-primary);
}

.case-hero {
  margin-bottom: var(--section-gap-case);
}

.case-hero__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: var(--case-copy-width) minmax(0, var(--case-media-width));
  gap: var(--space-8);
  align-items: start;
  justify-content: space-between;
}

.case-hero__grid,
.case-hero__copy,
.case-hero__visual,
.c-story-block,
.c-story-block__copy,
.c-story-block__visual,
.c-story-block__full,
.c-story-block__columns {
  min-width: 0;
}

.case-hero__meta {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.case-hero__meta span {
  margin-left: 0;
  opacity: 1;
}

.case-hero__title {
  margin-top: 4px;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
}

.case-hero__copy {
  position: sticky;
  top: calc(var(--header-height) + var(--sticky-offset-sm));
}

.case-hero__stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.case-hero__summary {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 40px;
  max-width: 443px;
}

.case-hero__stats article {
  display: block;
}

.case-hero__stat-value {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: inline;
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
}

.case-hero__stat-label {
  margin-top: 0;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: inline;
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
  max-width: none;
  white-space: normal;
}

.case-hero__visual {
  align-self: start;
  border-radius: 28px;
  overflow: hidden;
}

.case-hero__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-storyflow {
  padding-bottom: var(--section-gap-case);
}

.case-storyflow__shell {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-case);
}

.c-story-block {
  display: grid;
  grid-template-columns: var(--case-copy-width) minmax(0, var(--case-media-width));
  gap: var(--space-8);
  align-items: start;
  justify-content: space-between;
}

.c-story-block--task {
  min-height: var(--case-task-media-width);
}

.c-story-block__copy {
  position: sticky;
  top: calc(var(--header-height) + var(--sticky-offset-sm));
}

.c-story-block__heading {
  position: static;
  background: transparent;
  padding-bottom: 0;
  z-index: 2;
}

.c-story-block__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
}

.c-story-block__text {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 40px;
}

.c-story-block__text--lg {
  font-size: 32px;
  line-height: 40px;
}

.c-story-block__text--accent {
  color: #fff;
}

.c-story-block__text strong {
  color: #fff;
  font-weight: 700;
}

.c-story-block__visual {
  width: 100%;
  max-width: var(--case-media-width);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  opacity: 0.12;
  transform: scale(0.96);
  transform-origin: center center;
  transition: opacity 320ms ease, transform 320ms ease;
}

.c-story-block__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.c-story-block.is-active .c-story-block__visual {
  opacity: 1;
  transform: scale(1);
}

.c-story-block__visual--task {
  max-width: var(--case-task-media-width);
  justify-self: center;
  align-self: center;
}

.c-story-block__visual--research {
  max-width: 629px;
  justify-self: center;
}

.c-story-block__visual--challenge {
  max-width: 600px;
  justify-self: center;
}

.c-story-block__visual--overview {
  max-width: 700px;
  justify-self: center;
}

.c-story-block__visual--pricing {
  max-width: 598px;
  justify-self: center;
}

.c-story-block__visual--esim {
  max-width: 602px;
  justify-self: center;
}

.c-story-block__visual--delivery {
  max-width: 600px;
  justify-self: center;
}

.c-story-block__visual--today {
  max-width: 676px;
  justify-self: center;
}

.c-story-block__visual--steps {
  max-width: 502px;
  justify-self: center;
}

.c-story-block__visual--old {
  max-width: 360px;
  justify-self: center;
}

.c-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.c-steps__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-steps__date {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
}

.c-steps__text {
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 40px;
}

.c-story-block--columns {
  align-items: start;
}

.c-story-block--wide {
  grid-template-columns: 1fr;
}

.c-story-block__full {
  width: 100%;
}

.c-story-block__columns {
  width: 100%;
  max-width: var(--case-media-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.c-story-block__columns--three {
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c-story-block__column {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 40px;
}

@media (max-width: 1440px) {
  .case-hero__grid {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 24px;
    justify-content: stretch;
  }

  .c-story-block {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 24px;
    justify-content: stretch;
  }

  .c-story-block--task {
    min-height: 460px;
  }

  .c-story-block__visual {
    width: 100%;
    max-width: 100%;
  }

  .c-story-block__title {
    font-size: 44px;
    line-height: 50px;
  }

  .c-story-block__text,
  .c-story-block__text--lg {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 1100px) {
  .l-shell {
    padding-inline: var(--page-gutter-mobile);
  }

  .case-hero__grid,
  .c-story-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .c-story-block__copy,
  .c-story-block__heading,
  .case-hero__copy {
    position: static;
    background: transparent;
    padding-bottom: 0;
  }

  .c-story-block,
  .c-story-block--task {
    min-height: 0;
  }

  .c-story-block__visual {
    justify-self: start;
    align-self: start;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .c-story-block__title {
    font-size: 34px;
    line-height: 1.2;
  }

  .c-story-block__text,
  .c-story-block__text--lg {
    font-size: 32px;
    line-height: 40px;
  }

  .case-hero__meta {
    font-size: 26px;
  }

  .case-hero__title {
    font-size: 42px;
    margin-top: 4px;
  }

  .case-hero__summary {
    font-size: 32px;
    line-height: 40px;
  }

  .case-storyflow__shell {
    gap: 64px;
  }

  .c-story-block__columns {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-story-block__columns--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .c-steps__text {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 768px) {
  .l-page-shell--case {
    padding-top: calc(var(--header-height) + 24px);
  }

  .case-hero__stat-value,
  .case-hero__stat-label {
    font-size: 24px;
    line-height: 32px;
  }

  .case-hero__meta span {
    margin-left: 12px;
  }

  .case-hero__meta {
    font-size: 20px;
  }

  .case-hero__title {
    margin-top: 4px;
    font-size: 48px;
    line-height: 56px;
  }

  .case-hero__summary {
    font-size: 24px;
    line-height: 32px;
  }

  .c-story-block__title {
    font-size: 48px;
    line-height: 56px;
  }

  .c-story-block__text,
  .c-story-block__text--lg {
    font-size: 24px;
    line-height: 32px;
  }

  .c-story-block__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .c-story-block__columns--three {
    grid-template-columns: 1fr;
  }

  .c-steps__date {
    font-size: 20px;
    line-height: 28px;
  }

  .c-steps__text {
    font-size: 24px;
    line-height: 32px;
  }

  .c-story-block__column {
    font-size: 24px;
    line-height: 32px;
  }
}
