/* La Vista City by STM, Hatem Helmy
   Same page as lavistacity-stm, dressed in the first version's colours: cream, sand, ink and bronze. */

:root {
  --slate: #1c222c;
  --slate-d: #141920;
  --slate-l: #2a323f;
  --lvc: #9a7444;
  --lvc-d: #85623a;
  --peach: #e8c9a8;
  --white: #fff;
  --cream: #f5efe5;
  --sand: #e9dfcf;
  --mist: #efe6d8;
  --line-l: #ddd1bd;
  --text: #1c222c;
  --muted: #6b6558;
  --mute-d: rgba(255, 255, 255, .74);
  --line-d: rgba(255, 255, 255, .16);
  --wa: #25d366;
  --amber: #f0a36f;
  --yellow: #ffcc00;
  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1280px;
  --r: 22px;
  --ar: 'Cairo', system-ui, sans-serif;
  --lat: 'Playfair Display', Georgia, serif;
  --en: 'Outfit', 'Cairo', sans-serif;
  --script: 'Playfair Display', Georgia, serif;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--ar); color: var(--text); background: var(--slate); line-height: 1.7; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--lvc); outline-offset: 3px; }
bdi { unicode-bidi: isolate; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--lvc); }
.eyebrow-dark { color: var(--lvc-d); }
.eyebrow .num { font-family: var(--lat); font-weight: 500; letter-spacing: 2px; }
.h2 { font-size: clamp(34px, 4.6vw, 62px); }
.body { max-width: 620px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--muted); }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.fine-dark { color: rgba(255, 255, 255, .55); }
.script { font-family: var(--script); font-style: italic; font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--white); letter-spacing: .5px; }
.script em { font-size: 1.7em; font-weight: 600; }
.script-dark { color: var(--lvc-d); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn .wa-ico, .wa-ico { width: 22px; height: 22px; fill: var(--wa); stroke: none; }
.btn-white { background: var(--lvc); color: var(--white); }
.btn-white:hover { background: var(--lvc-d); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #1ebe5a; }
.btn-slate { background: var(--slate); color: var(--white); }
.btn-slate:hover { background: var(--slate-l); }
.btn-glass { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-line { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header: STM's own treatment, a black fade over the film, solid STM slate once scrolled */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: 80px; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--white); background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 100%); transition: background-color .35s, height .35s; }
.nav.solid, .nav.open { height: 68px; background: var(--slate); box-shadow: 0 1px 0 var(--line-d); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; transition: opacity .3s; }
.brand img { width: 84px; height: auto; }
.brand-who { display: flex; flex-direction: column; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .3); line-height: 1.25; white-space: nowrap; }
.brand-who b { font-size: 16px; }
.brand-who small { font-family: var(--lat); font-size: 12px; letter-spacing: .5px; opacity: .75; }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.links a { text-decoration: none; opacity: .88; }
.links a:hover { opacity: 1; }
.links-cta { display: none; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; color: var(--white); text-decoration: none; font-family: var(--lat); font-size: 14px; font-weight: 600; letter-spacing: 1px; transition: opacity .3s; }
.lang:hover { background: rgba(255, 255, 255, .12); }
.nav-wa { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; background: var(--wa); }
.nav-wa:hover { background: #1ebe5b; }
.nav-wa .wa-ico { width: 26px; height: 26px; fill: var(--white); }
.burger { display: none; position: relative; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(28, 34, 44, .35); color: var(--white); cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; transition: transform .3s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: 96px; display: flex; align-items: flex-end; overflow: hidden; background: var(--slate); color: var(--white); }
.hero-media { position: absolute; inset: 0; transform-origin: 50% 30%; will-change: transform; }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media picture { position: absolute; inset: 0; }
/* the film sits over its poster image and fades in once it is really playing */
video.hero-v { opacity: 0; transition: opacity .8s; }
video.hero-v.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20, 24, 31, .6) 0%, rgba(20, 24, 31, 0) 22%),
  linear-gradient(270deg, rgba(20, 24, 31, .55) 0%, rgba(20, 24, 31, 0) 60%),
  linear-gradient(0deg, rgba(20, 24, 31, .92) 0%, rgba(20, 24, 31, .45) 36%, rgba(20, 24, 31, 0) 66%); }
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut) clamp(80px, 12vh, 120px); display: grid; gap: 18px; justify-items: start; }
.hero-mark { display: flex; align-items: center; gap: 18px; }
.hero-lvc { width: clamp(110px, 9vw, 150px); height: auto; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .4); }
.hero h1 { font-size: clamp(42px, min(6vw, 9.5vh), 88px); line-height: 1.08; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { max-width: 640px; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .9); }
.offer-line { display: inline-block; padding: 12px 22px; border: 1px solid rgba(240, 163, 111, .6); border-radius: 999px; background: rgba(20, 24, 31, .5); backdrop-filter: blur(8px); font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; line-height: 1.4; }
.hero-scroll { position: absolute; z-index: 2; left: var(--gut); bottom: 34px; width: 28px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 16px; }
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: nudge 1.8s ease-in-out infinite; }

/* ready to move */
.ready { position: relative; z-index: 2; padding: clamp(90px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); background: var(--cream); }
.ready-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ready-film { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 9 / 16; margin: 0; overflow: hidden; border-radius: 26px; background: var(--slate); box-shadow: 0 40px 80px rgba(28, 34, 44, .25); }
.ready-film video { width: 100%; height: 100%; object-fit: cover; }
.ready-film figcaption { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(28, 34, 44, .55); color: var(--white); font-family: var(--lat); font-size: 12px; letter-spacing: 1.5px; }
.ready-copy { display: grid; gap: 20px; justify-items: start; }
.ready .h2 { color: var(--slate); }
.proof { width: 100%; margin: 6px 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--line-l); counter-reset: p; }
.proof li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line-l); counter-increment: p; }
.proof li::before { content: '0' counter(p); grid-row: span 2; padding-top: 4px; font-family: var(--lat); font-size: 15px; font-weight: 500; color: var(--lvc-d); }
.proof b { font-size: 20px; color: var(--slate); }
.proof span { color: var(--muted); }
.strip-title { margin: clamp(56px, 7vw, 90px) 0 18px; font-size: 15px; font-weight: 700; color: var(--lvc-d); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.strip figure { margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.strip figure:hover img { transform: scale(1.06); }

/* numbers */
.numbers { position: relative; z-index: 2; padding: clamp(60px, 8vw, 100px) 0; background: var(--lvc); color: var(--white); }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.n { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .5); }
.n b { font-family: var(--lat); font-size: clamp(56px, 6.4vw, 96px); font-weight: 400; line-height: 1; }
.n span { max-width: 220px; font-size: 15px; font-weight: 600; }

/* classic / modern chapters */
.ch { position: relative; z-index: 2; background: var(--slate); color: var(--white); }
.ch-pin { position: relative; height: 100vh; height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.ch-media { position: absolute; inset: 0; clip-path: inset(0 round 0); will-change: clip-path; }
.ch-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ch-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 24, 31, .9) 0%, rgba(20, 24, 31, .5) 34%, rgba(20, 24, 31, 0) 62%), linear-gradient(270deg, rgba(20, 24, 31, .4) 0%, rgba(20, 24, 31, 0) 50%); }
.ch-copy { position: relative; z-index: 2; width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 9vh, 96px); display: grid; gap: 14px; justify-items: start; }
.ch .eyebrow { color: rgba(255, 255, 255, .85); }
.ch-title { font-size: clamp(64px, 11vw, 168px); line-height: .95; }

/* scenes that hold while the page scrolls use sticky, which stays correct when a phone zooms */
.scenes .ch { height: 210svh; }
.scenes .ch-pin { position: sticky; top: 0; }
.unit-scene .explorer { position: sticky; top: 76px; }

/* units on the masterplan: the plan takes the full page width, the unit card sits under it */
.units { position: relative; z-index: 2; padding: clamp(90px, 10vw, 140px) 0; background: var(--sand); }
.units > .wrap { max-width: 1680px; padding: 0 clamp(16px, 2.2vw, 40px); }
.units-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
.units .h2 { margin-bottom: 14px; color: var(--slate); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line-l); border-radius: 999px; background: var(--white); }
.tabs button { min-width: 130px; height: 48px; border: 0; border-radius: 999px; background: transparent; color: var(--slate); font-family: var(--lat); font-size: 17px; font-weight: 500; letter-spacing: .5px; cursor: pointer; transition: background-color .3s, color .3s; }
.tabs button.on { background: var(--lvc); color: var(--white); }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; background: var(--sand); }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.type { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-l); border-radius: 999px; background: var(--white); color: var(--slate); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.type i { width: 14px; height: 14px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 4px; background: var(--c); }
.type.on { background: var(--lvc); color: var(--white); border-color: var(--lvc); }
.board-wrap { min-width: 0; }
.scene-bar { height: 3px; margin-bottom: 10px; overflow: hidden; border-radius: 2px; background: var(--line-l); }
.scene-bar i { display: block; height: 100%; background: var(--lvc); transform-origin: right; transform: scaleX(0); }
html:not(.unit-scene) .scene-bar { display: none; }
.board { position: relative; overflow: hidden; border-radius: var(--r); background: var(--slate); aspect-ratio: 2400 / 840; }
.board.p5 { aspect-ratio: 2400 / 1222; }
.unit-scene .board { aspect-ratio: auto; height: clamp(260px, calc(100svh - 420px), 720px); }
.zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1s cubic-bezier(.6, 0, .2, 1); will-change: transform; }
.zoom img { width: 100%; height: 100%; object-fit: contain; transition: filter .6s; }
.board.dim .zoom img { filter: brightness(.38) saturate(.35); }
#planMarks { position: absolute; inset: 0; width: 100%; height: 100%; }
#planMarks rect { opacity: 0; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; rx: 6; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .85)); transform-box: fill-box; transform-origin: center; animation: mark .5s cubic-bezier(.2, .7, .2, 1) forwards; }
.board-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
/* all the cards share one cell, so the deck keeps the height of the tallest and nothing below jumps */
.uc-deck { display: grid; }
.unit-card { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto 300px; grid-template-areas: "body price media"; overflow: hidden; border: 1px solid var(--line-l); border-radius: var(--r); background: var(--cream); box-shadow: 0 18px 40px -28px rgba(28, 34, 44, .45); transition: transform .6s cubic-bezier(.2, .75, .2, 1), opacity .28s, visibility 0s .6s; }
.unit-card.on { transition-duration: .6s, .45s, 0s; transition-delay: .2s, .2s, 0s; }
.unit-card.past { opacity: 0; visibility: hidden; transform: translateY(-34px) scale(.95); pointer-events: none; }
.unit-card.next { opacity: 0; visibility: hidden; transform: translateY(54px); pointer-events: none; }
.unit-card.deal { animation: deal .6s cubic-bezier(.2, .75, .2, 1); }
@keyframes deal { from { opacity: 0; transform: translateY(54px); } }
.uc-body { grid-area: body; }
.uc-media { grid-area: media; }
.uc-price { grid-area: price; display: grid; align-content: center; justify-items: start; gap: 2px; min-width: 210px; padding: 24px 32px; border-inline-start: 1px solid var(--line-l); }
.uc-price span { font-size: 14px; font-weight: 700; color: var(--lvc-d); }
.uc-price strong { font-size: 22px; font-weight: 700; color: var(--slate); white-space: nowrap; }
.uc-price strong bdi { font-family: var(--lat); font-size: 48px; font-weight: 400; line-height: 1.05; }
.uc-body { display: grid; align-content: center; gap: 4px; padding: 24px 28px; }
.uc-code { justify-self: start; font-family: var(--lat); font-size: 13px; letter-spacing: 2.5px; color: var(--lvc-d); }
.uc-body h3 { font-size: 28px; color: var(--slate); }
.uc-area { font-size: 16.5px; font-weight: 600; }
.uc-plan { font-size: 15px; color: var(--muted); }
.uc-media { position: relative; min-height: 190px; background: var(--slate); }
.uc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.uc-media img.on { opacity: 1; }
.uc-switch { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(28, 34, 44, .72); backdrop-filter: blur(6px); }
.uc-switch button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--white); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.uc-switch button.on { background: var(--white); color: var(--slate); }

/* payment */
.pay { position: relative; z-index: 2; padding: clamp(100px, 11vw, 160px) 0; overflow: hidden; background: var(--slate); color: var(--white); }
.pay::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(28, 34, 44, .82); }
.pay-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.pay-inner { position: relative; z-index: 2; }
.pay-head { margin-bottom: 52px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plan { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-d); border-radius: 24px; background: rgba(20, 24, 31, .55); backdrop-filter: blur(6px); }
.plan header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h3 { font-size: clamp(20px, 2vw, 26px); }
.plan header span { font-size: 14px; color: var(--mute-d); }
.plan-nums { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(28px, 4vw, 60px); }
.plan-nums div { display: flex; flex-direction: column; }
.plan-nums span { margin-top: 10px; font-size: 16px; }
.big { font-family: var(--lat); font-size: clamp(76px, 8vw, 118px); font-weight: 300; line-height: .9; }
.years { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.years i { height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .25); transform-origin: right; }
.years i.down { background: var(--amber); }
.years-lbl { display: flex; justify-content: space-between; margin-top: -12px; font-size: 13px; color: var(--mute-d); }
.pay-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line-d); }
.pay-foot p { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; }

/* location */
.location { position: relative; z-index: 2; padding: clamp(90px, 10vw, 140px) 0; background: var(--slate); color: var(--white); }
.loc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc-lead { margin: 14px 0 34px; max-width: 22ch; font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; line-height: 1.5; }
html[lang="en"] .loc-lead { max-width: 24ch; font-family: var(--en); font-weight: 500; }
.map-box { overflow: hidden; border: 1px solid var(--line-d); border-radius: var(--r); background: var(--slate-d); }

/* the map itself: drawn from Nawy compound outlines and OpenStreetMap roads by _sources/geo/buildmap.js */
.map { display: block; width: 100%; height: auto; overflow: hidden; direction: ltr; background: #3a3428; }
/* the satellite photo is toned down a little so the outlines and labels read on top of it */
.map .veil { fill: rgba(16, 20, 26, .28); }
.map-m { display: none; }
.map text { font-family: var(--ar); font-weight: 700; fill: #fff; }
.map .rd { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .rd.ring { stroke: #fff; stroke-width: 5; }
.map .rd.mbz { stroke: var(--amber); stroke-width: 5; }
.map .zone { fill: rgba(240, 222, 184, .1); stroke: #f0deb8; stroke-width: 2.5; stroke-linejoin: round; }
.map .lvc { fill: rgba(255, 204, 0, .38); stroke: var(--yellow); stroke-width: 3.5; stroke-linejoin: round; }
.map .m-lines line { stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-dasharray: 7 6; animation: run 1.2s linear infinite; }
.map .pin circle { fill: #fff; }
.map .tag rect { fill: #0f1318; stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
.map .tag .km { fill: var(--amber); }
.map .ring-t rect { fill: #fff; stroke: none; }
.map .ring-t text { fill: var(--slate); }
.map .mbz-t rect { fill: var(--amber); stroke: none; }
.map .mbz-t text, .map .home-t text { fill: #141920; font-weight: 800; }
.map .home-t rect { fill: var(--yellow); stroke: #fff; stroke-width: 2; }
.map .home .halo { fill: rgba(255, 204, 0, .3); }
.map .home .pulse { fill: none; stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map .home .dot { fill: var(--slate); stroke: #fff; stroke-width: 4; }
.map .scale line { stroke: #fff; stroke-width: 2; }

/* contact: the first version's single card, centred on the photo */
.contact { position: relative; z-index: 2; display: grid; place-items: center; padding: clamp(90px, 10vw, 140px) var(--gut); overflow: hidden; background: var(--slate); }
.contact::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(20, 24, 31, .35); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-card { position: relative; z-index: 2; width: min(560px, 100%); padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--cream); color: var(--text); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); }
.contact-card .eyebrow { color: var(--lvc); }
.contact-card h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--slate); }
.contact-lead { margin: 12px 0 24px; color: var(--muted); }
/* the short note that replaces the form once the interest is registered */
.contact-card .form-ok { padding: 18px 20px; border-radius: 16px; background: var(--sand); text-align: center; }
.contact-card .form-ok h3 { margin-bottom: 4px; font-size: 22px; }
.contact-card .form-ok p { margin: 0; }
/* Hatem's line: name and role, then the number on its own line so it never breaks */
.contact-sign { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-l); font-size: 14px; color: var(--muted); text-align: center; }
.contact-sign a { color: var(--slate); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* forms */
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--cream); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.form-card h3, .pop-body h3, .sheet-card h3 { margin-bottom: 18px; font-size: 24px; color: var(--slate); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.field input, .field select { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-l); border-radius: 14px; background: var(--mist); color: var(--text); font-size: 16px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--slate); background: var(--white); box-shadow: 0 0 0 3px rgba(28, 34, 44, .18); }
.phone-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.phone-row input { text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.chips legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-l); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 700; transition: background-color .2s, color .2s; }
.chips input:checked + span { background: var(--lvc); color: var(--white); border-color: var(--lvc); }
.chips input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
.form-err { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #a3291f; }
.form-ok h3 { margin-bottom: 10px; font-size: 26px; }
.form-ok p { margin-bottom: 20px; color: var(--muted); }

/* footer */
.foot { position: relative; z-index: 2; padding: 40px 0 110px; background: var(--slate-d); color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.foot a { color: inherit; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-logos { display: flex; align-items: center; gap: 18px; }
.foot-logos img:first-child { width: 72px; height: auto; }
.foot-logos img:last-child { width: 96px; height: auto; }
.foot-logos span { width: 1px; height: 30px; background: var(--line-d); }

/* floating WhatsApp, number sheet, popup */
.fab { position: fixed; left: 22px; bottom: 22px; z-index: 55; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wa); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .35s, transform .35s; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab .wa-ico { width: 30px; height: 30px; fill: var(--white); }
.sheet, .pop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 24, 31, .7); animation: fade .25s ease; }
.sheet-card { position: relative; width: min(440px, 100%); padding: 30px 26px 22px; border-radius: 24px; background: var(--cream); color: var(--text); }
.sheet-card > form > p, .pop-body > form > p { margin: -8px 0 18px; font-size: 15px; color: var(--muted); }
.skip { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.pop-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(880px, 100%); max-height: calc(100svh - 40px); overflow: auto; border-radius: 24px; background: var(--cream); color: var(--text); }
.pop-img { width: 100%; height: 100%; object-fit: cover; }
.pop-body { padding: 36px 32px; }
.x { position: absolute; top: 14px; left: 14px; z-index: 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(28, 34, 44, .8); color: var(--white); cursor: pointer; }
.x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

@keyframes nudge { 50% { transform: translateY(12px); opacity: .3; } }
@keyframes mark { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
@keyframes run { to { stroke-dashoffset: -20; } }
@keyframes fade { from { opacity: 0; } }

/* tablet */
@media (max-width: 1100px) {
  .links { gap: 18px; font-size: 14px; }
  .unit-card { grid-template-columns: minmax(0, 1fr) auto 240px; }
  .uc-price { min-width: 0; padding: 20px 24px; }
  .uc-price strong bdi { font-size: 40px; }
}

@media (max-width: 960px) {
  .nav { height: 68px; }
  .burger { display: block; }
  .links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: 6px var(--gut) 22px; background: var(--slate); font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .links-cta { display: block; border-bottom: 0 !important; font-weight: 800; }
  .nav.open .links { opacity: 1; visibility: visible; transform: none; }
  .ready-grid, .loc-grid, .plans, .pop-card { grid-template-columns: minmax(0, 1fr); }
  .ready-film { width: min(78%, 340px); }
  .num-grid, .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid { gap: 28px 18px; }
  .plans { gap: 16px; }
  .pop-img { height: 150px; }
  .pop-body { padding: 24px 20px; }
}

/* phone */
@media (max-width: 760px) {
  /* phones: the photo takes the top of the screen at a near portrait ratio so the villas stay whole,
     the title sits under it on the dark background */
  .ch-media { top: 68px; bottom: auto; height: 60svh; }
  .ch-media .ch-shade, html[lang="en"] .ch-media .ch-shade { background: linear-gradient(0deg, var(--slate) 0%, rgba(28, 34, 44, 0) 28%); }
  .ch-copy { padding-bottom: clamp(36px, 7vh, 64px); }
  html { scroll-padding-top: 64px; }
  .nav { gap: 8px; }
  .nav-end { gap: 8px; }
  .brand { gap: 10px; }
  .brand img { width: 60px; }
  .brand-who { padding-right: 10px; }
  .brand-who b { font-size: 14px; }
  .brand-who small { font-size: 11px; letter-spacing: 0; }
  .lang, .nav-wa, .burger { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; height: 100svh; padding-top: 0; }
  .hero-media { position: relative; inset: auto; grid-row: 1; min-height: 0; }
  .hero-shade { background: linear-gradient(0deg, rgba(28, 34, 44, 1) 0%, rgba(28, 34, 44, 0) 22%); }
  .hero-copy { grid-row: 2; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 12px; padding: 4px var(--gut) 26px; background: var(--slate); }
  .hero-copy > * { min-width: 0; }
  .hero-mark, .hero .lead, .hero-scroll { display: none; }
  .hero h1 { font-size: 34px; }
  .offer-line { width: 100%; padding: 11px 16px; text-align: center; font-size: 17px; }
  .hero .cta-row { width: 100%; flex-wrap: nowrap; }
  .hero .btn { padding: 0 14px; font-size: 15px; line-height: 1.25; text-align: center; white-space: normal; }
  .hero .btn-white { flex: 1; }
  .hero .btn-glass { flex: none; padding: 0 16px; }

  .proof b { font-size: 18px; }
  .strip { gap: 10px; }
  .n span { font-size: 13.5px; }

  .units > .wrap { padding: 0 var(--gut); }
  .tabs { width: 100%; }
  .tabs button { flex: 1; min-width: 0; }
  .types { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .types::-webkit-scrollbar { display: none; }
  .type { flex: none; }
  .scenes .ch { height: 190svh; }
  .board, .board.p5 { aspect-ratio: 4 / 3; }
  .unit-scene .board { height: clamp(220px, calc(100svh - 450px), 440px); }
  /* the card is a row on phones: text, then a small photo of the type on the left */
  .unit-card { grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "body media" "price media"; }
  .uc-body { padding-bottom: 6px; }
  .uc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; padding: 0 16px 14px; border: 0; }
  .uc-price strong bdi { font-size: 26px; }
  .uc-price strong { font-size: 15px; }
  .uc-price span { font-size: 12.5px; }
  .uc-body { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 16px; }
  .uc-body h3 { font-size: 20px; }
  .uc-area { font-size: 14.5px; }
  .uc-plan { font-size: 13px; }
  .uc-code { font-size: 11px; letter-spacing: 1.5px; }
  .uc-media { min-height: 0; }
  .uc-switch { display: none; }

  .map { display: none; }
  .map-m { display: block; }
  .scenes .map-box { position: sticky; top: 76px; }
  .pay-foot .btn { flex: 1; }
  .fab { left: 16px; bottom: 16px; width: 56px; height: 56px; }
  /* the floating button would cover the unit photo while the scene holds */
  .in-units .fab { opacity: 0; pointer-events: none; }
}

/* English page under /en/: same design, read left to right */
html[lang="en"] body { font-family: var(--en); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 600; letter-spacing: -.01em; }
html[lang="en"] .brand-who { padding-right: 0; border-right: 0; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); }
html[lang="en"] .hero h1 { font-size: clamp(42px, min(5.6vw, 9vh), 84px); }
html[lang="en"] .hero-lvc { padding-left: 0; border-left: 0; padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .4); }
html[lang="en"] .hero-shade { background:
  linear-gradient(180deg, rgba(20, 24, 31, .6) 0%, rgba(20, 24, 31, 0) 22%),
  linear-gradient(90deg, rgba(20, 24, 31, .55) 0%, rgba(20, 24, 31, 0) 60%),
  linear-gradient(0deg, rgba(20, 24, 31, .92) 0%, rgba(20, 24, 31, .45) 36%, rgba(20, 24, 31, 0) 66%); }
html[lang="en"] .hero-scroll { left: auto; right: var(--gut); }
html[lang="en"] .ch-title { font-weight: 600; letter-spacing: -.02em; }
html[lang="en"] .ch-shade { background: linear-gradient(0deg, rgba(20, 24, 31, .9) 0%, rgba(20, 24, 31, .5) 34%, rgba(20, 24, 31, 0) 62%), linear-gradient(90deg, rgba(20, 24, 31, .4) 0%, rgba(20, 24, 31, 0) 50%); }
html[lang="en"] .proof li::before { padding-top: 6px; }
html[lang="en"] .scene-bar i, html[lang="en"] .years i { transform-origin: left; }
html[lang="en"] .uc-switch { right: auto; left: 12px; }
html[lang="en"] .phone-row { grid-template-columns: 104px minmax(0, 1fr); }
html[lang="en"] .phone-row select { order: -1; }
html[lang="en"] .x { left: auto; right: 14px; }
html[lang="en"] .fab { left: auto; right: 22px; }
@media (max-width: 960px) {
  html[lang="en"] .hero-shade { background: linear-gradient(180deg, rgba(20, 24, 31, .6) 0%, rgba(20, 24, 31, 0) 22%), linear-gradient(0deg, rgba(20, 24, 31, .92) 0%, rgba(20, 24, 31, .45) 36%, rgba(20, 24, 31, 0) 66%); }
}
@media (max-width: 760px) {
  html[lang="en"] .brand-who { padding-left: 10px; }
  html[lang="en"] .hero-shade { background: linear-gradient(0deg, rgba(28, 34, 44, 1) 0%, rgba(28, 34, 44, 0) 22%); }
  html[lang="en"] .hero h1 { font-size: 32px; }
  html[lang="en"] .fab { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* first-version touches: peach labels on dark sections, serif numerals centred over their rule */
.pay .eyebrow, .location .eyebrow { color: var(--peach); }
.n { align-items: center; text-align: center; border-top-color: rgba(255, 255, 255, .45); }
.n span { margin: 0 auto; }
.n b, .big { font-weight: 400; }
.uc-code { color: var(--lvc); }
.nav.solid { background: var(--slate); box-shadow: 0 1px 0 rgba(240, 163, 111, .25); }
/* white WhatsApp mark on the bronze buttons, the green one clashes */
.btn-white .wa-ico, .btn-slate .wa-ico { fill: var(--white); }

/* Hatem's name sits in the hero and the contact section only, so the scrolled bar drops it */
.brand-who { transition: opacity .3s; }
.nav.solid .brand-who { opacity: 0; visibility: hidden; }



