*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: #181818;
}

.mls-section {
  --page-pad: clamp(18px, 4vw, 88px);
  --gold: #b8973a;
  --soft: #ffffff;
  padding: 36px 0 90px;
  background: #ffffff;
  overflow: clip;
  font-family: "Jost", system-ui, sans-serif;
}

.mls-header {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 var(--page-pad) 34px;
}

.mls-header h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.91rem, 3.26vw, 2.94rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #000000;
}

.mls-header span {
  display: block;
  width: 144px;
  height: 1px;
  background: var(--gold);
}

.mls-row {
  display: grid;
  align-items: center;
  min-height: 0;
}

.mls-row-top {
  grid-template-columns: 58vw minmax(380px, 1fr);
  margin-top: 4px;
  align-items: start;
}

.mls-row-bottom {
  grid-template-columns: minmax(360px, 42vw) 58vw;
  margin-top: clamp(72px, 10vw, 160px);
  align-items: center;
}

.mls-product-window {
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mls-product-window::-webkit-scrollbar {
  display: none;
}

.mls-product-window-static {
  overflow: visible;
}

.mls-product-window-static .mls-product-card {
  flex-basis: calc((100% / 3) + 2px);
}

.mls-product-window-carousel {
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.mls-product-window-carousel:active {
  cursor: grabbing;
}

.mls-carousel-wrap {
  position: relative;
  width: 100%;
}

.mls-product-window-carousel .mls-product-card,
.mls-product-window-carousel img {
  -webkit-user-drag: none;
  user-select: none;
}

.mls-product-strip {
  display: flex;
  align-items: stretch;
}

.mls-product-card {
  display: block;
  flex: 0 0 calc((100% / 3) + 6px);
  margin-right: -6px;
  min-width: 0;
  overflow: hidden;
  background: #e8e8e5;
  scroll-snap-align: start;
  text-decoration: none;
  transform: translate3d(var(--start-x, 0), 0, 0);
  opacity: 0;
  transition: transform 1750ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1400ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.mls-product-card:last-child {
  margin-right: 0;
}

.mls-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 413 / 607;
  object-fit: cover;
  transform: scale(1.025);
  transform-origin: center;
}

.mls-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 413 / 607;
  overflow: hidden;
  background: #e8e8e5;
}

.mls-card-media img,
.mls-hover-video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  transform-origin: center;
}

.mls-hover-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.mls-hover-video-contained {
  object-fit: contain;
  transform: none;
  background: #f4f4f2;
}

.mls-hover-video-card.is-video-playing .mls-hover-video {
  opacity: 1;
}

.mls-from-left .mls-product-card[data-reveal-item] {
  --start-x: -32px;
}

.mls-from-right .mls-product-card[data-reveal-item] {
  --start-x: 32px;
}

.is-visible .mls-product-card,
.mls-product-card:not([data-reveal-item]) {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.mls-trust-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0px, 1.5vw, 24px);
  width: min(94%, 780px);
  justify-self: center;
  align-self: start;
  padding: 0 clamp(4px, 0.6vw, 12px);
}

.mls-trust-right {
  margin-top: clamp(78px, 8.9vw, 171px);
}

.mls-trust-stack {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  width: min(78%, 520px);
  justify-self: center;
  align-self: start;
  padding: 0 clamp(34px, 5vw, 92px);
  margin-top: clamp(8px, 1vw, 18px);
}

.mls-trust-card {
  width: 100%;
  min-height: clamp(136px, 9.8vw, 178px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(16px, 1.45vw, 28px) clamp(16px, 1.65vw, 28px);
}

.mls-trust-icon {
  width: clamp(40px, 2.53vw, 50px);
  height: clamp(40px, 2.53vw, 50px);
  margin-bottom: clamp(11px, 0.9vw, 16px);
  display: block;
  overflow: visible;
}

.mls-trust-icon,
.mls-trust-icon * {
  fill: none !important;
  stroke: rgba(184, 151, 58, 0.82) !important;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mls-trust-card > h2 {
  margin: 0 0 clamp(9px, 0.7vw, 13px);
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1.08rem, 1.09vw, 1.3rem);   /* +8% (owner 15 Jul 2026) */
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.8) !important;   /* 60% -> 80% black (match mobile, owner 15 Jul 2026) */
  white-space: nowrap;
}

.mls-trust-num {
  font-family: "Jost", Arial, sans-serif !important;
  font-size: 0.94em;   /* Jost digit cap-height matched to the Cormorant words beside them (match mobile) */
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mls-trust-card > p {
  max-width: 27em;
  margin: 0 auto;
  font-family: "Jost", Arial, sans-serif !important;
  font-size: clamp(0.67rem, 0.68vw, 0.82rem);   /* +8% (owner 15 Jul 2026) */
  font-weight: 400;   /* was 300 (match mobile, owner 15 Jul 2026) */
  line-height: 1.36;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75) !important;   /* 90% -> 75% black (match mobile) */
}

.mls-carousel-controls {
  position: absolute;
  top: clamp(-52px, -3vw, -40px);
  left: clamp(24px, calc(1vw + 20px), 34px);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.mls-carousel-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(184, 151, 58, 0.52);
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.92);
  color: #9f842f;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
}

.mls-carousel-arrow span {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 0.8;
  transform: translateY(-1px);
}

.mls-carousel-arrow:hover {
  background: #ffffff;
  border-color: rgba(184, 151, 58, 0.9);
  color: #6f5d22;
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: transform 1800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1400ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.reveal-side {
  opacity: 0;
  transform: translate3d(-32px, 0, 0);
  transition: transform 1800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1400ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-visible.reveal-up,
.is-visible .reveal-up,
.is-visible.reveal-side,
.is-visible .reveal-side {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.is-settled {
  transform: none !important;
  will-change: auto !important;
}

@media (max-width: 760px) {
  .mls-section {
    padding-bottom: 56px;
  }

  .mls-row,
  .mls-row-top,
  .mls-row-bottom {
    display: block;
    min-height: auto;
  }

  .mls-row-bottom {
    margin-top: 45px;
  }

  .mls-product-card {
    flex-basis: 78%;
  }

  .mls-trust-pair,
  .mls-trust-stack {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 640px;
    margin: 38px auto 0;
  }

  .mls-trust-stack {
    margin: 0 auto 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mls-product-card,
  .reveal-up,
  .reveal-side {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
