/* Reusable presentation rules for every project case study. */
.case-study {
  max-width: 1280px;
}
.case-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.case-hero {
  padding: 55px 0 72px;
}
.case-hero h1 {
  font: 800 clamp(54px, 8vw, 105px)/0.95 Manrope;
  letter-spacing: -6px;
  margin: 0;
}
.case-lede {
  font: 500 25px/1.25 Manrope;
  max-width: 600px;
  letter-spacing: -1px;
  margin: 25px 0 47px;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
}
.case-meta div {
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-right: 1px solid #bbb;
}
.case-meta div:last-child {
  border: 0;
}
.case-meta span {
  font-size: 9px;
  font-weight: 700;
  color: #666;
}
.case-meta b {
  font-size: 13px;
}
.case-meta-link {
  display: inline-block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}
.case-browser {
  width: min(1160px, calc(100% - 80px));
  aspect-ratio: 16 / 10;
  margin: 0 auto 105px;
  border: 12px solid #242424;
  border-radius: 12px;
  overflow: hidden;
  background: #ece5db;
  box-shadow: 0 20px 45px #0002;
}
.case-browser img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.browser-top {
  height: 34px;
  background: #242424;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #bbb;
  font-size: 9px;
}
.browser-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e1bd2d;
}
.browser-top i:nth-child(2) {
  background: #aaa;
}
.browser-top i:nth-child(3) {
  background: #777;
}
.browser-top span {
  margin: auto;
}
.store-header {
  height: 65px;
  background: #f8f6f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  font-size: 10px;
}
.store-header b {
  font: 800 21px Manrope;
  letter-spacing: 2px;
}
.store-header span {
  color: #777;
}
.store-header em {
  font-style: normal;
  font-weight: 700;
}
.store-hero {
  height: 480px;
  padding: 8%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: linear-gradient(100deg, #c8af89 0 44%, #ded8cd 44%);
  overflow: hidden;
}
.store-hero p {
  font: 800 clamp(36px, 5vw, 70px)/0.92 Manrope;
  letter-spacing: -3px;
  margin: 0 0 20px;
}
.store-hero a {
  background: #222;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
}
.lamp {
  width: 260px;
  height: 300px;
  border: 38px solid #3d4140;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  position: relative;
  margin-right: 12%;
  background: #f4e8c7;
  box-shadow: 0 60px 0 -20px #726e60;
}
.lamp:after {
  content: "";
  position: absolute;
  bottom: -65px;
  left: 50%;
  width: 15px;
  height: 65px;
  background: #3d4140;
}
.case-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 95px;
  padding-bottom: 115px;
}
.case-intro h2,
.case-copy h2,
.outcome h2 {
  font: 800 35px/1.1 Manrope;
  letter-spacing: -2px;
  margin: 0;
}
.case-intro > div:last-child p,
.case-copy > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}
.case-intro > div:last-child p strong {
  font-weight: 700;
}
.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding-bottom: 130px;
}
.case-copy h2 {
  margin-bottom: 23px;
}
.case-copy ul,
.case-copy ol {
  margin: 28px 0 0;
  border-top: 1px solid #bbb;
}
.case-copy ul {
  padding: 0;
  list-style: none;
}
.case-copy ol {
  padding: 0;
  list-style: none;
}
.case-copy li {
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid #bbb;
}
.case-copy ul li:before,
.case-copy ol li:before {
  content: "✦";
  color: #b49000;
  margin-right: 11px;
}
.product-shot {
  background: #f5f5f5;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.outcome {
  border-top: 1px solid #222;
  padding-top: 25px;
  padding-bottom: 120px;
}
.outcome h2 {
  max-width: 680px;
  margin-bottom: 48px;
}
.outcome-description {
  max-width: 680px;
  margin: -25px 0 48px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ccc;
}
.result-grid article {
  padding: 25px 26px 0 0;
}
.result-grid article + article {
  padding-left: 25px;
  border-left: 1px solid #ccc;
}
.result-grid b {
  color: #b49000;
  font: 700 12px Manrope;
}
.result-grid h3 {
  font: 700 20px Manrope;
  margin: 30px 0 10px;
  letter-spacing: -0.7px;
}
.result-grid p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.next-case {
  padding: 45px 0;
  border-top: 1px solid #ccc;
}
.next-case a {
  font: 800 clamp(30px, 5vw, 30px) Manrope;
  color: var(--ink);
  letter-spacing: -3px;
  text-decoration: none;
}
.next-case a span {
  color: #b49000;
}
.project-navigation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.project-navigation a {
  flex: 1;
}
.project-navigation .next-project {
  text-align: right;
}
.previous-project span,
.next-project span {
  color: #b49000;
}
@media (max-width: 760px) {
  .case-hero {
    padding: 35px 0 48px;
  }
  .case-hero h1 {
    letter-spacing: -3px;
  }
  .case-lede {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .case-meta,
  .case-intro,
  .case-split,
  .result-grid {
    grid-template-columns: 1fr;
  }
  .case-meta div {
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid #bbb;
  }
  .case-meta div + div {
    padding-left: 0;
  }
  .case-meta div:last-child {
    border-bottom: 0;
  }
  .case-browser {
    width: calc(100% - 32px);
    margin-bottom: 70px;
    border-width: 7px;
  }
  .store-header {
    height: 48px;
  }
  .store-header span {
    display: none;
  }
  .store-header b {
    font-size: 15px;
  }
  .store-hero {
    height: 300px;
    padding: 9%;
  }
  .lamp {
    width: 135px;
    height: 160px;
    border-width: 23px;
  }
  .case-intro {
    gap: 25px;
    padding-bottom: 70px;
  }
  .case-intro h2,
  .case-copy h2,
  .outcome h2 {
    font-size: 28px;
  }
  .case-split {
    gap: 35px;
    padding-bottom: 75px;
  }
  .product-shot {
    height: 310px;
  }
  .result-grid article {
    padding: 22px 0;
    border-bottom: 1px solid #ccc;
  }
  .result-grid article + article {
    padding-left: 0;
    border-left: 0;
  }
  .outcome {
    padding-bottom: 75px;
  }
  .project-navigation {
    flex-direction: column;
    gap: 20px;
  }
  .project-navigation .next-project {
    text-align: left;
  }
}
@media (min-width: 761px) and (max-width: 980px) {
  .case-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-meta div:nth-child(2) {
    border-right: 0;
  }
  .case-meta div:nth-child(-n + 2) {
    border-bottom: 1px solid #bbb;
  }
}
