/* AB Multi Family — single-listing page ("Just Listed" flyer style)
   Scroll-driven: sections marked [data-scene] get a --p value (0→1) from listing.js */

:root {
  --lx-black: #161513;
  --lx-gold: #D6AE52;
  --lx-gold-soft: #E9CF8E;
  --lx-paper: #F6F4EF;
  --lx-display: "Oswald", "Inter Tight", Impact, sans-serif;
  --lx-serif: "Lora", Georgia, serif;
}

.lx main { overflow-x: clip; }
.lx .eyebrow-gold { font-family: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #9A7A2E; }
.lx .on-dark .eyebrow-gold, .lx .eyebrow-gold.on-dark { color: var(--lx-gold); }

/* ---------- 1. Hero: the flyer assembles itself as you scroll ---------- */
.lx-hero { position: relative; height: 175vh; height: 175svh; background: var(--lx-black); }
.lx-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lx-stage picture, .lx-stage .lx-bg { position: absolute; inset: 0; }
.lx-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: translateY(calc(var(--band, 0) * var(--lift, -18vh))) scale(calc(1.14 - .1 * var(--p, 0))); transform-origin: 50% 0; will-change: transform; }
.lx-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,0)); }
.lx-title, .lx-cue, .lx-band { z-index: 2; }
.lx-title { position: absolute; left: var(--pad); right: var(--pad); top: clamp(22px, 5vh, 56px); max-width: 1280px; margin: 0 auto; color: var(--lx-black);
  transform-origin: 0 0; transform: scale(calc(1 - var(--band, 0) * var(--shrink, .3))); }
.lx-title h1 { font-family: var(--lx-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; line-height: .86;
  font-size: clamp(64px, 13.5vw, 210px); margin: 0; }
.lx-title h1 span { display: inline-block; opacity: 0; transform: translateY(28px); animation: lx-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.lx-title h1 span + span { animation-delay: .12s; }
.lx-addr { display: flex; align-items: center; gap: 18px; margin-top: clamp(14px, 2vh, 22px); font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  font-size: clamp(13px, 1.5vw, 22px); opacity: 0; animation: lx-fade .8s .45s ease forwards; }
.lx-addr::before { content: ""; width: clamp(40px, 7vw, 110px); height: 6px; background: var(--lx-black); flex: none; }
@keyframes lx-rise { to { opacity: 1; transform: none; } }
@keyframes lx-fade { to { opacity: 1; } }

.lx-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; text-shadow: 0 1px 8px rgba(0,0,0,.5);
  opacity: calc(1 - var(--p, 0) * 8); }
.lx-cue i { width: 1.5px; height: 34px; background: linear-gradient(#FFFFFF, transparent); animation: lx-cue 1.8s ease-in-out infinite; }
@keyframes lx-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* The black band + contact strip slide up, like the bottom of the flyer */
.lx-band { position: absolute; left: 0; right: 0; bottom: 0; color: #FFFFFF;
  transform: translateY(calc((1 - var(--band, 0)) * 101% + (1 - var(--contact, 0)) * var(--ch, 0px))); will-change: transform; }
.lx-band-top { background: var(--lx-black); padding: clamp(18px, 3vh, 30px) var(--pad); text-align: center; }
.lx-pills { font-family: var(--lx-display); font-weight: 600; text-transform: uppercase; color: var(--lx-gold); letter-spacing: .03em;
  font-size: clamp(22px, 3.2vw, 46px); line-height: 1.05; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .7em; margin: 0; }
.lx-pills b { font-weight: 600; }
.lx-pills i { font-style: normal; opacity: .9; }
.lx-tagline { font-family: var(--lx-serif); font-style: italic; color: #F1EEE6; font-size: clamp(15px, 1.5vw, 21px); margin-top: 8px; }
.lx-contact { background: #FFFFFF; color: var(--ink); padding: clamp(14px, 2.4vh, 24px) var(--pad); }
.lx-contact-in { opacity: var(--contact, 0); transform: translateY(calc((1 - var(--contact, 0)) * 16px)); }
.lx-contact-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); flex-wrap: wrap; }
.lx-avatar { width: clamp(58px, 6.4vw, 86px); height: clamp(58px, 6.4vw, 86px); border-radius: 10px; object-fit: cover; border: 3px solid var(--lx-gold); flex: none; }
.lx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lx-who .eyebrow-gold { font-size: 11px; }
.lx-who strong { font-size: clamp(17px, 1.6vw, 22px); }
.lx-who a.phone { font-family: var(--lx-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; color: var(--ink); text-decoration: none; }
.lx-who a.phone:hover { color: var(--red); }
.lx-price { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.lx-price span { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lx-price b { font-family: var(--lx-display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); line-height: 1; }

/* ---------- Sticky sub-nav (Apple-style), appears after the hero ---------- */
.lx-subnav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(22,21,19,.82); color: #FFFFFF;
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  transform: translateY(-100%); transition: transform .35s ease; border-bottom: 1px solid rgba(255,255,255,.08); }
.lx-subnav.show { transform: none; }
.lx-subnav .container { display: flex; align-items: center; gap: 16px; height: 56px; }
.lx-subnav strong { font-family: var(--head); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-subnav .sp { margin-left: auto; color: var(--lx-gold-soft); font-weight: 600; white-space: nowrap; }
.lx-subnav .btn { min-height: 34px; padding: 0 16px; font-size: 14px; }

/* ---------- 2. Statement that lights up word by word ---------- */
.lx-statement { background: var(--lx-black); height: 260vh; position: relative; color: #FFFFFF; }
.lx-statement .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.lx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - .08 * var(--p, 0))); }
.lx-statement .sticky::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(12,11,10,.72), rgba(12,11,10,.5) 45%, rgba(12,11,10,.78)); }
.lx-statement .container { position: relative; z-index: 2; width: 100%; }
.lx-statement p { font-family: var(--head); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; font-size: clamp(30px, 4.6vw, 66px); max-width: 1120px; }
.lx-statement .w { color: rgba(255,255,255,.3); transition: color .4s ease; }
.lx-statement .w.on { color: #FFFFFF; }
.lx-statement .w.gold.on { color: var(--lx-gold); }
.lx-video-cap { position: absolute; z-index: 2; left: var(--pad); bottom: 24px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- 3. Numbers ---------- */
.lx-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.lx-stat { padding: clamp(28px, 4vw, 52px) clamp(8px, 2vw, 28px) clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.lx-stat b { font-family: var(--lx-display); font-weight: 600; font-size: clamp(42px, 6vw, 92px); line-height: .95; letter-spacing: -.01em; }
.lx-stat span { font-size: clamp(14px, 1.2vw, 16px); color: var(--muted); font-weight: 500; }
.lx-best { margin-top: clamp(36px, 5vw, 64px); display: flex; gap: 18px; align-items: center; background: var(--lx-paper); border-radius: 18px; padding: 22px 26px; }
.lx-best svg { flex: none; }
.lx-best p { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; }
.lx-best small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 4. Pinned photo story ---------- */
.lx-story { position: relative; background: var(--lx-black); color: #FFFFFF; }
.lx-story .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lx-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s cubic-bezier(.4,0,.2,1); will-change: opacity; }
.lx-slide.on { opacity: 1; }
.lx-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.lx-slide.on img { transform: scale(1); }
.lx-story .sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,9,.82) 0%, rgba(10,10,9,.35) 38%, rgba(10,10,9,0) 62%); }
.lx-caps { position: absolute; left: 0; right: 0; bottom: clamp(36px, 8vh, 90px); z-index: 2; }
.lx-cap { position: absolute; left: max(var(--pad), calc((100% - 1280px) / 2 + var(--pad))); right: var(--pad); bottom: 0; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.lx-cap.on { opacity: 1; transform: none; }
.lx-cap h2 { font-family: var(--lx-display); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 6.4vw, 96px); line-height: .92; letter-spacing: 0; max-width: 14ch; }
.lx-cap p { color: #E4E1D8; font-size: clamp(16px, 1.5vw, 20px); max-width: 520px; margin-top: 14px; }
.lx-dots { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.lx-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.4); transition: height .4s ease, background .4s ease; }
.lx-dots i.on { height: 28px; background: var(--lx-gold); }
.lx-story { height: calc(var(--n, 4) * 110vh + 100vh); height: calc(var(--n, 4) * 110svh + 100svh); }

/* ---------- 5. Building, from first principles ---------- */
.lx-dark { background: var(--lx-black); color: #FFFFFF; }
.lx-dark .lead { color: #CFCAC0; }
.lx-tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.lx-tile { grid-column: span 6; background: #22201D; border-radius: 24px; padding: clamp(26px, 3.2vw, 44px); display: flex; flex-direction: column; gap: 10px; min-height: 260px; justify-content: flex-end; position: relative; overflow: hidden; }
.lx-tile.wide { grid-column: span 7; } .lx-tile.narrow { grid-column: span 5; }
.lx-tile .big { font-family: var(--lx-display); font-weight: 600; font-size: clamp(64px, 8vw, 128px); line-height: .9; color: var(--lx-gold); }
.lx-tile h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.015em; }
.lx-tile p { color: #BDB8AD; font-size: 16px; max-width: 46ch; }
.lx-tile .meters { display: flex; gap: 10px; margin-bottom: 8px; }
.lx-tile .meters span { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--lx-gold); display: grid; place-items: center; }
.lx-tile .meters svg { width: 20px; height: 20px; stroke: var(--lx-gold); fill: none; stroke-width: 1.8; }

.lx .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.lx .reveal.in { opacity: 1; transform: none; }
.lx .lx-tiles .reveal:nth-child(2) { transition-delay: .08s; } .lx .lx-tiles .reveal:nth-child(3) { transition-delay: .16s; } .lx .lx-tiles .reveal:nth-child(4) { transition-delay: .24s; }

/* Unit mix */
.lx-units { width: 100%; min-width: 0; border-collapse: collapse; margin-top: 28px; font-size: 16px; }
.lx-units th { text-align: left; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #9F998C; font-weight: 700; padding: 0 12px 14px 0; border-bottom: 1px solid #3A3733; }
.lx-units td { padding: 18px 12px 18px 0; border-bottom: 1px solid #3A3733; }
.lx-units tr.total td { font-weight: 700; color: var(--lx-gold-soft); border-bottom: 0; }
.lx-units td:last-child, .lx-units th:last-child { text-align: right; padding-right: 0; }

/* ---------- 6. Financials ---------- */
.lx-fin { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.lx-fin-card { border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.lx-fin-card.pro { background: var(--lx-black); color: #FFFFFF; border-color: var(--lx-black); }
.lx-fin-card .label { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lx-fin-card.pro .label { color: var(--lx-gold); }
.lx-fin-card .cap { font-family: var(--lx-display); font-weight: 600; font-size: clamp(64px, 8vw, 120px); line-height: .9; }
.lx-fin-card .cap small { font-size: .3em; letter-spacing: .1em; margin-left: 8px; font-weight: 500; vertical-align: .9em; }
.lx-bar { height: 14px; border-radius: 999px; background: var(--gray); overflow: hidden; }
.lx-fin-card.pro .lx-bar { background: #2E2B27; }
.lx-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.lx-fin-card.pro .lx-bar i { background: var(--lx-gold); }
.lx-fin.in .lx-bar i { width: var(--w); }
.lx-fin-card dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 16px; }
.lx-fin-card dt { color: var(--muted); } .lx-fin-card.pro dt { color: #B9B3A7; }
.lx-fin-card dd { margin: 0; font-weight: 700; text-align: right; }
.lx-fin-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.lx-fin-row div { background: var(--lx-paper); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.lx-fin-row b { font-family: var(--lx-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; }
.lx-fin-row span { font-size: 14px; color: var(--muted); }
.lx-note { font-size: 13px; color: var(--muted); margin-top: 18px; max-width: 900px; line-height: 1.6; }

/* ---------- 7. Location ---------- */
.lx-map { position: relative; border-radius: 24px; overflow: hidden; height: clamp(320px, 42vw, 480px); background: #E9E6DE; margin-top: 28px; }
.lx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- 8. Closing contact (white strip of the flyer) ---------- */
.lx-close { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; color: #FFFFFF; overflow: hidden; }
.lx-close-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lx-close::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.92) 0%, rgba(14,13,12,.45) 45%, rgba(14,13,12,.1) 75%); z-index: 1; }
.lx-close .container { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vh, 80px); width: 100%; }
.lx-close h2 { font-family: var(--lx-display); font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 8vw, 128px); line-height: .9; max-width: 12ch; }
.lx-close .lead { color: #E9E5DB; margin-top: 16px; max-width: 560px; }
.lx-close .btn-row { margin-top: 28px; }
.lx-close .btn-ghost { border-color: rgba(255,255,255,.7); color: #FFFFFF; }
.lx-close .btn-ghost:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }
.lx-sig { background: #FFFFFF; }
.lx-sig .container { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.lx-sig .logos { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.lx-sig .logos img { height: 52px; width: auto; }
.lx-sig .logos img.kw { height: 40px; }
.lx-sig .small { color: var(--muted); }
.lx-disclaimer { font-size: 12.5px; line-height: 1.6; color: var(--muted); padding-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lx-hero { height: 165vh; height: 165svh; }
  .lx-bg { object-position: 50% 20%; }
  .lx-stage { --lift: -10vh; --shrink: .12; }
  .lx-statement { height: 220vh; }
  .lx-scrub { height: 280vh; }
  .lx-stat b { font-size: clamp(36px, 10vw, 56px); }
  .lx-price { margin-left: 0; text-align: left; width: 100%; flex-direction: row; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
  .lx-pills { flex-direction: column; gap: 2px; }
  .lx-pills i { display: none; }
  .lx-stats { grid-template-columns: repeat(2, 1fr); }
  .lx-tile, .lx-tile.wide, .lx-tile.narrow { grid-column: span 12; min-height: 0; }
  .lx-fin { grid-template-columns: 1fr; }
  .lx-fin-row { grid-template-columns: repeat(2, 1fr); }
  .lx-dots { right: 14px; }
  .lx-subnav .sp { display: none; }
  .lx-subnav strong { margin-right: auto; }
  .lx-sig .logos { margin-left: 0; }
  .lx-units { font-size: 15px; }
}
@media (max-width: 520px) {
  .lx-who .eyebrow-gold { display: none; }
  .lx-contact-in { gap: 12px 14px; }
}

/* ---------- Less motion: everything shows in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .lx-hero, .lx-statement { height: auto; }
  .lx-stage, .lx-statement .sticky { position: relative; }
  .lx-stage { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .lx-stage picture { position: absolute; }
  .lx-band { position: relative; margin-top: auto; transform: none; }
  .lx-contact-in { transform: none; opacity: 1; }
  .lx-title { position: relative; padding-top: 1px; }
  .lx-title h1 span, .lx-addr { animation: none; opacity: 1; transform: none; }
  .lx-bg { transform: none; }
  .lx-scrub { height: auto; }
  .lx-scrub .sticky { position: relative; }
  .lx-st { position: relative !important; opacity: 1 !important; transform: none !important; }
  .lx-scrub-txt { display: flex; flex-direction: column; gap: 8px; }
  .lx-cue { display: none; }
  .lx-statement .sticky { height: auto; padding: var(--space) 0; }
  .lx-statement .w { color: #FFFFFF; }
  .lx-statement .w.gold { color: var(--lx-gold); }
  .lx-video { transform: none; }
  .lx .reveal { opacity: 1; transform: none; transition: none; }
  .lx-bar i { transition: none; }
  .lx-slide, .lx-slide img, .lx-cap { transition: none; }
}

/* Fixes: dark table, legible closing text */
.lx-dark .table-wrap { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.lx-dark .table-wrap th, .lx-dark .table-wrap td { background: transparent; color: inherit; }
.lx-dark .lx-units th { color: #9F998C; }
.lx-dark .lx-units tr.total td { color: var(--lx-gold-soft); }
.lx-close::before { background: linear-gradient(to top, rgba(14,13,12,.94) 0%, rgba(14,13,12,.7) 50%, rgba(14,13,12,.2) 85%, rgba(14,13,12,.05) 100%); }
@media (max-width: 560px) {
  .lx-units { font-size: 14px; }
  .lx-units th { letter-spacing: .08em; font-size: 11px; }
  .lx-units td, .lx-units th { padding-right: 8px; }
}

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lx-stage, .lx-statement .sticky, .lx-story .sticky { contain: paint; }

/* ---------- Scroll-controlled drone descent ---------- */
.lx-scrub { position: relative; height: 320vh; height: 320svh; background: var(--lx-black); color: #FFFFFF; }
.lx-scrub .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; contain: paint; }
.lx-scrub-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.lx-scrub .sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,9,.85) 0%, rgba(10,10,9,.45) 38%, rgba(10,10,9,0) 65%); }
.lx-scrub-txt { position: absolute; z-index: 2; left: max(var(--pad), calc((100% - 1280px) / 2 + var(--pad))); right: var(--pad); bottom: clamp(56px, 11vh, 120px); }
.lx-st { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.35); font-family: var(--lx-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 6.6vw, 104px); line-height: .92; max-width: 13ch; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 22px)); }
.lx-scrub-bar { position: absolute; z-index: 2; left: max(var(--pad), calc((100% - 1280px) / 2 + var(--pad))); bottom: clamp(28px, 5vh, 56px); width: 120px; height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.lx-scrub-bar i { display: block; height: 100%; width: 100%; background: var(--lx-gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
