/* ==========================================================================
   ALM — Single project page (loads after styles.css + pages.css)
   ========================================================================== */
.pj .eyebrow { margin-bottom: 1rem; }
.pj-head { max-width: 1300px; margin: 0 auto 5vh; }

/* ---------- Hero: framed banner ---------- */
.pj-hero { background: #fff; padding: calc(var(--nav-h) + 12px) var(--gutter) 0; }
.pj-hero-frame { position: relative; height: calc(100vh - var(--nav-h) - 30px); min-height: 520px; border-radius: 14px; overflow: hidden; background: #151515; color: #fff; }
.pj-hero .ph-media { position: absolute; inset: -6% 0; will-change: transform; }
.pj-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.pj-hero--soft .ph-media img { filter: blur(2px); }
.pj-hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 15% 88%, rgba(0,0,0,.55), transparent 70%), linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 30%, transparent 48%, rgba(0,0,0,.72) 100%);
}
.pj-hero-content { position: absolute; left: clamp(1.5rem, 4vw, 3.5rem); bottom: clamp(1.5rem, 5vh, 3.5rem); right: 40%; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.pj-hero-content .ph-crumbs { margin-bottom: .4rem; }
.pj-hero-content .fcard-tag { position: static; }
.pj-title { font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .95; letter-spacing: .01em; }
.pj-title > span:first-child:not(.w) { display: block; font-family: Syncopate, sans-serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--goldlight); margin-bottom: .6rem; }
.pj-place { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pj-discover {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .9rem; padding: 16px 30px; border-radius: 99px;
  background: rgba(20, 18, 16, .45); color: #fff; border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: Syncopate, sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .35s, border-color .35s;
}
.pj-discover:hover { background: rgba(20, 18, 16, .75); border-color: rgba(255,255,255,.5); }

/* ---------- Unit bar (floating) ---------- */
.pj-unitbar {
  position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(1100px, calc(100% - 2 * var(--gutter) - 90px));
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.2rem;
  padding: 10px 10px 10px 18px; border-radius: 99px;
  background: rgba(214, 208, 198, .72); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
}
.pj-bar-mark { width: 30px; height: 40px; margin: 0; }
.pj-bar-mark path { stroke: var(--ink); }
.pj-bar-mark span { font-size: 20px; padding-top: 6px; color: var(--ink); }
.pj-bar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pj-bar-text b { font-family: Syncopate, sans-serif; font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-bar-text span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.pj-bar-btn {
  height: 50px; padding: 0 28px; border-radius: 99px; display: inline-flex; align-items: center;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-family: Syncopate, sans-serif; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .35s, border-color .35s, color .35s;
}
.pj-bar-btn:hover { background: var(--gold); border-color: var(--gold); }
.pj-bar-btn--ghost { background: transparent; color: var(--ink); }
.pj-bar-btn--ghost:hover { background: rgba(255,255,255,.5); border-color: var(--ink); color: var(--ink); }
.pj ~ .fab { bottom: 96px; }

/* ---------- Introducing ---------- */
.pj-intro { background: #fff; padding: 14vh var(--gutter); }
.pj-intro-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.pj-intro-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.pj-kicker { font-family: Syncopate, sans-serif; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.pj-mark { width: 70px; height: 92px; margin: .4rem 0; }
.pj-mark path { stroke: var(--ink); stroke-width: 1.2; }
.pj-mark span { color: var(--ink); font-size: 50px; padding-top: 16px; }
.pj-name { font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.pj-summary { font-size: 15.5px; line-height: 1.75; color: var(--graphite); max-width: 340px; margin-bottom: .6rem; }
.pj-intro-img { margin: 0; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--sand); }
.pj-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.pj-glance dl { margin: 0; border-top: 1px solid var(--line); }
.pj-glance dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.pj-glance dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.pj-glance dd { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- Gallery ---------- */
.pj-gallery { background: var(--ink); color: #fff; }
.pj-gallery-pin { position: relative; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.pj-gallery-head { position: absolute; top: calc(var(--nav-h) + 3vh); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.pj-gallery-head .eyebrow { margin: 0; }
.pj-gallery-count { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.55); }
.pj-track { display: flex; align-items: center; gap: 1.6rem; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.pj-arch {
  position: relative; flex-shrink: 0; width: clamp(220px, 20vw, 300px); height: min(60vh, 520px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem; padding: 3rem 2rem 2rem;
}
.pj-arch-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.pj-arch-line path { fill: none; stroke: rgba(185,178,106,.6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pj-arch small { position: relative; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--goldlight); }
.pj-arch p { position: relative; font-family: "Cormorant Garamond", serif; font-size: clamp(1.4rem, 1.8vw, 1.8rem); line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.pj-shot { position: relative; flex-shrink: 0; height: min(64vh, 560px); aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: #222; }
.pj-shot img { width: 112%; height: 100%; margin-left: -6%; object-fit: cover; transition: filter .5s; }
.pj-shot:hover img { filter: brightness(1.08); }
.pj-gallery-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6vh; height: 1px; background: rgba(255,255,255,.15); }
.pj-gallery-bar span { display: block; height: 100%; background: var(--goldlight); transform-origin: left; transform: scaleX(0); }

/* ---------- Amenities ---------- */
.pj-amen { background: var(--ivory); padding: 0; }
.pj-amen-grid { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 90vh; }
.pj-amen-body { padding: 14vh clamp(2rem, 6vw, 7rem) 12vh var(--gutter); }
.pj-amen-title { font-family: Jost, sans-serif; font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 6vh; }
.pj-amen-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.pj-amen-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; font-size: 16px; line-height: 1.5; color: var(--graphite); }
.pj-amen-icon {
  width: 38px; height: 38px; background: var(--gold);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.pj-amen-icon[data-dot] { -webkit-mask: none; mask: none; width: 10px; height: 10px; border-radius: 50%; justify-self: center; }
.pj-amen-img { margin: 0; position: relative; overflow: hidden; }
.pj-amen-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Video ---------- */
.pj-video { background: #fff; padding: 14vh var(--gutter); }
.pj-video-frame { position: relative; display: block; width: 100%; max-width: 1300px; margin: 0 auto; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #111; }
.pj-video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pj-video-frame:hover img { transform: scale(1.03); }
.pj-video-frame::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.pj-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: background-color .35s, color .35s; }
.pj-play svg { margin-left: 4px; }
.pj-video-frame:hover .pj-play { background: var(--gold); color: #fff; }

/* ---------- Location ---------- */
.pj-location { background: var(--sand); padding: 14vh var(--gutter); }
.pj-location-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; }
.pj-address { margin: 1.6rem 0 .8rem; font-size: 17px; line-height: 1.7; color: var(--graphite); }
.pj-approx { font-size: 13px; color: var(--muted); margin-bottom: 1.2rem; }
.pj-map { height: min(62vh, 560px); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60,50,30,.35); }
#pj-map { width: 100%; height: 100%; background: #ece7de; }
#pj-map .leaflet-tile-pane, #pj-map .leaflet-overlay-pane img { filter: sepia(.35) saturate(.8); }
.pj-pin { width: 40px; height: 40px; }

/* ---------- Enquire ---------- */
.pj-enquire { background: #fff; padding: 14vh var(--gutter); }
.pj-enquire-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; align-items: start; }
.pj-enq-copy { margin: 1.6rem 0 2.4rem; font-size: 17px; line-height: 1.75; color: var(--graphite); max-width: 460px; }
.pj-hotline { max-width: 360px; height: 80px; font-size: 1.6rem; }
.field--area textarea { width: 100%; background: none; border: 0; outline: none; border-bottom: 1px solid var(--stone); padding: 10px 0; font-size: 16px; resize: vertical; font-family: inherit; line-height: 1.6; }
.field--area textarea:focus + span, .field--area textarea:not(:placeholder-shown) + span { transform: translateY(-28px) scale(.82); color: var(--gold); }
.field--area textarea:focus ~ i { transform: scaleX(1); }
.pj-form .btn-submit { margin-top: .6rem; }

/* ---------- Other projects ---------- */
.pj-others { background: #fff; padding: 4vh 0 14vh; }
.pj-others-head { max-width: 1400px; margin: 0 auto 4vh; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pj-others-title { font-size: clamp(1.2rem, 2.4vw, 2.2rem); letter-spacing: .12em; text-transform: uppercase; }
.pj-others-nav { display: flex; gap: .6rem; }
.pj-others-track { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; scrollbar-width: none; }
.pj-others-track::-webkit-scrollbar { display: none; }
.pj-other { position: relative; flex: 0 0 clamp(260px, 24vw, 340px); scroll-snap-align: start; border-radius: 8px; overflow: hidden; color: #fff; background: #1a1a1a; }
.pj-other-img { aspect-ratio: 3/4; overflow: hidden; }
.pj-other-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pj-other:hover .pj-other-img img { transform: scale(1.05); }
.pj-other::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.8)); pointer-events: none; }
.pj-other .fcard-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pj-other-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; }
.pj-other-body b { font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.pj-other-body span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* ---------- Not found ---------- */
.pj-missing { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; padding: 20vh var(--gutter) 10vh; background: var(--ivory); }

/* ---------- Lightbox + video modal ---------- */
.pj-lightbox, .pj-modal {
  position: fixed; inset: 0; z-index: 160; background: rgba(12, 12, 12, .94);
  display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 4rem var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.pj-lightbox.is-open, .pj-modal.is-open { opacity: 1; visibility: visible; }
.pj-lb-stage { margin: 0; flex: 1; height: 100%; display: grid; place-items: center; }
.pj-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.pj-lb-arrow { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.pj-lb-arrow:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.pj-lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .2em; }
.pj-lightbox .overlay-close, .pj-modal .overlay-close { color: #fff; }
.pj-modal-frame { width: min(1200px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.pj-modal-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pj-intro-grid { grid-template-columns: 1fr 1fr; }
  .pj-glance { grid-column: 1 / -1; }
  .pj-amen-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pj-hero { padding-top: calc(var(--nav-h) + 10px); }
  .pj-hero-frame { height: 78vh; min-height: 460px; }
  .pj-hero-content { right: 1.5rem; }
  .pj-discover { top: 40%; padding: 13px 20px; font-size: 10px; letter-spacing: .16em; }
  .pj-intro-grid { grid-template-columns: 1fr; }
  .pj-intro-img { max-width: 520px; }
  .pj-gallery-pin { height: auto; padding: 16vh 0 12vh; }
  .pj-gallery-head { position: static; margin: 0 var(--gutter) 4vh; }
  .pj-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
  .pj-track::-webkit-scrollbar { display: none; }
  .pj-shot, .pj-arch { scroll-snap-align: center; }
  .pj-shot { height: 56vh; aspect-ratio: 3/4; }
  .pj-arch { height: 56vh; width: 70vw; }
  .pj-gallery-bar { display: none; }
  .pj-amen-grid { grid-template-columns: 1fr; }
  .pj-amen-img { min-height: 60vh; order: -1; }
  .pj-amen-body { padding: 10vh var(--gutter); }
  .pj-location-grid, .pj-enquire-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pj-unitbar { grid-template-columns: 1fr auto; gap: .6rem; width: calc(100% - 24px - 74px); left: 12px; transform: none; bottom: 12px; padding: 8px 8px 8px 16px; }
  .pj-bar-mark, .pj-bar-btn--ghost { display: none; }
  .pj-bar-btn { height: 44px; padding: 0 18px; }
  .pj ~ .fab { bottom: 16px; }
}
@media (max-width: 600px) {
  .pj-bar-text span { display: none; }
  .pj-lb-arrow { position: absolute; bottom: 20px; width: 48px; height: 48px; }
  .pj-lb-arrow[data-lb="-1"] { left: 20px; }
  .pj-lb-arrow[data-lb="1"] { right: 20px; }
}
