/* Mockup hero — full-bleed living room + door/veil sequence */
.threshold--mockup {
  position: relative;
  min-height: min(88svh, 52rem);
  background: var(--color-canvas);
  color: var(--color-charcoal);
  overflow: hidden;
}

.threshold--mockup .threshold__stage {
  position: absolute;
  inset: 0;
}

.threshold--mockup .threshold__aperture,
.threshold--mockup .threshold__room {
  position: absolute;
  inset: 0;
}

.threshold--mockup .threshold__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.threshold--mockup .threshold__daylight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 70% 55% at 55% 35%,
    rgba(255, 248, 235, 0.45) 0%,
    rgba(255, 248, 235, 0) 70%
  );
  mix-blend-mode: soft-light;
}

/* Door panels that part open over the hero */
.threshold--mockup .threshold__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
  opacity: 0;
}

.threshold--mockup .threshold__veil-panel {
  position: relative;
  overflow: hidden;
  background: var(--color-paper);
}

.threshold--mockup .threshold__veil-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.threshold--mockup .threshold__veil-panel--left img {
  object-position: right center;
}

.threshold--mockup .threshold__veil-panel--right img {
  object-position: left center;
}

.threshold--mockup .threshold__jamb {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(39, 33, 29, 0.18);
}

.threshold--mockup .threshold__veil-panel--left .threshold__jamb {
  right: 0;
}

.threshold--mockup .threshold__veil-panel--right .threshold__jamb {
  left: 0;
}

.threshold--mockup .threshold__type {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  max-width: 36rem;
  padding: clamp(3rem, 10vh, 6rem) var(--content-pad) clamp(4rem, 12vh, 7rem);
  background: linear-gradient(
    90deg,
    rgba(249, 247, 242, 0.78) 0%,
    rgba(249, 247, 242, 0.45) 52%,
    rgba(249, 247, 242, 0) 100%
  );
  opacity: 0;
}

/* After door sequence (or no-js) show type — !important beats leftover GSAP inline opacity */
html.no-js .threshold--mockup .threshold__type,
.threshold--mockup.is-type-visible .threshold__type,
.threshold--mockup.is-type-visible .threshold__wordmark,
.threshold--mockup.is-type-visible .threshold__quote {
  opacity: 1 !important;
  visibility: visible !important;
}

.threshold--mockup .threshold__wordmark {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
  text-shadow: 0 1px 0 rgba(249, 247, 242, 0.35);
}

.threshold--mockup .threshold__wordmark-line {
  display: block;
}

.threshold--mockup .threshold__quote {
  margin: 0;
  max-width: 28rem;
}

.threshold--mockup .threshold__quote-text {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  color: var(--color-charcoal);
}

.threshold--mockup .threshold__quote-attr {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--color-charcoal);
}

/* Mockup CTA — bottom-right outlined Inquire */
.threshold--mockup .threshold__inquire {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.25rem);
  bottom: clamp(1.5rem, 4.5vh, 3rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.7rem 1.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  color: var(--color-charcoal);
  background: rgba(249, 247, 242, 0.92);
  border: 1px solid rgba(60, 56, 53, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html.no-js .threshold--mockup .threshold__inquire,
.threshold--mockup.is-type-visible .threshold__inquire {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.threshold--mockup .threshold__inquire:hover,
.threshold--mockup .threshold__inquire:focus-visible {
  background: var(--color-charcoal);
  color: var(--color-canvas);
  border-color: var(--color-charcoal);
}

@media (max-width: 700px) {
  .threshold--mockup {
    min-height: min(78svh, 36rem);
  }

  .threshold--mockup .threshold__type {
    max-width: none;
    padding-top: clamp(2.5rem, 8vh, 4rem);
    background: linear-gradient(
      180deg,
      rgba(249, 247, 242, 0.78) 0%,
      rgba(249, 247, 242, 0.35) 70%,
      rgba(249, 247, 242, 0) 100%
    );
  }

  .threshold--mockup .threshold__inquire {
    right: var(--content-pad);
    bottom: 1.25rem;
    min-width: 6.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .threshold--mockup .threshold__type,
  .threshold--mockup .threshold__inquire {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Carousel: stacked slides — home.jpg layout (brand + quote left, Inquire BR) */
.threshold--carousel .threshold__room {
  background: var(--color-canvas);
  overflow: hidden;
}

.threshold--carousel .threshold__img {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: translate3d(100%, 0, 0);
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 0;
  object-position: center 45%;
  will-change: transform;
}

.threshold--carousel .threshold__img.is-active {
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.threshold--carousel .threshold__img.is-leaving {
  transform: translate3d(-100%, 0, 0);
  z-index: 1;
}

.threshold--carousel .threshold__img.is-parked {
  transition: none;
  transform: translate3d(100%, 0, 0);
  z-index: 0;
}

.threshold--carousel.threshold--mockup .threshold__type {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.8vh, 1.35rem);
  min-height: inherit;
  max-width: min(34rem, 40vw);
  padding: clamp(2rem, 6vh, 4rem) var(--content-pad);
  /* Soft stone-wash covers inpaint + reads like mockup left panel */
  background:
    linear-gradient(
      90deg,
      rgba(245, 242, 236, 0.82) 0%,
      rgba(245, 242, 236, 0.55) 38%,
      rgba(245, 242, 236, 0.18) 68%,
      rgba(245, 242, 236, 0) 100%
    );
}

.threshold--carousel .threshold__wordmark {
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(249, 247, 242, 0.4);
}

.threshold--carousel .threshold__quote {
  max-width: 22rem;
  margin: 0;
}

.threshold--carousel .threshold__quote-text {
  font-size: clamp(0.98rem, 1.45vw, 1.2rem);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
}

.threshold--carousel .threshold__quote-attr {
  font-style: italic;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}

.threshold--carousel.threshold--mockup .threshold__inquire {
  min-width: 6.25rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(60, 56, 53, 0.9);
}

/* Dots hidden — mockup is static; carousel still auto-advances */
.threshold--carousel .threshold__dots {
  display: none;
}

.threshold--carousel .threshold__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(249, 247, 242, 0.45);
  cursor: pointer;
}

@media (max-width: 700px) {
  .threshold--mockup {
    min-height: min(78svh, 38rem);
  }

  .threshold--carousel.threshold--mockup .threshold__type {
    max-width: none;
    justify-content: flex-end;
    padding: clamp(2rem, 8vh, 3.5rem) var(--content-pad) clamp(5rem, 12vh, 6.5rem);
    background: linear-gradient(
      180deg,
      rgba(249, 247, 242, 0.15) 0%,
      rgba(249, 247, 242, 0.05) 40%,
      rgba(249, 247, 242, 0.72) 100%
    );
  }

  .threshold--carousel .threshold__wordmark {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .threshold--carousel.threshold--mockup .threshold__inquire {
    right: var(--content-pad);
    bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .threshold--carousel .threshold__img,
  .threshold--carousel .threshold__img.is-leaving,
  .threshold--carousel .threshold__img.is-parked {
    transition: none;
  }
}
