/* LUXEDAR Riyadh — tokens mirror DESIGN.md */
:root {
  /* sunset sky (sampled from the reference frames) */
  --sky-0: #3f55a6; --sky-1: #4f61ad; --sky-2: #6f75ad; --sky-3: #9087b5; --sky-4: #ab96bb; --sky-5: #bba4bc;
  --sky-6: #cdabbb; --sky-7: #ddb5b3; --sky-8: #eec0a6; --sky-9: #f2c090; --sky-10: #f7bb7c; --sky-11: #f8af65;
  --sky-12: #f09e53; --sky-13: #e88f44; --sky-14: #e0873e;
  /* room / sections */
  --navy-950: #020c24; --navy-900: #031533; --navy-800: #06204f; --navy-700: #0a2a63; --navy-600: #123a80;
  --led: #2f6bff; --sunset: #f2a65a; --sunset-soft: #f7c08a;
  --white: #ffffff; --ink: #0d1b3a; --ink-muted: #5d6680; --line: rgba(255, 255, 255, .16);
  --text-on-dark: rgba(255, 255, 255, .92); --muted-on-dark: rgba(255, 255, 255, .72);
  --danger: #ff8a7a;
  /* type */
  --f-ui: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-card: "Poppins", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-script: "Great Vibes", cursive;
  --f-wide: "Anybody", sans-serif;
  /* radius / motion */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-full: 999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* frame (set by js): 1440x1040 design frame, cover-scaled */
  --k: 1; --fx: 0px; --fy: 0px;
}
html[lang="ar"] {
  --f-ui: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --f-card: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
  --f-script: "Aref Ruqaa", serif;
  --f-wide: "Alexandria", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy-900); color: var(--text-on-dark); font: 400 16px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { font-size: 17px; line-height: 1.8; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sunset-soft); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ================= NAV (fixed, 1440 design px) ================= */
.nav { position: fixed; z-index: 50; top: 0; inset-inline: 0; height: 200px; padding: 36px 102px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; pointer-events: none; }
.nav > * { pointer-events: auto; }
.logo { justify-self: start; display: inline-flex; align-items: center; height: 50px; text-decoration: none; color: var(--white); font: 400 19px/1 var(--f-ui); letter-spacing: .015em; direction: ltr; }
.logo-a { font-weight: 400; opacity: .92; }
.logo-b { font-weight: 700; }
.nav-pill { display: flex; align-items: center; gap: 2px; height: 50px; padding: 0 6px; border-radius: var(--r-full); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.nav-pill a { display: grid; place-items: center; height: 38px; padding: 0 18px; border-radius: var(--r-full); text-decoration: none; font: 500 14px/1 var(--f-ui); color: var(--white); transition: background-color .2s, color .2s; white-space: nowrap; }
.nav-pill a:hover { background: rgba(255, 255, 255, .14); }
.nav-pill a.is-active { background: var(--white); color: var(--navy-800); padding: 0 22px; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 30px; height: 50px; }
.lang { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 2px; color: var(--white); font: 500 14px/1 var(--f-ui); min-height: 44px; }
.lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn-signup { height: 40px; padding: 0 22px; border-radius: var(--r-full); border: 0; background: var(--white); color: var(--navy-800); font: 500 14px/1 var(--f-ui); transition: transform .2s var(--ease-out), background-color .2s; white-space: nowrap; }
.btn-signup:hover { background: #fff3e6; }
.btn-signup:active { transform: scale(.97); }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); position: relative; }
.burger span { position: absolute; inset-inline: 13px; height: 1.5px; background: var(--white); transition: transform .25s var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 49; inset: 0; padding: 120px 24px 32px; background: rgba(3, 21, 51, .96); display: flex; flex-direction: column; gap: 8px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font: 500 28px/1.3 var(--f-ui); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-signup { margin-top: 24px; height: 52px; font-size: 16px; }

/* ================= SCENE ================= */
/* pre-intro state (html.intro is set inline in <head>, removed when the GSAP intro starts) */
.intro .nav, .intro .word-layer, .intro .invest-layer, .intro .blocks-layer { opacity: 0; }
.intro #skyline, .intro #ground { visibility: hidden; }   /* the reel opens on sky + tower only */
.intro #viewIn { transform: scale(1.4); }
.scene { position: relative; height: calc(100vh + 350vh); height: calc(100dvh + 350dvh); background: var(--navy-950); }
.scene-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.view, .view-in, .room { position: absolute; inset: 0; }
.view-in { transform-origin: calc(var(--fx) + 720px * var(--k)) calc(var(--fy) + 160px * var(--k)); will-change: transform; }
#roomCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.src-only { display: none; }
.sky, .stage-img, .pcard, .word-layer, .invest-layer { will-change: transform; }
#heroBL, #heroBR { will-change: transform, opacity; }
.view { transform-origin: calc(var(--fx) + 720px * var(--k)) calc(var(--fy) + 721px * var(--k)); will-change: transform; }
.room { opacity: 0; pointer-events: none; will-change: opacity; }
.fb { position: absolute; left: var(--fx); top: var(--fy); width: calc(1440px * var(--k)); height: calc(1040px * var(--k)); container-type: size; }
.fb > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ground-fb::after { content: ""; position: absolute; left: -33.3333%; width: 166.6667%; top: 99.8%; height: 70%; background: linear-gradient(#452f18, #24180e 45%, #120c08); }   /* ground continues below the frame when the view shrinks into the window */
.intro .ground-fb::after { visibility: hidden; }
.fb > img.man { inset: auto; left: 48.403%; top: 64.423%; width: 5.278%; height: 19.038%; }
.stage-img { position: absolute; top: 0; right: auto !important; left: -33.3333% !important; width: 166.6667% !important; height: 100%; max-width: none; user-select: none; }
/* plates cropped to their content (frame px in --x/--y/--w/--h): small GPU layers, nothing empty to rasterise when the view zooms out */
.stage-img.crop { left: calc(var(--x) / 1440 * 100%) !important; top: calc(var(--y) / 1040 * 100%); width: calc(var(--w) / 1440 * 100%) !important; height: calc(var(--h) / 1040 * 100%); }
.sky { left: calc(var(--fx) - 480px * var(--k)); width: calc(2400px * var(--k)); top: calc(var(--fy) - 300px * var(--k)); height: calc(1340px * var(--k)); transform-origin: 50% 89.78%;
  background: linear-gradient(180deg, var(--sky-0) 0%, #5867af 23.1%, var(--sky-2) 28.3%, var(--sky-3) 33.3%, var(--sky-4) 38.5%, var(--sky-5) 43.6%, var(--sky-6) 48.6%, var(--sky-7) 53.7%, var(--sky-8) 58.7%, var(--sky-9) 63.8%, var(--sky-10) 68.9%, var(--sky-11) 73.9%, var(--sky-12) 79.0%, var(--sky-13) 84.1%, var(--sky-14) 100%); }   /* the 300px headroom above the frame keeps deepening upward: it shows while the hero is dropped */

/* city word: wide face, I with slab serifs like the reference */
.word { position: absolute; left: 0; top: 28.7cqh; color: rgba(255, 255, 255, .95); font-family: var(--f-wide); font-stretch: 143%; font-weight: 335; --fs-en: 13.2cqw; font-size: var(--fs-en); line-height: 1; letter-spacing: 0; white-space: nowrap; direction: ltr; }   /* left/top set by js: the Y (or the Arabic kashida) threads the tower's opening */
.word .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.word-ar { display: none; }
.i-serif { position: relative; display: inline-block; width: .837em; margin: 0 .03em; text-align: center; }   /* slab-serif I measured off the reference: 223px bars at a 180px cap */
.i-serif::before, .i-serif::after { content: ""; position: absolute; left: 0; right: 0; height: .064em; background: currentColor; }
.i-serif::before { top: .1012em; } .i-serif::after { top: calc(.7767em - .064em); }
html[lang="ar"] .word-en { display: none; }
html[lang="ar"] .word-ar { display: inline; }
html[lang="ar"] .word { font-family: "Alexandria", sans-serif; font-stretch: 100%; font-weight: 325; letter-spacing: 0; padding: 0; font-size: 14cqw; top: 19.5cqh; line-height: 1.3; direction: rtl; }   /* wght 325: alef 15.6 / kashida 17.3 frame px, matching the EN stems (16.8) */

.hero-title { margin: 0; font-weight: 400; }
.invest { position: absolute; left: 0; width: 94.8cqw; top: 13.46cqh; text-align: center; font: 400 8.55cqw/1 var(--f-script); color: rgba(255, 255, 255, .95); white-space: nowrap; }
html[lang="ar"] .invest { font-size: 5.2cqw; top: 11.3cqh; width: 100cqw; line-height: 1.5; }

.blocks-layer { pointer-events: none; }
.blocks-layer > * { pointer-events: auto; }
.hero-bl { position: absolute; left: 3.82cqw; top: 55cqh; display: flex; align-items: center; gap: 2.1cqw; }
.thumb { position: relative; width: 6.4cqw; height: 8.27cqh; padding: 0; border: 0; border-radius: 1cqw; overflow: hidden; background: #333; box-shadow: 0 6px 18px rgba(80, 40, 10, .25); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.thumb svg { position: absolute; inset: 0; margin: auto; width: 2.5cqw; height: 2.5cqw; fill: var(--white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .3)); }
.thumb:hover img { transform: scale(1.08); }
.bl-text { margin: 0; font: 400 2.2cqw/1.06 var(--f-ui); color: rgba(255, 252, 240, .9); }
.hero-br { position: absolute; left: 70.1cqw; top: 54.6cqh; width: 28.2cqw; margin: 0; font: 400 .84cqw/1.36 var(--f-ui); color: rgba(255, 255, 255, .78); }
html[lang="ar"] .hero-bl { left: auto; right: 3.82cqw; }
html[lang="ar"] .hero-br { left: 1.7cqw; width: 28.2cqw; font-size: .98cqw; line-height: 1.8; }
html[lang="ar"] .bl-text { font-size: 2.1cqw; line-height: 1.35; }

/* floating property cards (room scene) */
.cards-layer { pointer-events: none; }
.pcard { position: absolute; width: 16.95cqw; padding: .97cqw; border-radius: 1.7cqw; background: var(--white); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 8, 30, .35); pointer-events: auto; text-decoration: none; display: block; font-family: var(--f-card); }
.pcard img { width: 100%; height: auto; aspect-ratio: 217 / 161; object-fit: cover; border-radius: 1.05cqw; }
.pc-row { display: flex; align-items: center; gap: .9cqw; margin-top: 1.2cqw; }
.pc-name { flex: 1; min-width: 0; }
.pc-name strong { display: block; font: 600 .78cqw/1.2 var(--f-card); color: #1c2333; white-space: nowrap; }
.pc-name span { display: block; font: 400 .6cqw/1.3 var(--f-card); color: #8c93a4; margin-top: .2cqw; white-space: nowrap; }
.pc-price { padding-inline-start: .8cqw; border-inline-start: 1px solid #e3e6ee; font: 500 .8cqw/1 var(--f-card); color: #4a5470; white-space: nowrap; }
.pc-feat { display: flex; gap: .7cqw; margin-top: 1.05cqw; font: 400 .5cqw/1 var(--f-card); color: #9aa1b2; }
.pc-feat span { display: inline-flex; align-items: center; gap: .25cqw; white-space: nowrap; }
.pc-feat span::before { content: ""; width: .3cqw; height: .3cqw; border-radius: 50%; background: #1c2333; }
.pc-1 { left: 7.5cqw; top: 21.25cqh; } .pc-2 { left: 75.95cqw; top: 21.05cqh; }
.pc-3 { left: 18.8cqw; top: 61.6cqh; } .pc-4 { left: 65.2cqw; top: 61.5cqh; }
html[lang="ar"] .pc-name strong { font-size: .86cqw; } html[lang="ar"] .pc-name span { font-size: .72cqw; }

/* ================= SECTIONS ================= */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.wrap { width: min(1236px, 100% - 48px); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; font: 400 30px/1.2 var(--f-script); color: var(--sunset-soft); }
html[lang="ar"] .eyebrow { font-size: 24px; line-height: 1.6; }
.h2 { margin: 0; font: 500 clamp(34px, 4.6vw, 64px)/1.08 var(--f-ui); letter-spacing: -.02em; color: var(--white); max-width: 16ch; text-wrap: balance; }
.h2 em { font: 400 1.3em/0.9 var(--f-script); letter-spacing: 0; color: var(--sunset-soft); }
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
html[lang="ar"] .h2 em { font-size: 1.05em; line-height: 1.2; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted-on-dark); max-width: 54ch; margin: 0; }
html[lang="ar"] .lead { font-size: 19px; line-height: 1.9; }

.about { background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 30%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); margin-top: 48px; align-items: start; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.services li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.svc-ico { width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--sunset-soft); stroke-width: 1.6; }
.services h3 { margin: 0 0 4px; font: 600 19px/1.4 var(--f-ui); color: var(--white); }
.services p { margin: 0; color: var(--muted-on-dark); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.fact { padding: 28px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(242, 166, 90, .14), rgba(47, 107, 255, .08)); border: 1px solid var(--line); display: grid; gap: 8px; }
.fact strong { font: 300 clamp(20px, 1.7vw, 24px)/1.2 var(--f-wide); font-stretch: 130%; color: var(--white); letter-spacing: .02em; }
html[lang="ar"] .fact strong { font-stretch: 100%; letter-spacing: 0; font-weight: 400; line-height: 1.5; }
.fact span { color: var(--muted-on-dark); font-size: 15px; }

.props { background: var(--navy-900); }
.props-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: var(--r-full); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--white); font: 500 14px/1 var(--f-ui); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: rgba(255, 255, 255, .4); }
.chip.is-on { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lcard { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 14px; text-decoration: none; display: block; font-family: var(--f-card); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.lcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 8, 30, .45); }
.lcard .ph { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: #dfe3ec; }
.lcard img { width: 100%; height: 100%; object-fit: cover; }
.thumb img { height: 100%; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 6px 12px; border-radius: var(--r-full); background: rgba(255, 255, 255, .92); font: 500 12px/1 var(--f-card); color: var(--navy-800); }
.lc-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-inline: 4px; }
.lc-row .pc-name strong { font-size: 17px; }
.lc-row .pc-name span { font-size: 13.5px; color: var(--ink-muted); }
.lc-row .pc-price { font-size: 16px; padding-inline-start: 14px; color: var(--navy-800); font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-feat { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 4px 4px; font: 400 13px/1.3 var(--f-card); color: var(--ink-muted); }
.lc-feat span { display: inline-flex; align-items: center; gap: 6px; }
.lc-feat svg { width: 16px; height: 16px; fill: none; stroke: #1c2333; stroke-width: 1.6; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--r-lg); display: grid; gap: 20px; justify-items: center; }
.empty[hidden] { display: none; }
.empty p { margin: 0; color: var(--muted-on-dark); max-width: 46ch; }

.contact { background: radial-gradient(90% 70% at 85% 10%, rgba(242, 166, 90, .16), transparent 60%), var(--navy-800); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .lead { margin-top: 20px; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: var(--text-on-dark); }
.contact-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--sunset-soft); stroke-width: 1.6; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field label { font: 500 14px/1.3 var(--f-ui); color: var(--text-on-dark); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .22); background: rgba(2, 12, 36, .45); color: var(--white); font: 400 16px/1.4 var(--f-ui); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
html[dir="rtl"] .field select { background-position: 16px 22px, 22px 22px; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sunset-soft); box-shadow: 0 0 0 3px rgba(247, 192, 138, .25); }
.phone { display: flex; align-items: stretch; direction: ltr; }
.phone .cc { display: grid; place-items: center; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .22); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.phone input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.err { display: none; margin: 0; font-size: 13.5px; color: var(--danger); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--r-full); border: 0; font: 600 15px/1 var(--f-ui); text-decoration: none; transition: transform .2s var(--ease-out), background-color .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--white); color: var(--navy-800); }
.btn-primary:hover { background: #fff1e2; }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-light { background: rgba(255, 255, 255, .12); color: var(--white); border: 1px solid var(--line); }
.form-note { margin: -6px 0 0; font-size: 13px; color: var(--muted-on-dark); }

.footer { background: var(--navy-950); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo { height: auto; }
.footer p { margin: 0; color: var(--muted-on-dark); font-size: 14px; }
.footer nav { display: flex; gap: 24px; }
.footer .credit { width: 100%; font-size: 12px; opacity: .7; }
.footer .credit a { color: inherit; }
.footer nav a { text-decoration: none; color: var(--muted-on-dark); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: var(--white); }

/* dialogs */
.modal { padding: 0; border: 0; background: transparent; max-width: min(520px, calc(100% - 32px)); width: 100%; color: var(--text-on-dark); }
.modal::backdrop { background: rgba(2, 8, 24, .72); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-card { position: relative; background: var(--navy-800); }
.modal-card h2 { margin: 0; font: 600 26px/1.25 var(--f-ui); color: var(--white); padding-inline-end: 40px; }
.modal-card .lead { font-size: 15.5px; margin-top: -8px; }
.x { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid var(--line); background: rgba(255, 255, 255, .06); display: grid; place-items: center; z-index: 2; }
.x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.modal-video { max-width: min(1080px, calc(100% - 32px)); }
.video-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video-card video { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .nav { padding: 28px 32px 0; }
  .nav-end { gap: 18px; }
}
@media (max-width: 960px) {
  .nav { height: auto; padding: 18px 20px 0; grid-template-columns: 1fr auto; }
  .nav-pill, .nav-end .btn-signup { display: none; }
  .burger { display: block; }
  .nav-end { gap: 6px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* portrait / phones: text + cards live in viewport space, the city stays cover-scaled */
@media (max-aspect-ratio: 1/1) {
  .word-layer, .invest-layer, .blocks-layer, .cards-layer { left: 0; top: 0; width: 100%; height: 100%; }
  .word { --fs-en: 12.8cqw; }
  html[lang="ar"] .word { font-size: 15cqw; }
  .invest { width: 100%; top: 19svh; font-size: 12.5cqw; }
  html[lang="ar"] .invest { top: 14svh; font-size: 9cqw; }
  .hero-bl, html[lang="ar"] .hero-bl { left: 20px; right: auto; top: 57svh; bottom: auto; gap: 14px; }
  html[lang="ar"] .hero-bl { left: auto; right: 20px; }
  .thumb { width: 64px; height: 60px; border-radius: 12px; }
  .thumb svg { width: 22px; height: 22px; }
  .bl-text, html[lang="ar"] .bl-text { font-size: 22px; }
  .hero-br, html[lang="ar"] .hero-br { left: 20px; right: 20px; width: auto; top: calc(57svh + 84px); bottom: auto; font-size: 13.5px; line-height: 1.55; max-width: 460px; text-shadow: 0 1px 12px rgba(10, 6, 20, .45); }
  html[lang="ar"] .hero-br { font-size: 14.5px; line-height: 1.75; margin-inline-start: auto; }
  html[lang="ar"] .pc-name strong { font-size: 3.2cqw; } html[lang="ar"] .pc-name span { font-size: 2.7cqw; }
  .pcard { width: 42cqw; padding: 2.4cqw; border-radius: 4cqw; }
  .pcard img { border-radius: 2.6cqw; }
  .pc-row { margin-top: 2.4cqw; gap: .6cqw; flex-direction: column; align-items: flex-start; }
  .pc-name { width: 100%; }
  .pc-name strong { font-size: 3cqw; } .pc-name span { font-size: 2.5cqw; }
  .pc-price { font-size: 2.8cqw; padding-inline-start: 0; border: 0; }
  .pc-feat { display: none; }
  .pc-1 { left: 4cqw; top: 15svh; } .pc-2 { left: 54cqw; top: 15svh; }
  .pc-3 { left: 4cqw; top: auto; bottom: 6svh; } .pc-4 { left: 54cqw; top: auto; bottom: 6svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
