.yacht-path-wrap {
  position: relative;
  z-index: 7;
  background: #fff;
  color: #fff;
  /* Next section slides in while yacht frames are still scrubbing */
  margin-bottom: -42vh;
}

.yacht-path {
  position: relative;
  height: 260vh;
  overflow: visible;
}

.yacht-path-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.yacht-path-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "left right";
  align-items: center;
  gap: clamp(2.4rem, 4vw, 8rem);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6rem clamp(3.2rem, 5vw, 8rem);
  box-sizing: border-box;
}

.yacht-path-col {
  position: relative;
  z-index: 10;
  min-width: 0;
}

.yacht-path-col.is-left,
.yacht-path-col.is-right {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 44rem;
  min-height: 42rem;
  height: 100%;
  max-height: min(72vh, 52rem);
  padding: 2.8rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 2rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.16) 48%,
    rgba(180, 220, 230, 0.12) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1.2rem 3.2rem rgba(0, 20, 32, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-sizing: border-box;
}

.yacht-path-col.is-left .yacht-path-title,
.yacht-path-col.is-right .yacht-path-title {
  min-height: 2.4em;
}

.yacht-path-col.is-left {
  grid-area: left;
  justify-self: start;
  text-align: left;
}

.yacht-path-col.is-right {
  grid-area: right;
  justify-self: end;
  text-align: left;
}

/* Full-bleed yacht layer */
.yacht-path-col.is-center {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Desktop: unwrap glass so left/right stay in the 2-col grid */
.yacht-path-glass {
  display: contents;
}

.yacht-path-title {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(2.8rem, 3.2vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 0.2rem 1.2rem rgba(0, 16, 24, 0.28);
}

.yacht-path-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.3rem, 1.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.55;
  text-shadow: 0 0.1rem 0.8rem rgba(0, 16, 24, 0.22);
}

.yacht-path-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
  will-change: clip-path;
}

.yacht-path-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-origin: 50% 70%;
  will-change: transform;
}

@media screen and (max-width: 991px) {
  .yacht-path {
    height: 250vh;
  }

  .yacht-path-grid {
    gap: 1.6rem;
    padding: 5rem 2rem;
  }

  .yacht-path-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
  }
}

@media screen and (max-width: 767px) {
  .yacht-path-wrap {
    background: transparent;
    margin-bottom: -42vh;
  }

  .yacht-path {
    height: 340vh;
    overflow: visible;
    background: transparent;
  }

  .yacht-path-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    background: transparent;
  }

  .yacht-path-grid {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 7rem 2rem 5rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Glass wraps copy — height follows content (Chrome + Safari) */
  .yacht-path-glass {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 50%;
    z-index: 9;
    width: auto;
    max-width: none;
    height: auto;
    max-height: min(72dvh, 56rem);
    padding: 2.4rem 2rem;
    box-sizing: border-box;
    translate: 0 -50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 2rem;
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.16) 48%,
      rgba(180, 220, 230, 0.12) 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 1.2rem 3.2rem rgba(0, 20, 32, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
  }

  .yacht-path-col.is-left,
  .yacht-path-col.is-right {
    position: relative;
    grid-area: 1 / 1;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.6rem;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: min(66dvh, 52rem);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    translate: none;
  }

  .yacht-path-col.is-left .yacht-path-title,
  .yacht-path-col.is-right .yacht-path-title {
    min-height: 0;
  }

  .yacht-path-col.is-left .yacht-path-title,
  .yacht-path-col.is-right .yacht-path-title,
  .yacht-path-col.is-left .yacht-path-body,
  .yacht-path-col.is-right .yacht-path-body {
    width: 100%;
    max-width: none;
  }

  .yacht-path-col.is-center {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
  }

  .yacht-path-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: transparent;
  }

  .yacht-path-title {
    width: 100%;
    font-size: clamp(2.6rem, 6.4vw, 3.4rem);
    text-shadow: 0 0.2rem 1.6rem rgba(0, 16, 24, 0.55);
  }

  .yacht-path-body {
    width: 100%;
    max-width: none;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 0.15rem 1.2rem rgba(0, 16, 24, 0.5);
  }
}
