/* Luxury Compounds — the big-developer canon: photography owns the page; ink, white and cool stone; one harbour blue for actions. */
:root {
  --ink: #0C1824;
  --ink-2: #16283A;
  --paper: #FFFFFF;
  --stone: #EEF1F2;
  --stone-2: #E2E7EA;
  --line: #D7DDE1;
  --mute: #55626D;
  --accent: #1E4D7A;
  --accent-2: #153A5D;
  --wa: #137A44;
  --f-display: "Alexandria", "Almarai", system-ui, sans-serif;
  --f-body: "Almarai", "Alexandria", system-ui, sans-serif;
  --gut: clamp(20px, 4.2vw, 72px);
  --max: 1440px;
  --sec: clamp(72px, 9vw, 140px);
  --hdr: 84px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
bdi { unicode-bidi: isolate; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.3; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.1vw, 46px); font-weight: 300; }
p { margin: 0; }
html { scrollbar-color: var(--line) transparent; }
input, select { accent-color: var(--accent); caret-color: var(--accent); }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding-inline: 26px; border: 1px solid transparent; border-radius: 2px; background: none;
  font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-2); }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--text { min-height: 44px; padding-inline: 0; color: var(--accent); background: none; border: 0; }
.btn--text:hover { text-decoration: underline; text-underline-offset: 6px; }
.btn--text .ic { transition: transform .3s var(--ease); }
.btn--text:hover .ic { transform: translateX(-4px); }

/* ---------- header ---------- */
.hdr { position: absolute; inset-inline: 0; top: 0; z-index: 40; height: var(--hdr); color: var(--ink); background: #fff; box-shadow: 0 1px 0 var(--line); }
.has-hero .hdr { color: #fff; background: transparent; box-shadow: none; }
.hdr-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.brand { justify-self: start; font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: .26em; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; }
.nav a { position: relative; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-act { justify-self: end; display: flex; align-items: center; gap: 22px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; min-height: 44px; }
.hdr-cta { min-height: 44px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(100svh, 1000px); color: #fff; background: var(--ink); overflow: hidden; }
.hero--page { min-height: min(90svh, 900px); }
.hero-media, .slide { position: absolute; inset: 0; margin: 0; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.slide-img { filter: saturate(1.06) contrast(1.04); }
@media (min-width: 768px) { .hero-scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(7 14 22 / .52), rgb(7 14 22 / 0) 58%); } }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(7 14 22 / .86) 0%, rgb(7 14 22 / .58) 38%, rgb(7 14 22 / .22) 68%, rgb(7 14 22 / 0) 84%), linear-gradient(to bottom, rgb(7 14 22 / .6), rgb(7 14 22 / 0) 220px); }
.hero-body { position: relative; z-index: 2; padding-block: calc(var(--hdr) + 48px) clamp(120px, 12vw, 172px); display: grid; gap: 22px; justify-items: start; }
.hero--page .hero-body { padding-block-end: clamp(110px, 10vw, 150px); }
.hero-h { font-size: clamp(36px, 5vw, 72px); font-weight: 300; line-height: 1.16; max-width: 15ch; text-shadow: 0 2px 24px rgb(7 14 22 / .35); }
.hero--project .hero-h { max-width: 18ch; }
.hero-en { display: block; font-size: max(.3em, 15px); font-weight: 400; letter-spacing: .06em; line-height: 1.4; margin-top: .45em; opacity: .85; }
.hero-h2 { display: block; font-size: max(.36em, 17px); font-weight: 400; line-height: 1.5; margin-top: .55em; opacity: .9; }
.hero-sub { font-size: clamp(17px, 1.45vw, 21px); max-width: 52ch; line-height: 1.7; opacity: .92; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(15px, 1.2vw, 18px); text-shadow: 0 1px 12px rgb(7 14 22 / .5); }
.hero-facts > span + span { border-inline-start: 1px solid rgb(255 255 255 / .45); margin-inline-start: 16px; padding-inline-start: 16px; }
.hero-facts b { font-family: var(--f-display); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 14px; text-shadow: 0 1px 10px rgb(7 14 22 / .6); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs > span { display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* home slides: caption and controls on the inline-end edge */
.slide-cap { position: absolute; z-index: 3; inset-inline-end: var(--gut); bottom: clamp(120px, 12vw, 172px); max-width: 300px; opacity: 0; transform: translateY(10px); transition: opacity .9s .4s var(--ease), transform .9s .4s var(--ease); }
.slide.is-on .slide-cap { opacity: 1; transform: none; }
.slide-cap a { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .55); }
.slide-name { font-family: var(--f-display); font-size: 20px; }
.slide-meta { font-size: 13.5px; opacity: .88; line-height: 1.6; }
.slide-ctl { position: absolute; z-index: 3; inset-inline-end: var(--gut); bottom: 84px; display: flex; align-items: center; gap: 14px; }
.slide-pause { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .55); border-radius: 50%; background: none; color: #fff; }
.slide-dots { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.slide-dots button { width: 34px; height: 44px; border: 0; background: none; position: relative; }
.slide-dots button::before { content: ""; position: absolute; inset-inline: 0; top: 21px; height: 2px; background: rgb(255 255 255 / .4); }
.slide-dots button[aria-current="true"]::before { background: #fff; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .slide.is-on .slide-img { animation: push 9s linear both; }
  @keyframes push { from { transform: scale(1.07); } to { transform: scale(1); } }
}

/* ---------- finder (overlaps the hero edge) ---------- */
.finder { box-sizing: border-box; position: relative; z-index: 5; margin-top: -58px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; background: var(--paper);
  box-shadow: 0 30px 70px -30px rgb(12 24 36 / .45); }
.finder-f { display: grid; gap: 2px; padding: 16px 24px 12px; border-inline-start: 1px solid var(--line); min-width: 0; }
.finder-f:first-child { border-inline-start: 0; }
.finder-f span { font-size: 12.5px; color: var(--mute); }
.finder-f select { appearance: none; border: 0; background: transparent; font-family: var(--f-display); font-size: 17px; padding: 4px 0 4px 24px; min-height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230C1824' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left center; background-size: 16px; width: 100%; min-width: 0; text-overflow: ellipsis; }
.finder-go { min-height: 100%; padding-inline: 40px; border-radius: 0; }

/* ---------- facts line ---------- */
.facts-line { padding-block: clamp(56px, 7vw, 96px) 0; }
.facts-line p { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.7; max-width: 34ch; }
.facts-line b { font-weight: 500; }
.facts-line { overflow: hidden; }
.facts-line p { display: flex; flex-wrap: wrap; column-gap: 1.1em; margin-inline-start: -1.1em; }
.fact { white-space: nowrap; position: relative; padding-inline-start: 1.1em; }
.fact::before { content: ""; position: absolute; inset-inline-start: .5em; top: .45em; height: .8em; width: 1px; background: var(--line); }

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { color: var(--mute); max-width: 60ch; }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.sec-head--row > div:not(.chips) { display: grid; gap: 10px; }

/* ---------- areas mosaic ---------- */
.areas { padding-block: var(--sec) 0; }
.areas-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 21vw, 330px); gap: 12px; }
.area { position: relative; overflow: hidden; color: #fff; background: var(--ink); grid-column: span 2; }
.area--1 { grid-column: span 4; grid-row: span 2; }
.area--4, .area--5 { grid-column: span 3; }
.area-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.area:hover .area-img { transform: scale(1.045); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(7 14 22 / .75), rgb(7 14 22 / 0) 55%); }
.area-txt { position: absolute; z-index: 1; inset-inline: 24px; bottom: 22px; display: grid; gap: 4px; }
.area-t { font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 30px); font-weight: 400; line-height: 1.3; }
.area--1 .area-t { font-size: clamp(26px, 2.8vw, 44px); font-weight: 300; }
.area-n { font-size: 14px; opacity: .9; }

/* ---------- projects grid ---------- */
.projects { padding-block: var(--sec); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.sec-head--row > .chips { flex: 1 0 100%; }
.chip { min-height: 44px; padding-inline: 18px; border: 1px solid var(--line); background: none; border-radius: 999px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); container-type: inline-size; }
.card { container-type: inline-size; }
.card[hidden] { display: none; }
.card-link { display: grid; gap: 18px; }
.card-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-link:hover .card-photo img { transform: scale(1.04); }
.card-body { display: grid; gap: 4px; }
.card-name { font-family: var(--f-display); font-size: 22px; line-height: 1.3; text-align: right; }
.card-ar { font-size: 15px; color: var(--mute); }
.card-meta { font-size: 14px; color: var(--mute); }
.card-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.card-facts b { font-family: var(--f-display); font-weight: 500; font-size: 16px; }
@container (max-width: 300px) { .card-name { font-size: 19px; } .card-facts { font-size: 13.5px; } }
.empty { padding-block: 40px; color: var(--mute); }
.more-btn { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.more-btn .btn { min-width: 240px; }

/* ---------- developers directory ---------- */
.devs { padding-block: var(--sec); background: var(--stone); }
.dev-list { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); }
.dev-list a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ar go" "en go" "n go"; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.dev-ar { grid-area: ar; font-family: var(--f-display); font-size: 21px; }
.dev-en { grid-area: en; font-size: 12.5px; color: var(--mute); text-align: right; }
.dev-n { grid-area: n; font-size: 14px; color: var(--mute); margin-top: 4px; }
.dev-go { grid-area: go; width: 22px; height: 22px; color: var(--accent); transition: transform .35s var(--ease); }
.dev-list a:hover .dev-go { transform: translateX(-6px); }

/* ---------- lead band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); padding-block: var(--sec); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(12 24 36 / .2), rgb(12 24 36 / .85)); }
.band-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.band-copy { display: grid; gap: 18px; max-width: 46ch; }
.band-copy p { opacity: .9; }
.band-alt { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; }
.band-alt a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* ---------- lead form ---------- */
.lead { display: grid; gap: 16px; background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); }
.lead--compact { padding: 0; background: none; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 13.5px; color: var(--mute); }
.fld input { height: 54px; padding-inline: 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 17px; transition: border-color .2s; }
.fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(30 77 122 / .15); }
.fld input:user-invalid { border-color: #A3352C; }
.lead .btn { width: 100%; min-height: 54px; font-size: 16px; }
.lead .btn[disabled] { opacity: .7; cursor: progress; }
.lead-note { font-size: 13px; color: var(--mute); line-height: 1.6; }
.lead-err { background: #FBEDEC; color: #8A2A22; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; }

/* ---------- intro / developer rows ---------- */
.intro { padding-block: var(--sec) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 72ch; margin-inline: auto; justify-items: start; }
.intro-lead { font-family: var(--f-display); font-weight: 300; font-size: clamp(21px, 2vw, 28px); line-height: 1.75; }
.intro p:not(.intro-lead) { color: var(--mute); }
.dev-rows { padding-block: clamp(24px, 4vw, 56px) var(--sec); display: grid; gap: clamp(56px, 8vw, 120px); }
.dev-rows > h2 { margin-bottom: -24px; }
.row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 88px); width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.row--flip .row-photo { order: 2; }
.row-photo { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--stone); }
.row-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.row-photo:hover img { transform: scale(1.035); }
.row-body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.row-body h3 { font-size: clamp(28px, 2.8vw, 42px); font-weight: 300; }
.row-en { color: var(--mute); font-size: 15px; }
.row-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 8px 0 0; width: 100%; }
.row-facts div { padding-block: 14px; border-top: 1px solid var(--line); }
.row-facts dt { font-size: 13px; color: var(--mute); }
.row-facts dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 19px; }
.row-ctas { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }

/* ---------- tables ---------- */
.prices { padding-block: 0 var(--sec); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tbl-wrap { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.tbl th, .tbl td { text-align: start; padding: 18px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { font-size: 13px; font-weight: 400; color: var(--mute); border-bottom-color: var(--ink); }
.tbl tbody th { font-family: var(--f-display); font-weight: 400; font-size: 17px; }
.tbl tbody th a:hover { color: var(--accent); }
.ph-ar { display: block; }
.ph-en { display: block; font-family: var(--f-body); font-size: 12.5px; color: var(--mute); }

/* ---------- project: calculator (overlaps the hero edge) ---------- */
.calc { box-sizing: border-box; position: relative; z-index: 5; margin-top: -72px; background: var(--paper); box-shadow: 0 30px 70px -30px rgb(12 24 36 / .45); padding: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.calc-head { display: grid; gap: 6px; }
.calc-head h2 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 400; }
.calc-head p { color: var(--mute); font-size: 14px; }
.calc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-opt { position: relative; }
.calc-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc-opt span { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; transition: background-color .2s, color .2s; }
.calc-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.calc-out div { padding: 20px 0 4px; }
.calc-out div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.calc-out dt { font-size: 13px; color: var(--mute); }
.calc-out dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.3vw, 34px); font-variant-numeric: tabular-nums; line-height: 1.3; }
.calc-out small { font-size: 14px; color: var(--mute); }
.calc-note { font-size: 13px; color: var(--mute); }
.calc-out--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-out dd .btn { font-size: 15px; min-height: 48px; margin-top: 4px; }

/* ---------- project layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 5vw, 88px); align-items: start; padding-block: clamp(40px, 5vw, 72px) var(--sec); }
.subnav-bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.subnav { display: flex; gap: 28px; overflow-x: auto; font-size: 14.5px; scrollbar-width: none; }
.subnav a { padding-block: 16px; white-space: nowrap; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a[aria-current="true"], .subnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.sec { padding-block: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.main-col { min-width: 0; }
.sec:last-child { border-bottom: 0; }
.sec h2 { font-size: clamp(25px, 2.3vw, 36px); }
.sec h2.h-lg { font-size: clamp(30px, 3.1vw, 46px); }
.sec > p { max-width: 68ch; color: var(--mute); }
.id-line { margin: 0; font-size: 14px; color: var(--mute); }
.sec > .lead-p { color: var(--ink); font-family: var(--f-display); font-weight: 300; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.8; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin: 12px 0 0; }
.keys div { border-top: 1px solid var(--ink); padding-top: 14px; }
.keys dt { font-size: 13px; color: var(--mute); }
.keys dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 19px; line-height: 1.45; }
.units { list-style: none; padding: 0; margin: 0; }
.units li { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.u-t { font-family: var(--f-display); font-size: 18px; }
.u-s, .u-b { color: var(--mute); }

/* rails: native scroll-snap */
.rail { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail--photos { grid-auto-columns: min(82%, 560px); }
.rail--plans { grid-auto-columns: min(66%, 260px); }
.zoomable { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.gal-band { padding-block: clamp(72px, 8vw, 120px) clamp(24px, 3vw, 40px); display: grid; gap: 28px; }
.gal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.gal-head p { color: var(--mute); font-size: 14px; }
.rail--band { grid-auto-columns: min(88vw, 1040px); gap: 12px; padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
.rail--band .shot { aspect-ratio: 16 / 9; }
.mp-band { background: var(--stone); padding-block: clamp(64px, 7vw, 110px); display: grid; gap: 28px; }
.mp-head { display: grid; gap: 12px; }
.mp-head p { color: var(--mute); max-width: 68ch; }
.mp-band .mp { background: #fff; }
.layout--b { padding-top: clamp(16px, 2vw, 32px); }
.shot { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.plan { margin: 0; display: grid; gap: 10px; }
.plan .zoomable { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); padding: 10px; }
.plan img { width: 100%; height: 100%; object-fit: contain; }
.plan figcaption { font-size: 14px; color: var(--mute); }
.mp { position: relative; overflow: hidden; background: var(--stone); }
.mp img { width: 100%; }
.mp-z { position: absolute; inset-inline-start: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; background: rgb(12 24 36 / .82); color: #fff; padding: 10px 16px; font-size: 14px; }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.map-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--mute); }
.map-ph .ic { width: 28px; height: 28px; }
.map .leaflet-container { position: absolute; inset: 0; font-family: var(--f-body); background: var(--stone); }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.map-act { margin-top: -6px; }
.near { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.near li { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.near li span:last-child { color: var(--mute); white-space: nowrap; }
.amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.amen li { position: relative; padding: 13px 22px 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.amen li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; min-width: 0; overflow-wrap: anywhere; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; min-height: 44px; cursor: pointer;
  font-family: var(--f-display); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1; min-width: 0; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--mute); max-width: 66ch; }

/* side card */
.side { position: sticky; top: 84px; }
.side-card { border: 1px solid var(--line); padding: 28px; display: grid; gap: 12px; background: var(--paper); }
.side-t { font-family: var(--f-display); font-size: 22px; line-height: 1.35; }
.side-price { font-size: 15px; }
.side-price b { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.side-plan { font-size: 14.5px; color: var(--mute); margin-bottom: 8px; }
.side-alt { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-weight: 700; font-size: 14.5px; }
.side-alt a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.sibs { padding-block: var(--sec); background: var(--stone); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more { padding-block: var(--sec); display: grid; gap: 24px; }
.more-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more-list a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; }
.more-list a:hover { border-color: var(--ink); }
.thanks { padding-block: calc(var(--hdr) + var(--sec)) var(--sec); display: grid; gap: 20px; max-width: 60ch; justify-items: start; }
.thanks h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; }
.thanks-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: rgb(255 255 255 / .74); padding-block: clamp(56px, 6vw, 96px) 28px; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr .brand { color: #fff; font-size: 17px; margin: 0; }
.ftr-brand { display: grid; gap: 12px; align-content: start; max-width: 36ch; }
.ftr-id { font-size: 13px; color: rgb(255 255 255 / .6); }
.ftr-col { display: grid; gap: 8px; align-content: start; }
.ftr-col a { display: flex; align-items: center; min-height: 44px; }
.ftr-col a:hover { color: #fff; }
.ftr-h { color: #fff; font-family: var(--f-display); margin-bottom: 6px; }
.ftr-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .14); font-size: 13px; color: rgb(255 255 255 / .55); }

/* ---------- dock (phones) ---------- */
.dock { display: none; }

/* ---------- sheet + lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgb(7 14 22 / .62); backdrop-filter: blur(3px); }
.sheet { width: min(460px, 100% - 32px); background: var(--paper); }
.sheet-in { position: relative; padding: 36px 32px 32px; display: grid; gap: 10px; }
.sheet h2 { font-size: 28px; font-weight: 300; }
.sheet-sub { color: var(--mute); margin-bottom: 8px; }
.sheet .lead { padding: 0; }
.sheet-x, .lb-x { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; }
@media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: sheet-in .5s var(--ease); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(7 14 22 / .96); color: #fff; }
.lb-fig { margin: 0; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 64px 72px 32px; box-sizing: border-box; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.lb-fig figcaption { font-size: 14px; opacity: .85; }
.lb-x { color: #fff; z-index: 2; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: none; color: #fff; }
.lb-prev { inset-inline-start: 16px; }
.lb-prev .ic { transform: scaleX(-1); }
.lb-next { inset-inline-end: 16px; }

/* ---------- motion: photographs develop into view (scroll-driven) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .card-photo img, .row-photo img, .area-img, .shot img {
      animation: develop linear both; animation-timeline: view(); animation-range: entry 0% entry 85%;
    }
    @keyframes develop { from { clip-path: inset(12% 0 0 0); scale: 1.08; } to { clip-path: inset(0); scale: 1; } }
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .42s; animation-timing-function: var(--ease); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hdr-in { grid-template-columns: 1fr auto; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
@media (max-width: 1023px) {
  .dock { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.25fr; background: var(--paper);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dock a, .dock button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border: 0; background: none; font-weight: 700; font-size: 15px; }
  .dock .whatsapp { background: var(--wa); color: #fff; }
  .dock button { background: var(--accent); color: #fff; }
  .ftr { padding-bottom: calc(28px + 58px + env(safe-area-inset-bottom, 0px)); }
  .hdr-cta { display: none; }
}
@media (max-width: 767px) {
  :root { --hdr: 64px; }
  .brand { font-size: 13px; letter-spacing: .22em; }
  body { font-size: 16px; }
  .hdr-phone bdi { display: none; }
  .hdr-phone { width: 44px; justify-content: center; border: 1px solid currentColor; border-radius: 50%; }
  .hero { min-height: 74svh; }
  .hero--page { min-height: 72svh; }
  .hero-h { font-weight: 400; }
  .hero-body { padding-block-end: 92px; gap: 14px; }
  .hide-sm { display: none !important; }
  .hero-facts { flex-direction: column; gap: 2px; }
  .hero-facts > span + span { border: 0; margin: 0; padding: 0; }
  .slide-cap, .slide-ctl { display: none; }
  .finder { margin-top: -40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .finder-f { padding-inline: 16px; }
  .finder-budget { display: none; }
  .finder-f:nth-child(2) { border-inline-start: 1px solid var(--line); }
  .finder-go { grid-column: 1 / -1; min-height: 52px; }
  .areas-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; grid-auto-rows: 300px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .area, .area--1, .area--4, .area--5 { grid-column: auto; grid-row: auto; scroll-snap-align: start; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .chip { flex: none; }
  .grid, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .dev-list { grid-template-columns: minmax(0, 1fr); }
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .row, .row--flip { grid-template-columns: minmax(0, 1fr); }
  .row--flip .row-photo { order: 0; }
  .calc { margin-top: -48px; padding: 22px 18px; }
  .calc-out, .calc-out--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-out div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .subnav-bar { display: none; }
  .near, .amen { grid-template-columns: minmax(0, 1fr); }
  .units li { grid-template-columns: 1fr 1fr; }
  .tbl--stack { min-width: 0; }
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .tbl--stack th, .tbl--stack td { padding: 0; border: 0; }
  .tbl--stack tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .tbl--stack td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--mute); }
  .tbl--stack td { white-space: nowrap; font-size: 15px; }
  .tbl--stack .td-act { grid-column: 1 / -1; }
  .tbl--stack td[data-l="أطول خطة"], .tbl--stack td[data-l="المنطقة"] { white-space: normal; }
  .tbl--stack td[data-l="أطول خطة"] { grid-column: 1 / -1; }
  .calc-out dd { font-size: clamp(19px, 5.2vw, 30px); }
  .calc-out dd bdi { white-space: nowrap; }
  .u-b { grid-column: 2; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet { width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh; border-radius: 14px 14px 0 0; }
  .lb-fig { padding: 56px 12px 24px; }
  .lb-nav { top: auto; bottom: 18px; translate: none; }
}
