.cases .container {
  width: auto;
  max-width: none;
  margin-left: calc(clamp(1.15rem, 2.4vw, 2.25rem) + 5vw);
  margin-right: clamp(1.15rem, 2.4vw, 2.25rem);
}

.cases h2 {
  margin: 0;
  color: #f7f2e6;
  font-weight: 900;
  font-size: clamp(2.45rem, 4.6vw, 4.5rem);
  letter-spacing: -0.046em;
  line-height: 0.96;
}

.proof-script {
  display: inline-block;
  height: 1.95em;
  width: auto;
  margin-left: 0.12em;
  vertical-align: -0.48em;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 3vw, 3.2rem);
  align-items: center;
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
}

.proof-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 0.7rem;
  background: #1a1a1a;
}

.proof-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.proof-quote {
  margin: 0 0 0 clamp(1.5rem, 4vw, 3.25rem);
  color: #f7f2e6;
  font-size: clamp(1.22rem, 1.55vw, 1.62rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.85;
}

.proof-quote__mark {
  display: block;
  width: 3.4rem;
  height: auto;
  margin: 0 0 1.1rem;
}

.proof-quote strong,
.proof-mark {
  font-weight: 700;
  font-style: italic;
}

.proof-mark {
  background-image: linear-gradient(#00d0d6, #00d0d6);
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% 0.12em;
}

.proof-quote footer {
  margin-top: 1.8rem;
  color: #f7f2e6;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}

.proof-steps {
  display: block;
  margin: clamp(2.8rem, 6vh, 4.2rem) 0 0;
  padding: 0;
  list-style: none;
}

.proof-steps li {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: #f7f2e6;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  letter-spacing: -0.034em;
  line-height: 1.25;
}

.proof-steps li:nth-child(2) {
  margin-top: 0.7rem;
  margin-left: 34%;
}

.proof-steps li:nth-child(3) {
  margin-top: 0.7rem;
  margin-left: 61%;
}

.proof-steps li:nth-child(1)::after,
.proof-steps li:nth-child(2)::after {
  content: "";
  position: absolute;
  bottom: -1.55rem;
  width: 1.7rem;
  height: 2.4rem;
  background: url("/media/cases/step-arrow.png") center / contain no-repeat;
  transform: rotate(-70deg);
  transform-origin: center center;
  pointer-events: none;
}

.proof-steps li:nth-child(1)::after {
  right: 22%;
}

.proof-steps li:nth-child(2)::after {
  right: 46%;
}

@media (max-width: 860px) {
  .cases .container {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }

  .cases h2 {
    position: relative;
  }

  .proof-script {
    position: absolute;
    right: -0.45rem;
    bottom: -0.42em;
    width: min(11.4rem, 52%);
    height: auto;
    margin: 0;
  }

  @media (max-width: 400px) {
    .proof-script {
      width: 7.4rem;
      bottom: -0.35em;
    }
  }

  .proof-layout,
  .proof-steps {
    grid-template-columns: 1fr;
  }

  .proof-layout {
    gap: 0.85rem;
    margin-top: 1.4rem;
  }

  .proof-quote {
    margin-left: 0;
    font-size: 1.02rem;
    line-height: 1.42;
  }

  .proof-quote br {
    display: none;
  }

  .proof-quote__mark {
    width: 2.15rem;
    margin-bottom: 0.45rem;
  }

  .proof-quote footer {
    margin-top: 0.75rem;
    font-size: 0.9rem;
  }

  .proof-steps {
    margin-top: 1.5rem;
  }

  .proof-steps li {
    font-size: clamp(0.7rem, 3.45vw, 0.86rem);
    max-width: 100%;
  }

  .proof-steps li:nth-child(2),
  .proof-steps li:nth-child(3) {
    margin-top: 3.05rem;
    margin-left: 0;
  }

  .proof-steps li:nth-child(2) {
    margin-left: 0.7rem;
    max-width: calc(100% - 0.7rem);
  }

  .proof-steps li:nth-child(3) {
    margin-left: 1.4rem;
    max-width: calc(100% - 1.4rem);
  }

  .proof-steps li:nth-child(1)::after,
  .proof-steps li:nth-child(2)::after {
    top: calc(100% + 0.02rem);
    bottom: auto;
    right: auto;
    left: 12%;
    width: 1.7rem;
    height: 2.55rem;
    transform: rotate(-36deg);
  }
}

.project-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3.2rem, 8vh, 5.5rem);
}

.project-board__note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: #f7f2e6;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  letter-spacing: -0.02em;
}

.project-board__stars {
  color: #00d0d6;
  letter-spacing: 0.14em;
  font-size: 1.05em;
  line-height: 1;
}

.project-board__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.15rem;
}

.project-board__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  background: #01dce3;
  color: #101010;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.project-board__cta:hover {
  background: #f7f3eb;
}

.project-board__more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  color: #f7f2e6;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 860px) {
  .project-board {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
  }

  .project-board__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.85rem;
  }

  .project-board__cta {
    justify-content: center;
  }

  .project-board__more {
    align-self: center;
  }
}

