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

.case-shell,
.case-shell .side-rail {
  background: #fff;
}

.case-study {
  width: calc(100% - var(--rail-width));
  margin-left: var(--rail-width);
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-hero {
  position: relative;
  height: 1120px;
  padding-right: 44px;
  padding-left: 44px;
}

.case-hero__art {
  position: absolute;
  top: 41px;
  right: 44px;
  width: 711px;
  height: 495px;
  object-fit: contain;
}

.case-hero__copy {
  position: absolute;
  top: 554px;
  left: 44px;
  width: 515px;
}

.case-hero h1 {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.case-hero__copy > p {
  margin-top: 17px;
  padding-left: 4px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
}

.case-hero .tag-list {
  gap: 9px;
  margin-top: 18px;
}

.case-hero .tag-list li {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: url("../assets/figma/tmi/hero-tag-outline.svg") center / 100% 100% no-repeat;
  color: var(--grey-dark);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.case-hero .tag-list .tag-list__short {
  position: relative;
  background: none;
}

.case-hero .tag-list .tag-list__short::before {
  position: absolute;
  inset: 0;
  border: 18px solid transparent;
  border-image-source: url("../assets/figma/tmi/hero-tag-outline.svg");
  border-image-slice: 18;
  border-image-width: 18px;
  border-image-repeat: stretch;
  content: "";
  pointer-events: none;
}

.case-hero__client {
  position: absolute;
  top: 864px;
  right: 44px;
  width: 115px;
  height: 49px;
  object-fit: contain;
}

.case-meta {
  position: absolute;
  top: 930px;
  right: 44px;
  display: grid;
  justify-items: end;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.case-meta div {
  display: flex;
  gap: 6px;
}

.case-meta dt {
  color: var(--grey-medium);
}

.case-meta dt::after {
  margin-left: 6px;
  color: var(--black);
  content: "/";
}

.case-meta dd {
  margin: 0;
}

.case-section {
  position: relative;
}

.case-divider {
  display: grid;
  height: 34px;
  margin: 0 36px;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 16px;
}

.case-section > .case-divider + * {
  margin-top: 80px;
}

.case-divider__star {
  width: 26px;
  height: 34px;
  object-fit: contain;
}

.case-divider__line {
  width: 100%;
  height: 8px;
  object-fit: fill;
}

.case-divider h2 {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
}

.case-copy {
  width: 862px;
  margin-left: 55px;
}

.case-copy h3,
.context-barrier h3,
.problem-statement {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.case-copy > p {
  line-height: 1.5;
}

.case-context {
  min-height: 2245px;
  padding-top: 0;
}

.case-context > .case-copy:first-of-type {
  margin-top: 80px;
}

.case-context > .case-copy:first-of-type p {
  margin-top: 16px;
}

.case-context .case-copy h3 + p {
  margin-top: 16px;
}

.context-visual {
  position: relative;
}

.context-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.context-visual--clinical {
  width: 511px;
  height: 333px;
  margin: 80px 33px 0 auto;
}

.context-visual--clinical figcaption {
  position: absolute;
  top: 190px;
  left: -35px;
  font-size: 18px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.context-barrier {
  margin-top: 80px;
}

.context-barrier p {
  margin-top: 16px;
}

.context-comparison {
  position: relative;
  height: 620px;
  margin-top: 78px;
}

.context-visual--home {
  position: absolute;
  top: 132px;
  right: 33px;
  width: 630px;
  height: 478px;
}

.context-comparison__label {
  position: absolute;
  top: 77px;
  right: 34px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
}

.context-comparison__label span {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-body);
  font-size: 34px;
  transform: rotate(12deg);
}

.context-visual--before {
  position: absolute;
  top: 0;
  left: 55px;
  width: 320px;
}

.context-visual--before > div {
  position: relative;
  width: 320px;
  height: 207px;
  overflow: hidden;
  border: 1px solid var(--grey-light);
  border-radius: 12px;
}

.context-visual--before img {
  position: absolute;
  top: -42.94%;
  left: -4.32%;
  width: 104.18%;
  height: 162.16%;
  max-width: none;
  object-fit: fill;
}

.context-visual--before figcaption {
  margin-top: 8px;
  color: var(--grey-dark);
  text-align: right;
}

.mission-block {
  display: grid;
  width: 889px;
  min-height: 175px;
  margin: 154px auto 0;
  grid-template-columns: 153px 1px 1fr;
  align-items: start;
  gap: 28px;
}

.mission-block h3 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.4;
  text-align: right;
}

.mission-block > span {
  width: 1px;
  height: 166px;
  background: var(--grey-light);
}

.mission-block p {
  padding-top: 107px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
}

.case-problem {
  min-height: 808px;
}

.case-problem > .case-copy:first-of-type {
  margin-top: 80px;
}

.problem-statement {
  width: 620px;
  margin: 70px 54px 0 auto;
  color: var(--black);
  text-align: right;
}

.problem-statement strong {
  color: var(--black);
}

.problem-followup {
  margin-top: 70px;
}

.problem-followup p + p {
  margin-top: 2px;
}

.process-steps {
  display: flex;
  margin: 38px 0 0 62px;
  align-items: center;
  gap: 23px;
}

.process-steps li:not(:last-child) {
  display: inline-flex;
  width: 128px;
  height: 45px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: url("../assets/figma/tmi/process-pill-outline.svg") center / 100% 100% no-repeat;
  color: var(--grey-dark);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.process-steps li:last-child {
  width: 33px;
  height: 40px;
  margin-left: 4px;
  background: url("../assets/figma/tmi/process-mark.svg") center / contain no-repeat;
  font-size: 0;
}

.case-discover {
  min-height: 1388px;
}

.vertical-label {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.method-list {
  position: relative;
  display: grid;
  width: calc(100% - 109px);
  margin: 78px 0 0 109px;
  padding-right: 0;
  justify-items: end;
  gap: 20px;
}

.method-list .vertical-label {
  position: absolute;
  top: 0;
  right: 0;
}

.method-list p {
  position: relative;
  display: flex;
  box-sizing: content-box;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 48px);
  min-height: 0;
  margin-right: 76px;
  padding: 12px 24px;
  border: 0;
  background: none;
  color: var(--grey-medium);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
}

.method-list strong {
  color: var(--black);
}

.method-list p::before {
  position: absolute;
  inset: 0;
  border: 20px solid transparent;
  border-image-source: url("../assets/figma/bwell/method-outline-long.svg");
  border-image-slice: 23;
  border-image-width: 20px;
  border-image-repeat: stretch;
  content: "";
  pointer-events: none;
}

.method-list p:nth-of-type(2) {
  width: max-content;
}

.method-list p:nth-of-type(3) {
  width: max-content;
}

.methods-visual {
  width: 843px;
  margin: 105px 0 0 55px;
}

.methods-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--grey-light);
  border-radius: 12px;
}

.methods-visual figcaption {
  margin-top: 12px;
  font-size: 18px;
}

.insights-block {
  position: relative;
  display: grid;
  width: 807px;
  margin: 114px 0 0 110px;
  gap: 44px;
}

.insights-block .vertical-label {
  position: absolute;
  top: 0;
  left: -63px;
}

.insights-block article {
  position: relative;
}

.insights-block article::before {
  display: none;
}

.insights-block h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.insights-block article p {
  position: relative;
  padding-left: 32px;
  color: var(--grey-medium);
}

.insights-block article p::before {
  position: absolute;
  top: 0;
  left: 7px;
  color: var(--grey-dark);
  content: "•";
}

.case-define {
  min-height: 898px;
}

.case-define > .case-copy {
  margin-top: 80px;
}

.recommendation-layers {
  display: grid;
  margin: 78px 33px 0 55px;
  gap: 72px;
}

.recommendation-layers article {
  display: grid;
  width: 740px;
  grid-template-columns: 210px 400px;
  align-items: center;
  gap: 20px;
}

.recommendation-layers article:nth-child(2) {
  justify-self: end;
}

.recommendation-layers article:nth-child(3) {
  margin-left: 0;
  justify-self: center;
}

.recommendation-layers h3 {
  color: var(--black);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  -webkit-text-fill-color: var(--black);
  -webkit-text-stroke: 0;
}

.case-develop {
  min-height: 718px;
}

.develop-grid {
  display: grid;
  margin: 80px 33px 0 55px;
  grid-template-columns: 489px 1fr;
  grid-template-rows: auto auto;
  gap: 74px 4px;
}

.develop-grid p {
  line-height: 1.5;
}

.develop-grid p:first-child {
  grid-column: 1;
}

.develop-grid .develop-arrow {
  display: flex;
  grid-row: 2;
  grid-column: 1;
  align-items: flex-start;
  justify-content: center;
}

.develop-grid .develop-arrow img {
  width: 92px;
  height: 73px;
  object-fit: contain;
}

.develop-grid p:last-child {
  grid-row: 2;
  grid-column: 2;
}

.case-deliver {
  min-height: 3081px;
}

.deliver-intro {
  width: 920px;
  margin-top: 80px;
}

.deliverables {
  display: grid;
  margin: 44px 54px 0 88px;
  grid-template-columns: 218px 291px 326px;
  gap: 38px;
}

.deliverables p {
  font-size: 16px;
  line-height: 1.4;
}

.solution-showcase {
  position: relative;
  width: 981px;
  margin: 118px 0 0 56px;
}

.solution-showcase + .solution-showcase {
  margin-top: 110px;
}

.solution-showcase > h3 {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.solution-showcase > p {
  position: absolute;
  top: 8px;
  left: 64px;
  width: 820px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.solution-showcase figure {
  margin: 0;
}

.solution-pair,
.solution-trio {
  position: absolute;
  inset: 0;
}

.solution-frame {
  position: absolute;
}

.solution-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-showcase--navigation .solution-frame img,
.solution-showcase--layout .solution-frame img {
  object-fit: contain;
}

.solution-frame > span {
  position: absolute;
  z-index: 3;
  top: 27px;
  right: 0;
  min-width: 63px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px 0 0 12px;
  background: rgba(216, 228, 238, 0.62);
  font-size: 11px;
  text-align: center;
}

.solution-frame--after > span {
  right: auto;
  left: 12px;
  border-radius: 0 12px 12px 0;
}

.solution-frame--cmyk::before {
  position: absolute;
  z-index: 0;
  inset: -7px -8px -8px -7px;
  border-radius: 22px;
  background: #00f0f0;
  box-shadow: 8px 5px 0 #ff0, 8px 13px 0 #f0f, 0 13px 0 #00f;
  content: "";
}

.solution-showcase--navigation {
  height: 516px;
}

.solution-showcase--navigation .solution-frame--before {
  top: 91px;
  left: 74px;
  width: 320px;
  height: 223px;
}

.solution-showcase--navigation .solution-frame--after {
  top: 145px;
  left: 430px;
  width: 537px;
  height: 354px;
}

.solution-showcase--accessibility {
  height: 485px;
}

.solution-trio img {
  position: absolute;
  display: block;
  object-fit: cover;
}

.solution-trio__highlight {
  top: 125px;
  left: 63px;
  width: 287px;
  height: 286px;
}

.solution-trio__landscape {
  top: 246px;
  left: 381px;
  width: 295px;
  height: 237px;
}

.solution-trio__overlay {
  top: 102px;
  left: 713px;
  width: 267px;
  height: 286px;
}

.solution-showcase--layout {
  height: 562px;
}

.solution-showcase--layout > p {
  top: 13px;
  width: 300px;
}

.solution-showcase--layout .solution-frame--before {
  top: 267px;
  left: 64px;
  width: 295px;
  height: 296px;
}

.solution-showcase--layout .solution-frame--after {
  top: 23px;
  left: 412px;
  width: 544px;
  height: 487px;
}

.solution-showcase--reports {
  height: 338px;
}

.solution-showcase--reports figure img {
  position: absolute;
  display: block;
  object-fit: cover;
}

.solution-showcase--reports figure img:first-child {
  top: 18px;
  left: 59px;
  width: 431px;
  height: 320px;
  border: 1px solid var(--grey-light);
  border-radius: 12px;
}

.solution-showcase--reports figure img:last-child {
  top: 0;
  left: 516px;
  width: 466px;
  height: 288px;
  border: 1px solid var(--grey-light);
  border-radius: 12px;
}

.case-impact {
  min-height: 440px;
}

.impact-grid {
  display: grid;
  width: min(923px, calc(100% - 72px));
  margin: 44px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.impact-grid strong {
  display: block;
}

.case-reflection {
  min-height: 0;
}

.reflection-list {
  display: grid;
  margin: 80px 33px 0 50px;
  gap: 160px;
}

.reflection-list article {
  display: grid;
  width: min(860px, 100%);
  grid-template-columns: 188px minmax(0, 648px);
  justify-self: start;
  align-items: start;
  gap: 24px;
}

.reflection-list article:nth-child(even) {
  grid-template-columns: 188px minmax(0, 648px);
  justify-self: end;
}

.reflection-list h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.reflection-list p {
  margin: 0;
  line-height: 1.5;
}

.reflection-list p strong {
  display: block;
}

.reflection-mark {
  width: 70px;
  height: 68px;
  margin: 360px auto 280px;
  object-fit: contain;
}

.case-contact {
  display: grid;
  min-height: 580px;
  padding-top: 80px;
  grid-template-rows: 1fr auto;
}

.case-contact__content {
  display: grid;
  width: 883px;
  min-height: 0;
  margin: 0 auto;
  grid-template-columns: 250px 1px 1fr;
  gap: 27px;
}

@media (min-width: 851px) {
  .case-contact__content {
    align-self: start;
  }
}

@media (min-width: 1105px) {
  .case-contact__content {
    align-items: stretch;
  }

  .case-contact__divider {
    height: 100%;
    margin-top: 0;
    align-self: stretch;
  }
}

.case-contact h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.case-contact__divider {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--grey-light);
}

.case-contact__message {
  padding: 111px 0 0 0;
}

.case-contact__message > p {
  max-width: 579px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
}

.case-contact__actions {
  display: flex;
  margin-top: 24px;
  gap: 19px;
}

.case-contact__actions .learn-link {
  width: max-content;
  flex: none;
}

.case-contact__actions .case-contact__linkedin {
  width: max-content;
}

.case-contact__meta {
  display: grid;
  padding: 0 36px 24px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 120px;
  color: var(--grey-dark);
  font-size: 14px;
  line-height: 1.4;
}

.case-contact__meta > span {
  height: 3px;
  background: linear-gradient(
    90deg,
    #b9c5d2 0%,
    rgb(185 197 210 / 78%) 62%,
    rgb(185 197 210 / 28%) 88%,
    transparent 100%
  );
  clip-path: polygon(
    0 35%,
    18% 42%,
    39% 36%,
    58% 45%,
    78% 40%,
    100% 49%,
    100% 63%,
    78% 58%,
    58% 66%,
    39% 57%,
    18% 64%,
    0 58%
  );
}

.case-contact__meta > p {
  margin: 0;
  white-space: nowrap;
}

.case-footer {
  margin: 0;
  padding: 0 36px 24px;
}

@media (max-width: 1250px) and (min-width: 851px) {
  .case-hero__art {
    right: 44px;
    width: min(66vw, 650px);
  }

  .case-copy,
  .deliver-intro {
    width: calc(100% - 84px);
    margin-left: 42px;
  }

  .solution-showcase {
    display: flex;
    width: calc(100% - 84px);
    height: auto;
    margin-left: 42px;
    flex-direction: column;
    gap: 22px;
  }

  .solution-showcase > h3,
  .solution-showcase > p {
    position: static;
    width: auto;
    white-space: normal;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .solution-pair,
  .solution-trio,
  .solution-showcase--reports figure {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
  }

  .solution-frame,
  .solution-showcase--navigation .solution-frame--before,
  .solution-showcase--navigation .solution-frame--after,
  .solution-showcase--layout .solution-frame--before,
  .solution-showcase--layout .solution-frame--after,
  .solution-trio img,
  .solution-showcase--reports figure img,
  .solution-showcase--reports figure img:first-child,
  .solution-showcase--reports figure img:last-child {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .solution-trio img:last-child {
    grid-column: 2;
  }

  .deliverables {
    margin-right: 42px;
    margin-left: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .case-study {
    width: 100%;
    margin: 0;
  }

  .case-hero {
    display: flex;
    min-height: 990px;
    height: auto;
    padding: 106px 32px 92px;
    flex-direction: column;
  }

  .case-hero__art,
  .case-hero__copy,
  .case-hero__client,
  .case-meta {
    position: static;
  }

  .case-hero__art {
    width: 100%;
    height: auto;
    margin-left: 0;
    align-self: center;
    flex-shrink: 0;
    order: 0;
    transform: scale(1.05);
    transform-origin: center;
  }

  .case-hero__copy {
    width: 100%;
    margin-top: 64px;
    order: 1;
  }

  .case-hero h1 {
    font-size: 48px;
  }

  .case-hero__copy > p {
    font-size: 20px;
  }

  .case-hero__client {
    width: 105px;
    height: auto;
    margin: 68px 0 0 auto;
    order: 2;
  }

  .case-meta {
    margin-top: 24px;
    align-self: flex-end;
    justify-items: end;
    order: 3;
    font-size: 15px;
    text-align: right;
  }

  .case-meta div {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .case-divider {
    height: 34px;
    min-height: 34px;
    margin: 0 24px;
    grid-template-columns: 22px minmax(24px, 1fr) auto;
    grid-template-rows: 34px;
    gap: 8px;
  }

  .case-divider__star {
    width: 22px;
    height: 29px;
  }

  .case-divider h2 {
    grid-column: 3;
    justify-self: end;
    font-size: 20px;
  }

  .case-divider__line {
    width: 100%;
    height: 7px;
    grid-column: 2;
  }

  .case-copy,
  .deliver-intro {
    width: auto;
    margin-right: 32px;
    margin-left: 32px;
  }

  .case-copy h3,
  .context-barrier h3,
  .problem-statement {
    font-size: 30px;
  }

  .case-context,
  .case-problem,
  .case-discover,
  .case-define,
  .case-develop,
  .case-deliver,
  .case-impact,
  .case-reflection {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .case-context > .case-copy:first-of-type,
  .case-problem > .case-copy:first-of-type,
  .case-define > .case-copy,
  .deliver-intro {
    margin-top: 80px;
  }

  .context-visual--clinical {
    width: calc(100% - 64px);
    height: auto;
    margin: 58px auto 0;
  }

  .context-visual--clinical figcaption {
    position: static;
    margin-top: 8px;
    text-align: right;
    writing-mode: initial;
    transform: none;
  }

  .context-barrier {
    margin-top: 100px;
  }

  .context-comparison {
    height: auto;
    margin-top: 66px;
    padding: 0 32px;
  }

  .context-visual--before {
    position: static;
    width: 62%;
    margin-bottom: 62px;
  }

  .context-visual--before > div {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 207;
  }

  .context-visual--home {
    position: static;
    width: 100%;
    height: auto;
  }

  .context-comparison__label {
    position: static;
    margin: 0 0 18px;
    font-size: 28px;
    text-align: right;
  }

  .mission-block {
    width: auto;
    min-height: 0;
    margin: 110px 32px 0;
    grid-template-columns: 1px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 22px;
  }

  .mission-block h3 {
    grid-row: 1;
    grid-column: 1 / -1;
    font-size: 30px;
    text-align: left;
  }

  .mission-block > span {
    grid-row: 2;
    grid-column: 1;
    width: 1px;
    height: 100%;
    min-height: 150px;
  }

  .mission-block p {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
    padding-top: 0;
    font-size: 18px;
  }

  .problem-statement {
    width: auto;
    margin: 68px 32px 0;
  }

  .problem-followup {
    margin-top: 64px;
  }

  .process-steps {
    margin: 42px 32px 0;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .process-steps li:not(:last-child) {
    font-size: 14px;
  }

  .method-list,
  .methods-visual,
  .insights-block,
  .recommendation-layers,
  .develop-grid,
  .deliverables,
  .impact-grid,
  .reflection-list {
    width: auto;
    margin-right: 32px;
    margin-left: 32px;
  }

  .method-list {
    margin-top: 80px;
    justify-items: stretch;
  }

  .method-list .vertical-label,
  .insights-block .vertical-label {
    position: static;
    margin-bottom: 8px;
    font-size: 30px;
    writing-mode: initial;
    transform: none;
  }

  .method-list p,
  .method-list p:nth-of-type(2),
  .method-list p:nth-of-type(3) {
    width: max-content;
    max-width: calc(100% - 48px);
    margin-right: 0;
  }

  .methods-visual {
    margin-top: 74px;
  }

  .methods-visual img {
    width: 100%;
    height: auto;
  }

  .methods-visual figcaption {
    font-size: 14px;
  }

  .insights-block {
    margin-top: 90px;
    gap: 44px;
  }

  .insights-block article {
    margin-left: 20px;
  }

  .recommendation-layers {
    margin-top: 68px;
    gap: 70px;
  }

  .recommendation-layers article,
  .recommendation-layers article:nth-child(2),
  .recommendation-layers article:nth-child(3) {
    width: 100%;
    margin: 0;
    grid-template-columns: 120px 1fr;
    justify-self: stretch;
    gap: 18px;
  }

  .recommendation-layers h3 {
    font-size: 28px;
  }

  .develop-grid {
    margin-top: 80px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 48px;
  }

  .develop-grid p:first-child,
  .develop-grid .develop-arrow,
  .develop-grid p:last-child {
    grid-row: auto;
    grid-column: 1;
  }

  .deliverables {
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .solution-showcase,
  .solution-showcase--navigation,
  .solution-showcase--accessibility,
  .solution-showcase--layout,
  .solution-showcase--reports {
    display: flex;
    width: auto;
    height: auto;
    margin: 90px 32px 0;
    flex-direction: column;
    gap: 22px;
  }

  .solution-showcase + .solution-showcase {
    margin-top: 86px;
  }

  .solution-showcase > h3,
  .solution-showcase > p {
    position: static;
    width: auto;
    white-space: normal;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .solution-showcase > h3 {
    margin: 0;
    padding: 0;
    font-size: 32px;
    line-height: 1.15;
    text-align: left;
  }

  .solution-pair,
  .solution-trio,
  .solution-showcase--reports figure {
    position: static;
    display: grid;
    width: 100%;
    gap: 34px;
  }

  .solution-frame,
  .solution-showcase--navigation .solution-frame--before,
  .solution-showcase--navigation .solution-frame--after,
  .solution-showcase--layout .solution-frame--before,
  .solution-showcase--layout .solution-frame--after,
  .solution-trio img,
  .solution-showcase--reports figure img,
  .solution-showcase--reports figure img:first-child,
  .solution-showcase--reports figure img:last-child {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .impact-grid {
    margin-top: 80px;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .reflection-list {
    margin-top: 80px;
    gap: 100px;
  }

  .reflection-list article,
  .reflection-list article:nth-child(even) {
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: 1fr;
    justify-self: stretch;
    gap: 24px;
  }

  .reflection-list article:nth-child(even) {
    padding-left: 32px;
  }

  .reflection-list h3 {
    font-size: 30px;
    text-align: left;
  }

  .reflection-mark {
    margin: 180px auto 0;
  }

  .case-contact {
    min-height: 0;
    padding: 90px 32px 24px;
  }

  .case-contact__content {
    width: auto;
    min-height: 0;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-contact h2 {
    padding: 0;
    font-size: 40px;
    line-height: 1.12;
    text-align: left;
  }

  .case-contact span.case-contact__divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      #aebbc9 2%,
      #aebbc9 78%,
      rgb(174 187 201 / 62%) 94%,
      transparent 100%
    );
    clip-path: polygon(
      0 38%,
      7% 74%,
      22% 54%,
      39% 78%,
      58% 48%,
      77% 70%,
      100% 42%,
      88% 18%,
      68% 34%,
      48% 12%,
      27% 30%,
      8% 16%
    );
  }

  .case-contact__message {
    padding-top: 0;
  }

  .case-contact__message > p {
    padding-left: 4px;
    font-size: 20px;
  }

  .case-contact__actions {
    width: 100%;
    margin-top: 20px;
    align-items: flex-end;
    flex-direction: column;
    gap: 16px;
  }

  .case-contact__meta {
    margin-top: 100px;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-contact__meta > p {
    font-size: 13px;
    white-space: normal;
  }

  .case-footer {
    margin: 0;
    padding: 0 32px 24px;
  }

  .case-page figcaption {
    max-width: 100%;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .case-divider {
    grid-template-columns: 22px minmax(12px, 1fr) auto;
    gap: 6px;
  }

  .case-divider h2 {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .case-contact {
    padding-right: 32px;
    padding-left: 32px;
  }

  .case-copy,
  .deliver-intro,
  .method-list,
  .methods-visual,
  .insights-block,
  .recommendation-layers,
  .develop-grid,
  .deliverables,
  .impact-grid,
  .reflection-list,
  .problem-statement,
  .problem-followup,
  .process-steps,
  .mission-block {
    margin-right: 32px;
    margin-left: 32px;
  }

}

figcaption.caption-casual {
  color: var(--grey-medium);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .case-page figcaption {
    font-size: 16px;
  }

  .mission-block > span {
    min-height: 0;
  }

  .method-list {
    position: relative;
    width: auto;
    margin: 80px 32px 0;
    justify-items: end;
    gap: 20px;
  }

  .method-list .vertical-label {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    text-align: right;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .method-list p,
  .method-list p:nth-of-type(2),
  .method-list p:nth-of-type(3) {
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100vw - 163px);
    margin-right: 52px;
    justify-self: end;
    justify-content: flex-end;
    line-height: 1.35;
    text-align: right;
    white-space: normal;
  }

  .method-list p > span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .insights-block {
    margin: 90px 32px 0;
    gap: 44px;
  }

  .insights-block .vertical-label {
    position: static;
    margin-bottom: -28px;
    font-size: 30px;
    line-height: 1.2;
    writing-mode: initial;
    transform: none;
  }

  .insights-block article {
    margin-left: 0;
    padding-left: 0;
  }

  .insights-block article p {
    padding-left: 32px;
  }

  .insights-block article p::before {
    display: block;
  }

  .recommendation-layers article,
  .recommendation-layers article:nth-child(2),
  .recommendation-layers article:nth-child(3) {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
  }

  .recommendation-layers article:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .recommendation-layers article:nth-child(2) h3 {
    grid-row: 1;
    grid-column: 2;
    align-self: start;
    justify-self: end;
    text-align: right;
  }

  .recommendation-layers article:nth-child(2) p {
    grid-row: 1;
    grid-column: 1;
    text-align: right;
  }

  .recommendation-layers h3 {
    position: static;
    width: auto;
    line-height: 1.1;
    align-self: start;
    justify-self: start;
    text-align: right;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transform-origin: center;
  }

  .recommendation-layers article p {
    align-self: start;
  }
}

:is(
  .case-context,
  .case-problem,
  .case-discover,
  .case-define,
  .case-develop,
  .case-deliver,
  .case-impact
) {
  min-height: 0;
  margin-bottom: 200px;
  padding-bottom: 0;
}

.solution-showcase + .solution-showcase {
  margin-top: 160px;
}

/* Responsive hardening: keep case-study content inside the available column. */
.case-study,
.case-study > *,
.case-copy,
.deliver-intro,
.method-list,
.methods-visual,
.insights-block,
.recommendation-layers,
.develop-grid,
.solution-showcase,
.case-contact__content {
  min-width: 0;
}

.case-copy,
.deliver-intro,
.method-list p,
.insights-block article,
.recommendation-layers article,
.deliverables > *,
.solution-showcase > p,
.case-contact__message {
  overflow-wrap: anywhere;
}

/* Keep the method labels tied to the title instead of the viewport edge. */
.method-list {
  width: auto;
  margin-right: 32px;
  margin-left: 32px;
  padding-right: 0;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  column-gap: 20px;
  row-gap: 20px;
}

.method-list .vertical-label {
  position: static;
  grid-row: 1 / span 3;
  grid-column: 2;
  justify-self: end;
}

.method-list p,
.method-list p:nth-of-type(2),
.method-list p:nth-of-type(3) {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin-right: 0;
  grid-column: 1;
  justify-self: end;
}

.method-list p > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1279px) and (min-width: 851px) {
  .case-copy,
  .deliver-intro {
    width: auto;
    margin-right: 32px;
    margin-left: 32px;
  }

  .context-comparison {
    display: grid;
    height: auto;
    margin: 78px 32px 0;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 18px 48px;
  }

  .context-visual--before,
  .context-visual--home,
  .context-comparison__label {
    position: static;
  }

  .context-visual--before {
    width: 100%;
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .context-visual--before > div {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 207;
  }

  .context-comparison__label {
    margin: 0;
    grid-row: 1;
    grid-column: 2;
    text-align: right;
  }

  .context-visual--home {
    width: 100%;
    height: auto;
    grid-row: 2;
    grid-column: 2;
  }

  .mission-block {
    width: min(889px, calc(100% - 64px));
  }

  .problem-statement {
    width: min(620px, calc(100% - 64px));
    margin-right: 32px;
  }

  .process-steps {
    margin-right: 32px;
    margin-left: 32px;
    flex-wrap: wrap;
  }

  .methods-visual {
    width: auto;
    margin-right: 32px;
    margin-left: 32px;
  }

  .insights-block {
    width: auto;
    margin-right: 32px;
    margin-left: 95px;
  }

  .recommendation-layers {
    margin-right: 32px;
    margin-left: 32px;
  }

  .recommendation-layers article {
    width: min(740px, 100%);
    grid-template-columns: minmax(150px, 210px) minmax(0, 400px);
  }

  .develop-grid {
    margin-right: 32px;
    margin-left: 32px;
    grid-template-columns: minmax(280px, 489px) minmax(0, 1fr);
  }

  .deliverables {
    margin-right: 32px;
    margin-left: 32px;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }

  .solution-showcase,
  .solution-showcase--navigation,
  .solution-showcase--accessibility,
  .solution-showcase--layout,
  .solution-showcase--reports {
    display: flex;
    width: auto;
    height: auto;
    margin-right: 32px;
    margin-left: 32px;
    flex-direction: column;
    gap: 22px;
  }

  .solution-showcase > h3,
  .solution-showcase > p {
    position: static;
    width: auto;
    white-space: normal;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .solution-pair,
  .solution-trio,
  .solution-showcase--reports figure {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    align-items: start;
    gap: 28px;
  }

  .solution-frame,
  .solution-showcase--navigation .solution-frame--before,
  .solution-showcase--navigation .solution-frame--after,
  .solution-showcase--layout .solution-frame--before,
  .solution-showcase--layout .solution-frame--after,
  .solution-trio img,
  .solution-trio img:last-child,
  .solution-showcase--reports figure img,
  .solution-showcase--reports figure img:first-child,
  .solution-showcase--reports figure img:last-child {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    grid-column: auto;
  }
}

@media (max-width: 1250px) and (min-width: 851px) {
  .context-comparison {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 18px;
  }

  .context-visual--before {
    width: min(320px, 100%);
    grid-row: 1;
    grid-column: 1;
  }

  .context-comparison__label {
    grid-row: 2;
    grid-column: 1;
  }

  .context-visual--home {
    grid-row: 3;
    grid-column: 1;
  }
}

@media (max-width: 1104px) and (min-width: 851px) {
  .case-contact {
    min-height: 840px;
    padding: 140px 36px 24px;
    grid-template-rows: 1fr auto;
  }

  .case-contact__content {
    width: min(830px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(180px, 245px) 1px minmax(0, 1fr);
    align-self: start;
    align-items: start;
    gap: 26px;
  }

  .case-contact h2 {
    padding-top: 3px;
    font-size: 46px;
    line-height: 1.42;
    text-align: right;
  }

  .case-contact span.case-contact__divider {
    width: 3px;
    height: auto;
    margin-top: 3px;
    align-self: stretch;
    background: linear-gradient(
      180deg,
      transparent 0%,
      #aebbc9 2%,
      #aebbc9 78%,
      rgb(174 187 201 / 62%) 94%,
      transparent 100%
    );
    clip-path: polygon(
      38% 0,
      74% 7%,
      54% 22%,
      78% 39%,
      48% 58%,
      70% 77%,
      42% 100%,
      18% 88%,
      34% 68%,
      12% 48%,
      30% 27%,
      16% 8%
    );
  }

  .case-contact__message {
    padding-top: 116px;
  }

  .case-contact__actions {
    justify-content: flex-start;
  }

  .case-contact__meta {
    margin-top: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 850px) {
  .context-comparison {
    display: grid;
  }

  .context-visual--before {
    grid-row: 1;
  }

  .context-comparison__label {
    grid-row: 2;
  }

  .context-visual--home {
    grid-row: 3;
  }

  .method-list {
    width: auto;
    margin-right: 32px;
    margin-left: 32px;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 20px;
    justify-items: end;
  }

  .method-list .vertical-label {
    position: static;
    margin: 0;
    grid-row: 1 / span 3;
    grid-column: 2;
  }

  .method-list p,
  .method-list p:nth-of-type(2),
  .method-list p:nth-of-type(3) {
    right: auto;
    width: fit-content;
    max-width: 100%;
    margin-right: 0;
    grid-column: 1;
  }
}
