.property-potential {
  --potential-line: #ffffff45;
  --potential-muted: #bdbdbd;
  padding-top: 78px;
  padding-bottom: 82px;
  border-top: 1px solid #ffffff30;
  background: #080808;
}

.potential-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: 8%;
  margin-bottom: 29px;
}

.potential-title .eyebrow {
  margin-bottom: 17px;
  color: #bdbdbd;
  font-size: .6875rem;
  letter-spacing: .2em;
}

.potential-heading h2 {
  font-size: clamp(2.8rem, 4.4vw, 4.25rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.052em;
}

.potential-supporting {
  max-width: 480px;
  justify-self: end;
  padding-bottom: 6px;
  color: #c2c2c2;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.015em;
}

.potential-comparison-wrap {
  min-width: 0;
}

.potential-comparison {
  --reveal: 50%;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid #ffffff78;
  background: #171717;
}

.potential-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.potential-layer > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.potential-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.potential-after {
  z-index: 2;
  clip-path: inset(0 0 0 var(--reveal));
}

.potential-after::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, #080808b8 0%, #080808b8 42%, transparent 76%);
  mask-image: linear-gradient(90deg, transparent 44%, #000 64%);
}

.potential-photo-label {
  position: absolute;
  z-index: 3;
  bottom: 4.7%;
  left: 2.2%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 8px 15px;
  background: #080808e8;
  color: #f5f5f5;
  font-size: .8125rem;
  line-height: 1.2;
  letter-spacing: .01em;
}

.potential-photo-label-with {
  right: 2.2%;
  left: auto;
  gap: 10px;
}

.potential-photo-label img {
  display: block;
  width: 59px;
  height: auto;
}

.potential-copy {
  position: absolute;
  z-index: 2;
  top: 6.5%;
  right: 5.2%;
  width: min(29%, 330px);
  color: #fff;
}

.potential-copy h3 {
  max-width: 270px;
  margin-bottom: 17px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.55vw, 2.2rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.potential-copy-item {
  margin-top: 13px;
  padding-left: 13px;
  border-left: 1px solid #ffffffa6;
}

.potential-copy-item h4 {
  margin: 0;
  color: #f4f4f4;
  font-family: var(--display);
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.012em;
}

.potential-copy-item p {
  margin-top: 3px;
  color: #d3d3d3;
  font-size: .8125rem;
  line-height: 1.5;
}

.potential-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 1px;
  background: #fff;
  pointer-events: none;
}

.potential-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #080808;
  box-shadow: 0 2px 11px #0008;
  transform: translate(-50%, -50%);
}

.potential-handle i {
  display: block;
  width: 7px;
  height: 7px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
}

.potential-handle i:first-child {
  transform: rotate(-135deg);
}

.potential-handle i:last-child {
  transform: rotate(45deg);
}

.potential-range {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
  touch-action: pan-y;
}

.potential-range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.potential-range::-webkit-slider-thumb {
  width: 48px;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.potential-range::-moz-range-track {
  height: 100%;
  background: transparent;
}

.potential-range::-moz-range-thumb {
  width: 48px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.potential-comparison:focus-within {
  outline: 2px solid #f5f5f5;
  outline-offset: 5px;
}

.potential-comparison:focus-within .potential-handle {
  box-shadow: 0 0 0 4px #080808, 0 0 0 6px #fff, 0 2px 11px #0008;
}

.potential-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  color: #bcbcbc;
  font-size: .75rem;
  line-height: 1.5;
}

.potential-disclaimer {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--potential-line);
  color: #c2c2c2;
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.012em;
}

.potential-mobile-copy {
  display: none;
}

@media (max-width: 800px) {
  .property-potential {
    padding-top: 58px;
    padding-bottom: 61px;
  }

  .potential-heading {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 23px;
  }

  .potential-title .eyebrow {
    margin-bottom: 14px;
  }

  .potential-heading h2 {
    font-size: clamp(2.65rem, 8vw, 3.8rem);
  }

  .potential-supporting {
    justify-self: start;
    max-width: 570px;
    padding: 0;
    font-size: 1.1rem;
  }

  .potential-after::before,
  .potential-copy {
    display: none;
  }

  .potential-mobile-copy {
    display: block;
    margin-top: 23px;
  }

  .potential-mobile-copy .potential-copy {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    color: #f4f4f4;
  }

  .potential-mobile-copy .potential-copy h3 {
    max-width: none;
    margin-bottom: 15px;
    font-size: clamp(1.75rem, 5vw, 2.2rem);
  }

  .potential-mobile-copy .potential-copy-item {
    margin-top: 0;
    padding: 13px 0;
    border-top: 1px solid #ffffff35;
    border-left: 0;
  }

  .potential-mobile-copy .potential-copy-item:last-child {
    border-bottom: 1px solid #ffffff35;
  }

  .potential-mobile-copy .potential-copy-item h4 {
    font-size: 1rem;
  }

  .potential-mobile-copy .potential-copy-item p {
    margin-top: 3px;
    font-size: .9375rem;
  }
}

@media (max-width: 480px) {
  .property-potential {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .potential-heading h2 {
    font-size: clamp(2.35rem, 9.3vw, 3rem);
  }

  .potential-supporting {
    font-size: 1.05rem;
  }

  .potential-caption {
    gap: 12px;
    font-size: .6875rem;
  }

  .potential-disclaimer {
    margin-top: 15px;
    padding-top: 14px;
    font-size: 1rem;
  }

  .potential-photo-label {
    min-height: 33px;
    padding: 7px 10px;
    font-size: .75rem;
  }

  .potential-photo-label img {
    width: 49px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .potential-range,
  .potential-handle {
    transition: none;
  }
}