/* ==========================================================================
   Ghrghar Towers — design system
   Day = limestone (sampled from the facades) · Night = Cairo dusk (from the
   lit Omar Abdul Aziz photo). Brand gold #D3AC81 + charcoal #2B2C2B.
   ========================================================================== */

:root {
  --gold: #D3AC81;
  --gold-soft: #E7CFB0;
  --charcoal: #2B2C2B;
  --amber: #F5B862;

  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --f-ar: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;

  --header-h: 76px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23D3AC81' stroke-width='.8'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3Cpath d='M0 0l12 12M48 0L36 12M0 48l12-12M48 48L36 36'/%3E%3C/g%3E%3C/svg%3E");
}

/* Day: limestone */
:root,
:root[data-theme="day"] {
  --bg: #F1E9DE;
  --bg-2: #E7DACA;
  --surface: #FBF7F1;
  --surface-2: #F6EFE5;
  --ink: #2B2C2B;
  --ink-2: #5F5A52;
  --ink-3: #8C857A;
  --line: rgba(43, 44, 43, .13);
  --line-2: rgba(43, 44, 43, .26);
  --accent: #8A6638;          /* gold that passes contrast on limestone */
  --on-gold: #241F1A;
  --glass: linear-gradient(170deg, #DCE4EA 0%, #B9C6D0 60%, #A9B7C2 100%);
  --glass-lit: radial-gradient(120% 90% at 50% 20%, #FFE2AE 0%, #F5B862 55%, #D98E3B 100%);
  --building: #EADBC6;
  --building-line: #2B2C2B;
  --shadow: 0 30px 60px -30px rgba(60, 40, 15, .35);
  --sky: linear-gradient(180deg, #CFE0EC 0%, #EDE6DA 100%);
  --footer: #232423;
  color-scheme: light;
}

/* Night: Cairo dusk */
:root[data-theme="night"] {
  --bg: #0C1524;
  --bg-2: #101C30;
  --surface: #14223A;
  --surface-2: #192942;
  --ink: #EFE7DA;
  --ink-2: #AAB3C2;
  --ink-3: #7E889A;
  --line: rgba(239, 231, 218, .12);
  --line-2: rgba(239, 231, 218, .24);
  --accent: #E2C29C;
  --on-gold: #1A1408;
  --glass: linear-gradient(170deg, #22324D 0%, #1A2840 100%);
  --glass-lit: radial-gradient(120% 90% at 50% 20%, #FFF0CF 0%, #FFC46B 50%, #E6913A 100%);
  --building: #1B2A44;
  --building-line: #D3AC81;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --sky: linear-gradient(180deg, #050B16 0%, #0F1D33 100%);
  --footer: #060C16;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: clamp(16px, .25vw + 15px, 18px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .8s var(--ease), color .8s var(--ease);
  overflow-x: clip;
}
[lang="ar"] body, html[lang="ar"] body { font-family: var(--f-ar); font-weight: 300; }
html[lang="ar"] { --f-display: var(--f-ar); --f-body: var(--f-ar); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 999px; transition: top .3s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.flip { transform: scaleX(-1); }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display); font-weight: 400; letter-spacing: .01em;
  font-size: clamp(2.1rem, 3.6vw + .8rem, 4.4rem); line-height: 1.06; text-wrap: balance;
}
html[lang="ar"] .display { font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); line-height: 1.2; }
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.3rem); line-height: 1.6; color: var(--ink-2); font-weight: 300; max-width: 46ch; text-wrap: pretty; }
html[lang="ar"] .lead { line-height: 1.9; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 22px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker-line { width: 42px; height: 1px; background: currentColor; transform-origin: inline-start; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section-head .kicker { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* split-text masks */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-in { display: block; }
.js:not(.no-motion) .line-in { transform: translateY(110%); }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; }
.js:not(.no-motion) [data-hero-in], .js:not(.no-motion) [data-reveal] { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: transparent; --fg-btn: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; isolation: isolate; overflow: hidden;
  font-family: var(--f-body); font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--bg-btn); color: var(--fg-btn); transition: color .45s var(--ease), border-color .45s, transform .3s var(--ease);
  white-space: nowrap; will-change: transform;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: .95rem; font-weight: 500; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover .ico:not(.flip-rtl) { transform: translateX(4px); }
.btn--gold { --bg-btn: var(--gold); --fg-btn: var(--on-gold); }
.btn--gold:hover { color: var(--bg); }
.btn--line { border: 1px solid var(--line-2); }
.btn--line:hover { color: var(--bg); border-color: var(--ink); }
.btn--text { min-height: 40px; padding: 0 4px; border-radius: 0; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.btn--text::before { display: none; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .74rem; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, transform .4s var(--ease); }
.icon-btn:hover { background: var(--surface-2); transform: rotate(90deg); }

/* ---------- arch frame (from the towers' arched windows) ---------- */
.arch { border-radius: 100vmax 100vmax 6px 6px; overflow: hidden; position: relative; isolation: isolate; transform: translateZ(0); }
[data-theme="night"] .arch { box-shadow: 0 0 0 1px rgba(211, 172, 129, .55), 0 0 40px -6px rgba(245, 184, 98, .35); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); transition: transform .6s var(--ease), background-color .5s, border-color .5s, color .5s; border-bottom: 1px solid transparent; color: var(--ink); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 38px; height: auto; fill: var(--gold); transition: transform .8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-90deg); }
.logo-type { display: grid; gap: 3px; justify-items: center; }
.logo-word { height: 20px; width: auto; fill: var(--ink); transition: fill .5s; }
.logo-latin { font-family: 'Cinzel', serif; font-size: 7.5px; letter-spacing: .5em; color: var(--accent); text-transform: uppercase; white-space: nowrap; margin-inline-end: -.5em; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 0; }
.main-nav a { position: relative; display: block; margin: 10px 14px; font-size: .9rem; line-height: 1.5; height: 1.5em; overflow: hidden; }
.main-nav a span { position: relative; display: block; transition: transform .5s var(--ease); }
.main-nav a span::after { content: attr(data-hover-text); position: absolute; inset-inline-start: 0; top: 100%; color: var(--accent); }
.main-nav a:hover span { transform: translateY(-100%); }
.main-nav li { position: relative; }
.main-nav li:has([aria-current="page"])::after { content: ''; position: absolute; inset-inline: 14px; bottom: 4px; height: 1px; background: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }
.lang-link { font-size: .92rem; padding: 8px 10px; border-radius: 999px; transition: background .3s; }
.lang-link:hover { background: var(--surface-2); }
.lang-link[lang="ar"] { font-family: var(--f-ar); }
.shortlist-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.shortlist-btn:hover { border-color: var(--gold); }
.shortlist-btn .badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.shortlist-btn.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25); } }

.theme-toggle .tt-track { position: relative; display: block; width: 56px; height: 30px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); transition: background .6s; }
.theme-toggle .tt-thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; transition: transform .6s var(--ease); color: var(--on-gold); }
.theme-toggle .ico { position: absolute; width: 14px; height: 14px; transition: opacity .4s, transform .6s var(--ease); }
[data-theme="night"] .theme-toggle .tt-thumb { transform: translateX(26px); }
[dir="rtl"][data-theme="night"] .theme-toggle .tt-thumb { transform: translateX(-26px); }
.tt-moon, [data-theme="night"] .tt-sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="night"] .tt-moon { opacity: 1; transform: none; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); place-items: center; }
.burger { display: grid; gap: 6px; width: 18px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), width .5s var(--ease); }
.burger i:last-child { width: 60%; }
.menu-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger i:last-child { width: 100%; transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .9s var(--ease-io); }
[dir="rtl"] .mobile-menu { clip-path: circle(0% at 40px 38px); }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
[dir="rtl"] .mobile-menu.is-open { clip-path: circle(150% at 40px 38px); }
.mm-pattern { position: absolute; inset-block: 0; inset-inline-end: 0; width: 64px; background: var(--pattern); opacity: .45; pointer-events: none; }
.mm-links { display: grid; gap: 4px; counter-reset: none; }
.mm-links a { display: block; font-family: var(--f-display); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.25; }
.mm-towers { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-towers a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .9rem; }
.mm-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }

@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .header-tools > .lang-link { display: none; }
  .logo-type { display: none; }
  .header-tools { gap: 8px; }
}

/* ---------- preloader & curtain ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: #111A29; display: grid; place-items: center; color: #F1E9DE; }
.no-preload .preloader { display: none; }
.pl-inner { display: grid; justify-items: center; gap: 26px; }
.pl-mark { width: 110px; fill: transparent; stroke: var(--gold); stroke-width: 1.4; }
.pl-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pl-word { display: grid; justify-items: center; gap: 8px; opacity: 0; }
.pl-wordmark { height: 30px; width: auto; fill: #F1E9DE; }
.pl-latin { font-family: 'Cinzel', serif; letter-spacing: .5em; font-size: .7rem; color: var(--gold); }
.pl-bar { width: 160px; height: 1px; background: rgba(241, 233, 222, .15); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.page-curtain { position: fixed; inset: 0; z-index: 150; background: #111A29; display: grid; place-items: center; pointer-events: none; transform: translateY(100%); }
.curtain-mark { width: 64px; fill: var(--gold); opacity: 0; }
.is-arriving .page-curtain { transform: none; }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 300; display: none; }
.has-cursor .cursor { display: block; }
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--gold); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-gold); opacity: 0; transition: opacity .3s; white-space: nowrap; font-weight: 500; }
html[lang="ar"] .cursor-label { letter-spacing: 0; font-size: .8rem; }
.cursor.is-hover .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(211, 172, 129, .14); }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--header-h) + clamp(24px, 5vh, 64px)); padding-bottom: 40px; display: flex; flex-direction: column; overflow: hidden; }
.hero-pattern { position: absolute; inset-block: 0; inset-inline-start: 0; width: clamp(18px, 3vw, 44px); background: var(--pattern); opacity: .5; border-inline-end: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; }
.hero-copy { display: grid; gap: 28px; align-content: center; }
.hero-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.7rem, 6.2vw, 6.4rem); line-height: .98; letter-spacing: -.005em; }
.hero-title .line:nth-child(2) .line-in { color: var(--accent); font-style: normal; }
html[lang="ar"] .hero-title { font-weight: 500; line-height: 1.25; font-size: clamp(2.5rem, 5.6vw, 5.6rem); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 520px); }
.hero-arch { aspect-ratio: 4 / 5.4; max-height: calc(100svh - var(--header-h) - 200px); min-height: 420px; margin-inline-start: auto; width: 100%; background: #9BA4AF; }
.ha-img { position: absolute; inset: -6% 0; }
.ha-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ha-night { clip-path: circle(0% at 50% 92%); transition: clip-path 1.4s var(--ease-io); }
[data-theme="night"] .ha-night { clip-path: circle(150% at 50% 92%); }
.ha-glow { position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgba(12, 21, 36, .55), transparent); pointer-events: none; }
.cairo-clock { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(251, 247, 241, .9); color: #2B2C2B; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .82rem; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transition: background .6s, color .6s, transform .4s var(--ease); }
[dir="rtl"] .cairo-clock { transform: translateX(50%); padding: 8px 8px 8px 16px; }
.cairo-clock:hover { transform: translateX(-50%) translateY(-3px); }
[dir="rtl"] .cairo-clock:hover { transform: translateX(50%) translateY(-3px); }
[data-theme="night"] .cairo-clock { background: rgba(12, 21, 36, .82); color: #EFE7DA; }
.cc-ico { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--on-gold); }
.cc-ico .ico { position: absolute; width: 16px; height: 16px; transition: opacity .5s, transform .7s var(--ease); }
.cc-moon, [data-theme="night"] .cc-sun { opacity: 0; transform: rotate(-120deg) scale(.5); }
[data-theme="night"] .cc-moon { opacity: 1; transform: none; }
.hero-caption { margin-top: 14px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
html[lang="ar"] .hero-caption { letter-spacing: 0; font-size: .9rem; }
.hero-stats { margin-top: clamp(28px, 4vh, 48px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hero-stats li { padding: 18px 18px 0 0; display: grid; gap: 2px; border-inline-end: 1px solid var(--line); padding-inline: 18px; }
.hero-stats li:first-child { padding-inline-start: 0; }
.hero-stats li:last-child { border: 0; }
.stat-n { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { font-size: .85rem; color: var(--ink-2); }
.scroll-cue { position: absolute; bottom: 26px; inset-inline-end: var(--gutter); display: grid; justify-items: center; gap: 10px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); writing-mode: vertical-rl; }
html[lang="ar"] .scroll-cue { writing-mode: horizontal-tb; letter-spacing: 0; font-size: .8rem; }
.scroll-cue i { display: block; width: 1px; height: 56px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; width: min(100%, 460px); }
  .hero-arch { min-height: 0; max-height: none; aspect-ratio: 4 / 4.6; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .hero-stats li:nth-child(2n) { border-inline-end: 0; }
  .hero-stats li:nth-child(2n+1) { padding-inline-start: 0; }
  .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; background: var(--surface-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; will-change: transform; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.mq-item { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; white-space: nowrap; }
.mq-en { font-family: 'Cinzel', serif; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.mq-ar { font-family: var(--f-ar); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 500; color: var(--ink); }
.mq-mark { width: 22px; fill: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- intro ---------- */
.intro { padding-block: var(--section); }
.intro-grid { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.intro-text { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.5rem); line-height: 1.35; font-weight: 300; letter-spacing: -.005em; text-wrap: pretty; }
html[lang="ar"] .intro-text { line-height: 1.7; }
.intro-text .w { transition: color .2s; }
.js:not(.no-motion) .intro-text .w { opacity: .16; }
.intro-media { aspect-ratio: 3 / 4; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } .intro-media { max-width: 320px; } }

/* ---------- towers (horizontal) ---------- */
.towers-section { padding-block: var(--section) calc(var(--section) * .6); overflow: hidden; }
.hscroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.is-pinned { overflow: visible; }
.hscroll-track { display: flex; gap: clamp(18px, 2.4vw, 36px); width: max-content; padding-inline: max(0px, calc((100vw - var(--wrap)) / 2)); }
.tower-card { width: clamp(280px, 30vw, 430px); scroll-snap-align: start; flex: none; }
.tc-link { display: grid; gap: 22px; }
.tc-media { aspect-ratio: 4 / 5.2; background: var(--bg-2); }
.tc-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .8s; }
.tower-card:hover .tc-img { transform: scale(1); }
[data-theme="night"] .tc-img { filter: brightness(.82) saturate(.9); }
[data-theme="night"] .tower-card:hover .tc-img { filter: none; }
.tc-body { display: grid; gap: 10px; }
.tower-name { display: grid; gap: 4px; font-weight: 400; }
.tn-en { font-family: 'Cinzel', serif; font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem); line-height: 1.1; }
.tn-ar { font-family: var(--f-ar); font-weight: 500; font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.3rem); line-height: 1.3; }
.tn-sub { font-family: var(--f-ar); font-size: 1rem; color: var(--accent); font-weight: 400; }
.tn-sub--latin { font-family: 'Cinzel', serif; letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; }
.tn--sm .tn-en { font-size: 1.25rem; } .tn--sm .tn-ar { font-size: 1.35rem; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-2); }
.tc-meta span + span::before { content: '·'; margin-inline-end: 16px; color: var(--gold); }
.tc-ground { font-size: .92rem; color: var(--ink-3); }
.tc-cta { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--accent); margin-top: 6px; }
html[lang="ar"] .tc-cta { letter-spacing: 0; font-size: .92rem; }
.tc-cta .ico { transition: transform .5s var(--ease); }
.tower-card:hover .tc-cta .ico:not(.flip-rtl) { transform: translateX(6px); }
.tower-card--more { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; border: 1px dashed var(--line-2); border-radius: 100vmax 100vmax 6px 6px; aspect-ratio: 4 / 5.2; align-self: start; transition: background .5s, border-color .5s; }
.tower-card--more:hover { background: var(--surface-2); border-color: var(--gold); }
.more-n { font-family: var(--f-display); font-size: 4.6rem; line-height: 1; color: var(--accent); }
.hscroll-progress { max-width: var(--wrap); margin: 40px auto 0; padding-inline: var(--gutter); }
.hscroll-progress i { display: block; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: inline-start; }
.hscroll-progress { background: linear-gradient(var(--line), var(--line)) center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }

/* ---------- facade explorer (signature) ---------- */
.facade-section { padding-block: var(--section); background: var(--bg-2); position: relative; }
.facade-tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.facade-tabs::-webkit-scrollbar { display: none; }
.facade-tabs [role="tab"] { display: grid; gap: 2px; padding: 12px 18px 14px; text-align: start; flex: none; opacity: .55; transition: opacity .3s; }
.facade-tabs [role="tab"][aria-selected="true"], .facade-tabs [role="tab"]:hover { opacity: 1; }
.ft-ar { font-family: var(--f-ar); font-size: 1.15rem; font-weight: 500; }
.ft-en { font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.ft-ink { position: absolute; bottom: -1px; height: 2px; background: var(--gold); left: 0; width: 0; transition: transform .6s var(--ease), width .6s var(--ease); }
.facade-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "controls controls" "stage panel"; gap: 28px 40px; }
.facade-controls { grid-area: controls; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips legend { float: inline-start; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-inline-end: 10px; padding: 0; }
html[lang="ar"] .chips legend { letter-spacing: 0; font-size: .85rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .85rem; transition: background .35s, color .35s, border-color .35s; white-space: nowrap; }
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.facade-count { font-size: .9rem; color: var(--ink-2); margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.facade-legend { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .8rem; color: var(--ink-3); }
.lg { width: 22px; height: 12px; border: 1px solid var(--building-line); border-radius: 2px; background: var(--glass-lit); }
.lg--int { border-style: dashed; background: transparent; margin-inline-start: 10px; }
.lg-note { margin-inline-start: 14px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }

.facade-stage { grid-area: stage; position: relative; border-radius: var(--radius); background: var(--sky); padding: clamp(28px, 5vw, 56px) clamp(10px, 3vw, 40px) 0; overflow: hidden; min-height: 520px; display: grid; align-items: end; transition: background .8s; }
.facade-sky { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
[data-theme="night"] .facade-sky { opacity: 1; }
.facade-sky .star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle 3s ease-in-out infinite; }
.facade-sky .star:nth-child(1) { top: 12%; left: 14%; } .facade-sky .star:nth-child(2) { top: 22%; left: 82%; animation-delay: 1s; } .facade-sky .star:nth-child(3) { top: 8%; left: 58%; animation-delay: 2s; }
.moon-dot { position: absolute; top: 5%; right: 5%; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset -5px 2px 0 0 #F3E6C8; transform: rotate(-20deg); }
@keyframes twinkle { 50% { opacity: .2; } }
.building-wrap { position: relative; display: flex; justify-content: center; }
.building-wrap[hidden] { display: none !important; }
.building { width: min(100%, 620px); display: grid; position: relative; color: var(--building-line); }
.roofline { height: 18px; margin-inline: 4%; border: 1.5px solid currentColor; border-bottom: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, currentColor 9px 10.5px) bottom / 100% 60% no-repeat; opacity: .8; }
.roofline--terrace { height: 34px; display: grid; place-items: center; background-size: 100% 40%; }
.roofline--terrace span { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; background: var(--building); padding: 1px 8px; border: 1px solid currentColor; border-radius: 99px; color: var(--ink); }
html[lang="ar"] .roofline--terrace span { letter-spacing: 0; font-size: .75rem; }
.cornice { height: 9px; border: 1.5px solid currentColor; background: var(--gold); margin-inline: -1.5%; }
.storey { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: stretch; background: var(--building); border-inline: 1.5px solid currentColor; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: background .8s; }
.storey-n { display: grid; place-items: center; font-size: .66rem; color: var(--ink-3); border-inline-end: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-variant-numeric: tabular-nums; }
.windows { display: flex; gap: clamp(3px, .6vw, 7px); padding: 7px clamp(5px, 1vw, 10px); min-height: 52px; }
.storey--note .windows { align-items: center; justify-content: center; }
.storey-note { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 6px; border: 1px dashed color-mix(in srgb, currentColor 40%, transparent); border-radius: 4px; width: 100%; text-align: center; }
html[lang="ar"] .storey-note { letter-spacing: 0; font-size: .85rem; }
.storey--ground .storey-n { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; writing-mode: vertical-rl; }
html[lang="ar"] .storey--ground .storey-n { writing-mode: horizontal-tb; font-size: .62rem; }
.shopfront { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 72px; padding: 10px; font-size: .78rem; color: var(--ink-2); text-align: center; background: repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, currentColor 22%, transparent) 46px 47.5px); }
.arch-door { flex: none; width: 30px; height: 50px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 15px 15px 0 0; background: var(--glass-lit); opacity: .9; align-self: end; margin-bottom: -10px; }
.plinth { height: 12px; margin-inline: -4%; background: currentColor; opacity: .85; border-radius: 2px 2px 0 0; }

.win { position: relative; flex: var(--w) 1 0; min-width: 0; height: 38px; border: 1.5px solid currentColor; border-radius: 3px 3px 1px 1px; overflow: hidden; transition: transform .4s var(--ease), opacity .5s, filter .5s; }
.win--3br, .win--vip { border-radius: 999px 999px 1px 1px / 12px 12px 1px 1px; }
.win--interior { border-style: dashed; }
.win-glass { position: absolute; inset: 0; background: var(--glass); transition: opacity .6s; }
.win-glass::before { content: ''; position: absolute; inset: 0; background: var(--glass-lit); opacity: 0; transition: opacity .55s var(--ease); }
.win--exterior::after { content: ''; position: absolute; inset: auto 0 0; height: 8px; border-top: 1px solid currentColor; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 5px); opacity: .6; }
.win-code { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font-size: .62rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; font-family: var(--f-body); direction: ltr; }
.win.is-lit .win-glass::before { opacity: 1; filter: brightness(var(--lum, 1)); }
.win.is-lit .win-code { color: #3a2810; }
.win:hover, .win.is-selected { transform: translateY(-3px); z-index: 2; }
.win:hover .win-code, .win.is-selected .win-code, .win:focus-visible .win-code { opacity: 1; transform: none; }
.win:hover .win-glass::before { opacity: 1; }
.win.is-selected { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 22px 2px rgba(245, 184, 98, .65); }
.win.is-dim { opacity: .3; filter: grayscale(1); }
.win.is-dim .win-glass::before { opacity: 0; }
.win.is-leased .win-glass { background: repeating-linear-gradient(45deg, color-mix(in srgb, currentColor 18%, transparent) 0 2px, transparent 2px 6px), var(--glass); }
.win.is-office .win-glass { background: color-mix(in srgb, currentColor 18%, var(--building)); }
.win.is-leased .win-glass::before, .win.is-office .win-glass::before { opacity: 0 !important; }
[data-theme="night"] .win.is-lit { box-shadow: 0 0 14px -2px rgba(255, 196, 107, .55); }
@media (min-width: 1100px) { .win-code { opacity: .55; transform: none; } }
@media (max-width: 560px) { .windows { min-height: 40px; } .win { height: 28px; } .storey { grid-template-columns: 22px minmax(0, 1fr); } .win-code { display: none; } }

.unit-panel { grid-area: panel; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 420px; display: grid; box-shadow: var(--shadow); transition: background .8s; }
.up-empty { display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; color: var(--ink-2); font-size: .95rem; }
.up-mark { width: 54px; fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .8; }
.up-card { display: grid; gap: 18px; align-content: start; }
.up-tower { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .up-tower { letter-spacing: 0; font-size: .95rem; }
.up-code { font-family: 'Cinzel', serif; font-size: 3.6rem; line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .up-code { text-align: end; }
.up-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.up-dl div { border-top: 1px solid var(--line); padding-top: 8px; }
.up-dl dt { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em; }
html[lang="ar"] .up-dl dt { letter-spacing: 0; font-size: .82rem; }
.up-dl dd { font-size: .98rem; }
.up-actions { display: grid; gap: 10px; }
.up-actions .btn { width: 100%; }
.up-actions [data-up-save].is-saved { border-color: var(--gold); color: var(--accent); }
.up-actions [data-up-save].is-saved .ico { fill: var(--gold); stroke: var(--gold); }
.up-close { display: none; }
.up-plan, .sr-plan { height: 92px; display: grid; gap: 4px; grid-auto-flow: column; grid-template-rows: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 6px; padding: 4px; }
.up-plan i, .sr-plan i { border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; font-size: .6rem; color: var(--ink-3); font-style: normal; text-transform: uppercase; letter-spacing: .08em; overflow: hidden; }
.up-plan i.bed, .sr-plan i.bed { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.up-plan i.big, .sr-plan i.big { grid-row: span 2; }

@media (max-width: 1024px) {
  .facade-body { grid-template-columns: 1fr; grid-template-areas: "controls" "stage" "panel"; }
  .unit-panel { position: fixed; z-index: 70; inset: auto 0 0; top: auto; border-radius: var(--radius) var(--radius) 0 0; min-height: 0; max-height: 78svh; overflow-y: auto; transform: translateY(105%); transition: transform .6s var(--ease); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .unit-panel.is-open { transform: none; }
  .unit-panel .up-empty { display: none; }
  .up-close { display: grid; position: absolute; top: 14px; inset-inline-end: 14px; }
  .up-code { font-size: 2.6rem; }
  .up-plan { display: none; }
  .facade-count { margin-inline-start: 0; flex-basis: 100%; }
}

/* ---------- amenities (bento) ---------- */
.amen-section { padding-block: var(--section); }
.amen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amen { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; overflow: hidden; min-height: 200px; isolation: isolate; transition: border-color .4s, transform .5s var(--ease); }
.amen::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(211, 172, 129, .22), transparent 60%); opacity: 0; transition: opacity .4s; }
.amen:hover::before { opacity: 1; }
.amen:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.amen h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.amen p { color: var(--ink-2); font-size: .95rem; }
.amen-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 10px; transition: transform .7s var(--ease), background .4s; }
.amen:hover .amen-ico { transform: rotate(-12deg) scale(1.08); background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.amen--0 { grid-column: span 2; grid-row: span 2; background: var(--charcoal); color: #F1E9DE; border-color: transparent; justify-content: end; align-content: end; min-height: 420px; }
.amen--0::after { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--pattern) 0 0 / 56px; opacity: .14; }
.amen--0 h3 { font-size: clamp(1.8rem, 2.4vw, 2.8rem); }
.amen--0 p { color: rgba(241, 233, 222, .75); font-size: 1.05rem; max-width: 30ch; }
.amen--0 .amen-ico { border-color: rgba(211, 172, 129, .5); color: var(--gold); width: 64px; height: 64px; }
[data-theme="night"] .amen--0 { background: linear-gradient(160deg, #1d2d4a, #0f1a2d); box-shadow: inset 0 0 0 1px rgba(211, 172, 129, .35); }
@media (max-width: 1024px) { .amen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amen-grid { grid-template-columns: 1fr; } .amen--0 { grid-column: auto; min-height: 300px; } .amen { min-height: 0; } }

/* ---------- stay planner ---------- */
.stay-section { padding-block: var(--section); background: var(--bg-2); }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stay-controls { display: grid; gap: 40px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.range-head label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .range-head label { letter-spacing: 0; font-size: .9rem; }
.range-head output { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 2rem); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to var(--dir-end, right), var(--gold) var(--p), var(--line-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--gold); border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--gold), 0 6px 18px -4px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--gold); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
[dir="rtl"] input[type="range"] { --dir-end: left; }
.range-ticks { display: flex; justify-content: space-between; padding-inline: 12px; margin-top: 4px; }
.range-ticks i { width: 1px; height: 8px; background: var(--line-2); }
.guest-dots { display: flex; gap: 8px; margin-top: 12px; }
.guest-dots i { width: 14px; height: 22px; border-radius: 7px 7px 3px 3px; border: 1px solid var(--line-2); transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s; position: relative; }
.guest-dots i::before { content: ''; position: absolute; top: -9px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1px solid inherit; border: 1px solid var(--line-2); transition: inherit; }
.guest-dots i.on { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.guest-dots i.on::before { background: var(--gold); border-color: var(--gold); }
.guest-dots { padding-top: 10px; }
.stay-result { position: relative; background: var(--charcoal); color: #F1E9DE; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; overflow: hidden; isolation: isolate; }
.stay-result::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 40px; background: var(--pattern); opacity: .25; z-index: -1; }
[data-theme="night"] .stay-result { background: linear-gradient(160deg, #1d2d4a, #0f1a2d); box-shadow: inset 0 0 0 1px rgba(211, 172, 129, .35); }
.sr-kind { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; color: var(--gold); }
.sr-desc { color: rgba(241, 233, 222, .75); max-width: 42ch; }
.sr-match { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding-top: 18px; border-top: 1px solid rgba(241, 233, 222, .15); }
.sr-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 233, 222, .55); }
html[lang="ar"] .sr-label { letter-spacing: 0; font-size: .88rem; }
.sr-type { font-size: 1.5rem; font-weight: 400; }
.sr-free { font-size: .88rem; color: var(--gold); margin-inline-start: auto; }
.sr-plan { border-color: rgba(241, 233, 222, .6); }
.sr-plan i { border-color: rgba(241, 233, 222, .25); color: rgba(241, 233, 222, .55); }
.stay-result .btn--line { border-color: rgba(241, 233, 222, .3); color: #F1E9DE; --fg-btn: #F1E9DE; }
.stay-result .btn::before { background: #F1E9DE; }
.stay-result .btn:hover { color: #2B2C2B; }
@media (max-width: 900px) { .stay-grid { grid-template-columns: 1fr; } }

/* ---------- map ---------- */
.loc-section { padding-block: var(--section); }
.map-block { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; }
.map { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); z-index: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.map-fallback-mark { width: 60px; fill: var(--gold); opacity: .3; }
.map .leaflet-container { background: var(--surface-2); font-family: var(--f-body); }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.35) brightness(1.03) contrast(.92); transition: filter .8s; }
[data-theme="night"] .map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(.82) contrast(.92) saturate(.35); }
.map-pin { width: 46px; height: 56px; display: grid; justify-items: center; }
.map-pin b { width: 42px; height: 42px; border-radius: 50%; background: var(--charcoal); border: 2px solid var(--gold); display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .6); transition: transform .4s var(--ease); }
.map-pin svg { width: 22px; fill: var(--gold); }
.map-pin::after { content: ''; width: 2px; height: 12px; background: var(--gold); }
.map-pin.is-active b, .map-pin:hover b { transform: scale(1.18); background: var(--gold); }
.map-pin.is-active svg, .map-pin:hover svg { fill: var(--charcoal); }
.map .leaflet-popup-content-wrapper { border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); padding: 0; overflow: hidden; }
.map .leaflet-popup-content { margin: 0; width: 240px !important; font-size: .9rem; }
.map .leaflet-popup-tip { background: var(--surface); }
.map .leaflet-popup-content img { width: 100%; height: 120px; object-fit: cover; }
.map .popup-body { padding: 12px 16px 16px; display: grid; gap: 4px; }
.map .popup-body strong { font-family: var(--f-display); font-size: 1.05rem; font-weight: 500; }
.map .popup-body a { color: var(--accent); font-weight: 500; margin-top: 6px; }
.map .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink-3); font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--ink-2); }
.map .leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }
.map-list { display: grid; gap: 10px; align-content: start; }
.map-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .4s, transform .4s var(--ease); }
.map-list li.is-active, .map-list li:hover { border-color: var(--gold); }
.map-item { display: flex; gap: 14px; align-items: flex-start; text-align: start; padding: 16px 16px 6px; width: 100%; }
.mi-pin { color: var(--accent); margin-top: 2px; }
.mi-text { display: grid; gap: 2px; }
.mi-text strong { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.mi-text span { font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.mi-dir { display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px 14px 50px; font-size: .8rem; color: var(--accent); font-weight: 500; }
[dir="rtl"] .mi-dir { padding: 4px 50px 14px 16px; }
.mi-dir .ico { width: 14px; height: 14px; }
.map-block--single { grid-template-columns: 1fr; }
.map-block--single .map { min-height: 420px; }
@media (max-width: 900px) { .map-block { grid-template-columns: 1fr; } .map { min-height: 380px; } }

/* ---------- compare (day/night) ---------- */
.concept-section { padding-block: var(--section); background: var(--bg-2); }
.concept-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.concept-note { margin-top: -40px; }
.compare { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; direction: ltr; user-select: none; touch-action: pan-y; box-shadow: var(--shadow); background: #222; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-layer img { width: 100%; height: 100%; object-fit: cover; }
.cmp-b { clip-path: inset(0 0 0 var(--pos)); }
.cmp-tag { position: absolute; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(12, 21, 36, .65); color: #F1E9DE; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.cmp-tag .ico { width: 14px; height: 14px; color: var(--gold); }
.cmp-tag--a { left: 16px; } .cmp-tag--b { right: 16px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px -6px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.cmp-handle .ico { width: 16px; height: 16px; }
.compare:hover .cmp-handle span { transform: scale(1.08); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-range:focus-visible + .cmp-handle, .compare:focus-within .cmp-handle span { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 900px) { .concept-grid { grid-template-columns: 1fr; } .concept-note { margin-top: -24px; } }

/* ---------- FAQ ---------- */
.faq-section { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem); transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .5s var(--ease), background .4s, color .4s; }
.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.faq-a { overflow: hidden; }
.faq-a p { padding-bottom: 26px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--charcoal); color: #F1E9DE; padding-block: clamp(90px, 12vw, 170px); overflow: hidden; isolation: isolate; text-align: center; }
[data-theme="night"] .cta-band { background: #060C16; }
.cta-pattern { position: absolute; inset: 0; background: var(--pattern) center / 64px; opacity: .08; z-index: -1; mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%); }
.cta-inner { display: grid; justify-items: center; gap: 26px; }
.cta-mark { width: 72px; fill: var(--gold); }
.cta-band .display { max-width: 16ch; }
.cta-band .lead { color: rgba(241, 233, 222, .72); margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--line { border-color: rgba(241, 233, 222, .3); --fg-btn: #F1E9DE; }
.cta-band .btn::before { background: #F1E9DE; }
.cta-band .btn:hover { color: #2B2C2B; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--footer); color: #E9E1D4; padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-pattern { position: absolute; inset-block: 0; inset-inline-start: 0; width: 36px; background: var(--pattern); opacity: .18; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer .logo-word { fill: #F1E9DE; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: rgba(233, 225, 212, .72); max-width: 34ch; }
.site-footer .muted { color: rgba(233, 225, 212, .5); }
.footer-h { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
html[lang="ar"] .footer-h { letter-spacing: 0; font-size: .9rem; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer nav a { color: rgba(233, 225, 212, .8); transition: color .3s; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .btn--line { border-color: rgba(233, 225, 212, .25); --fg-btn: #E9E1D4; margin-top: 16px; }
.site-footer .btn::before { background: var(--gold); }
.site-footer .btn:hover { color: var(--on-gold); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; transition: color .3s; }
.contact-links a:hover { color: var(--gold); }
.contact-links--stack { flex-direction: column; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233, 225, 212, .2); display: grid; place-items: center; transition: background .3s, color .3s; }
.socials a:hover { background: var(--gold); color: var(--on-gold); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(233, 225, 212, .12); font-size: .82rem; color: rgba(233, 225, 212, .55); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: rgba(233, 225, 212, .75); }
.to-top:hover { color: var(--gold); }
.to-top .ico { width: 16px; height: 16px; }
.footer-giant { padding-inline: var(--gutter); margin-bottom: -2.5%; pointer-events: none; }
.giant-word { width: 100%; height: auto; fill: none; stroke: rgba(211, 172, 129, .22); stroke-width: .6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; min-height: min(72svh, 680px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 clamp(40px, 6vw, 80px); overflow: hidden; color: #F7F1E8; isolation: isolate; }
.ph-bg { position: absolute; inset: -10% 0; z-index: -2; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.ph-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 21, 36, .55) 0%, rgba(12, 21, 36, .25) 40%, rgba(12, 21, 36, .88) 100%); }
.page-hero .kicker { color: var(--gold); }
.ph-inner { display: grid; gap: 18px; }
.ph-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: 1.02; }
html[lang="ar"] .ph-title { font-weight: 500; line-height: 1.3; }
.page-hero .lead { color: rgba(247, 241, 232, .8); }
.page-hero ~ * .site-header, [data-page]:not([data-page="home"]) .site-header:not(.is-scrolled) { color: #F7F1E8; }
[data-page]:not([data-page="home"]) .site-header:not(.is-scrolled) .logo-word { fill: #F7F1E8; }
[data-page]:not([data-page="home"]) .site-header:not(.is-scrolled) .theme-toggle .tt-track { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
[data-page]:not([data-page="home"]) .site-header:not(.is-scrolled) .shortlist-btn, [data-page]:not([data-page="home"]) .site-header:not(.is-scrolled) .menu-toggle { border-color: rgba(255, 255, 255, .3); }
[data-page="404"] .site-header:not(.is-scrolled), [data-page="towers"] .tower-hero ~ .site-header { color: var(--ink); }

.section { padding-block: var(--section); }
.section--tint { background: var(--bg-2); }

/* ---------- tower page ---------- */
[data-page="towers"]:has(.tower-hero) .site-header:not(.is-scrolled) { color: var(--ink); }
[data-page="towers"]:has(.tower-hero) .site-header:not(.is-scrolled) .logo-word { fill: var(--ink); }
[data-page="towers"]:has(.tower-hero) .site-header:not(.is-scrolled) .theme-toggle .tt-track { background: var(--surface-2); border-color: var(--line-2); }
[data-page="towers"]:has(.tower-hero) .site-header:not(.is-scrolled) .shortlist-btn, [data-page="towers"]:has(.tower-hero) .site-header:not(.is-scrolled) .menu-toggle { border-color: var(--line); }
.tower-hero { position: relative; padding: calc(var(--header-h) + clamp(24px, 5vh, 60px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.tower-hero-bg { position: absolute; inset: 0; z-index: -1; opacity: .12; }
.tower-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(.8); transform: scale(1.2); }
.th-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.th-copy { display: grid; gap: 22px; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.th-title { display: grid; gap: 6px; font-weight: 400; }
.th-title .line-in { font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1; }
html[lang="ar"] .th-title .line-in { font-weight: 500; line-height: 1.3; }
.th-sub { font-family: var(--f-ar); font-size: clamp(1.4rem, 2vw, 2rem); color: var(--accent); font-weight: 500; }
.th-sub--latin { font-family: 'Cinzel', serif; font-size: clamp(.9rem, 1.2vw, 1.1rem); letter-spacing: .35em; text-transform: uppercase; }
.th-address { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.th-address .ico { color: var(--accent); margin-top: 3px; }
.th-visual { aspect-ratio: 4 / 5.2; width: min(100%, 500px); justify-self: end; background: var(--bg-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.facts > div { padding: 20px 20px 0; border-inline-end: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.facts > div:first-child { padding-inline-start: 0; }
.facts > div:last-child { border: 0; }
.facts dt { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .facts dt { letter-spacing: 0; font-size: .88rem; }
.facts dd { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1.1; display: flex; align-items: baseline; gap: 8px; }
.facts dd small { font-family: var(--f-body); font-size: .85rem; color: var(--ink-2); }
.facts-mix dd { display: grid; gap: 10px; font-family: var(--f-body); font-size: 1rem; }
.mixbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.mix { flex: var(--v) 1 0; transform-origin: inline-start; }
.mix--studio { background: #E7CFB0; } .mix--2br { background: #D3AC81; } .mix--3br { background: #A47D4E; } .mix--vip { background: #5E4426; }
[data-theme="night"] .mix--vip { background: #F5B862; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-2); }
.mix-legend li { display: flex; align-items: center; gap: 6px; }
.mix-legend i { width: 10px; height: 10px; border-radius: 50%; }
.mix-legend b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .th-grid { grid-template-columns: 1fr; }
  .th-visual { justify-self: center; width: min(100%, 440px); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts-mix { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 20px 0 0 !important; margin-top: 20px; }
}
@media (max-width: 480px) { .facts > div { padding-inline: 12px; } }

.inb-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.feature-list { display: grid; }
.feature-list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.fl-mark { width: 20px; flex: none; fill: var(--gold); }
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.gallery .compare { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-2); }
.gallery-item--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery-item:only-child { aspect-ratio: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gi-ico { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(12, 21, 36, .6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease); }
.gallery-item:hover .gi-ico, .gallery-item:focus-visible .gi-ico { opacity: 1; transform: none; }
.gallery > .muted { grid-column: 1 / -1; }
@media (max-width: 900px) { .inb-grid { grid-template-columns: 1fr; } }

.others-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.other-card { display: grid; gap: 12px; }
.oc-media { aspect-ratio: 1; border-radius: 100vmax 100vmax 6px 6px; overflow: hidden; background: var(--bg-2); }
.oc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.other-card:hover .oc-media img { transform: scale(1.07); }
.oc-meta { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 900px) { .others-grid { grid-template-columns: repeat(2, 1fr); } }

.tower-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.4vw, 32px); }
.tower-grid .tower-card { width: auto; }
@media (max-width: 1024px) { .tower-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tower-grid { grid-template-columns: 1fr; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(6, 10, 18, .92); display: grid; place-items: center; padding: 5vmin; opacity: 0; transition: opacity .4s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-height: 90svh; width: auto; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; top: 18px; inset-inline-end: 18px; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- units finder ---------- */
.finder { padding-bottom: var(--section); }
.finder-bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-block: 14px; transition: top .6s var(--ease); }
.header-visible .finder-bar { top: var(--header-h); }
.finder-inner { display: grid; gap: 12px; }
.fb-group { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-towers { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.fb-towers::-webkit-scrollbar { display: none; }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.fb-row .fb-group { padding-inline-end: 22px; border-inline-end: 1px solid var(--line); }
.chip--check span::before { content: ''; width: 0; height: 8px; border-radius: 50%; background: var(--gold); margin-inline-end: 0; transition: width .3s var(--ease), margin .3s; }
.chip--check input:checked + span::before { width: 8px; margin-inline-end: 8px; }
.fb-range { display: flex; align-items: center; gap: 12px; }
.fb-label { font-size: .78rem; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .fb-label { letter-spacing: 0; font-size: .88rem; }
.fb-range output { font-variant-numeric: tabular-nums; font-size: .9rem; min-width: 52px; }
.dual { position: relative; width: 150px; height: 28px; }
.dual::before { content: ''; position: absolute; top: 13px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.dual::after { content: ''; position: absolute; top: 13px; height: 2px; background: var(--gold); left: calc(var(--a) * 100%); right: calc((1 - var(--b)) * 100%); }
[dir="rtl"] .dual::after { right: calc(var(--a) * 100%); left: calc((1 - var(--b)) * 100%); }
.dual input { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.dual input::-webkit-slider-runnable-track { background: transparent !important; }
.dual input::-moz-range-track, .dual input::-moz-range-progress { background: transparent; }
.dual input::-webkit-slider-thumb { pointer-events: auto; width: 20px; height: 20px; margin-top: -9px; border-width: 4px; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-width: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.sw { width: 40px; height: 22px; border-radius: 99px; border: 1px solid var(--line-2); position: relative; transition: background .3s; }
.sw::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform .4s var(--ease), background .3s; }
.switch input:checked + .sw { background: var(--gold); border-color: var(--gold); }
.switch input:checked + .sw::after { transform: translateX(18px); background: var(--surface); }
[dir="rtl"] .switch input:checked + .sw::after { transform: translateX(-18px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--gold); outline-offset: 2px; }
.fb-sort { min-width: 170px; margin-inline-start: auto; }
.fb-sort select { min-height: 44px; padding-top: 14px; }
.finder-meta { display: flex; justify-content: space-between; align-items: center; padding-block: 28px 18px; }
.finder-count { font-family: var(--f-display); font-size: 1.4rem; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.unit-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s; }
.unit-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.unit-card.is-leased, .unit-card.is-office { opacity: .62; }
.uc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.uc-tower { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .uc-tower { letter-spacing: 0; font-size: .85rem; }
.uc-save { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s, transform .4s var(--ease); }
.uc-save:hover { transform: scale(1.1); border-color: var(--gold); }
.uc-save[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.uc-save[aria-pressed="true"] .ico { fill: currentColor; }
.uc-code { font-family: 'Cinzel', serif; font-size: 2.6rem; line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .uc-code { text-align: end; }
.uc-plan { height: 54px; display: grid; gap: 3px; grid-auto-flow: column; grid-template-rows: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 4px; padding: 3px; opacity: .8; }
.uc-plan i { border: 1px solid var(--line-2); border-radius: 2px; }
.uc-plan--studio i:nth-child(n+3) { display: none; } .uc-plan--studio i:first-child { grid-row: span 2; background: color-mix(in srgb, var(--gold) 25%, transparent); }
.uc-plan--2br i:nth-child(n+5) { display: none; } .uc-plan--2br i:nth-child(-n+2) { background: color-mix(in srgb, var(--gold) 25%, transparent); }
.uc-plan--3br i:nth-child(-n+3) { background: color-mix(in srgb, var(--gold) 25%, transparent); }
.uc-plan--vip i { background: color-mix(in srgb, var(--gold) 25%, transparent); } .uc-plan--vip { height: 54px; }
.uc-dl { display: grid; grid-template-columns: auto 1fr 1.4fr; gap: 10px; }
.uc-dl dt { font-size: .66rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
html[lang="ar"] .uc-dl dt { letter-spacing: 0; font-size: .78rem; }
.uc-dl dd { font-size: .86rem; }
.uc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.pill { font-size: .72rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.pill--available::before { background: #5BAE7A; box-shadow: 0 0 0 3px rgba(91, 174, 122, .2); }
.uc-ask { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--accent); }
.uc-ask .ico { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.uc-ask:hover .ico:not(.flip-rtl) { transform: translateX(4px); }
.finder-empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
@media (max-width: 720px) {
  .fb-row { gap: 10px; }
  .fb-row .fb-group { border: 0; padding: 0; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .fb-sort { margin-inline-start: 0; flex: 1; }
  .finder-bar { padding-block: 10px; }
}

/* ---------- forms ---------- */
.inquiry-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field select, .field textarea { width: 100%; min-height: 58px; padding: 24px 16px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color .3s, box-shadow .3s, background .3s; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%); background-position: calc(100% - 22px) 28px, calc(100% - 17px) 28px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: 17px 28px, 22px 28px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211, 172, 129, .25); background: var(--surface); }
.field label { position: absolute; inset-inline-start: 17px; top: 18px; font-size: .95rem; color: var(--ink-3); pointer-events: none; transition: transform .3s var(--ease), font-size .3s, top .3s; transform-origin: inline-start; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field--select label, .field .label-up { top: 8px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .field input:focus + label, html[lang="ar"] .field input:not(:placeholder-shown) + label, html[lang="ar"] .field textarea:focus + label, html[lang="ar"] .field textarea:not(:placeholder-shown) + label, html[lang="ar"] .field--select label, html[lang="ar"] .field .label-up { letter-spacing: 0; font-size: .78rem; }
.field.is-invalid input { border-color: #C8553D; }
.field-err { display: block; font-size: .78rem; color: #C8553D; min-height: 0; margin-top: 4px; }
.field-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg legend { font-size: .8rem; color: var(--ink-3); margin-bottom: 8px; padding: 0; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .88rem; transition: background .3s, color .3s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot p { flex: 1; min-width: 180px; }
.form-status { font-size: .95rem; }
.form-status.is-ok { color: #4E9A6A; } .form-status.is-err { color: #C8553D; }
.unit-chips { display: grid; gap: 8px; }
.unit-chips-label { font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
.unit-chips [data-unit-chips-list] { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-chips [data-unit-chips-list] span { padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 25%, transparent); font-size: .82rem; }

.inquiry-dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .55); overflow: auto; overscroll-behavior: contain; }
.inquiry-dialog::backdrop { background: rgba(8, 12, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.inquiry-dialog[open] { animation: dlg-in .6s var(--ease); }
.inquiry-dialog[open]::backdrop { animation: fade-in .4s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.dialog-card { position: relative; padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.dialog-close { position: absolute; top: 16px; inset-inline-end: 16px; }
.dialog-head { display: flex; align-items: center; gap: 14px; padding-inline-end: 50px; }
.dialog-mark { width: 34px; fill: var(--gold); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-side { display: grid; gap: 20px; }
.contact-links--big { flex-direction: column; font-size: 1.1rem; }
.contact-links--big a { color: var(--ink); }
.contact-links--big a:hover { color: var(--accent); }
.addr-list { display: grid; }
.addr-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.addr-list strong { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.addr-list span { color: var(--ink-2); font-size: .92rem; }
.addr-list .mi-dir { padding: 2px 0 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- shortlist drawer ---------- */
.shortlist-drawer { position: fixed; z-index: 90; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; padding: 24px; transform: translateX(100%); transition: transform .7s var(--ease); }
[dir="rtl"] .shortlist-drawer { transform: translateX(-100%); }
.shortlist-drawer.is-open { transform: none !important; }
.sl-head { display: flex; justify-content: space-between; align-items: center; }
.sl-list { display: grid; gap: 10px; overflow-y: auto; flex: 1; align-content: start; }
.sl-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sl-code { font-family: 'Cinzel', serif; font-size: 1.4rem; min-width: 52px; direction: ltr; }
.sl-info { flex: 1; display: grid; font-size: .85rem; color: var(--ink-2); }
.sl-info strong { color: var(--ink); font-weight: 500; }
.sl-foot { display: grid; gap: 6px; }
.scrim { position: fixed; inset: 0; z-index: 85; background: rgba(8, 12, 20, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s; }
.scrim.is-on { opacity: 1; }

.toast { position: fixed; z-index: 140; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-size: .9rem; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); opacity: 0; transition: opacity .4s, transform .5s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast a, .toast button { color: var(--gold); font-weight: 500; white-space: nowrap; }
.toast span { white-space: nowrap; }
@media (max-width: 480px) { .toast { left: 16px; right: 16px; transform: translateY(20px); justify-content: space-between; border-radius: 16px; } .toast.is-on { transform: none; } .toast span { white-space: normal; } }

/* ---------- about ---------- */
.mark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.mark-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.big-mark { width: 54%; fill: transparent; stroke: var(--gold); stroke-width: 1; }
.big-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark-orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.care-grid li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; overflow: hidden; isolation: isolate; }
.care-grid li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(211, 172, 129, .2), transparent 60%); opacity: 0; transition: opacity .4s; }
.care-grid li:hover::before { opacity: 1; }
.care-grid h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; }
.care-grid p { color: var(--ink-2); }
.family { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fam-item { display: grid; justify-items: center; gap: 16px; padding: 32px 14px; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; transition: background .4s, border-color .4s; height: 100%; }
.fam-item:hover { background: var(--surface); border-color: var(--gold); }
.fam-mark { width: 46px; fill: var(--gold); transition: transform .8s var(--ease); }
.fam-item:hover .fam-mark { transform: rotate(-90deg); }
.tn--lockup { justify-items: center; }
.tn--lockup .tn-en { font-size: 1.15rem; } .tn--lockup .tn-ar { font-size: 1.3rem; }
@media (max-width: 1024px) { .care-grid { grid-template-columns: repeat(2, 1fr); } .family { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .mark-grid { grid-template-columns: 1fr; } .mark-stage { max-width: 320px; } .care-grid { grid-template-columns: 1fr; } .family { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-items: center; padding-top: var(--header-h); }
.nf-inner { display: grid; gap: 22px; justify-items: start; }
.nf-code { font-family: var(--f-display); font-size: clamp(6rem, 22vw, 16rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--gold); }

/* ---------- reduced motion / no-motion fallbacks ---------- */
.no-motion .line-in, .no-motion [data-hero-in], .no-motion [data-reveal], .no-motion .intro-text .w { transform: none !important; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .line-in, [data-hero-in], [data-reveal], .intro-text .w { transform: none !important; opacity: 1 !important; }
  .marquee-track { animation: none; }
  .preloader { display: none; }
}

/* View-transition circle reveal for theme switch */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Pinned horizontal towers: size cards from viewport height so the whole row fits. */
@media (min-width: 1024px) {
  .towers-section:has(.is-pinned) { --card-h: clamp(240px, calc(100svh - 440px), 560px); min-height: 100svh; padding-block: calc(var(--header-h) + 8px) 28px; display: flex; flex-direction: column; justify-content: center; }
  .towers-section:has(.is-pinned) .section-head { margin-bottom: 28px; gap: 14px; }
  .towers-section:has(.is-pinned) .section-head .display { font-size: clamp(2rem, 3vw, 3.4rem); }
  .hscroll.is-pinned .tower-card { width: calc(var(--card-h) * .82); }
  .hscroll.is-pinned .tc-media { aspect-ratio: auto; height: var(--card-h); }
  .hscroll.is-pinned .tc-link { gap: 16px; }
  .hscroll.is-pinned .tc-ground { display: none; }
  .hscroll.is-pinned .tower-card--more { aspect-ratio: auto; height: var(--card-h); }
  .towers-section:has(.is-pinned) .hscroll-progress { margin-top: 22px; }
}
@media (max-width: 700px) { .hero-pattern { display: none; } }
