/* Seamless proof: the clean scene continues from the hero; stains remain section-two only. */

.home-page .home-proof {
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--proof-height);
  min-height: 28rem;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 150, 90, 0.3);
  background: transparent;
  color: #081321;
  scroll-margin-top: 5.5rem;
}

.home-page .home-proof > * {
  width: 100%;
  margin: 0;
}

.home-proof__comparison {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.home-proof__received {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--proof-position)) 0 0);
  will-change: clip-path;
}

.home-proof__received .home-opening__scene-image--received {
  position: absolute;
  top: calc(var(--opening-scene-top) - var(--opening-hero-height));
  right: auto;
  bottom: auto;
  left: 0;
  width: 200%;
  height: calc(100% + var(--opening-hero-height) - var(--opening-scene-top));
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 50% top;
  filter: saturate(0.92) contrast(0.99) brightness(1.01);
}

@media (min-width: 861px) {
  /*
   * The received and clean scenes are pixel-aligned; only the stain differs.
   * Feather that difference on every non-mobile width so the rectangular
   * bounds of the source stain mask can never enter the proof crop.
   */
  .home-proof__received {
    -webkit-mask-image: radial-gradient(
      ellipse 48% 66% at 32% 50%,
      #000 0,
      #000 55%,
      rgba(0, 0, 0, 0.82) 68%,
      rgba(0, 0, 0, 0.42) 80%,
      rgba(0, 0, 0, 0.12) 91%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 48% 66% at 32% 50%,
      #000 0,
      #000 55%,
      rgba(0, 0, 0, 0.82) 68%,
      rgba(0, 0, 0, 0.42) 80%,
      rgba(0, 0, 0, 0.12) 91%,
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .home-proof__received .home-opening__scene-image--received {
    height: calc(100% + var(--opening-hero-height) - var(--opening-scene-top) + 1px);
  }
}

@media (min-width: 1400px) {
  /* Preserve the locked full-desktop stain crop while the narrower desktop
   * asset uses a lower, broader stain cluster that survives tighter framing. */
  .home-proof__received {
    -webkit-mask-image: radial-gradient(
      ellipse 34% 47% at 31% 49%,
      #000 0,
      #000 48%,
      rgba(0, 0, 0, 0.75) 58%,
      rgba(0, 0, 0, 0.28) 74%,
      rgba(0, 0, 0, 0.08) 88%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 34% 47% at 31% 49%,
      #000 0,
      #000 48%,
      rgba(0, 0, 0, 0.75) 58%,
      rgba(0, 0, 0, 0.28) 74%,
      rgba(0, 0, 0, 0.08) 88%,
      transparent 100%
    );
  }
}

.home-proof__labels {
  position: absolute;
  inset: clamp(2.2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem) auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.home-proof__labels span {
  color: #081321;
  font-size: clamp(0.54rem, 0.62vw, 0.64rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-shadow: 0 1px 7px rgba(250, 246, 238, 0.82);
  text-transform: uppercase;
}

.home-proof__labels span:first-child {
  color: #9b7338;
}

.home-proof__control {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.home-proof__line {
  position: absolute;
  inset: 0 auto 0 var(--proof-position);
  width: 1px;
  background: rgba(184, 150, 90, 0.9);
  transform: translateX(-0.5px);
}

.home-proof__control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  opacity: 1;
  background: transparent;
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: pan-y;
}

.home-proof__control input::-webkit-slider-runnable-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.home-proof__control input::-webkit-slider-thumb {
  width: 2.75rem;
  height: 2.75rem;
  margin-top: calc((var(--proof-height) - 2.75rem) / 2);
  border: 2px solid rgba(250, 246, 238, 0.96);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #b8965a;
  box-shadow: 0 10px 24px rgba(8, 19, 33, 0.18);
}

.home-proof__control input::-moz-range-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.home-proof__control input::-moz-range-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(250, 246, 238, 0.96);
  border-radius: 50%;
  background: #b8965a;
  box-shadow: 0 10px 24px rgba(8, 19, 33, 0.18);
}

.home-proof__comparison:has(input:focus-visible) .home-proof__line {
  box-shadow: 0 0 0 4px rgba(184, 150, 90, 0.3);
}

.home-proof__control input:focus-visible {
  outline: 0;
}

.home-proof__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(3.3rem, 5.5vw, 5rem) clamp(2.5rem, 4.2vw, 6rem) clamp(2.5rem, 4vw, 4rem) clamp(2.25rem, 4.5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.home-proof__eyebrow {
  color: #9b7338;
  font-size: clamp(0.55rem, 0.62vw, 0.64rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-proof__copy h2 {
  margin-top: 0;
  color: #081b35;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 3.8vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.82;
}

.home-proof__lead {
  max-width: 28rem;
  margin-top: clamp(1rem, 1.5vw, 1.35rem);
  color: rgba(8, 19, 33, 0.82);
  font-size: clamp(0.82rem, 0.95vw, 0.96rem);
  line-height: 1.5;
}

.home-proof__benefits {
  width: min(100%, 31rem);
  margin: clamp(1rem, 1.5vw, 1.35rem) 0 0;
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(184, 150, 90, 0.58);
  border-bottom: 1px solid rgba(184, 150, 90, 0.58);
  list-style: none;
}

.home-proof__benefits li {
  padding: 0 0.95rem;
  color: rgba(8, 19, 33, 0.82);
  font-size: clamp(0.68rem, 0.77vw, 0.78rem);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.home-proof__benefits li:first-child {
  padding-left: 0;
  text-align: left;
}

.home-proof__benefits li:last-child {
  padding-right: 0;
  text-align: right;
}

.home-proof__benefits li + li {
  border-left: 1px solid rgba(184, 150, 90, 0.55);
}

.home-proof__link {
  min-height: 1.75rem;
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid #b8965a;
  color: #081321;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-proof__link:hover {
  border-color: #081321;
  color: #9b7338;
}

.home-proof__link:focus-visible {
  outline: 2px solid #081321;
  outline-offset: 4px;
}

/* Compact reflow: continue the opening's single clean scene into the proof. */
@media (max-width: 860px) {
  .home-page .home-proof {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    border-bottom: 0;
    background: transparent;
  }

  .home-proof__comparison {
    min-height: clamp(22rem, 78vw, 31rem);
    background: transparent;
  }

  .home-proof__received,
  .home-proof__labels,
  .home-proof__control,
  .home-proof__comparison > output {
    display: none;
  }

  .home-proof__copy {
    width: 100%;
    padding: clamp(3rem, 10vw, 5rem) max(1.5rem, 8vw) clamp(3.4rem, 11vw, 5.5rem);
    justify-content: flex-start;
    background: #faf6ee;
  }

  .home-proof__copy h2 {
    font-size: clamp(3.5rem, 11vw, 5.4rem);
    line-height: 0.86;
  }

  .home-proof__lead,
  .home-proof__benefits {
    max-width: 34rem;
  }
}

/*
 * Compact and phone screens keep the clean scene, but the proof message uses
 * the entire frame instead of waiting until phone width to leave the squeezed
 * side column. This is the same centered composition at every width below the
 * desktop boundary.
 */
@media (max-width: 860px) {
  .home-page .home-opening {
    --proof-media-height: clamp(29rem, 124vw, 33rem);
  }

  .home-page .home-proof {
    height: var(--proof-media-height);
    grid-template-rows: var(--proof-media-height);
  }

  .home-proof__comparison,
  .home-proof__copy {
    grid-area: 1 / 1;
  }

  .home-proof__comparison {
    height: 100%;
    min-height: 0;
  }

  .home-page .home-proof > .home-proof__copy {
    width: 100%;
    height: 100%;
    padding: clamp(2.5rem, 8vw, 3.5rem) max(1.5rem, 8vw);
    align-items: center;
    justify-self: stretch;
    justify-content: center;
    background: transparent;
    text-align: center;
  }

  .home-proof__copy h2 {
    max-width: 31rem;
    font-size: clamp(3.15rem, 13.2vw, 4.55rem);
    line-height: 0.86;
  }

  .home-proof__lead {
    max-width: 30rem;
    margin-top: clamp(1rem, 3.5vw, 1.35rem);
    font-size: clamp(0.8rem, 2.7vw, 0.92rem);
    line-height: 1.48;
  }

  .home-proof__benefits {
    width: min(100%, 30rem);
    max-width: 30rem;
    margin-top: clamp(1rem, 3.5vw, 1.35rem);
  }
}

@media (max-width: 520px) {
  .home-proof__copy h2 {
    font-size: clamp(3rem, 14vw, 4.35rem);
  }

  .home-proof__benefits {
    grid-template-columns: 1fr;
    padding-block: 0;
  }

  .home-proof__benefits li,
  .home-proof__benefits li:first-child,
  .home-proof__benefits li:last-child {
    padding: 0.78rem 0;
    text-align: center;
  }

  .home-proof__benefits li + li {
    border-top: 1px solid rgba(184, 150, 90, 0.4);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-proof__link {
    transition: none;
  }
}
