/* ============================================================
   بنيان مكة — bunyan-makkah.com — site.v5.css

   ART DIRECTION
   brand personality : واثق، منظّم، مصري معاصر
   visual direction  : «حجر وجرافيت» — نهار القاهرة: أرضية فاتحة، كتل مسطّحة بلون اللوجو، صور كبيرة. مكتب معماري مش برشور دهب على أسود.
   type pairing      : Alexandria (عناوين 700/800) / IBM Plex Sans Arabic (نص 400/600) — WOFF2 محلي
   color system      : ground #FFFFFF · surface #F5F4F0 · ink #14171B · muted #5A616A · accent #C4975A (تان اللوجو) · واتساب فقط #0F7A40
   imagery style     : واجهات وشوارع حقيقية بضوء نهار، زاوية مستقيمة، 4:3 أو 4:5، من غير فلاتر ولا نص فوق الصورة؛ أي صورة مولّدة لازم شارتها
   iconography       : Phosphor regular، 24px، currentColor
   spacing rhythm    : أساس 4px · سكشن clamp(64px, 9vw, 128px) · كونتينر 1180px
   card language     : radius 20px، حد 1px #E2E0DA، من غير ظلال إلا للعناصر العائمة
   decorative language: كتلة تان مسطّحة ورا الصورة + أعمدة اللوجو التلاتة كعلامة؛ ممنوع سكاي لاين، تدرّجات، أو خطوط دهبي رفيعة
   responsive        : كل شبكة بتنزل عمود واحد تحت 720px؛ الهيرو نص ثم صورة؛ شريط إجراءات ثابت تحت 900px
   ============================================================ */

@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/alexandria-var-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/alexandria-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/plex-arabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/plex-arabic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/plex-arabic-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/plex-arabic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #14171B;
  --ink-2: #1E2329;
  --ink-line: #333B44;
  --on-ink: #F5F4F0;
  --on-ink-muted: #AEB5BD;
  --white: #FFFFFF;
  --paper: #F5F4F0;
  --line: #E2E0DA;
  --muted: #5A616A;
  --tan: #C4975A;
  --tan-hi: #D3A96F;
  --tan-deep: #7E5514;
  --wa: #0F7A40;
  --wa-hi: #0C6836;
  --err: #B3261E;
  --ok: #0F7A40;
  /* أسماء v3 اللي جوّه SVG الأطلس */
  --gold: var(--tan); --gold-soft: var(--tan-hi); --ink-text: var(--on-ink); --ink-muted: var(--on-ink-muted);

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --f-text: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --r: 20px;
  --r-sm: 12px;
  --gut: 20px;
  --sec: clamp(64px, 9vw, 128px);
  --hdr-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -18px rgba(20, 23, 27, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.4; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.15rem + 4.4vw, 4.1rem); font-weight: 800; line-height: 1.32; }
h2 { font-size: clamp(1.55rem, 1.1rem + 2.1vw, 2.7rem); line-height: 1.38; }
h3 { font-size: 1.2rem; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 6px; }
.sec-ink :focus-visible, .ftr :focus-visible { outline-color: var(--tan-hi); }
::selection { background: var(--tan); color: var(--ink); }

.container { width: min(1180px, 100% - 2 * var(--gut)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 14px;
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; border-radius: 12px; }
.btn-gold { background: var(--tan); color: var(--ink); }
.btn-gold:hover { background: var(--tan-hi); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #262C33; }
.btn-paper { background: var(--white); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hi); }
.sec-ink .btn-line, .path-owner .btn-line { border-color: rgba(245, 244, 240, .55); color: var(--on-ink); }
.sec-ink .btn-line:hover, .path-owner .btn-line:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.sec-ink .btn-ink { background: var(--white); color: var(--ink); }
.arrow { transition: transform .25s var(--ease); }
a:hover > .arrow, .btn:hover > .arrow { transform: translateX(-4px); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@supports (backdrop-filter: blur(8px)) { .hdr { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 14px; min-height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; }
.brand > span { display: grid; line-height: 1.25; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; }
.brand-sub { font-size: .75rem; color: var(--muted); }
.nav-main { display: none; align-items: center; gap: 4px; margin-inline-end: auto; }
.nav-main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-main a:hover { color: var(--ink); background: var(--paper); }
.nav-main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--tan); border-radius: 0; }
.hdr-sell { display: none; }
.mnav { position: static; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; inset-inline-start: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.mnav[open] .bars { background: transparent; }
.mnav[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.mnav[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mnav-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gut) 20px; display: grid; max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto; }
.mnav-panel a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.mnav-panel a[aria-current="page"] { color: var(--tan-deep); }
.mnav-panel .btn { margin-top: 16px; }
@media (max-width: 420px) { .hdr-cta { padding: 0 14px; } .brand-sub { display: none; } }
@media (min-width: 1000px) {
  .nav-main { display: flex; } .mnav { display: none; } .hdr-sell { display: inline-flex; }
  .brand { margin-inline-end: 28px; }
}

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); }
.sec-tint { background: var(--paper); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2::before { content: ''; display: block; width: 44px; height: 10px; margin-bottom: 18px; background: linear-gradient(to left, var(--tan) 0 12px, transparent 12px 16px, var(--ink) 16px 28px, transparent 28px 32px, var(--tan) 32px 44px); }
.sec-ink .sec-head h2::before { background: linear-gradient(to left, var(--tan) 0 12px, transparent 12px 16px, var(--on-ink) 16px 28px, transparent 28px 32px, var(--tan) 32px 44px); }
.sec-head.center h2::before { margin-inline: auto; }
.lead { margin-top: 16px; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 36em; }
.sec-ink .lead, .sec-ink p { color: var(--on-ink-muted); }
.overline { font-weight: 600; font-size: .9rem; color: var(--tan-deep); margin-bottom: 10px; }
.sec-ink .overline { color: var(--tan-hi); }
.mark-gold { background: linear-gradient(transparent 62%, var(--tan) 62% 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .08em; }
.sec-ink .mark-gold { background: none; color: var(--tan-hi); padding: 0; }
.strip-cta { margin-top: 32px; }

/* ---------- Media ---------- */
.media-figure { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.media-figure img { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4 / 3; }
.media-note { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; background: rgba(20, 23, 27, .86); color: var(--white); font-size: .75rem; font-weight: 600; line-height: 1.4; padding: 6px 10px; border-radius: 8px; }

/* ---------- Hero (الرئيسية + مدينة نصر) ---------- */
.hero { background: var(--paper); padding-block: clamp(28px, 5vw, 72px) clamp(56px, 8vw, 104px); overflow: clip; }
.hero-in { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero .crumbs { margin-bottom: 18px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.hero-badge::before { content: ''; width: 22px; height: 10px; background: linear-gradient(to left, var(--tan) 0 6px, transparent 6px 8px, var(--ink) 8px 14px, transparent 14px 16px, var(--tan) 16px 22px); }
.hero-sub { margin-top: 18px; font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--muted); max-width: 31em; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .hero-ctas .btn { flex: 1 1 150px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .95rem; font-weight: 600; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ''; width: 8px; height: 8px; background: var(--tan); }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: var(--muted); text-decoration: none; font-size: .98rem; }
.hero-wa svg { color: var(--wa); }
.hero-wa strong { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-visual { position: relative; padding-bottom: 44px; }
.hero-visual::before { content: ''; position: absolute; inset-inline-start: -14px; inset-block: 18% 20px; width: 46%; background: var(--tan); border-radius: var(--r); }
.hero-shot { position: relative; }
.hero-shot .media-note { inset-block: 12px auto; }
.hero h1 { font-size: clamp(2rem, 1.15rem + 4.2vw, 3.7rem); }
.hero-float { position: absolute; inset-block-end: 0; inset-inline-end: 12px; display: flex; align-items: center; gap: 12px; max-width: min(330px, 86%); padding: 10px; padding-inline-end: 18px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; transition: transform .25s var(--ease); }
.hero-float:hover { transform: translateY(-3px); }
.hero-float img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; flex: none; }
.hero-float span { display: grid; line-height: 1.5; }
.hero-float b { font-size: .95rem; }
.hero-float small { font-size: .8rem; color: var(--muted); }
.skyline { display: none; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.08fr .92fr; }
  .hero .hero-ctas .btn { flex: 0 1 auto; }
  .hero-shot.ratio-43 { aspect-ratio: 4 / 4.5; }
  .hero-visual::before { inset-inline-start: -28px; }
}

/* ---------- Page hero (الصفحات الداخلية) ---------- */
.page-hero { background: var(--paper); padding-block: clamp(32px, 5vw, 64px) clamp(44px, 6vw, 80px); position: relative; overflow: clip; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.4rem); max-width: 13em; }
.page-hero .lead { margin-top: 18px; }
.page-hero .hero-ctas .btn { flex: 1 1 150px; }
@media (min-width: 900px) {
  .page-hero .container::after { content: ''; position: absolute; inset-inline-end: 0; bottom: calc(-1 * clamp(44px, 6vw, 80px)); width: 210px; height: 230px;
    background: linear-gradient(to left, var(--tan) 0 54px, transparent 54px 78px, var(--ink) 78px 132px, transparent 132px 156px, var(--tan) 156px 210px);
    clip-path: polygon(0 45%, 25.7% 45%, 25.7% 100%, 37.1% 100%, 37.1% 0, 62.9% 0, 62.9% 100%, 74.3% 100%, 74.3% 28%, 100% 28%, 100% 100%, 0 100%); }
  .page-hero .hero-ctas .btn { flex: 0 1 auto; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--muted); margin-bottom: 22px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 8px; color: #9AA0A7; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Services (الرئيسية) ---------- */
.svc-grid { display: grid; gap: 14px; }
.svc { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 24px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); text-decoration: none; min-height: 190px; transition: transform .25s var(--ease), border-color .2s; }
.svc:hover { transform: translateY(-4px); border-color: var(--ink); }
.svc h3 { font-size: 1.35rem; }
.svc p { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.svc-ic { color: var(--tan-deep); margin-bottom: 6px; }
.svc-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-weight: 600; }
.svc-tan { background: var(--tan); border-color: var(--tan); }
.svc-tan p, .svc-tan .svc-ic { color: var(--ink); }
.svc-ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.svc-ink p { color: var(--on-ink-muted); }
.svc-ink .svc-ic { color: var(--tan-hi); }
.svc-ink:hover { border-color: var(--tan); }
@media (min-width: 720px) {
  .svc-grid { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 3; padding: 32px 30px 28px; }
  .svc-tan, .svc-ink { min-height: 260px; }
  .svc-tan h3, .svc-ink h3 { font-size: 1.7rem; }
}

/* ---------- Places (الرئيسية) ---------- */
.places { display: grid; gap: 16px; }
.place { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.place .media-figure { border-radius: 0; aspect-ratio: 16 / 10; }
.place-body { padding: 26px 24px 28px; display: grid; gap: 12px; align-content: start; }
.place-where { font-weight: 600; font-size: .9rem; color: var(--tan-deep); }
.place h3 { font-size: 1.6rem; }
.place p { color: var(--muted); }
.place-list { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.place-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.7; color: var(--muted); }
.place-list b { font-family: var(--f-display); font-weight: 700; color: var(--ink); direction: ltr; text-align: end; }
.place-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; align-self: end; }
.place-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.place-chips li { font-size: .9rem; font-weight: 600; line-height: 1.5; padding: 6px 14px; border-radius: 999px; background: var(--paper); }
.place-flat { grid-template-rows: auto; background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.place-flat p { color: var(--on-ink-muted); }
.place-flat .place-where { color: var(--tan-hi); }
@media (min-width: 900px) {
  .places { grid-template-columns: 1fr 1fr; }
  .place-flat { grid-column: 1 / -1; }
  .place-flat .place-body { grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; padding: 32px 36px; }
  .place-flat .place-body > * { grid-column: 1; }
  .place-flat .place-ctas { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .place-body { padding: 32px 32px 34px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; counter-increment: step; padding: 0 0 30px; padding-inline-start: 64px; }
.step::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--tan); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; border-radius: 12px; }
.step::after { content: ''; position: absolute; inset-inline-start: 21px; top: 52px; bottom: 8px; width: 2px; background: var(--line); }
.step:last-child { padding-bottom: 0; } .step:last-child::after { display: none; }
.step h3 { padding-top: 6px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 1rem; }
.sec-ink .step p { color: var(--on-ink-muted); } .sec-ink .step::after { background: var(--ink-line); }
@media (min-width: 900px) {
  .steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; }
  .step { padding: 64px 0 0; }
  .step::after { inset-inline-start: 56px; inset-inline-end: -16px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .how-wrap .steps { grid-auto-flow: row; gap: 0; }
  .how-wrap .step { padding: 0 0 30px; padding-inline-start: 64px; }
  .how-wrap .step:last-child { padding-bottom: 0; }
  .how-wrap .step::after { inset-inline-start: 21px; inset-inline-end: auto; top: 52px; bottom: 8px; width: 2px; height: auto; }
}
.how-wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.how-wrap .media-figure { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .how-wrap { grid-template-columns: .9fr 1.1fr; } .how-wrap .media-figure { aspect-ratio: 4 / 4.4; } }

/* ---------- Gallery (مدينة نصر) ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery .media-figure { aspect-ratio: 1; }
.gallery .g-a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery .g-b { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 860px) {
  .gallery { grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
  .gallery .g-a { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .gallery .g-b { grid-column: 2 / span 2; }
}

/* ---------- Paths ---------- */
.paths { display: grid; gap: 16px; }
.path { display: grid; align-content: start; gap: 14px; padding: 30px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.path > .btn { justify-self: start; margin-top: 8px; }
.path p { color: var(--muted); }
.path h3 { font-size: 1.45rem; }
.path ul { display: grid; gap: 8px; }
.path li, .mini-facts li { position: relative; padding-inline-start: 20px; }
.path li::before, .mini-facts li::before { content: ''; position: absolute; inset-inline-start: 0; top: .78em; width: 8px; height: 8px; background: var(--tan); }
.path-kicker, .path-tag { justify-self: start; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.path-owner { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.path-owner p, .path-owner li { color: var(--on-ink-muted); }
.path-owner .path-kicker, .path-owner .path-tag { background: var(--ink-2); color: var(--tan-hi); }
@media (min-width: 800px) { .paths { grid-template-columns: 1fr 1fr; } .path { padding: 40px 36px; } }

/* ---------- Types ---------- */
.types { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.type { padding: 24px 0 24px; padding-inline-end: 16px; border-bottom: 1px solid var(--line); }
.type svg { color: var(--tan-deep); margin-bottom: 12px; width: 30px; height: 30px; }
.type h3 { margin-bottom: 4px; }
.type p { color: var(--muted); font-size: .97rem; line-height: 1.75; }
@media (min-width: 900px) { .types { grid-template-columns: repeat(4, 1fr); } .type { padding: 30px 24px 30px 0; padding-inline: 0 24px; border-bottom: 0; } .type + .type { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); } }

/* ---------- Atlas (مدينة نصر) ---------- */
.atlas-wrap { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.atlas-panel { background: var(--ink-2); border-radius: var(--r); padding: 18px; }
.atlas-svg { width: 100%; height: auto; }
.atlas-svg .rd { stroke: var(--tan); fill: none; stroke-linecap: round; }
.atlas-svg .rd-2 { stroke: var(--tan-hi); opacity: .6; }
.atlas-svg .gridln { stroke: var(--ink-line); }
.atlas-svg .lm { fill: var(--on-ink); }
.atlas-svg .lm-box { fill: none; stroke: var(--on-ink-muted); stroke-width: 1.2; }
.atlas-svg text { fill: var(--on-ink-muted); font-family: var(--f-text); font-size: 14px; }
.atlas-svg text.rd-name { fill: var(--on-ink); font-weight: 600; font-size: 16px; }
.atlas-svg g { transition: opacity .3s; }
.atlas-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .82rem; }
.atlas-cap b { color: var(--on-ink); }
.area-list { display: grid; border-top: 1px solid var(--ink-line); }
.area-btn { display: block; width: 100%; min-height: 56px; padding: 14px 16px; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--ink-line); border-inline-start: 4px solid transparent; color: inherit; cursor: pointer; transition: background-color .2s, border-color .2s; }
.area-btn:hover { background: var(--ink-2); }
.area-btn[aria-expanded="true"] { background: var(--ink-2); border-inline-start-color: var(--tan); }
.area-btn .t { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--on-ink); }
.area-btn .d { display: none; margin-top: 6px; color: var(--on-ink-muted); font-size: .97rem; line-height: 1.8; }
.area-btn[aria-expanded="true"] .d { display: block; }
.atlas-note { margin-top: 16px; font-size: .85rem; }
@media (min-width: 900px) { .atlas-wrap { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Units ---------- */
.unit-grid { display: grid; gap: 16px; align-items: stretch; }
.unit-card { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.unit-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.unit-card:hover .unit-media img { transform: scale(1.03); }
.unit-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: var(--white); color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.4; padding: 6px 12px; border-radius: 999px; }
.badge-gold { background: var(--tan); }
.unit-body { padding: 24px 22px 26px; display: grid; gap: 16px; align-content: start; }
.unit-body h3 { font-size: 1.35rem; }
.facts { display: grid; border-top: 1px solid var(--line); }
.fact { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.fact .k { color: var(--muted); flex: none; }
.fact .dots { flex: 1; }
.fact .v { font-weight: 600; text-align: end; }
.unit-note { font-size: .88rem; color: var(--muted); }
.unit-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.unit-ctas .btn { flex: 1 1 auto; }
.units-side { display: grid; align-content: center; gap: 14px; padding: 30px 24px; border-radius: var(--r); background: var(--paper); }
.sec-tint .units-side { background: var(--white); border: 1px solid var(--line); }
.units-side p { color: var(--muted); }
.units-side .btn { justify-self: start; }
.units-side .more { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-underline-offset: 5px; text-decoration-color: var(--tan); text-decoration-thickness: 2px; }
@media (min-width: 960px) {
  .unit-grid { grid-template-columns: 1.9fr 1fr; }
  .unit-card { grid-template-columns: 1.05fr 1fr; }
  .unit-media { aspect-ratio: auto; min-height: 400px; }
  .unit-body { padding: 34px 32px; align-content: center; }
  .units-side { padding: 34px 30px; }
}

/* ---------- Commits ---------- */
.commits { display: grid; gap: 0; border-top: 1px solid var(--line); }
.commit { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.commit-ic { width: 64px; height: 64px; display: block; }
.commit h3 { margin-bottom: 6px; }
.commit p { color: var(--muted); font-size: 1rem; }
@media (min-width: 800px) { .commits { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* ---------- Markets ---------- */
.markets { display: grid; gap: 16px; }
.market { display: grid; align-content: start; gap: 12px; padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.market .where { justify-self: start; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--paper); }
.market h3 { font-size: 1.45rem; }
.market p { color: var(--muted); }
.market .btn { justify-self: start; margin-top: 8px; white-space: normal; }
@media (min-width: 800px) { .markets { grid-template-columns: 1fr 1fr; } .market { padding: 38px 34px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 16px 0; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq .x { position: relative; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--paper); transition: background-color .2s, transform .3s var(--ease); }
.sec-tint .faq .x { background: var(--white); }
.faq .x::before, .faq .x::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform .3s var(--ease); }
.faq .x::after { transform: rotate(90deg); }
.faq details[open] .x { background: var(--tan); }
.faq details[open] .x::after { transform: rotate(0); }
.faq .a { padding: 0 0 24px; padding-inline-end: 52px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: clip; text-align: center; }
.cta-final .container { position: relative; display: grid; justify-items: center; gap: 16px; }
.cta-final h2 { max-width: 11.5em; font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem); }
.cta-final p { max-width: 30em; }
.cta-final .hero-ctas { justify-content: center; margin-top: 14px; width: 100%; }
.cta-final .hero-ctas .btn { flex: 1 1 200px; max-width: 320px; }
.cta-final::before, .cta-final::after { content: ''; position: absolute; bottom: 0; width: 132px; height: 62%; max-height: 300px; opacity: .9;
  background: linear-gradient(to left, var(--tan) 0 34px, transparent 34px 49px, var(--ink-2) 49px 83px, transparent 83px 98px, var(--tan) 98px 132px);
  clip-path: polygon(0 45%, 25.7% 45%, 25.7% 100%, 37.1% 100%, 37.1% 0, 62.9% 0, 62.9% 100%, 74.3% 100%, 74.3% 28%, 100% 28%, 100% 100%, 0 100%); display: none; }
.cta-final::before { inset-inline-start: 5%; } .cta-final::after { inset-inline-end: 5%; transform: scaleX(-1); }
@media (min-width: 1100px) { .cta-final::before, .cta-final::after { display: block; } }
.cta-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: 10px; font-size: 1rem; }
.cta-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink); font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--tan); text-decoration-thickness: 2px; }
.cta-line { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-side { display: grid; gap: 14px; }
.form-side p { color: var(--muted); }
.mini-facts { display: grid; gap: 10px; margin-top: 8px; font-weight: 600; }
.lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px 26px; }
.f-grid { display: grid; gap: 18px; }
.f-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.f-field label, .f-label { font-weight: 600; font-size: .97rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; background: var(--white); border: 1.5px solid #B9BDC2; border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.6; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.f-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: left 16px center, left 22px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
.f-field textarea { min-height: 124px; resize: vertical; }
.f-field input[type="tel"] { direction: ltr; text-align: right; }
.f-field ::placeholder { color: #70767D; opacity: 1; }
.f-field input:hover, .f-field select:hover, .f-field textarea:hover { border-color: var(--ink); }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(196, 151, 90, .45); }
.f-msg { display: none; color: var(--err); font-size: .9rem; font-weight: 600; }
.f-field.err input, .f-field.err select, .f-field.err textarea { border-color: var(--err); background: #FDF4F3; }
.f-field.err .f-msg { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--paper); border-radius: 14px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; min-height: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 48px; border-radius: 10px; font-weight: 600; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--tan); outline-offset: 2px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-consent { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.f-consent a { color: var(--ink); font-weight: 600; }
.f-actions { display: grid; gap: 10px; }
.f-actions .btn { white-space: normal; }
.lead-form button[disabled] { cursor: progress; background: var(--ink); color: var(--white); transform: none; }
.lead-form button[disabled]::before { content: ''; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-status { display: none; padding: 16px 18px; border-radius: var(--r-sm); font-size: .98rem; line-height: 1.8; }
.f-status.ok, .f-status.bad { display: block; }
.f-status.ok { background: #E9F4EE; color: #0B4F2A; border-inline-start: 4px solid var(--ok); }
.f-status.bad { background: #FDF0EF; color: #7A1A14; border-inline-start: 4px solid var(--err); }
.f-status a:not(.btn) { font-weight: 600; }
.f-status .btn { margin-top: 10px; }
@media (min-width: 640px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .f-grid > .full, .f-grid > .f-consent, .f-grid > .f-actions, .f-grid > .f-status, .f-grid > .hp-field { grid-column: 1 / -1; }
  .f-actions { grid-template-columns: auto auto; justify-content: start; }
  .lead-form { padding: 36px 34px; }
}
@media (min-width: 960px) { .form-wrap { grid-template-columns: .8fr 1.2fr; } .form-side { position: sticky; top: calc(var(--hdr-h) + 28px); } }

/* ---------- Prose (قانوني + عن الشركة) ---------- */
.prose { max-width: 42em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #3A4048; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 20px; }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: .78em; width: 8px; height: 8px; background: var(--tan); }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--tan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose .updated { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--on-ink); padding-block: clamp(48px, 7vw, 80px) 28px; border-top: 1px solid var(--ink-line); }
.ftr-in { display: grid; gap: 36px; }
.ftr .brand-sub { color: var(--on-ink-muted); }
.ftr-about { margin-top: 16px; color: var(--on-ink-muted); font-size: .97rem; max-width: 26em; }
.ftr h4 { font-size: 1rem; margin-bottom: 8px; color: var(--tan-hi); }
.ftr ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-ink); transition: color .2s; }
.ftr ul a:hover { color: var(--tan-hi); }
.ftr-btm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: .9rem; color: var(--on-ink-muted); }
.ftr-btm ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.ftr-btm ul a { color: var(--on-ink-muted); }
@media (min-width: 760px) { .ftr-in { grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; } }
@media (max-width: 899px) { .ftr { padding-bottom: 104px; } }

/* ---------- Sticky action bar (موبايل) ---------- */
.action-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(20, 23, 27, .4); }
.action-bar .btn { min-height: 50px; padding: 0 8px; font-size: .95rem; gap: 7px; border-radius: 12px; }
.action-bar .btn:hover { transform: none; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Motion ---------- */
html.js .rv, html.js .rv-g > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .rv.in, html.js .rv-g.in > * { opacity: 1; transform: none; }
html.js .rv-g.in > *:nth-child(2) { transition-delay: .08s; }
html.js .rv-g.in > *:nth-child(3) { transition-delay: .16s; }
html.js .rv-g.in > *:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .rv, html.js .rv-g > * { opacity: 1; transform: none; }
  .btn:hover, .svc:hover, .hero-float:hover { transform: none; }
}
@media print { .hdr, .action-bar, .ftr, .hero-visual::before { display: none; } html.js .rv, html.js .rv-g > * { opacity: 1; transform: none; } }

/* ===== v2: illustration + motion layer (inline SVG is painted from here; CSP forbids inline styles) ===== */
:root { --grid: #E9E7E1; }
svg .i { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .t { fill: var(--tan); } svg .k { fill: var(--ink); } svg .s { fill: var(--paper); } svg .w { fill: var(--white); }
svg .grid { fill: none; stroke: var(--grid); stroke-width: 1; }
svg .dim { fill: none; stroke: var(--tan-deep); stroke-width: 1.5; }
svg .win { fill: var(--ink); opacity: .2; }
svg .lbl { font-family: var(--f-display); font-weight: 700; font-size: 18px; fill: var(--ink); }
.sec-ink svg .i, .path-owner svg .i { stroke: var(--on-ink); }

/* blueprint ground on the stone bands */
.hero, .page-hero, .sec-tint { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; }
.cta-final, .ftr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8zM0 0l12 12M64 0L52 12M0 64l12-12M64 64L52 52' fill='none' stroke='%23262C33' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 64px 64px; }

@media (min-width: 900px) { .hero-in:has(.duo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .hero-in:has(.duo) .hero-ctas { flex-wrap: nowrap; } .hero-in:has(.duo) .hero-ctas .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; } }
.hero h1.h1-wide { font-size: clamp(1.9rem, .5rem + 3vw, 3.1rem); white-space: nowrap; }
.hero h1.h1-wide .mark-gold { display: block; width: fit-content; }

/* draw-in, stacking floors, pins: start states exist only when JS runs, end state is the default */
html.js svg .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s var(--ease) .15s; }
html.js .in svg .d, html.js svg.in .d { stroke-dashoffset: 0; }
html.js svg .pin { opacity: 0; transform: translateY(-12px); transition: opacity .4s 1.5s, transform .6s var(--ease) 1.5s; }
html.js svg .pin-c { transition-delay: 1.9s; }
html.js .in svg .pin { opacity: 1; transform: none; }
html.js svg .lbl { opacity: 0; transition: opacity .5s 2.1s; }
html.js .in svg .lbl { opacity: 1; }
@keyframes ripple { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }

/* animated marker on the hero key words */
html.js .hero .mark-gold { background-repeat: no-repeat; background-position: right center; background-size: 0% 100%; transition: background-size .9s var(--ease) .35s; }
html.js.ready .hero .mark-gold { background-size: 100% 100%; }

/* header: logo shrinks, bar keeps its height (no layout shift) */
.hdr .brand img { transition: transform .3s var(--ease); transform-origin: right center; }
.hdr.scrolled .brand img { transform: scale(.84); }
.hdr.scrolled { box-shadow: 0 10px 28px -20px rgba(20, 23, 27, .5); }

/* two tracks */
.split-head { display: grid; gap: 20px; align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.split-head .sec-head { margin: 0; }
.map-svg { width: 100%; height: auto; overflow: visible; }
.path { overflow: hidden; transition: transform .3s var(--ease), border-color .2s; will-change: transform; }
.path:hover .path-media img, .why-photos figure:hover img { transform: scale(1.04); }
.path-media img, .why-photos img { transition: transform .8s var(--ease); }


/* principles + steps: spot illustrations and a photo pair */
.spot { width: 64px; height: 64px; }
.step .spot { width: 56px; height: 56px; margin-bottom: 8px; }
.why-wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.why-photos { position: relative; padding: 0 0 18% 12%; }
.why-photos::before { content: ''; position: absolute; inset: 12% 14% 8% 0; background: var(--tan); border-radius: var(--r); }
.why-a { aspect-ratio: 4 / 3; }
.why-b { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--white); border-radius: 16px; }
.unit-card, .market { transition: transform .3s var(--ease); }
@media (min-width: 960px) { .why-wrap { grid-template-columns: 1.15fr .85fr; } .why-wrap .commits { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html.js svg .d { stroke-dashoffset: 0; }
  html.js svg .pin, html.js svg .lbl { opacity: 1; transform: none; }
  html.js .hero .mark-gold { background-size: 100% 100%; }
  html.js .in .map-svg .ring { animation: none; }
}

/* ===== v3 pass: photo layer + atmosphere. Same palette and type; real project imagery replaces the line drawings.
   imagery: Assiut = project renders and site photos from landings/assiut/media; Cairo = existing generated images (badged).
   motion: slow settle (opacity/transform only); every start state lives under html.js and is undone under prefers-reduced-motion. ===== */
h2 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); }

/* hero: one arch per branch, equal size */
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3.4vw, 36px); align-items: start; width: 100%; max-width: 640px; margin-inline: auto; padding: 14px 12px 0; }
.duo::before { display: none; }
.duo-sun { position: absolute; z-index: 0; width: 54%; aspect-ratio: 1; inset-inline-start: 23%; top: 21%; border-radius: 50%; background: var(--tan); }
.duo-col { position: relative; z-index: 1; display: grid; gap: 14px; will-change: transform; }
.duo-cairo { margin-top: 26%; }
.duo-col::before { content: ''; position: absolute; top: 0; inset-inline: 0; aspect-ratio: 2 / 3; border: 2px solid var(--ink); border-radius: 999px 999px 18px 18px; transform: translate(12px, -12px); }
.duo-cairo::before { transform: translate(-12px, 12px); }
.duo-fig { aspect-ratio: 2 / 3; border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow); }
.duo-fig .media-note { inset-block-end: 10px; inset-inline-start: 10px; font-size: .68rem; padding: 4px 8px; }
.duo-tag { display: grid; justify-items: center; text-align: center; line-height: 1.35; }
.duo-tag b { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.05rem, .9rem + .7vw, 1.4rem); }
.duo-tag span { font-size: .85rem; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) { .hero-in:has(.duo) { align-items: center; } .hero:has(.duo) { padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 112px); } }
html.js .duo-fig { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease) .1s, transform 1.3s var(--ease) .1s; }
html.js .duo-cairo .duo-fig { transition-delay: .28s; }
html.js .duo-fig img { transform: scale(1.18); transition: transform 2.4s var(--ease) .1s; }
html.js .duo-sun { opacity: 0; transform: scale(.55); transition: opacity .9s .2s, transform 1.6s var(--ease) .2s; }
html.js .duo-col::before, html.js .duo-tag { opacity: 0; transition: opacity .9s 1s; }
html.js.ready .duo-fig, html.js.ready .duo-sun { opacity: 1; transform: none; }
html.js.ready .duo-col::before, html.js.ready .duo-tag { opacity: 1; }
html.js.ready .duo-fig img { transform: none; animation: drift 18s ease-in-out 2.8s infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Egypt map */
.map-fig { width: min(340px, 100%); margin-inline: auto; }
@media (min-width: 800px) { .split-head { grid-template-columns: 1fr 380px; } .map-fig { width: 100%; } }
.map-svg .land { fill: var(--paper); }
.map-svg .mdot { fill: #D5D2C9; }
.map-svg .shadow { transform: translate(9px, 9px); }
.map-svg .out { stroke-width: 1.8; }
.map-svg .nile { fill: none; stroke: var(--tan); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.map-svg .delta { stroke-width: 2.8; }
.map-svg .dotc { fill: var(--ink); }
.map-svg .lbl { font-size: 19px; font-weight: 800; text-anchor: start; paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.map-svg .lbl.sub { font-family: var(--f-text); font-size: 13.5px; font-weight: 600; fill: var(--muted); stroke-width: 5px; }
.map-svg .ring { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; }
html.js .in .map-svg .ring { animation: ripple 2.8s ease-out 2.2s infinite; }
html.js .in .map-svg .ring2 { animation-delay: 3.6s; }

/* two tracks: city name on the photo */
.path-media { margin: -30px -24px 6px; border-radius: 0; aspect-ratio: 16 / 10; background: var(--ink); }
@media (min-width: 800px) { .path-media { margin: -40px -36px 8px; } }
.path-media::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(20, 23, 27, .78), rgba(20, 23, 27, 0)); pointer-events: none; }
.path-media .media-note { inset-block: 12px auto; }
.path-city { position: absolute; z-index: 1; inset-inline-start: 24px; inset-block-end: 12px; color: var(--white); font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.3; }
@media (min-width: 800px) { .path-city { inset-inline-start: 36px; inset-block-end: 16px; } }

/* four buildings: project renders */
.blds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bld { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); text-decoration: none; }
.bld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bld::after { content: ''; position: absolute; inset: 28% 0 0; background: linear-gradient(to top, rgba(20, 23, 27, .96) 0, rgba(20, 23, 27, .82) 34%, rgba(20, 23, 27, 0) 100%); pointer-events: none; }
.bld .media-note { inset-block: 12px auto; inset-inline-start: 12px; z-index: 1; font-size: .7rem; padding: 4px 9px; }
.bld-body { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; padding: 18px 18px 20px; }
.bld h3 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.bld h3::after { content: ''; display: block; width: 28px; height: 6px; margin-top: 8px; background: var(--tan); transition: width .5s var(--ease); }
.bld p { color: #E4E6E8; font-size: .92rem; line-height: 1.7; min-height: 3.4em; }
.sec-ink .bld p { color: #E4E6E8; }
.sec-ink .bld { background: var(--ink-2); }
.bld-go { position: absolute; z-index: 1; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--tan); color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); }
.bld:hover img { transform: scale(1.06); }
.bld:hover h3::after, .bld:focus-visible h3::after { width: 64px; }
.bld:hover .bld-go, .bld:focus-visible .bld-go { opacity: 1; transform: none; }
@media (hover: none) { .bld-go { opacity: 1; transform: none; } }
@media (max-width: 1019px) { .blds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) {
  .blds { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .blds::-webkit-scrollbar { display: none; }
  .bld { flex: 0 0 72%; scroll-snap-align: start; }
}

/* principles: the inset is a real site photo */
.why-b .media-note { inset-block-end: 8px; inset-inline-start: 8px; font-size: .66rem; padding: 3px 8px; }

/* closing band: dimmed project backdrop */
.cta-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20, 23, 27, .55) 0, rgba(20, 23, 27, .8) 38%, rgba(20, 23, 27, .86) 70%, var(--ink) 100%); }
.cta-bg .media-note { z-index: 1; inset-block: 14px auto; background: rgba(20, 23, 27, .7); font-size: .7rem; }
.cta-final:has(.cta-bg) { background-image: none; padding-block: clamp(88px, 12vw, 176px); }
.cta-final:has(.cta-bg)::before, .cta-final:has(.cta-bg)::after { display: none; }
.cta-final:has(.cta-bg) p { color: var(--on-ink); }

/* slower, calmer reveals + images that settle into place */
html.js .rv, html.js .rv-g > * { transform: translateY(28px); transition-duration: .95s; }
html.js .rv.in, html.js .rv-g.in > * { transform: none; }
html.js .rv-g.in > *:nth-child(2) { transition-delay: .1s; }
html.js .rv-g.in > *:nth-child(3) { transition-delay: .2s; }
html.js .rv-g.in > *:nth-child(4) { transition-delay: .3s; }
html.js .rv-g > * .media-figure img, html.js .rv-g > .bld img, html.js .rv .media-figure img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
html.js .rv-g.in > * .media-figure img, html.js .rv-g.in > .bld img, html.js .rv.in .media-figure img { transform: none; }
html.js .rv-g.in > .path:hover .path-media img, html.js .rv-g.in > .bld:hover img, html.js .rv.in.why-photos figure:hover img { transform: scale(1.05); transition-duration: 1.1s; }
html.js .sec-head.rv h2::before, html.js .rv .sec-head h2::before { transform: scaleX(0); transform-origin: right center; transition: transform 1s var(--ease) .25s; }
html.js .sec-head.rv.in h2::before, html.js .rv.in .sec-head h2::before { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cta-bg img { height: 124%; animation: rise linear both; animation-timeline: view(); }
    @keyframes rise { from { transform: translateY(-19%); } to { transform: translateY(0); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .duo-fig, html.js .duo-sun, html.js .duo-fig img, html.js.ready .duo-fig img { opacity: 1; transform: none; animation: none; }
  html.js .duo-col::before, html.js .duo-tag { opacity: 1; }
  html.js .rv-g > * .media-figure img, html.js .rv-g > .bld img, html.js .rv .media-figure img, .bld:hover img { transform: none; }
  html.js .sec-head.rv h2::before, html.js .rv .sec-head h2::before { transform: none; }
  .bld-go { opacity: 1; transform: none; }
}
