/* ============================================================
   HL SUPPLY — Phase 4: The Guest Journey
   Scoped under .journey / .jt- prefixes. Adds one new section;
   does not modify Phase 1–3 styles.
   ============================================================ */

/* ---------- section shell + intro ---------- */

.journey {
  background: var(--ivory, #f6f1e6);
  border-top: 1px solid rgba(216, 203, 174, 0.6);
  border-bottom: 1px solid rgba(216, 203, 174, 0.6);
}

.journey__intro {
  padding-top: clamp(84px, 10vw, 130px);
  padding-bottom: clamp(30px, 4vw, 50px);
  max-width: 680px;
}

.journey__intro .eyebrow { display: block; margin-bottom: 18px; }

.journey__intro h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 18px;
}

.journey__intro p {
  color: var(--navy-soft, #2c3e57);
  max-width: 56ch;
}

/* ---------- sticky scroll (desktop) ---------- */

.journey__scroll {
  position: relative;
  height: 500vh; /* five scenes x ~100vh */
}

.journey__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.journey__stage {
  width: 100%;
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: clamp(36px, 4.5vw, 70px);
  align-items: center;
}

/* ---------- media (left) ---------- */

.journey__media {
  position: relative;
  height: min(76vh, 780px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(216, 203, 174, 0.9);
  box-shadow: 0 24px 50px -34px rgba(27, 42, 65, 0.35);
}

.journey__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.journey__slide .ph__art {
  transform: scale(1.02) translateY(var(--drift, 0px));
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.journey__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.journey__slide.is-active .ph__art {
  transform: scale(1) translateY(var(--drift, 0px));
}

/* ---------- text column (right) ---------- */

.journey__side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 2.5vw, 44px);
  align-items: center;
}

.journey__texts {
  position: relative;
  min-height: 380px;
}

.journey__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.journey__text.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.journey__scene-label {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta, #c47e5d);
  margin-bottom: 20px;
}

.journey__text h3 {
  font-family: var(--serif, "Marcellus", serif);
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 33px);
  line-height: 1.22;
  color: var(--navy, #1b2a41);
  margin-bottom: 16px;
  max-width: 21ch;
}

.journey__copy {
  font-family: var(--sans, "Jost", sans-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink, #33383d);
  max-width: 46ch;
  margin-bottom: 24px;
}

/* chips */
.journey__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.journey__chip {
  font-family: var(--sans, "Jost", sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green, #3f5c4f);
  border: 1px solid rgba(216, 203, 174, 0.95);
  background: var(--cream, #fcf9f2);
  border-radius: 999px;
  padding: 7px 14px 6px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--chip, 0) * 70ms + 180ms),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--chip, 0) * 70ms + 180ms);
}

.journey__text.is-active .journey__chip {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- tracker (itinerary marker, not elevator panel) ---------- */

.journey__tracker {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.journey__rail {
  position: relative;
  width: 1px;
  background: rgba(216, 203, 174, 0.9);
}

.journey__rail-dot {
  position: absolute;
  left: -2px;
  top: calc(var(--jprog, 0) * (100% - 22px));
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--green, #3f5c4f);
  transition: top 0.15s linear;
}

.journey__tracker ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.journey__stop {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  font-family: var(--sans, "Jost", sans-serif);
  text-align: left;
  color: var(--chrome, #9aa3a8);
  transition: color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.journey__stop-num {
  font-family: var(--serif, "Marcellus", serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.journey__stop-name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.journey__stop:hover { color: var(--navy-soft, #2c3e57); }

.journey__stop.is-active { color: var(--navy, #1b2a41); }

.journey__stop:focus-visible {
  outline: 2px solid var(--pool-deep, #52869a);
  outline-offset: 3px;
}

/* ---------- scene image tints ---------- */

/* Arrival — cream stone, deep green, canvas, leather, soft daylight */
.jt-tint-arrival {
  background:
    radial-gradient(110% 80% at 20% 0%, rgba(252, 249, 242, 0.75) 0%, rgba(252, 249, 242, 0) 55%),
    linear-gradient(168deg, #f2ead9 0%, #e3d7bc 40%, #8f9c8a 72%, #6d5a48 100%);
}

/* Poolside — pool blue, cream, cabana atmosphere */
.jt-tint-poolside {
  background:
    radial-gradient(120% 90% at 80% 5%, rgba(252, 249, 242, 0.8) 0%, rgba(252, 249, 242, 0) 55%),
    linear-gradient(178deg, #f4ecd9 0%, #e6dabb 43.8%, #93bfca 44%, #6ea3b3 78%, #55879a 100%);
}

/* Beach Club — sand, navy, soft red stripe, sunlight */
.jt-tint-beach {
  background:
    radial-gradient(100% 70% at 25% 10%, rgba(252, 249, 242, 0.7) 0%, rgba(252, 249, 242, 0) 60%),
    linear-gradient(172deg, #f6efdc 0%, #e9dcbd 52%, #cdbb92 68%, #35496b 100%);
}

/* The Suite — white linen, warm ivory, soft stone, espresso */
.jt-tint-suite {
  background:
    radial-gradient(110% 80% at 70% 0%, rgba(255, 253, 248, 0.9) 0%, rgba(255, 253, 248, 0) 55%),
    linear-gradient(170deg, #fbf6ea 0%, #efe6d2 48%, #d9cbb0 78%, #7a604c 100%);
}

/* The Club — deep navy, teak, cream, resort green */
.jt-tint-club {
  background:
    radial-gradient(100% 70% at 75% 8%, rgba(252, 249, 242, 0.35) 0%, rgba(252, 249, 242, 0) 55%),
    linear-gradient(168deg, #3b4f6b 0%, #263853 30%, #1b2a41 58%, #4a5c48 86%, #6d5340 100%),
    #1b2a41;
}

/* subtle scene details (thin lines / stripes, no cartoons) */

.jt-detail { position: absolute; inset: 0; pointer-events: none; }

/* thin horizon line on all scenes */
.jt-detail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  height: 1px;
  background: rgba(252, 249, 242, 0.35);
}

/* Poolside + Beach Club: small cabana stripe corner */
.jt-tint-poolside .jt-detail::after,
.jt-tint-beach .jt-detail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(252, 249, 242, 0.85) 0 12px,
    rgba(27, 42, 65, 0.5) 12px 24px
  );
}

/* Beach Club: faint life preserver ring motif */
.jt-tint-beach .jt-detail {
  background: radial-gradient(
    circle at 76% 62%,
    rgba(252, 249, 242, 0) 52px,
    rgba(252, 249, 242, 0.3) 53px,
    rgba(252, 249, 242, 0.3) 55px,
    rgba(252, 249, 242, 0) 56px,
    rgba(252, 249, 242, 0) 74px,
    rgba(252, 249, 242, 0.3) 75px,
    rgba(252, 249, 242, 0.3) 77px,
    rgba(252, 249, 242, 0) 78px
  );
}

/* The Suite: soft framed border like pressed linen */
.jt-tint-suite .jt-detail::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(122, 96, 76, 0.18);
}

/* The Club: teak deck line detail */
.jt-tint-club .jt-detail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: rgba(252, 249, 242, 0.22);
}

/* ============================================================
   stacked mode (mobile / tablet-narrow / reduced motion)
   ============================================================ */

.journey__stack {
  display: grid;
  gap: clamp(56px, 9vw, 90px);
  padding-bottom: clamp(84px, 10vw, 130px);
}

.journey__panel { display: grid; gap: 0; }

.journey__panel .journey__slide {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  aspect-ratio: 4 / 3.4;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(216, 203, 174, 0.9);
  box-shadow: 0 18px 40px -30px rgba(27, 42, 65, 0.3);
}

.journey__panel .journey__slide .ph__art { transform: none; }

.journey__panel .journey__text {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  padding-top: 24px;
}

.journey__panel .journey__chip {
  opacity: 1;
  transform: none;
}

/* fade-up reveal for stacked panels */
.journey__panel.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.journey__panel.will-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* when stacked mode is active on wide screens (reduced motion), cap width */
@media (min-width: 900px) {
  .journey__stack { max-width: 760px; }
}

/* ---------- desktop-only guards ---------- */

@media (max-width: 899px) {
  .journey__scroll { height: auto; }
  .journey__sticky { position: relative; height: auto; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .journey__slide,
  .journey__slide .ph__art,
  .journey__text,
  .journey__chip,
  .journey__rail-dot,
  .journey__stop,
  .journey__panel.will-reveal {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .journey__panel.will-reveal {
    opacity: 1;
    transform: none;
  }
}
