/* Property Journey — isolated hero presentation. Shared site/form styles stay intact. */
@font-face {
  font-family: "Journey Serif";
  src: url("/assets/fonts/playfair-display-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.pj-journey {
  --pj-ink: #080c11;
  --pj-cream: #f2ecdf;
  --pj-muted: #c6c0b5;
  --pj-gold: #d9b581;
  --pj-header-height: 4.6rem;
  --pj-gutter: clamp(1.1rem, 4.5vw, 5rem);
  --pj-aperture: 1;
  --pj-caption-opacity: 1;
  position: relative;
  margin: 0;
  background: var(--pj-ink);
  color: var(--pj-cream);
  isolation: isolate;
  font-family: Inter, Arial, sans-serif;
}

.pj-has-journey .v5-header,
.pj-has-journey .site-header { position: sticky; top: 0; z-index: 80; background: rgba(8, 12, 17, .97); }
.pj-has-journey .pj-journey { margin-top: 0; }
.pj-journey *, .pj-journey *::before, .pj-journey *::after { box-sizing: border-box; }
.pj-journey [hidden] { display: none !important; }
.pj-journey h1, .pj-journey h2, .pj-journey p { margin: 0; }
.pj-journey a { color: inherit; }
.pj-journey a:focus-visible { outline: 2px solid var(--pj-gold); outline-offset: 5px; }

.pj-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pj-viewport {
  position: absolute;
  width: 0;
  height: 100svh;
  pointer-events: none;
  visibility: hidden;
}

.pj-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1.15rem, 3svh, 2.3rem);
  min-height: calc(100svh - var(--pj-header-height));
  padding: clamp(1.2rem, 3.2svh, 2.4rem) var(--pj-gutter) clamp(1.1rem, 2.5svh, 2rem);
  overflow: hidden;
  isolation: isolate;
}

.pj-journey.pj-is-active { height: 600svh; }
.pj-is-active .pj-stage {
  position: sticky;
  top: var(--pj-header-height);
  height: calc(100svh - var(--pj-header-height));
  min-height: 0;
}

.pj-window,
.pj-shade,
.pj-media-frame {
  position: absolute;
  pointer-events: none;
}

.pj-window {
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background: #131b21;
  clip-path: inset(calc(10% * var(--pj-aperture)) calc(4% * var(--pj-aperture)) calc(11% * var(--pj-aperture)) calc(45% * var(--pj-aperture)));
}

.pj-window picture { display: contents; }
.pj-poster, .pj-film {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.025);
  transform-origin: center;
}
.pj-poster { opacity: 1; }
.pj-film { opacity: 0; }
.pj-film-ready .pj-film { opacity: 1; }
.pj-film-ready .pj-poster { opacity: 0; }
.pj-is-active .pj-film, .pj-is-active .pj-poster { will-change: transform; }

.pj-shade {
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 17, .93) 0%, rgba(8, 12, 17, .78) 28%, rgba(8, 12, 17, .3) 60%, rgba(8, 12, 17, .1) 100%),
    linear-gradient(0deg, rgba(8, 12, 17, .92), transparent 42%, rgba(8, 12, 17, .23));
}

.pj-media-frame {
  z-index: -1;
  inset: calc(10% * var(--pj-aperture)) calc(4% * var(--pj-aperture)) calc(11% * var(--pj-aperture)) calc(45% * var(--pj-aperture));
  border: 1px solid rgba(217, 181, 129, .46);
  opacity: var(--pj-aperture);
}

.pj-topline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  color: var(--pj-muted);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}
.pj-progress { width: clamp(4rem, 13vw, 12rem); height: 1px; overflow: hidden; background: rgba(242, 236, 223, .28); }
.pj-progress i { display: block; height: 100%; background: var(--pj-gold); transform: scaleX(0); transform-origin: left; }
.pj-topline-label { max-width: 32ch; }
.pj-topline-practice { margin-left: auto; color: var(--pj-gold); text-align: right; }

.pj-scenes {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 0;
  width: min(72%, 63rem);
  padding-block: clamp(.7rem, 3svh, 2.2rem);
}
.pj-scene { grid-area: 1 / 1; min-width: 0; }
.pj-kicker {
  color: var(--pj-gold);
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.pj-journey .pj-title {
  margin-top: .85rem;
  max-width: 16ch;
  color: var(--pj-cream);
  font-family: "Journey Serif", Georgia, serif;
  font-size: clamp(3.1rem, 6.9vw, 7.25rem);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: normal;
}
.pj-title em { display: block; color: var(--pj-gold); font-style: normal; font-weight: inherit; }
.pj-home .pj-title { max-width: 18ch; font-size: clamp(3rem, 6.2vw, 6.6rem); }
.pj-journey .pj-copy {
  margin-top: 1.35rem;
  max-width: 48ch;
  color: var(--pj-cream);
  font-size: clamp(.94rem, 1.1vw, 1.08rem);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}
.pj-journey .pj-scope { margin-top: .85rem; max-width: 58ch; color: var(--pj-muted); font-size: .72rem; line-height: 1.6; }
.pj-practice-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.pj-practice-links a { text-decoration: underline; text-decoration-color: rgba(217, 181, 129, .6); text-underline-offset: .3em; }

.pj-bottom { min-width: 0; }
.pj-actions { display: grid; grid-template-columns: minmax(10.3rem, 1.65fr) 1fr 1fr; gap: .65rem; width: min(32rem, 100%); }
.pj-journey .pj-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3.1rem;
  padding: .8rem .7rem;
  border: 1px solid rgba(217, 181, 129, .55);
  background: rgba(8, 12, 17, .68);
  color: var(--pj-cream);
  font-family: Inter, Arial, sans-serif;
  font-size: max(12px, .75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.pj-journey .pj-action-primary { border-color: var(--pj-gold); background: var(--pj-gold); color: var(--pj-ink); }
.pj-journey .pj-action:hover { border-color: var(--pj-cream); background: var(--pj-cream); color: var(--pj-ink); }
.pj-footline { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(242, 236, 223, .2); }
.pj-journey .pj-image-note { max-width: 60ch; color: var(--pj-muted); font-size: max(11px, .6875rem); line-height: 1.65; }
.pj-journey .pj-continue { display: inline-flex; align-items: center; gap: 1.2rem; flex-shrink: 0; min-height: 2.75rem; color: var(--pj-cream); font-size: max(11px, .6875rem); line-height: 1.5; letter-spacing: .08em; text-decoration: none; }
.pj-continue > span:last-child { color: var(--pj-gold); font-size: 1.25rem; }
.pj-is-active .pj-continue-text::before { content: "Scroll to explore"; }
.pj-is-active .pj-continue-text > span { display: none; }
.pj-is-active.pj-at-end .pj-continue-text::before { content: none; }
.pj-is-active.pj-at-end .pj-continue-text > span { display: inline; }

@media (min-width: 110rem) {
  .pj-scenes { width: min(65%, 68rem); }
  .pj-journey .pj-title { font-size: 8rem; }
  .pj-home .pj-title { font-size: 7.4rem; }
}

@media (max-width: 63.999rem) {
  .pj-scenes { width: min(89%, 58rem); }
  .pj-shade { background: linear-gradient(90deg, rgba(8, 12, 17, .88), rgba(8, 12, 17, .35)), linear-gradient(0deg, rgba(8, 12, 17, .94), transparent 70%); }
  .pj-journey .pj-title { font-size: clamp(3.1rem, 7.4vw, 5.6rem); }
}

@media (max-width: 47.999rem) {
  .pj-journey { --pj-gutter: 1.15rem; }
  .pj-stage { gap: 1.15rem; padding-top: 1.2rem; padding-bottom: 1rem; }
  .pj-window { clip-path: inset(calc(4% * var(--pj-aperture)) calc(4% * var(--pj-aperture)) calc(11% * var(--pj-aperture)) calc(9% * var(--pj-aperture))); }
  .pj-media-frame { inset: calc(4% * var(--pj-aperture)) calc(4% * var(--pj-aperture)) calc(11% * var(--pj-aperture)) calc(9% * var(--pj-aperture)); }
  .pj-shade { background: linear-gradient(0deg, rgba(8, 12, 17, .97) 0%, rgba(8, 12, 17, .87) 28%, rgba(8, 12, 17, .47) 65%, rgba(8, 12, 17, .28)), linear-gradient(90deg, rgba(8, 12, 17, .24), transparent 85%); }
  .pj-topline { gap: .75rem; font-size: .54rem; letter-spacing: .11em; }
  .pj-progress { width: 3.7rem; flex-shrink: 0; }
  .pj-topline-practice { width: 5.5rem; max-width: 5.5rem; flex-shrink: 0; font-size: .5rem; overflow-wrap: normal; word-break: normal; }
  .pj-scenes { width: 100%; align-items: end; padding-block: 1rem; }
  .pj-kicker { max-width: 38ch; font-size: .58rem; letter-spacing: .13em; }
  .pj-journey .pj-title, .pj-home .pj-title { max-width: 13.5ch; margin-top: .75rem; font-size: clamp(2.9rem, 11.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.044em; }
  .pj-home .pj-title { font-size: clamp(2.7rem, 10.8vw, 4.4rem); max-width: 15ch; }
  .pj-journey .pj-copy { max-width: 40ch; margin-top: 1.1rem; font-size: .88rem; line-height: 1.65; }
  .pj-journey .pj-scope { margin-top: .65rem; font-size: .64rem; line-height: 1.55; }
  .pj-actions { width: 100%; grid-template-columns: 1.5fr .85fr .85fr; gap: .4rem; }
  .pj-journey .pj-action { min-height: 3rem; padding: .7rem .35rem; font-size: max(12px, .75rem); letter-spacing: .025em; }
  .pj-footline { gap: .7rem; margin-top: 1rem; padding-top: .65rem; align-items: center; }
  .pj-journey .pj-image-note { max-width: 30ch; line-height: 1.55; }
  .pj-journey .pj-continue { max-width: 14ch; gap: .4rem; line-height: 1.5; text-align: right; }
}

@media (max-width: 22rem) {
  .pj-journey { --pj-gutter: 1rem; }
  .pj-stage { gap: .9rem; padding-top: 1rem; }
  .pj-topline-practice { display: none; }
  .pj-scenes { padding-block: .65rem; }
  .pj-journey .pj-title, .pj-home .pj-title { font-size: 2.65rem; }
  .pj-journey .pj-copy { font-size: .82rem; line-height: 1.58; margin-top: .95rem; }
  .pj-journey .pj-scope { font-size: .6rem; }
  .pj-footline { margin-top: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pj-journey.pj-is-active { height: auto; }
  .pj-is-active .pj-stage { position: relative; top: auto; height: auto; min-height: calc(100svh - var(--pj-header-height)); }
  .pj-window { clip-path: none; }
  .pj-media-frame { display: none; }
  .pj-film { display: none; }
  .pj-poster { opacity: 1 !important; transform: none !important; }
}
