/* =========================================================
   الإيمان للاستثمار العقاري — "Arch & Gold"
   أقواس كلاسيك · ذهبي · Glass · Animation · Hover · Rotate
   ========================================================= */
:root {
  --ivory: #F7F3EA;
  --sand: #EDE6D6;
  --paper: #FFFDF8;
  --navy: #0B1530;
  --navy-2: #15204A;
  --navy-3: #26325C;
  --gold: #D4AA55;
  --gold-2: #F0D594;
  --gold-ink: #8A6A1F;
  --ink: #0B1530;
  --muted: #5A6075;
  --line: #E3DACA;
  --green: #2E9E62;
  --green-soft: #E2F3E9;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --display: 'El Messiri', 'IBM Plex Sans Arabic', serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --shadow: 0 40px 80px -40px rgba(11, 21, 48, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); background: var(--ivory); color: var(--ink); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.25; font-weight: 700; }
p { margin: 0; }
.container { width: min(1320px, 100% - 48px); margin-inline: auto; }
.gold { color: var(--gold-2); }
.gold-text { color: var(--gold-ink); }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 40px; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* scroll progress */
.progress { position: fixed; top: 0; right: 0; height: 3px; width: 100%; z-index: 100; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: right; transform: scaleX(var(--p, 0)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font: 500 16px/1 var(--body); border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn svg { transition: transform .5s var(--bounce); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: rotate(45deg); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { box-shadow: 0 16px 30px -12px rgba(11,21,48,.6); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-gold:hover { box-shadow: 0 16px 30px -12px rgba(212,170,85,.8); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(130%); transition: transform .9s var(--ease); }
.btn-shine:hover::after { transform: translateX(-130%); }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 253, 248, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 24px 50px -24px rgba(11,21,48,.4), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--gold-ink); letter-spacing: .3px; }
.eyebrow .rule { width: 36px; height: 1.5px; background: currentColor; position: relative; }
.eyebrow .rule::after { content: ""; position: absolute; left: -4px; top: -3px; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.eyebrow.light { color: var(--gold-2); }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 60; padding: 14px 20px; transition: transform .5s var(--ease); animation: navIn 1s var(--ease) backwards; }
@keyframes navIn { from { transform: translateY(-100%); opacity: 0; } }
.nav-inner {
  width: min(1320px, 100%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 12px; border-radius: 999px;
  background: rgba(247, 243, 234, .55); border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled .nav-inner { background: rgba(255, 253, 248, .85); box-shadow: 0 18px 40px -24px rgba(11,21,48,.45); }
.nav.is-hidden { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 12px; padding-inline-start: 4px; }
.brand-logo { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.brand-logo img { width: 34px; position: relative; z-index: 1; transition: transform .7s var(--bounce); }
.brand:hover .brand-logo img { transform: rotate(-14deg) scale(1.12); }
.brand-ring { position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--gold), transparent 30%, var(--gold-2) 55%, transparent 80%, var(--gold)); -webkit-mask: radial-gradient(circle, transparent 64%, #000 66%); mask: radial-gradient(circle, transparent 64%, #000 66%); animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--display); font-size: 22px; }
.brand-text small { font-size: 12px; color: var(--gold-ink); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a::after { content: ""; position: absolute; bottom: 5px; right: 50%; width: 5px; height: 5px; background: var(--gold); transform: translateX(50%) rotate(45deg) scale(0); transition: transform .4s var(--bounce); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: translateX(50%) rotate(45deg) scale(1); }
.nav-links a.is-active { color: var(--navy); font-weight: 600; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-arch { position: absolute; border: 1.5px solid rgba(212,170,85,.35); border-radius: 999px 999px 0 0; border-bottom: 0; }
.deco-arch.a1 { width: 620px; height: 820px; left: -220px; top: 40px; animation: sway 14s ease-in-out infinite; }
.deco-arch.a2 { width: 420px; height: 560px; right: -160px; top: -80px; animation: sway 18s ease-in-out infinite reverse; }
@keyframes sway { 50% { transform: rotate(3deg) translateY(10px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.display { font-size: clamp(54px, 8vw, 112px); line-height: 1.15; margin: 22px 0 26px; }
.display .line { display: block; overflow: hidden; padding-bottom: .12em; }
.display .line > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: right bottom; animation: lineUp 1.2s var(--ease) forwards; }
.display .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes lineUp { to { transform: none; } }
.lead { font-size: 19px; font-weight: 300; line-height: 1.95; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: flex; gap: 0; margin: 52px 0 0; padding: 0; }
.hero-stats div { padding-inline: 28px; border-inline-start: 1px solid var(--line); }
.hero-stats div:first-child { padding-inline-start: 0; border: 0; }
.hero-stats dt { font-size: 14px; color: var(--muted); order: 2; }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 46px; font-weight: 700; line-height: 1.1; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

.hero-visual { position: relative; perspective: 1400px; justify-self: center; width: min(470px, 100%); }
.arch-img {
  position: relative; aspect-ratio: 4 / 5.3; border-radius: 999px 999px 36px 36px; overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease);
  animation: archIn 1.6s var(--ease) both .15s;
  -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black);
}
@keyframes archIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 36px 36px); } to { clip-path: inset(0 0 0 0 round 999px 999px 36px 36px); } }
.arch-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.4s var(--ease); }
.hero-visual:hover .arch-img img { transform: scale(1.16); }
.glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 25%), rgba(255,255,255,.28), transparent 45%); }
.arch-outline { position: absolute; inset: -22px -22px 28px 28px; border: 1.5px solid var(--gold); border-radius: 999px 999px 40px 40px; animation: outlineIn 1.4s var(--ease) both .6s, sway 10s ease-in-out infinite 2s; }
@keyframes outlineIn { from { opacity: 0; transform: translate(-20px, 20px); } }
.seal { position: absolute; top: 18%; right: -58px; width: 124px; height: 124px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 20px 40px -18px rgba(11,21,48,.7); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.seal text { fill: var(--gold-2); font-family: var(--body); font-size: 10.5px; letter-spacing: 1px; }
.seal img { width: 46px; transition: transform .9s var(--bounce); }
.seal:hover img { transform: rotate(360deg); }
.hero-float { position: absolute; left: -48px; bottom: 36px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px; border-radius: 24px; animation: float 6s ease-in-out infinite; transition: background .3s; }
.hero-float:hover { background: rgba(255,253,248,.85); }
.hero-float small { display: block; font-size: 12px; color: var(--muted); }
.hero-float strong { font-family: var(--display); font-size: 18px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform .5s var(--bounce); }
.hero-float:hover .round { transform: rotate(45deg); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* LED (متاح) */
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,158,98,.6); animation: pulse 2s infinite; flex: none; }
.led.big { width: 12px; height: 12px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46,158,98,0); } 100% { box-shadow: 0 0 0 0 rgba(46,158,98,0); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--gold-2); overflow: hidden; padding: 22px 0; transform: rotate(-1.2deg) scaleX(1.03); margin: 0; box-shadow: 0 20px 40px -24px rgba(11,21,48,.6); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; }
.marquee span { font-family: var(--display); font-size: 30px; font-weight: 600; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 14px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0 40px; }
.pt-0 { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(38px, 5vw, 64px); margin-top: 10px; }
.section-head > p { max-width: 430px; font-size: 18px; font-weight: 300; color: var(--muted); line-height: 1.9; }
.section-head.light h2 { color: #fff; }
.section-head.light > p { color: #B9C0D4; }

/* category cards: arch tops */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 340px; padding: 64px 26px 26px; border-radius: 999px 999px 30px 30px;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), color .5s, border-color .5s;
}
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .8s var(--ease); }
.cat-card:hover { transform: translateY(-12px); box-shadow: var(--shadow); color: #fff; border-color: var(--navy); }
.cat-card:hover::before { transform: translateY(0); }
.cat-num { position: absolute; top: 26px; font-family: var(--display); font-size: 14px; color: var(--gold-ink); transition: color .5s; }
.cat-card:hover .cat-num { color: var(--gold-2); }
.cat-icon { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--navy); border: 1px dashed var(--gold); margin: 10px 0 14px; transition: transform .9s var(--bounce), background .5s, color .5s; }
.cat-card:hover .cat-icon { transform: rotate(360deg); background: var(--gold); border-color: transparent; }
.cat-card strong { font-family: var(--display); font-size: 30px; font-weight: 700; }
.cat-card small { font-size: 14px; color: var(--muted); transition: color .5s; }
.cat-card small b { color: var(--green); font-weight: 600; }
.cat-card:hover small { color: #C9CFE0; }
.cat-card:hover small b { color: #7EE0A8; }
.cat-go { margin-top: auto; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .6s var(--bounce), border-color .5s, background .5s, color .5s; }
.cat-card:hover .cat-go { transform: rotate(45deg); background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* available now */
.available { position: relative; background: var(--navy); color: #fff; padding: 120px 0; margin-top: 120px; border-radius: 64px; overflow: hidden; }
.available::before { content: ""; position: absolute; width: 760px; height: 980px; left: -260px; top: -200px; border: 1.5px solid rgba(212,170,85,.18); border-radius: 999px 999px 0 0; }
.u-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.u-card {
  position: relative; padding: 24px; border-radius: 28px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .6s var(--ease), border-color .4s, background .4s;
}
.u-card:hover { transform: translateY(-8px) rotate(-.6deg); border-color: rgba(240,213,148,.55); background: rgba(255,255,255,.08); }
.u-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.u-serial { padding: 6px 14px; border-radius: 999px 999px 8px 8px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 13px; }
.u-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #9BE3B8; }
.u-card h3 { font-size: 28px; color: #fff; }
.u-meta { color: #C9CFE0; }
.u-meta b { color: var(--gold-2); font-weight: 600; }
.u-proj { color: #8F98B3; font-size: 14px; margin-top: 2px; transition: color .3s; }
.u-proj:hover { color: var(--gold-2); }
.u-btn { margin-top: 16px; }

/* project cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 28px 20px; }
.p-card { display: flex; flex-direction: column; gap: 18px; }
.p-arch { position: relative; aspect-ratio: 4 / 4.6; border-radius: 999px 999px 30px 30px; overflow: hidden; background: var(--sand); transition: border-radius .8s var(--ease), box-shadow .7s var(--ease); }
.p-card:hover .p-arch { border-radius: 40px 40px 30px 30px; box-shadow: var(--shadow); }
.p-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.p-card:hover .p-arch img { transform: scale(1.1) rotate(-1.5deg); }
.p-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(11,21,48,.22); }
.p-status { position: absolute; bottom: 16px; right: 16px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(11,21,48,.75); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.p-status.is-current { background: var(--gold); color: var(--navy); }
.p-body { padding-inline: 6px; display: flex; flex-direction: column; gap: 6px; }
.p-top { display: flex; justify-content: space-between; align-items: center; }
.p-cat { font-size: 14px; color: var(--gold-ink); font-weight: 500; }
.p-go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .6s var(--bounce), background .4s, color .4s, border-color .4s; }
.p-card:hover .p-go { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.p-body h3 { font-size: 28px; transition: color .3s; }
.p-card:hover h3 { color: var(--gold-ink); }
.p-body > p { color: var(--muted); }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-s { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--sand); }
.chip-s.is-av { background: var(--green-soft); color: #1C6E43; }
.chip-s.is-sold { background: #F3E4E1; color: #8E3A30; }

.empty { padding: 64px; border-radius: 40px; background: var(--paper); border: 1px dashed var(--line); text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon { width: 76px; height: 76px; border-radius: 999px 999px 14px 14px; background: var(--sand); display: grid; place-items: center; animation: float 4s ease-in-out infinite; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 170px 0 80px; overflow: hidden; }
.page-hero.compact { padding-bottom: 56px; }
.page-hero .display { font-size: clamp(48px, 7vw, 96px); }
.crumbs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--gold-ink); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; transition: transform .4s var(--ease); }
.tag.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.tag.green { background: var(--green-soft); border-color: #BFE3CD; color: #1C6E43; font-weight: 600; }
a.tag:hover { transform: translateY(-3px); }

.cat-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 48px; }
.cat-tab { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), color .4s, border-color .4s; }
.cat-tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: circle(0 at 90% 50%); transition: clip-path .7s var(--ease); }
.cat-tab:hover { transform: translateY(-4px); }
.cat-tab .cat-icon { width: 50px; height: 50px; margin: 0; flex: none; }
.cat-tab:hover .cat-icon { transform: rotate(-25deg); }
.cat-tab strong { display: block; font-family: var(--display); font-size: 20px; }
.cat-tab small { color: var(--muted); font-size: 13px; transition: color .4s; }
.cat-tab.is-active { color: #fff; border-color: var(--navy); }
.cat-tab.is-active::before { clip-path: circle(150% at 90% 50%); }
.cat-tab.is-active .cat-icon { background: var(--gold); border-color: transparent; }
.cat-tab.is-active small { color: var(--gold-2); }

.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.list-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.pills { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pill { min-height: 44px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 500; font-size: 15px; transition: background .35s, color .35s; }
.pill:hover { background: var(--sand); }
.pill.is-active { background: var(--navy); color: #fff; }

/* ---------- Project detail ---------- */
.detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 4.2; border-radius: 999px 999px 36px 36px; overflow: hidden; background: var(--sand); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); max-height: 720px; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .8s var(--ease); }
.gallery-main img.is-swapping { opacity: 0; transform: scale(1.05); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 96px; height: 110px; padding: 0; border-radius: 999px 999px 14px 14px; overflow: hidden; border: 3px solid transparent; background: none; cursor: pointer; transition: border-color .3s, transform .4s var(--ease); }
.thumb:hover { transform: translateY(-4px); }
.thumb.is-active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.info-card { border-radius: 32px; padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.info-card h2 { font-size: 26px; margin-bottom: 12px; }
.info-card p { color: var(--muted); line-height: 1.95; }
.info-card.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Serials (المسلسلات) ---------- */
.serials { padding-top: 110px; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .win { width: 22px; height: 18px; min-height: 0; cursor: default; }
.s-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.s-tab { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: inherit; text-align: right; transition: transform .45s var(--ease), background .4s, color .4s, border-color .4s; }
.s-tab:hover { transform: translateY(-3px); border-color: var(--gold); }
.s-num { width: 50px; height: 56px; border-radius: 999px 999px 12px 12px; background: var(--sand); display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 700; transition: background .4s, color .4s, transform .6s var(--bounce); }
.s-tab:hover .s-num { transform: rotate(-8deg); }
.s-txt strong { display: block; font-family: var(--display); font-size: 18px; }
.s-txt small { font-size: 13px; font-weight: 500; }
.s-txt small.is-av { color: #1C6E43; }
.s-txt small.is-sold { color: #8E3A30; }
.s-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.s-tab.is-active .s-num { background: var(--gold); color: var(--navy); }
.s-tab.is-active small.is-av { color: #8EE0B0; }
.s-tab.is-active small.is-sold { color: #F2B5AC; }

.s-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.s-panel[hidden] { display: none; }
.s-panel.is-active { animation: panelIn .7s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } }

.tower-wrap { padding: 40px 28px 28px; border-radius: 40px; background: linear-gradient(180deg, #E9E1CF 0%, var(--sand) 60%, #E2D8C2 100%); display: flex; justify-content: center; overflow-x: auto; }
.tower { position: relative; min-width: 300px; width: min(100%, 560px); }
.tower-crown { height: 70px; margin: 0 22px; border-radius: 999px 999px 0 0; background: var(--navy); display: grid; place-items: center; position: relative; }
.tower-crown::before { content: ""; position: absolute; inset: 10px 26px 0; border-radius: 999px 999px 0 0; border: 1.5px solid var(--gold); border-bottom: 0; }
.tower-crown span { position: relative; font-family: var(--display); color: var(--gold-2); font-size: 18px; font-weight: 600; margin-top: 14px; }
.t-floor {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: #FBF8F1; border-inline: 6px solid var(--navy); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(30px); animation: floorIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes floorIn { to { opacity: 1; transform: none; } }
.t-label { flex: 0 0 104px; font-size: 13px; font-weight: 600; color: var(--muted); }
.t-units { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.win {
  position: relative; min-width: 56px; height: 52px; border-radius: 999px 999px 8px 8px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .4s var(--bounce), box-shadow .4s, background .4s;
}
.win.is-av { background: linear-gradient(180deg, #FFE7A6, var(--gold)); color: var(--navy); box-shadow: 0 0 0 0 rgba(212,170,85,.6), 0 0 18px rgba(240,213,148,.75); animation: glow 2.6s ease-in-out infinite; }
.win.is-sold { background: #2A3352; color: #6C7593; }
.win.is-sold b { opacity: .7; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(212,170,85,.18), 0 0 28px rgba(240,213,148,.95); } }
.win:hover, .win:focus-visible { transform: translateY(-4px) scale(1.06); z-index: 3; }
.tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--navy); }
.win:hover .tip, .win:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.tower-base { height: 22px; margin: 0 -14px; border-radius: 6px; background: var(--navy); position: relative; }
.tower-base span { position: absolute; left: 50%; bottom: 22px; width: 64px; height: 50px; margin-left: -32px; border-radius: 999px 999px 0 0; background: #3A2E10; border: 3px solid var(--gold); border-bottom: 0; display: none; }

.s-summary { padding: 32px; border-radius: 40px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.s-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.s-big .led { align-self: center; }
.s-big strong { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--navy); }
.s-big span { color: var(--muted); }
.s-big.sold { flex-direction: column; gap: 4px; }
.s-big.sold strong { font-size: 40px; color: #8E3A30; }
.s-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.s-floor { flex: 0 0 120px; font-weight: 600; }
.s-units { display: flex; flex-wrap: wrap; gap: 8px; }
.s-unit { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--green-soft); color: #1C6E43; font-weight: 600; font-size: 14px; transition: transform .35s var(--bounce), background .3s, color .3s; }
.s-unit small { font-weight: 400; opacity: .85; }
.s-unit:hover { transform: translateY(-2px) rotate(-2deg); background: var(--green); color: #fff; }
.s-note { font-size: 14px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy); color: #fff; margin-top: 140px; padding: 110px 0 32px; border-radius: 64px 64px 0 0; overflow: hidden; }
.footer-arch { position: absolute; width: 900px; height: 1100px; right: -300px; top: 60px; border: 1.5px solid rgba(212,170,85,.16); border-radius: 999px 999px 0 0; }
.footer-top { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 48px; margin-bottom: 72px; }
.footer-call h2 { font-size: clamp(44px, 6vw, 84px); margin: 16px 0 30px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-seal { position: relative; width: 230px; height: 260px; border-radius: 999px 999px 30px 30px; background: var(--navy-2); display: grid; place-items: center; }
.footer-seal img { width: 140px; animation: float 6s ease-in-out infinite; }
.seal-ring { position: absolute; inset: -14px; border-radius: 999px 999px 40px 40px; border: 1.5px dashed rgba(212,170,85,.55); animation: sway 9s ease-in-out infinite; }
.footer-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--navy-3); }
.f-label { display: block; color: var(--gold-2); font-size: 14px; margin-bottom: 10px; }
.footer-grid p { color: #C9CFE0; line-height: 1.9; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid li a { color: #C9CFE0; transition: color .3s, padding .4s var(--ease); }
.footer-grid li a:hover { color: var(--gold-2); padding-inline-start: 8px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--navy-3); color: #8F98B3; font-size: 14px; }
.footer-bottom a:hover { color: var(--gold-2); }

.float-wa { position: fixed; bottom: 22px; left: 22px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31,168,85,.8); animation: ring 4s ease-in-out infinite; transition: transform .45s var(--bounce); }
.float-wa:hover { transform: scale(1.12) rotate(-12deg); animation: none; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 93% { transform: rotate(14deg); } 97% { transform: rotate(-8deg); } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.cat-card[data-reveal].is-in:hover { transform: translateY(-12px); }
.u-card[data-reveal].is-in:hover { transform: translateY(-8px) rotate(-.6deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid, .detail, .s-panel { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
  .detail-side, .s-summary { position: static; }
  .seal { right: -20px; }
  .hero-float { left: -10px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta span { display: none; }
  .nav-cta { width: 46px; padding: 0; }
  .nav-inner { flex-wrap: wrap; border-radius: 30px; }
  .nav-links { order: 3; width: 100%; flex-direction: column; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .4s; }
  .nav-links.is-open { max-height: 340px; opacity: 1; padding: 6px 0; }
  .hero { padding-top: 130px; }
  .hero-stats div { padding-inline: 18px; }
  .hero-stats dd { font-size: 36px; }
  .available { border-radius: 40px; margin-inline: 10px; }
  .t-floor { flex-wrap: wrap; gap: 8px; }
  .t-label { flex-basis: 100%; }
  .t-units { justify-content: flex-start; }
  .tower-wrap { padding: 28px 14px 18px; border-radius: 28px; }
  .s-summary { padding: 24px; border-radius: 28px; }
  .cat-card { min-height: 280px; }
  .footer { border-radius: 40px 40px 0 0; }
  .footer-seal { width: 170px; height: 200px; }
  .footer-seal img { width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .t-floor { opacity: 1; transform: none; }
  .display .line > span { transform: none; }
}


/* ---------- Featured project (المول) ---------- */
.featured { padding-top: 110px; }
.feat-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: center; }
.feat-main { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 300px 300px 36px 36px / 160px 160px 36px 36px; overflow: hidden; box-shadow: var(--shadow); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease), border-radius .9s var(--ease); -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.feat-main img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.feat-main:hover { border-radius: 40px; }
.feat-main:hover img { transform: scale(1.12); }
.feat-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.feat-thumb { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; display: block; transition: transform .5s var(--ease), box-shadow .5s; }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feat-thumb:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 34px -20px rgba(11,21,48,.6); }
.feat-thumb:hover img { transform: scale(1.12); }
.feat-info { display: flex; flex-direction: column; gap: 22px; }
.feat-text { font-size: 17px; line-height: 2; color: var(--muted); }
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-tile { padding: 20px 22px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: transform .5s var(--bounce), background .4s, color .4s, border-color .4s; }
.stat-tile:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat-tile:first-child span { color: var(--gold-2); }
.stat-tile:hover { transform: translateY(-5px) rotate(-1.2deg); border-color: var(--gold); }
.stat-tile strong { font-family: var(--display); font-size: 44px; line-height: 1.15; }
.stat-tile span { font-size: 14px; color: var(--muted); }
.stat-tiles.compact .stat-tile { padding: 16px 18px; border-radius: 22px; }
.stat-tiles.compact .stat-tile strong { font-size: 34px; }

/* ---------- Journey timeline ---------- */
.journey-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.journey-copy { position: sticky; top: 120px; }
.journey-copy h2 { font-size: clamp(40px, 5vw, 66px); margin: 12px 0 22px; }
.journey-copy p { font-size: 18px; line-height: 2.05; color: var(--muted); font-weight: 300; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline::before { content: ""; position: absolute; top: 24px; bottom: 24px; right: 25px; width: 2px; background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 12px); }
.t-step { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.t-dot { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold); color: var(--navy); display: grid; place-items: center; position: relative; z-index: 1; transition: transform .8s var(--bounce), background .4s; }
.t-step:hover .t-dot { transform: rotate(360deg); background: var(--gold); }
.t-card { flex: 1; padding: 20px 24px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.t-card:hover { transform: translateX(-8px); box-shadow: 0 20px 40px -26px rgba(11,21,48,.5); border-color: var(--gold); }
.t-card small { color: var(--gold-ink); font-weight: 600; font-size: 13px; }
.t-card strong { font-family: var(--display); font-size: 26px; }
.t-card span { color: var(--muted); font-size: 15px; }
.t-step.is-now .t-dot { background: var(--navy); color: var(--gold-2); border-color: var(--navy); }
.t-step.is-now .t-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--gold); animation: pulseRing 2.4s ease-out infinite; }
@keyframes pulseRing { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.t-step.is-now .t-card { background: var(--navy); color: #fff; border-color: var(--navy); }
.t-step.is-now .t-card small { color: var(--gold-2); }
.t-step.is-now .t-card span { color: #C9CFE0; }

.cat-about { margin-top: 8px; color: var(--muted); max-width: 640px; }
.gallery-main.is-wide { aspect-ratio: 16 / 11; border-radius: 300px 300px 36px 36px / 150px 150px 36px 36px; }
.p-arch img { object-position: center; }

@media (max-width: 1100px) {
  .feat-grid, .journey-grid { grid-template-columns: 1fr; }
  .journey-copy { position: static; }
}
@media (max-width: 760px) {
  .featured { padding-top: 72px; }
  .feat-main { aspect-ratio: 4 / 3.4; border-radius: 200px 200px 26px 26px / 110px 110px 26px 26px; }
  .feat-thumbs { gap: 8px; }
  .feat-thumb { border-radius: 16px; }
  .stat-tile { padding: 16px; border-radius: 22px; }
  .stat-tile strong { font-size: 34px; }
  .journey-grid { gap: 32px; }
  .journey-copy h2 { font-size: 42px; }
  .journey-copy p { font-size: 16px; }
  .t-step { gap: 14px; }
  .t-dot { width: 44px; height: 44px; }
  .timeline::before { right: 21px; }
  .t-card { padding: 16px 18px; border-radius: 22px; }
  .t-card strong { font-size: 22px; }
  .gallery-main.is-wide { aspect-ratio: 4 / 3.3; border-radius: 200px 200px 26px 26px / 110px 110px 26px 26px; }
}


/* ---------- Mall band (navy) + bento gallery ---------- */
.feature-band { position: relative; background: var(--navy); color: #fff; margin-top: 110px; padding: 110px 0 96px; border-radius: 64px; overflow: hidden; }
.feature-band::before { content: ""; position: absolute; width: 900px; height: 1100px; right: -320px; top: -260px; border: 1.5px solid rgba(212,170,85,.16); border-radius: 999px 999px 0 0; pointer-events: none; }
.feature-band .container { position: relative; }
.bento { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; }
.bento.b-1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
.bento.b-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 520px; }
.bento.b-3 { grid-template-columns: 2fr 1fr; }
.bento.b-4 { grid-template-columns: 2fr 1fr 1fr; }
.bento-item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: 24px; cursor: zoom-in; background: var(--navy-2); }
.bento-item:first-child { grid-row: 1 / span 2; border-radius: 260px 260px 28px 28px / 140px 140px 28px 28px; }
.bento.b-1 .bento-item:first-child, .bento.b-2 .bento-item:first-child { grid-row: auto; }
.bento.b-4 .bento-item:nth-child(4) { grid-column: 2 / span 2; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.bento-item:hover img { transform: scale(1.08) rotate(-.8deg); }
.bento-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .4s; }
.bento-item:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.bento-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,21,48,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); color: #fff; font-family: var(--display); font-size: 30px; font-weight: 700; transition: background .4s; }
.bento-item:hover .bento-more { background: rgba(11,21,48,.35); }
.bento-more.m-only { display: none; }
.feat-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-top: 28px; }
.feat-side { display: flex; flex-direction: column; gap: 20px; }
.feature-band .feat-text { color: #C9CFE0; font-size: 17px; line-height: 2; }
.stat-tiles.glass-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glass-tiles .stat-tile { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.glass-tiles .stat-tile span { color: #B9C0D4; }
.glass-tiles .stat-tile:first-child { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.glass-tiles .stat-tile:first-child span { color: #3A2E10; }
.glass-tiles .stat-tile strong { font-size: 40px; }

/* ---------- Plot card (قطعة من غير صورة) ---------- */
.plot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1F2C5C 0%, var(--navy) 70%); }
.plot-lines { position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(212,170,85,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(212,170,85,.35) 1px, transparent 1px);
  background-size: 36px 36px; -webkit-mask: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%); mask: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%);
  transition: transform 1.4s var(--ease); }
.p-card:hover .plot-lines { transform: scale(1.15) rotate(3deg); }
.plot-icon { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 1px dashed var(--gold); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 12px; transition: transform .9s var(--bounce); }
.p-card:hover .plot-icon { transform: rotate(360deg); }
.plot small { position: relative; font-size: 16px; color: var(--gold-2); letter-spacing: 1px; }
.plot strong { position: relative; font-family: var(--display); font-size: 96px; line-height: 1; color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,.35); }
.plot strong.plot-name { font-size: 34px; text-align: center; padding: 0 20px; }
.plot em { position: relative; margin-top: 14px; padding: 8px 18px; border-radius: 999px; font-style: normal; font-weight: 600; font-size: 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(240,213,148,.45); color: var(--gold-2); }
.plot.big strong { font-size: 140px; }
.p-area { position: absolute; bottom: 16px; left: 16px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,253,248,.85); color: var(--navy); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gallery-main .plot { border-radius: inherit; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,10,24,.97); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: min(1200px, 92vw); max-height: 84vh; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 84vh; border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.lb-stage img.in { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lb-nav, .lb-close { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s, transform .4s var(--bounce); }
.lb-nav:hover, .lb-close:hover { background: var(--gold); color: var(--navy); transform: scale(1.08); }
.lb-close { top: 22px; left: 22px; }
.lb-prev { right: 22px; top: 50%; margin-top: -27px; }
.lb-next { left: 22px; top: 50%; margin-top: -27px; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; direction: ltr; }
body.lb-open { overflow: hidden; }
body.lb-open .tabbar, body.lb-open .float-wa { visibility: hidden; }

@media (max-width: 1100px) {
  .feat-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .feature-band { margin: 72px 10px 0; padding: 64px 0 48px; border-radius: 36px; }
  .bento, .bento.b-3, .bento.b-4, .bento.b-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 270px 140px; }
  .bento.b-1, .bento.b-2 { grid-template-columns: 1fr; grid-template-rows: 300px; }
  .bento.b-2 .bento-item:nth-child(2) { display: none; }
  .bento .bento-item:first-child { grid-column: 1 / -1; grid-row: auto; border-radius: 200px 200px 22px 22px / 110px 110px 22px 22px; }
  .bento .bento-item:nth-child(n+4) { display: none; }
  .bento.b-4 .bento-item:nth-child(4) { grid-column: auto; }
  .bento-more.d-only { display: none; }
  .bento-item { border-radius: 18px; }
  .bento-more.m-only { display: grid; }
  .bento-more { font-size: 22px; }
  .stat-tiles.glass-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass-tiles .stat-tile strong { font-size: 32px; }
  .plot strong { font-size: 84px; }
  .plot.big strong { font-size: 110px; }
  .lb-nav { width: 46px; height: 46px; bottom: 22px; top: auto; margin: 0; }
  .lb-prev { right: 18px; } .lb-next { left: 18px; }
  .lb-close { top: 16px; left: 16px; }
  .lb-count { bottom: 30px; }
}

/* =========================================================
   موبايل — شكل تطبيق
   ========================================================= */
.tabbar, .menu-extra, .dots { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 96px; }
  .container { width: calc(100% - 32px); }
  .float-wa { display: none; }

  /* header */
  .nav { padding: 10px 12px; }
  .nav-inner { padding: 6px 6px 6px 8px; border-radius: 999px; flex-wrap: nowrap; }
  .nav.is-scrolled .nav-inner { background: rgba(255, 253, 248, .94); }
  .brand-logo { width: 44px; height: 44px; }
  .brand-logo img { width: 28px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { font-size: 11px; }
  .nav-cta { display: none; }
  .nav-toggle { position: relative; z-index: 3; }

  /* full-screen menu */
  .nav-links {
    position: fixed; inset: 0; z-index: 2; order: 0; width: auto;
    max-height: none; opacity: 1; overflow: auto;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 110px 32px 40px !important;
    background: var(--navy);
    clip-path: circle(0 at 46px 40px);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
  }
  .nav-links.is-open { clip-path: circle(150% at 46px 40px); visibility: visible; max-height: none; padding: 110px 32px 40px; }
  .nav-links a { font-family: var(--display); font-size: 38px; font-weight: 600; color: #fff; padding: 6px 0; border-radius: 0; opacity: 0; transform: translateX(-30px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
  .nav-links.is-open a { opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 70ms + 250ms); }
  .nav-links a.is-active { color: var(--gold-2); }
  .nav-links > a { align-self: flex-start; }
  .nav-links a::after { right: auto; left: -20px; bottom: auto; top: 50%; margin-top: -3px; transform: rotate(45deg) scale(0); }
  .nav-links a.is-active::after { transform: rotate(45deg) scale(1.3); }
  .menu-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--navy-3); color: #8F98B3; font-size: 14px; opacity: 0; transition: opacity .6s .6s; }
  .nav-links.is-open .menu-extra { opacity: 1; }
  .menu-extra .btn { opacity: 1; transform: none; font-family: var(--body); font-size: 17px; padding: 0 24px; color: var(--navy); border-radius: 999px; }
  .menu-extra .btn::after { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-toggle { background: var(--gold); }
  body.menu-open .nav-toggle span { background: var(--navy); }
  body.menu-open .brand { position: relative; z-index: 3; color: #fff; }
  body.menu-open .brand-text small { color: var(--gold-2); }
  body.menu-open .nav-inner { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .tabbar { transform: translateY(140%); }

  /* bottom tab bar */
  .tabbar {
    display: flex; justify-content: space-around; align-items: flex-end;
    position: fixed; bottom: 12px; inset-inline: 12px; z-index: 55;
    padding: 8px 6px 10px; border-radius: 28px;
    background: rgba(255, 253, 248, .82); border: 1px solid rgba(255,255,255,.9);
    backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 20px 40px -18px rgba(11,21,48,.45);
    transition: transform .5s var(--ease);
    animation: barIn .9s var(--ease) both .4s;
  }
  @keyframes barIn { from { transform: translateY(140%); } }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 6px 0 0; min-height: 52px; transition: color .3s; }
  .tabbar a svg { transition: transform .45s var(--bounce); }
  .tabbar a:active svg { transform: scale(.85); }
  .tabbar a.is-active { color: var(--navy); }
  .tabbar a.is-active svg { transform: translateY(-2px); }
  .tabbar a.is-active::after { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); margin-top: 1px; }
  .tab-call { position: relative; }
  .tab-call-btn { width: 60px; height: 60px; margin-top: -34px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; border: 4px solid var(--ivory); box-shadow: 0 12px 24px -8px rgba(11,21,48,.6); animation: ring 4s ease-in-out infinite; }
  .tab-call span:last-child { color: var(--navy); font-weight: 600; }

  /* hero */
  .hero { padding: 104px 0 64px; }
  .hero-grid { gap: 8px; }
  .hero-deco .a1 { width: 360px; height: 520px; left: -200px; }
  .display { font-size: clamp(46px, 13.5vw, 64px); margin: 14px 0 16px; }
  .lead { font-size: 16px; line-height: 1.9; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 52px; padding: 0 18px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
  .hero-stats div { padding: 14px 12px; border: 1px solid var(--line) !important; border-radius: 20px; background: var(--paper); text-align: center; align-items: center; }
  .hero-stats div:first-child { padding-inline-start: 12px; }
  .hero-stats dd { font-size: 32px; }
  .hero-stats dt { font-size: 12px; }
  .hero-visual { width: calc(100% - 40px); margin: 36px auto 0; }
  .arch-outline { inset: -14px -14px 22px 22px; }
  .seal { width: 92px; height: 92px; right: -24px; top: 12%; }
  .seal text { font-size: 9.5px; }
  .seal img { width: 34px; }
  .hero-float { left: -16px; right: 24px; bottom: 22px; padding: 10px 10px 10px 14px; border-radius: 20px; }
  .hero-float strong { font-size: 16px; }
  .round { width: 40px; height: 40px; }

  /* marquee */
  .marquee { padding: 14px 0; }
  .marquee span { font-size: 22px; }
  .marquee-group { gap: 22px; padding-inline-end: 22px; }

  /* section heads */
  .section { padding: 80px 0 24px; }
  .section-head { margin-bottom: 28px; gap: 14px; }
  .section-head h2 { font-size: 40px; }
  .section-head > p { font-size: 15px; }

  /* swipe carousels */
  .cat-grid, .u-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 6px 16px 18px; scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar, .u-grid::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 68%; min-height: 300px; scroll-snap-align: center; padding-top: 58px; }
  .u-card { flex: 0 0 80%; scroll-snap-align: center; }
  .cat-card[data-reveal], .u-card[data-reveal] { transform: none; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .4s var(--ease), background .3s; }
  .dots span.on { width: 22px; background: var(--navy); }
  .dots.light span { background: var(--navy-3); }
  .dots.light span.on { background: var(--gold); }

  .available { margin: 80px 10px 0; padding: 72px 0 56px; border-radius: 36px; }
  .available .section-head h2 { font-size: 38px; }

  /* project cards */
  .p-grid { gap: 36px; }
  .p-arch { aspect-ratio: 4 / 4.3; }
  .p-body h3 { font-size: 26px; }

  /* projects page */
  .page-hero { padding: 110px 0 40px; }
  .page-hero .display { font-size: clamp(44px, 13vw, 60px); }
  .cat-tabs { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px 32px; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex: 0 0 auto; padding: 8px 18px 8px 8px; scroll-snap-align: start; }
  .cat-tab .cat-icon { width: 42px; height: 42px; }
  .cat-tab strong { font-size: 17px; }
  .list-head { flex-direction: column; align-items: stretch; }
  .pills { justify-content: space-between; }
  .pill { flex: 1; justify-content: center; padding: 0 10px; }

  /* project page */
  .hero-tags .tag { font-size: 13px; padding: 7px 14px; }
  .gallery-main { aspect-ratio: 4 / 4.4; border-radius: 999px 999px 28px 28px; }
  .thumb { width: 74px; height: 86px; }
  .info-card { padding: 22px; border-radius: 26px; }

  /* serials */
  .serials { padding-top: 72px; }
  .legend { width: 100%; }
  .s-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .s-tabs::-webkit-scrollbar { display: none; }
  .s-tab { flex: 0 0 auto; scroll-snap-align: start; padding-inline-end: 16px; }
  .s-num { width: 44px; height: 50px; font-size: 21px; }
  .tower-wrap { margin-inline: -6px; padding: 26px 10px 14px; border-radius: 28px; }
  .tower { min-width: 0; }
  .tower-crown { height: 54px; margin: 0 14px; }
  .tower-crown span { font-size: 15px; margin-top: 10px; }
  .t-floor { flex-wrap: nowrap; gap: 8px; padding: 10px 10px; border-inline-width: 5px; }
  .t-label { flex: 0 0 64px; font-size: 11px; line-height: 1.4; }
  .t-units { gap: 6px; }
  .win { min-width: 40px; height: 42px; font-size: 13px; }
  .tip { font-size: 11px; }
  .tower-base { margin: 0 -8px; height: 16px; }
  .s-summary { padding: 22px; border-radius: 28px; gap: 16px; }
  .s-big strong { font-size: 52px; }
  .s-floor { flex-basis: 100%; }
  .s-summary .btn { width: 100%; }

  /* footer */
  .footer { margin-top: 90px; padding: 72px 0 24px; border-radius: 36px 36px 0 0; }
  .footer-top { gap: 32px; margin-bottom: 44px; flex-direction: column-reverse; align-items: flex-start; }
  .footer-call h2 { font-size: 46px; margin-bottom: 22px; }
  .footer-actions { flex-direction: column; width: 100%; }
  .footer-actions .btn { width: 100%; }
  .footer-seal { width: 130px; height: 150px; border-radius: 999px 999px 22px 22px; }
  .footer-seal img { width: 80px; }
  .footer-grid { gap: 22px; }
}
