.case-page {
  overflow-x: hidden;
}

.case-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.case-nav {
  position: fixed;
  z-index: 50;
  top: 32px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.case-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 5px 32px;
}

.case-nav .locale-switch {
  pointer-events: auto;
  color: #9b9b9b;
}

.case-nav .locale-switch button {
  color: #707070;
}

.case-nav .locale-switch button[aria-pressed="true"],
.case-nav .locale-switch button:hover {
  color: var(--black-2);
}

.case-back {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-light-2);
  border-radius: 50%;
  background: var(--white);
  color: #3c3c3c;
  box-shadow: inset 0 0 4px rgba(84, 84, 84, 0.2);
  font-size: 20px;
  pointer-events: auto;
}

.case-back:hover {
  background: var(--white-2);
}

.case-eyebrow {
  color: var(--gray-2);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 1.68px;
  text-transform: uppercase;
}

.case-hero {
  padding-top: 112px;
}

.case-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 48px;
  text-align: center;
}

.case-hero-copy .case-eyebrow {
  font-size: 14px;
}

.case-hero h1 {
  max-width: 900px;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.case-cover {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: #f7f7f7;
}

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

.case-section {
  padding-block: 104px;
}

.case-section-tinted {
  border-top: 1px solid var(--border-light);
  background: var(--warm-bg);
}

.case-impact {
  border-top: 0;
}

.case-lessons {
  border-top: 0;
}

.case-result {
  border-top: 1px solid var(--border-light);
}

.case-split {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.case-heading h2 {
  margin-top: 20px;
  color: var(--black-2);
  font-size: 64px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0;
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--gray-2);
  font-size: 16px;
  line-height: 1.5;
}

.case-content strong {
  color: var(--black-2);
  font-weight: 600;
}

.case-meta {
  display: flex;
  gap: 64px;
  margin: 0;
  color: var(--black-2);
}

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

.case-meta dt {
  color: var(--gray-3);
  font-size: 14px;
}

.case-meta dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
}

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

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 318px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
}

.case-card-number {
  color: var(--gray-4);
  font-size: 14px;
  line-height: 1.5;
}

.case-card p {
  margin-top: 24px;
  color: var(--gray-2);
  font-size: 16px;
  line-height: 1.5;
}

.case-card > div,
.case-card h3 {
  margin-top: auto;
  padding-top: 32px;
}

.case-card strong,
.case-card h3 {
  display: block;
  color: var(--black-2);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.case-card div span {
  display: block;
  color: var(--gray-3);
  font-size: 14px;
  line-height: 1.5;
}

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

.case-process-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.case-process-list li:first-child {
  padding-top: 0;
}

.case-process-list li:last-child {
  border-bottom: 0;
}

.case-process-list li > span {
  color: var(--gray-4);
  font-size: 16px;
  line-height: 1.5;
}

.case-process-list h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.case-process-list p {
  margin-top: 8px;
  color: var(--gray-2);
  font-size: 16px;
  line-height: 1.5;
}

.case-result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.case-result-header .case-heading {
  min-width: 0;
}

.case-gallery-controls {
  flex: 0 0 auto;
}

.case-gallery {
  --case-gallery-slide-width: min(552px, calc(100vw - 48px));
  margin-top: 48px;
}

.case-gallery-shell {
  position: relative;
}

.case-gallery-shell.has-next {
  --edge-fade: clamp(32px, 7vw, 80px);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--edge-fade)), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--edge-fade)), transparent 100%);
}

.case-gallery-viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.case-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.case-gallery-viewport:focus-visible {
  outline: 2px solid var(--black-2);
  outline-offset: 4px;
}

.case-gallery-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-right: var(--case-gallery-trailing-space, 0px);
}

.case-gallery-item {
  flex: 0 0 var(--case-gallery-slide-width);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.case-gallery-image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 552 / 740;
  border: 0;
  border-radius: 12px;
  background: #f7f7f7;
  cursor: zoom-in;
}

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

.case-gallery-image:focus-visible {
  outline: 2px solid var(--black-2);
  outline-offset: 4px;
}

.case-gallery-item figcaption {
  padding-top: 12px;
  color: var(--gray-2);
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}

.case-gallery-dots {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.case-gallery-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.case-gallery-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light-2);
}

.case-gallery-dots button.is-active::before {
  background: var(--black-2);
}

.case-gallery-dots button:focus-visible {
  outline: 2px solid var(--black-2);
  outline-offset: 2px;
}

html.is-gallery-zoomed {
  overflow: hidden;
}

.case-gallery-dialog {
  width: min(94vw, 1095px);
  max-width: none;
  max-height: 90dvh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.case-gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-gallery-dialog-view {
  max-height: 90dvh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.case-gallery-dialog-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.case-gallery-dialog-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 90dvh;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
}

.case-gallery-dialog.is-zoomed .case-gallery-dialog-image {
  width: min(200%, 1095px);
  cursor: zoom-out;
}

.case-gallery-dialog.is-zoomed .case-gallery-dialog-image img {
  width: 100%;
  max-width: none;
  max-height: none;
}

.case-gallery-dialog-close {
  position: fixed;
  z-index: 1;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--black-3);
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.9);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-next {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 120px 24px;
  overflow: hidden;
  background: #050505;
  color: var(--white);
}

.case-next video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(1) saturate(0) contrast(1.08);
  pointer-events: none;
}

.case-next-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  text-align: center;
}

.case-next .case-eyebrow {
  color: var(--gray-4);
  font-size: 14px;
}

.case-next h2 {
  margin-top: 40px;
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.case-next-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.case-next-actions .button {
  width: 208px;
}

.case-next-actions .button-ghost {
  width: auto;
}

@media (max-width: 980px) {
  .case-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

@media (max-width: 640px) {
  .case-nav {
    top: 16px;
  }

  .case-hero {
    padding-top: 112px;
  }

  .case-hero-copy {
    gap: 24px;
    padding-bottom: 32px;
  }

  .case-hero h1 {
    font-size: 44px;
    line-height: 0.98;
  }

  .case-cover {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .case-hero .case-cover {
    aspect-ratio: 3 / 2;
  }

  .case-section {
    padding-block: 72px;
  }

  .case-split {
    gap: 32px;
  }

  .case-heading h2 {
    font-size: 42px;
  }

  .case-meta {
    flex-wrap: wrap;
    gap: 24px 32px;
  }

  .case-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .case-card {
    min-height: 260px;
  }

  .case-gallery {
    --case-gallery-slide-width: min(552px, calc(100vw - 72px));
    margin-top: 32px;
  }

  .case-gallery-track {
    gap: 16px;
  }

  .case-next {
    min-height: 560px;
    padding-block: 96px;
  }

  .case-next h2 {
    font-size: 44px;
  }

  .case-next-actions {
    flex-direction: column;
    align-items: center;
  }

  .case-next-actions .button,
  .case-next-actions .button-ghost {
    width: min(100%, 320px);
  }

  .case-page .site-footer {
    text-align: center;
  }
}
