.case-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.case-hero {
  padding-block: clamp(28px, 4vw, 62px) clamp(40px, 6vw, 88px);
  background: var(--paper);
}

.case-back {
  display: inline-block;
  margin-bottom: clamp(26px, 4vw, 56px);
  text-underline-offset: 4px;
}

.case-opening,
.case-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 92px);
}

.case-opening {
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 56px);
}

.case-opening h1 {
  margin: 0;
  font-size: clamp(3.75rem, 7.25vw, 8rem);
  line-height: 0.89;
  letter-spacing: -0.065em;
}

.case-lead {
  max-width: 31ch;
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.42;
}

.case-study figure { margin: 0; }

.case-study figcaption {
  margin-top: 10px;
  color: #534b40;
  font-size: 0.91rem;
  line-height: 1.4;
}

.case-devices {
  position: relative;
  padding-bottom: clamp(16px, 3.8vw, 58px);
  isolation: isolate;
}

.case-desktop {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #473d32;
  border-radius: clamp(5px, 1vw, 14px);
  box-shadow: 0 16px 30px #40382d3b;
}

.case-phone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 19%;
  max-width: 270px;
  padding: clamp(2px, 0.45vw, 7px);
  border: 1px solid #595754;
  border-radius: 14% / 6.5%;
  background: #161616;
  box-shadow: 0 16px 28px #2119126b, inset 0 0 0 1px #4e4944;
}

.case-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12% / 5.7%;
}

.case-phone::after {
  content: "";
  position: absolute;
  top: 2.2%;
  left: 50%;
  width: 26%;
  height: 2%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #161616;
}

.case-section { padding-block: clamp(56px, 8vw, 116px); }

.case-section-intro {
  align-items: start;
  margin-bottom: clamp(30px, 4.5vw, 64px);
}

.case-section h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.case-copy {
  max-width: 49ch;
  align-self: center;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.5;
}

.case-copy p { margin: 0; }

.case-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.case-compare {
  --before-width: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  isolation: isolate;
  border-radius: 10px;
  background: #e8ded0;
}

.case-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-compare-before { clip-path: inset(0 calc(100% - var(--before-width)) 0 0); }

.case-compare-divider {
  position: absolute;
  inset-block: 0;
  left: var(--before-width);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  display: grid;
  place-items: center;
}

.case-compare-divider span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-left: -20px;
  border-radius: 22px;
  color: #111;
  background: #fff;
  box-shadow: 0 1px 8px #0004;
  font-size: 1.25rem;
}

.case-compare-label {
  position: absolute;
  bottom: 12px;
  padding: 3px 9px;
  color: #fff;
  background: #111d;
  border-radius: 4px;
  font-size: .8rem;
}

.case-compare-label-before { left: 12px; }
.case-compare-label-after { right: 12px; }

.case-compare-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
  touch-action: pan-y;
  appearance: none;
}

.case-compare-input::-webkit-slider-thumb {
  appearance: none;
  width: 1px;
  height: 34px;
}

.case-compare-input::-moz-range-thumb {
  width: 1px;
  height: 34px;
  border: 0;
}

.case-compare:focus-within {
  outline: 3px solid #111;
  outline-offset: 4px;
}

.case-brand { background: var(--paper); }

.case-brand-sheet {
  display: grid;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(14px, 3.5vw, 48px);
  border: 1px solid #c8b9a7;
  border-radius: 14px;
}

.case-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1.2vw, 14px);
}

.case-mark {
  display: grid;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
  min-height: clamp(124px, 17vw, 240px);
  padding: clamp(10px, 2vw, 26px);
  border-radius: 8px;
  background: #e8ded0;
}

.case-mark img {
  display: block;
  width: min(100%, 150px);
  max-height: clamp(74px, 11vw, 154px);
  object-fit: contain;
}

.case-mark-dark { background: #101010; }

.case-sprinter-photo { position: relative; }

.case-sprinter-photo > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-sprinter-logo {
  position: absolute;
  left: 65.5%;
  top: 41%;
  width: 24.5%;
  height: auto;
  transform: translate(-50%, -50%);
}

.case-brand-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 22px);
}

.case-brand-details img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 6px;
  background: #eeede9;
}

.case-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 58px);
}

.case-search-grid article {
  padding-top: 16px;
  border-top: 1px solid #c8b9a7;
}

.case-search-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.14;
}

.case-search-grid p {
  margin: 0;
  max-width: 45ch;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.5;
}

.case-search-grid a { text-decoration: underline; }

@media (max-width: 760px) {
  .case-opening,
  .case-editorial-grid,
  .case-project-grid,
  .case-search-grid { grid-template-columns: 1fr; }

  .case-opening h1 { font-size: clamp(3.5rem, 13vw, 5.5rem); }
  .case-devices { padding-bottom: 9%; }
  .case-phone { width: 24%; }
  .case-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
