/* Trang dự án dựng từ JSON (/du-an/<slug>, views/pages/project.php). Dùng kèm site.css.
   Thiết kế: alluvia-city-handoff/design/DuAn-AlluviaCity.dc.html */

.pl { --pl-max: calc(var(--container) + 80px); --pl-subnav-h: 58px; }
html:has(.pl) { scroll-padding-top: calc(var(--pl-subnav-h, 58px) + 12px); }
.pl-wrap { max-width: calc(var(--container) + 80px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pl-sec { padding-top: 128px; padding-bottom: 128px; }
.pl-stack { display: flex; flex-direction: column; gap: 44px; }
.pl-stack--lg { gap: 56px; }
.pl-sand { background: var(--sand); }
.pl-navy { background: var(--navy); color: var(--cream); }
.pl-navy--deep { background: var(--navy-deep); overflow: hidden; }
.pl-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--copper-deep); }
.pl-eyebrow--light { color: var(--copper-light); }
.pl-eyebrow--line { display: flex; align-items: center; gap: 14px; letter-spacing: .26em; }
.pl-eyebrow--line::before { content: ""; width: 48px; height: 1px; background: currentColor; flex: none; }
.pl-h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 4.6vw, 64px); line-height: 1.02; }
.pl-h2--sm { font-size: clamp(38px, 4vw, 54px); line-height: 1.05; }
.pl-h2--xl { font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.pl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.pl-head__text { display: flex; flex-direction: column; gap: 16px; }
.pl-head__note { margin: 0; max-width: 320px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.pl-sec--policy .pl-head__note { max-width: none; font-size: 13px; }
.pl-split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.pl-split__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.pl-hov .ph-in { transition: transform 1.6s var(--ease); }
.pl-hov:hover .ph-in { transform: scale(1.08); }

/* ---------- Header trong suốt đè lên hero ---------- */
.site-header--overlay {
  position: absolute; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: none;
}
.site-header--overlay.is-scrolled { background: transparent; box-shadow: none; }
.site-header--overlay .site-header__in { max-width: calc(var(--container) + 80px); padding-top: 26px; padding-bottom: 26px; }
.site-header--overlay .brand, .site-header--overlay .brand:hover { color: var(--cream); }
.site-header--overlay .brand__name span { color: var(--copper-light); }
.site-header--overlay .brand__tag { display: none; }
.site-header--overlay .brand__mark path:nth-child(1), .site-header--overlay .brand__mark path:nth-child(2) { stroke: var(--copper-light); }
.site-header--overlay .brand__mark path:nth-child(3) { stroke: var(--copper); }
.site-header--overlay .brand__mark path:nth-child(4) { stroke: var(--bronze); }
.site-header--overlay .nav a, .site-header--overlay .hotline { color: var(--cream); }
.site-header--overlay .nav a::after { background: var(--copper-light); }
.site-header--overlay .nav a[aria-current="page"] { color: var(--copper-light); }
.site-header--overlay .hotline > span:first-child { color: var(--copper-light) !important; }
@media (max-width: 760px) {
  .site-header--overlay .site-header__in { padding-top: 14px; padding-bottom: 0; }
  .site-header--overlay .nav { border-top-color: rgba(248, 243, 236, .18); }
}

/* ---------- Hero ---------- */
.pl-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--cream); overflow: hidden; background: var(--navy); }
.pl-hero__bg { position: absolute; inset: 0; background: var(--navy); }
.pl-hero__bg video.ph-in { width: 100%; height: 100%; object-fit: cover; }
.pl-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 37, 47, .62) 0%, rgba(21, 37, 47, .3) 55%, rgba(21, 37, 47, .2) 100%); }
.pl-hero__in { position: relative; z-index: 2; flex: 1; width: 100%; padding-top: 140px; padding-bottom: 24px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.pl-hero__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 11vw, 168px); line-height: .92; letter-spacing: -.01em; }
.pl-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.pl-mask > span { display: inline-block; }
.pl-hero__tagline { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.6; font-weight: 300; color: #E7ECEE; }
.pl-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pl-play { display: flex; align-items: center; gap: 14px; border: 0; background: transparent; color: var(--cream); font: 500 15px var(--sans); cursor: pointer; padding: 0 8px; }
.pl-play__ring { position: relative; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(248, 243, 236, .7); transition: transform .4s var(--ease); }
.pl-play:hover .pl-play__ring { transform: scale(1.08); }
.pl-play .pl-pulse { border: 1px solid var(--cream); }
.pl-pulse { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.pl-waves { position: relative; z-index: 1; height: 70px; overflow: hidden; opacity: .55; }
.pl-wave { position: absolute; left: 0; top: 0; }
.pl-stats { position: relative; z-index: 2; border-top: 1px solid rgba(248, 243, 236, .18); background: rgba(21, 37, 47, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pl-stats__in { margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pl-stat { padding: 26px 22px; border-left: 1px solid rgba(248, 243, 236, .14); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.pl-stat dd { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.pl-stat dd small { font-size: 20px; color: var(--copper-light); }
.pl-stat dt { font-size: 12px; letter-spacing: .14em; color: var(--navy-text); }
.pl-cue { position: absolute; right: var(--gutter); bottom: 140px; z-index: 2; width: 1px; height: 46px; background: rgba(248, 243, 236, .25); }
.pl-cue span { position: absolute; left: -2px; top: 0; width: 5px; height: 12px; border-radius: 3px; background: var(--copper-light); }

/* ---------- Sub-nav ---------- */
.pl-subnav { position: sticky; top: 0; z-index: 30; background: rgba(248, 243, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pl-subnav__in { display: flex; align-items: center; gap: 32px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.pl-subnav__in::-webkit-scrollbar { display: none; }
.pl-subnav__name { font-family: var(--serif); font-size: 22px; font-weight: 600; white-space: nowrap; padding-right: 8px; }
.pl-subnav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 18px 0; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; white-space: nowrap; }
.pl-subnav a:not(.btn):hover, .pl-subnav a.is-active:not(.btn) { color: var(--ink); border-bottom-color: var(--copper); }
.pl-subnav__cta { margin-left: auto; padding: 11px 20px; white-space: nowrap; flex: none; }

/* ---------- Marquee ---------- */
.pl-marquee { background: var(--copper); color: var(--white); overflow: hidden; padding: 18px 0; }
.pl-marquee__track { display: flex; width: max-content; gap: 48px; font-family: var(--serif); font-size: 30px; font-style: italic; }
.pl-marquee__track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.pl-marquee__track i { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: .6; }

/* ---------- Tổng quan ---------- */
.pl-facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pl-facts div { background: var(--cream); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pl-facts dt { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.pl-facts dd { margin: 0; font-size: 16px; font-weight: 500; }
.pl-collage { flex: 1.4 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 220px 220px 160px; gap: 16px; }
.pl-collage__a { grid-column: 1 / 4; grid-row: 1 / 3; }
.pl-collage__b { grid-column: 4 / 6; grid-row: 1 / 2; }
.pl-collage__c { grid-column: 4 / 6; grid-row: 2 / 4; }
.pl-collage__d { grid-column: 1 / 4; grid-row: 3 / 4; }
@media (max-width: 640px) {
  .pl-collage { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .pl-collage > .ph { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .pl-collage__a { aspect-ratio: 1 / 1.05 !important; }
  .pl-collage__c { aspect-ratio: 2 / 3 !important; }
  .pl-collage__d { aspect-ratio: 3 / 1 !important; }
}

/* ---------- Vị trí ---------- */
.pl-map { flex: 1.2 1 520px; height: 600px; background: #23404F; }
.pl-map > .ph-in:not(img) { background-color: #24414F; }
.pl-map__river { position: absolute; left: -10%; right: -10%; top: 38%; height: 70px; background: rgba(142, 158, 166, .22); transform: rotate(-14deg); }
.pl-map__pin { position: absolute; width: 22px; height: 22px; z-index: 2; }
.pl-map__pin .pl-pulse { background: var(--copper-light); }
.pl-map__dot { position: absolute; inset: 3px; border-radius: 50%; background: var(--copper); border: 2px solid var(--cream); }
.pl-map__name { position: absolute; left: 32px; top: -6px; white-space: nowrap; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 12px; }
.pl-map__label { position: absolute; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #DDE4E8; text-shadow: 0 1px 6px rgba(21, 37, 47, .8); }
.pl-map__label i { width: 8px; height: 8px; border-radius: 50%; background: #DDE4E8; }
.pl-routes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.pl-routes li { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(248, 243, 236, .14); }
.pl-routes__min { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--copper-light); }
.pl-routes__min small { font-family: var(--sans); font-size: 14px; color: var(--navy-text); }
.pl-routes__to { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.pl-routes__track { height: 2px; background: rgba(248, 243, 236, .1); position: relative; overflow: hidden; }
.pl-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--copper); transform-origin: left; }
@media (max-width: 640px) { .pl-map { height: auto; aspect-ratio: 1 / 1.1; flex-basis: 100%; } }
/* Bản đồ thật: khung theo tỉ lệ ảnh (aspect-ratio đặt inline), không cắt */
.pl-map--fit { display: block; height: auto; background: #EEEBE6; cursor: zoom-in; }
.pl-map--fit img.ph-in { object-fit: contain; }
.pl-map__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 8px 12px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink); background: rgba(248, 243, 236, .92); box-shadow: 0 6px 18px -10px rgba(21, 37, 47, .6); transition: background-color .3s, color .3s; }
.pl-map--fit:hover .pl-map__zoom, .pl-map--fit:focus-visible .pl-map__zoom { background: var(--bronze); color: var(--white); }
.pl-map--fit:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }
/* Lightbox bản đồ (dùng lại .lightbox của site.css) — bấm ảnh để xem cỡ thật, kéo/cuộn để di chuyển */
.pl-maplb { background: var(--navy-deep); }
.pl-maplb__stage { overflow: hidden; cursor: zoom-in; touch-action: manipulation; }
.pl-maplb__stage.is-zoom > img { background: #EEEBE6; }
.pl-maplb__stage.is-zoom { overflow: auto; cursor: zoom-out; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(248, 243, 236, .5) transparent; }
.pl-maplb__stage.is-zoom > img { position: static; width: auto; height: auto; max-width: none; object-fit: initial; }
.pl-maplb .round-btn[hidden] { display: none; }
.pl-maplb__cap { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(90vw, 900px); text-align: center; }
.pl-maplb__cap strong { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--cream); }
.pl-maplb__cap strong:empty { display: none; }

/* ---------- Phân khu ---------- */
.pl-zones { display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; }
.pl-zones__side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.pl-zones__side .pl-h2 { margin-bottom: 18px; }
.pl-zones__tabs { display: flex; flex-direction: column; }
.pl-zone { border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; padding: 22px 0; cursor: pointer; display: flex; align-items: baseline; gap: 18px; font: inherit; color: #8F8376; transition: color .4s; }
.pl-zone:hover, .pl-zone[aria-selected="true"] { color: var(--ink); }
.pl-zone__no { font-family: var(--serif); font-size: 18px; font-style: italic; }
.pl-zone__name { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; }
.pl-zone__line { height: 1px; flex: 1; background: var(--line); transform-origin: left; transform: scaleX(.15); transition: transform .7s var(--ease), background-color .4s; }
.pl-zone[aria-selected="true"] .pl-zone__line { transform: scaleX(1); background: var(--copper); }
.pl-zone__ha { font-size: 14px; }
.pl-zones__stage { flex: 1.7 1 560px; min-width: 0; position: relative; min-height: 620px; }
.pl-zpanel { position: absolute; inset: 0; }
.pl-zpanel[hidden] { display: none; }
.pl-zpanel__card { position: absolute; left: 28px; bottom: 28px; right: 28px; max-width: 520px; background: rgba(248, 243, 236, .95); padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.pl-zpanel__card h3 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.05; }
.pl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chips li { font-size: 13px; border: 1px solid var(--line); padding: 7px 12px; background: var(--white); }
@media (max-width: 640px) {
  .pl-zones__stage { min-height: 0; flex-basis: 100%; }
  .pl-zpanel { position: relative; inset: auto; display: flex; flex-direction: column; overflow: visible; background: none; }
  .pl-zpanel .ph-in { position: relative; inset: auto; aspect-ratio: 4 / 3; height: auto; }
  .pl-zpanel__card { position: relative; left: auto; right: auto; bottom: auto; max-width: none; padding: 22px; }
  .pl-zpanel__card h3 { font-size: 28px; }
  .pl-zone { padding: 16px 0; }
  .pl-zone__name { font-size: 30px; }
}

/* ---------- Sản phẩm ---------- */
.pl-rail-nav { display: flex; gap: 12px; }
.pl-rb { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); transition: background-color .3s, color .3s; }
.pl-rb:hover { background: var(--ink); color: var(--cream); }
.pl-rb:disabled { opacity: .3; pointer-events: none; }
.pl-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--copper) transparent; overscroll-behavior-x: contain; }
.pl-rail:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.pl-pc { scroll-snap-align: start; flex: 0 0 clamp(260px, 30vw, 380px); display: flex; flex-direction: column; gap: 18px; color: var(--ink); text-decoration: none; transition: transform .6s var(--ease); }
.pl-pc:hover { transform: translateY(-8px); color: var(--ink); }
.pl-pc__img { height: 460px; }
.pl-pc__img::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 110px; background: linear-gradient(180deg, rgba(21, 37, 47, .42), rgba(21, 37, 47, 0)); pointer-events: none; }
.pl-pc__no { position: absolute; z-index: 2; left: 18px; top: 18px; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--white); text-shadow: 0 1px 8px rgba(21, 37, 47, .5); }
.pl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: var(--white); background: rgba(21, 37, 47, .55); font-size: 14px; transform: translateY(100%); transition: transform .6s var(--ease); }
.pl-pc:hover .pl-cap, .pl-pc:focus-visible .pl-cap { transform: none; }
.pl-pc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--ink); padding-top: 16px; }
.pl-pc__name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05; }
.pl-pc__floors { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pl-pc__area { font-size: 15px; color: var(--copper-deep); font-weight: 500; }
@media (max-width: 640px) { .pl-pc { flex-basis: 78vw; } .pl-pc__img { height: auto; aspect-ratio: 4 / 5; } .pl-pc__name { font-size: 26px; } }

/* ---------- Tiện ích ---------- */
.pl-amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.pl-amen li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 65%; background: linear-gradient(180deg, rgba(21, 37, 47, 0), rgba(21, 37, 47, .55) 55%, rgba(21, 37, 47, .8)); pointer-events: none; }
.pl-amen--2x2 { grid-column: span 2; grid-row: span 2; }
.pl-amen--2x1 { grid-column: span 2; }
.pl-amen__name { position: absolute; z-index: 1; left: 20px; bottom: 18px; max-width: 80%; color: var(--white); font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; text-shadow: 0 1px 14px rgba(21, 37, 47, .7); }
@media (max-width: 900px) {
  .pl-amen { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .pl-amen--2x2 { grid-row: span 1; }
  .pl-amen__name { font-size: 22px; }
}

/* ---------- Tiến độ ---------- */
.pl-timeline { position: relative; }
.pl-timeline__line { position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: rgba(248, 243, 236, .16); }
.pl-timeline__line .pl-bar { inset: 0; }
.pl-timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.pl-ms { position: relative; display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease); }
.pl-ms:hover { transform: translateY(-6px); }
.pl-ms__dot { width: 23px; height: 23px; border-radius: 50%; background: var(--navy-deep); border: 2px solid var(--copper); transition: background-color .4s, box-shadow .4s; }
.pl-ms:hover .pl-ms__dot { background: var(--copper-light); box-shadow: 0 0 0 8px rgba(227, 168, 102, .18); }
.pl-ms strong { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--copper-light); line-height: 1; }
.pl-ms span:last-child { font-size: 15px; line-height: 1.55; color: #DDE4E8; }
.pl-progress { height: 420px; }
@media (max-width: 640px) {
  .pl-timeline__line { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .pl-timeline__line .pl-bar { transform-origin: top; }
  .pl-timeline ol { grid-template-columns: 1fr; gap: 24px; }
  .pl-ms { padding-left: 44px; }
  .pl-ms__dot { position: absolute; left: 0; top: 4px; }
  .pl-progress { height: auto; aspect-ratio: 3 / 2; }
}

/* ---------- Chính sách ---------- */
.pl-sec--policy { padding-top: 120px; padding-bottom: 64px; gap: 40px; }
.pl-policy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pl-policy li { background: var(--cream); padding: 34px 28px; display: flex; flex-direction: column; gap: 10px; }
.pl-policy strong { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; color: var(--bronze); }
.pl-policy span { font-size: 15px; line-height: 1.55; }

/* ---------- Đăng ký ---------- */
.pl-cta { position: relative; overflow: hidden; margin-top: 64px; }
.pl-cta__bg { position: absolute; inset: 0; }
.pl-cta__shade { position: absolute; inset: 0; background: rgba(21, 37, 47, .55); }
.pl-cta__in { position: relative; padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: space-between; }
.pl-cta__text { flex: 1 1 380px; color: var(--cream); display: flex; flex-direction: column; gap: 18px; }
.pl-cta__text p { margin: 0; font-size: 16px; color: #DDE4E8; }
.pl-cta__text a { color: var(--copper-light); }
.pl-form { flex: 0 1 460px; background: var(--cream); grid-template-columns: 1fr; gap: 16px; }
.pl-form .btn { height: 56px; }
.footer-mini__note { flex: 1 1 320px; max-width: 640px; font-size: 12px; }

/* ---------- Nút nổi & modal ---------- */
.pl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; background: var(--bronze); color: var(--white); padding: 15px 22px; font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(126, 74, 23, .7); transition: transform .4s, box-shadow .4s, opacity .4s, visibility .4s; }
.pl-fab:hover { color: var(--white); transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(126, 74, 23, .8); }
.pl-fab.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (max-width: 640px) { .pl-fab { right: 16px; bottom: 16px; padding: 13px 18px; } }
.pl-modal { padding: 24px; border: 0; background: transparent; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
.pl-modal[open] { display: flex; align-items: center; justify-content: center; }
.pl-modal::backdrop { background: rgba(21, 37, 47, .88); }
.pl-modal__in { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #2B4553; }
.pl-modal__in video, .pl-modal__in iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.pl-modal__close { position: absolute; right: -8px; top: -56px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(248, 243, 236, .5); background: transparent; color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s; }
.pl-modal__close:hover { background: var(--cream); color: var(--ink); }
html.pl-lock { overflow: hidden; }

@media (max-width: 760px) {
  .pl-sec { padding-top: 88px; padding-bottom: 88px; }
  .pl-sec--policy { padding-top: 88px; padding-bottom: 48px; }
  .pl-hero__in { padding-top: 150px; }
  .pl-stats__in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; padding-right: 0; }
  .pl-stat { padding: 18px var(--gutter); }
  .pl-stat:last-child { grid-column: 1 / -1; }
  .pl-stat dd { font-size: 32px; }
  .pl-cue { display: none; }
  .pl-cta__in { padding-top: 88px; padding-bottom: 88px; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes plKb { from { transform: scale(1); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes plRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes plUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes plUpRv { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: none; } }
@keyframes plWave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes plPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes plCue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes plGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes plGrowY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes plPar { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
@keyframes plClip { from { clip-path: inset(12%); } to { clip-path: inset(0); } }
@keyframes plZoneImg { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes plZoneTxt { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes plFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Đoạn dẫn, Quy hoạch, Mặt bằng (phần tuỳ chọn trong JSON) ---------- */
.pl-lead { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.8; color: var(--ink-2, #3D342C); }
.pl-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.pl-points li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.7; }
.pl-points li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--copper); }
.pl-concept__fig { flex: 1.3 1 520px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-concept__fig figcaption, .pl-plan figcaption { font-size: 13px; color: var(--muted); }
.pl-zoomable { display: block; cursor: zoom-in; background: var(--sand); }
.pl-zoomable:hover .pl-map__zoom, .pl-zoomable:focus-visible .pl-map__zoom { background: var(--bronze); color: var(--white); }
.pl-zoomable:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.pl-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.pl-plan { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-plan--wide { grid-column: 1 / -1; }
.pl-plan .pl-zoomable { background: #EEEBE6; }
.pl-plan .pl-zoomable img.ph-in { object-fit: contain; }
.pl-plan figcaption { display: flex; flex-direction: column; gap: 4px; }
.pl-plan figcaption strong { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .pl-plans { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .pl-hero .up { animation-name: plUp; animation-duration: 1.1s; }
  .pl-d3 { animation-delay: .45s; } .pl-d4 { animation-delay: .6s; } .pl-d5 { animation-delay: .8s; } .pl-d6 { animation-delay: 1s; }
  .pl-kb { animation: plKb 22s ease-in-out infinite alternate; }
  .pl-mask > span { animation: plRise 1.3s cubic-bezier(.2, .8, .2, 1) both; }
  .pl-mask > .d1 { animation-delay: .15s; } .pl-mask > .d2 { animation-delay: .3s; }
  .pl-wave { animation: plWave 18s linear infinite; }
  .pl-wave--slow { animation-duration: 28s; }
  .pl-pulse { animation: plPulse 2.2s ease-out infinite; }
  .pl-pulse--2 { animation-delay: 1.1s; }
  .pl-cue span { animation: plCue 1.8s ease-in-out infinite; }
  .pl-marquee__track { animation: plWave 32s linear infinite; }
  .pl-zpanel.is-in .pl-zpanel__img { animation: plZoneImg 1s var(--ease) both; }
  .pl-zpanel.is-in .pl-zpanel__card { animation: plZoneTxt .8s .15s var(--ease) both; }
  .pl-modal[open] { animation: plFadeIn .4s ease both; }
  .pl-modal[open] .pl-modal__in { animation: plUp .6s var(--ease) both; }

  /* Gắn với cuộn: CSS scroll-driven nếu trình duyệt hỗ trợ */
  @supports (animation-timeline: view()) {
    .pl .rv { animation: plUpRv linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    .pl-bar { animation: plGrow linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .pl-par { animation: plPar linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .pl-clip { animation: plClip linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .pl-kb.pl-par { animation: plKb 22s ease-in-out infinite alternate; }
  }
  /* Dự phòng (Firefox/Safari cũ): project-landing.js thêm .is-in khi phần tử vào khung nhìn */
  @supports not (animation-timeline: view()) {
    .js .pl-bar { transform: scaleX(0); transition: transform 1.2s var(--ease); }
    .js .pl-bar.is-in { transform: scaleX(1); }
    .js .pl-clip { clip-path: inset(12%); transition: clip-path 1.4s var(--ease); }
    .js .pl-clip.is-in { clip-path: inset(0); }
    .js .pl-par { transform: scale(1.12); }
  }
  @media (max-width: 640px) {
    @supports (animation-timeline: view()) { .pl-timeline__line .pl-bar { animation-name: plGrowY; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl-hero__bg video { display: none; }
}
