:root {
  --night: #05080d;        /* the night sky over the kingdom */
  --night-2: #0a111c;
  --panel: #0e1724;
  --line: rgba(233, 240, 248, .12);
  --ink: #eef3f9;
  --ink-soft: #b9c6d4;
  --muted: #8193a6;
  --gold: #f2c46b;         /* city lights */
  --brand-navy: #0b3b55;
  --brand-green: #3fae49;
  --pin-blue: #2f9be0;
  --pin-yellow: #f2c230;
  --pin-red: #e5383b;
  --pin-orange: #f08a24;
  --pin-green: #3fae49;

  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-text: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --gutter: clamp(1rem, 4vw, 4rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--f-text);
  font-size: clamp(1rem, .95rem + .3vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--night);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; inset-inline-start: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--night); padding: .5rem 1rem; border-radius: .5rem;
}
.skip:focus { top: 1rem; }

/* the story backdrop: one pre-rendered night frame per chapter, stacked;
   story.js only changes their opacity and scale (GPU-cheap) */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.shot { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.shot:first-child { opacity: 1; }
.shot img { inline-size: 100%; block-size: 100%; object-fit: cover; max-width: none; }
.past-story .stage { visibility: hidden; }

/* legibility: deeper night on the reading side */
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  transition: opacity .8s var(--ease-out);
  background: linear-gradient(to left, rgba(5, 8, 13, .88) 0%, rgba(5, 8, 13, .55) 32%, transparent 60%);
}
/* RE-WWW: the hero scrim is eased so the lit globe shows through behind the headline (the text keeps its shadow) */
.at-hero .scrim { background: radial-gradient(ellipse 62% 70% at 50% 42%, rgba(5, 8, 13, .58), rgba(5, 8, 13, .26) 62%, rgba(5, 8, 13, .04)); }

/* header: the full brand, small, on the right */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10; transition: background .6s, box-shadow .6s;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(.6rem, 1.6vw, 1rem) var(--gutter);
}
.brand {
  display: block; background: #fff; border-radius: .8rem; padding: .35rem .7rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.brand img { inline-size: clamp(8.5rem, 12vw, 11.5rem); }
.top__nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); font-size: .95rem; }
.top__nav a { text-decoration: none; color: var(--ink-soft); padding-block: .5rem; transition: color .3s; }
.top__nav a:hover { color: var(--ink); }
.top__cta {
  padding: .55rem 1.15rem !important; border-radius: 999px;
  font-weight: 600;
}
.top__nav a.top__pill { padding: .5rem 1.05rem; border-radius: 999px; font-weight: 600; color: #05080d; }
.top__nav a.top__pill:hover { color: #05080d; filter: brightness(1.1); }
.top__pill--join { background: var(--pin-yellow); }
.top__pill--contact { background: var(--pin-blue); }
.top__nav a.top__cta { background: #2e8f3a; color: #fff !important; }
.top__nav a.top__cta:hover { background: #37a345; color: #fff !important; }
.past-story .top { background: rgba(5, 8, 13, .9); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }

/* chapter rail: the five logo pins */
.rail {
  position: fixed; z-index: 10; inset-inline-end: clamp(.75rem, 2vw, 1.75rem); top: 50%;
  translate: 0 -50%; list-style: none; margin: 0; padding: 0;
  display: grid; gap: .9rem; transition: opacity .5s;
}
.rail li {
  inline-size: .55rem; block-size: .55rem; border-radius: 50%;
  background: var(--c); opacity: .45; transition: opacity .4s, scale .4s var(--ease-out);
}
.rail li.is-on { opacity: 1; scale: 1.8; box-shadow: 0 0 14px var(--c); }
.past-story .rail { opacity: 0; pointer-events: none; }

/* chapters */
main { position: relative; z-index: 2; }
.ch { position: relative; min-height: 170svh; padding-inline: var(--gutter); }
.ch--hero { min-height: 135svh; }
.panel {
  position: sticky; top: 28svh;
  max-inline-size: 31rem; padding-block: 2rem;
  text-shadow: 0 2px 18px rgba(5, 8, 13, .9);
}
.panel p { margin: 0 0 1rem; color: var(--ink-soft); }
.eyebrow {
  font-size: .85rem; letter-spacing: .02em; color: var(--gold) !important;
  font-weight: 600; margin-bottom: .75rem !important;
}
.display, .title { font-family: var(--f-display); font-weight: 700; margin: 0 0 1.25rem; text-wrap: balance; }
.display { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5.4rem); line-height: 1.25; font-weight: 800; }
.title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.3; }
.lede { font-size: clamp(1.02rem, .98rem + .35vw, 1.25rem); max-inline-size: 46ch; }
.num {
  font-family: var(--f-display); font-size: 1rem; font-weight: 600;
  color: var(--c) !important; display: flex; align-items: center; gap: .6rem;
}
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pin {
  position: relative; flex: none; display: block; inline-size: 2.6rem; aspect-ratio: 1; margin: .5rem .3rem .5rem .2rem;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--c);
  box-shadow: 0 0 28px color-mix(in srgb, var(--c) 70%, transparent);
}
.pin::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.num::after { content: ""; inline-size: 3.5rem; block-size: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ch--svc .title::after {
  content: ""; display: block; inline-size: .9rem; block-size: .9rem; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 22px var(--c); margin-top: 1rem;
}

/* 1. hero: the full brand, large, centred at the top */
.panel--hero {
  top: 12svh; margin-inline: auto; max-inline-size: 70rem; text-align: center;
  display: grid; justify-items: center;
}
.plate {
  background: #fff; border-radius: 1.6rem; padding: clamp(.9rem, 2vw, 1.4rem) clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 20px 70px rgba(242, 196, 107, .22), 0 30px 80px rgba(0, 0, 0, .55);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.plate img { inline-size: clamp(16rem, 34vw, 30rem); }
.panel--hero .display { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.4rem); margin-bottom: .5rem; }
@media (min-width: 48em) { .display__en { white-space: nowrap; } }
.display__en { display: block; direction: ltr; font-family: var(--f-display); font-weight: 800; font-size: 1em; line-height: 1.25; margin-top: .1em; }
.tagline { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .9vw, 1.8rem); color: var(--ink) !important; margin-bottom: .6rem !important; }
.motto {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, .9rem + .6vw, 1.4rem);
  color: var(--gold) !important; margin-bottom: 1.25rem !important;
}
.motto i { inline-size: clamp(2.5rem, 6vw, 5rem); block-size: 2px; background: linear-gradient(to left, var(--gold), transparent); }
.panel--hero .lede { margin-inline: auto; }
.play {
  display: inline-flex; align-items: center; gap: .8rem; margin-top: .5rem;
  font: 600 1rem var(--f-text); color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: .55rem 1.3rem .55rem .7rem; backdrop-filter: blur(6px); transition: background .3s, border-color .3s;
}
.play:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); }
.play__icon {
  inline-size: 2.3rem; block-size: 2.3rem; border-radius: 50%; background: var(--gold); position: relative;
  box-shadow: 0 0 0 0 rgba(242, 196, 107, .5); animation: pulse 2.6s infinite;
}
.play__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; inline-size: 0; block-size: 0;
  border-block: .45rem solid transparent; border-inline-end: .7rem solid #1b1305; translate: -8% 0;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 .9rem rgba(242, 196, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 196, 107, 0); } }

.legend { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.legend li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.legend li::before {
  content: ""; inline-size: .8rem; block-size: .8rem; border-radius: 50% 50% 50% 0;
  rotate: -45deg; background: var(--c); box-shadow: 0 0 12px var(--c);
}

.cue {
  position: absolute; inset-inline-start: 50%; translate: 50% 0; bottom: 14svh;
  display: grid; justify-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin: 0;
}
.cue span { inline-size: 1px; block-size: 3rem; background: linear-gradient(transparent, var(--gold)); }

.phone {
  inline-size: clamp(9.5rem, 12vw, 11.5rem); aspect-ratio: 9 / 19.5; border-radius: 2.2rem; padding: .55rem;
  background: linear-gradient(145deg, #2a3446, #0c121c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .6), 0 0 90px rgba(242, 196, 107, .15);
}
.phone img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 1.7rem; }

/* the five balloons as in the logo */
.logo-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: clamp(.75rem, 4vw, 3rem);
}
.logo-row li { display: grid; justify-items: center; gap: .8rem; font-weight: 600; font-size: .95rem; }
.logo-row i {
  position: relative; display: block; inline-size: clamp(2.2rem, 4.5vw, 3.6rem); aspect-ratio: 1;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--c);
  box-shadow: 0 0 26px color-mix(in srgb, var(--c) 55%, transparent);
}
.logo-row i::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.logo-row span { color: var(--ink); }
/* download block: balloons about 70% and heading about 75% of before (client note CR38) */
.block--download .logo-row { gap: clamp(.55rem, 2.8vw, 2.1rem); }
.block--download .logo-row i { inline-size: clamp(1.55rem, 3.15vw, 2.5rem); }
.block--download .logo-row li { gap: .55rem; font-size: .85rem; }

/* ============ the regular page ============ */
.page {
  position: relative; z-index: 3; background: var(--night);
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) 0;
  display: grid; gap: clamp(4.5rem, 10vw, 8rem);
  box-shadow: 0 -60px 80px var(--night);
}
.block { max-inline-size: 72rem; margin-inline: auto; inline-size: 100%; }
.block__head { max-inline-size: 48rem; margin-bottom: 2.25rem; }
.block__head p { color: var(--ink-soft); margin: 0; }

.broker-types { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.broker-types article { background: var(--panel); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.75rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--gold); border: 1px solid rgba(242, 196, 107, .4); border-radius: 999px; padding: .1rem .75rem; margin-bottom: .9rem; }
.broker-types h3 { font-family: var(--f-display); font-size: 1.25rem; margin: 0 0 .5rem; }
.broker-types p { margin: 0; color: var(--ink-soft); }

.seals { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.seals li {
  display: inline-flex; align-items: center; gap: .45rem; color: var(--ink);
  border: 1px solid rgba(63, 174, 73, .45); border-radius: 999px; padding: .35rem 1rem; font-size: .95rem;
  background: rgba(63, 174, 73, .1);
}
.seals li::before { content: "✓"; color: var(--brand-green); font-weight: 700; }
.inq { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.inq li {
  display: flex; align-items: center; gap: .9rem; min-height: 4rem; height: 100%;
  padding: .9rem 1.2rem; border-radius: .9rem; background: var(--panel); font-weight: 500;
  border: 1px solid var(--line);
}
.inq__icon { flex: none; display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border-radius: .7rem; color: var(--gold); background: rgba(242, 196, 107, .1); }
.inq__icon img { inline-size: 1.5rem; block-size: 1.5rem; }
.inq__label { min-width: 0; line-height: 1.6; }

.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.svc-grid li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.6rem 1.25rem; min-width: 0;
  background-image: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
}
.svc-grid i {
  display: block; inline-size: 1.7rem; aspect-ratio: 1; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--c); margin-bottom: 1.1rem; box-shadow: 0 0 18px var(--c);
}
.svc-grid h3 { font-family: var(--f-display); font-size: 1.12rem; margin: 0 0 .4rem; }
.svc-grid p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }

.counters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .75rem; }
.counters li { background: var(--panel); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.3rem .9rem; text-align: center; min-width: 0; }
.counters b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); color: var(--gold); line-height: 1.3; font-variant-numeric: tabular-nums; }
.counters b.tbd { color: var(--muted); }
.counters span { color: var(--ink-soft); font-size: .92rem; }
.block__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: .5rem 1.4rem; border-radius: 999px;
  background: var(--gold); color: #1b1305; text-decoration: none; font-weight: 600;
}
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(238, 243, 249, .5); }

.block--download {
  display: grid; justify-items: center; text-align: center; gap: 2rem;
  background: linear-gradient(135deg, #0f2133, #0a111c); border: 1px solid var(--line);
  border-radius: 1.75rem; padding: clamp(2rem, 6vw, 4.5rem);
}
.dl__phone { display: grid; justify-items: center; }
.phone--map { inline-size: clamp(8.5rem, 12vw, 10.5rem); }
.phone--map img { object-position: top; }
.block--download .lede { max-inline-size: none; }
.dl__text { display: grid; justify-items: center; }
.dl__text .display { font-size: clamp(1.5rem, .9rem + 1.95vw, 2.7rem); }
.block--download .stores { justify-content: center; }
.block--download .lede { color: var(--ink-soft); margin-inline: auto; }
.stores { display: flex; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.store { position: relative; inline-size: min(11.5rem, 42vw); border-radius: .7rem; overflow: hidden; }
.store img { filter: saturate(.85); opacity: .85; }
.store em {
  position: absolute; inset-block-start: .3rem; inset-inline-start: .3rem; font-style: normal; font-size: .72rem; font-weight: 600;
  background: var(--gold); color: #1b1305; border-radius: 999px; padding: 0 .55rem;
}

.foot { position: relative; z-index: 3; background: var(--night); padding: clamp(3rem, 8vw, 6rem) var(--gutter) 2rem; font-size: .92rem; color: var(--muted); }
.foot__grid { max-inline-size: 72rem; margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot__logo { inline-size: 12rem; background: #fff; border-radius: .8rem; padding: .4rem .7rem; margin-bottom: 1rem; }
.foot__grid h3 { font-family: var(--f-display); font-size: 1rem; color: var(--ink); margin: 0 0 .75rem; }
.foot__grid nav { display: grid; align-content: start; gap: .1rem; }
.foot__grid p { margin: 0 0 .4rem; }
/* CR53 (Nabil video 2026-11-02 «أكبرها شوية وخليها باللون الأبيض») */
.foot__grid p.foot__tagline { color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.6; }
.foot a { text-decoration: none; padding-block: .3rem; }
.foot a:hover { color: var(--ink); }
.foot__contact { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .35rem; }
.foot__contact li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; }
.foot__contact li > span { color: var(--muted); }
.foot__contact a, .foot__contact b { color: var(--ink-soft); font-weight: 500; padding-block: 0; }
.foot__social { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.foot__social a { display: grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); padding: 0; transition: color .3s, border-color .3s, background .3s; }
.foot__social a:hover { color: var(--ink); border-color: var(--gold); background: rgba(242, 196, 107, .08); }
.foot__social svg { inline-size: 1.2rem; block-size: 1.2rem; }
.foot__social svg:not([fill="none"]) { fill: currentColor; }
.foot__contact li[hidden] { display: none; }
.foot__copy { max-inline-size: 72rem; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8rem; }

/* promo video (placeholder until the client's video arrives) */
.video { border: 0; padding: 0; background: var(--panel); color: var(--ink); border-radius: 1.25rem; inline-size: min(56rem, 92vw); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.video::backdrop { background: rgba(2, 4, 8, .82); backdrop-filter: blur(4px); }
.video h2 { font-family: var(--f-display); font-size: 1.1rem; margin: 0; padding: 1rem 1.25rem; }
.video__close { position: absolute; inset-inline-end: .6rem; inset-block-start: .5rem; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.video__frame { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle, #13233a, #05080d); margin: 0 1.25rem 1.25rem; border-radius: .8rem; color: var(--ink-soft); text-align: center; padding: 1rem; }
.video__frame video { inline-size: 100%; block-size: 100%; border-radius: .8rem; }

/* hero waits for its entrance, never longer than the failsafe */
@media (prefers-reduced-motion: no-preference) {
  .panel--hero > * { animation: rise 1.1s var(--ease-out) both; }
  .panel--hero > :nth-child(2) { animation-delay: .12s; }
  .panel--hero > :nth-child(3) { animation-delay: .24s; }
  .panel--hero > :nth-child(4) { animation-delay: .36s; }
  .panel--hero > :nth-child(5) { animation-delay: .48s; }
  .panel--hero > :nth-child(6) { animation-delay: .6s; }
  .js-pending .cue { opacity: 0; }
  .cue span { animation: drip 2.4s var(--ease-out) infinite; transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) { .play__icon { animation: none; } }
@keyframes rise { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes drip { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }

@media (max-width: 63.99em) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 47.99em) {
  .top { gap: .5rem; padding-inline: .6rem; }
  .brand { padding: .25rem .45rem; border-radius: .6rem; }
  .brand img { inline-size: 4.6rem; }
  .top__nav { gap: .3rem; font-size: .76rem; }
  .top__nav a:not(.top__pill):not(.top__cta) { display: none; }
  .top__nav a.top__pill, .top__nav a.top__cta { padding: .38rem .6rem !important; white-space: nowrap; }
  .panel { padding-bottom: 4.5rem; }
  .rail { inset-inline-end: .55rem; gap: .7rem; }
  /* chapter panels sit at the end of their chapter and stick to the bottom edge */
  .ch { min-height: 150svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12svh; }
  .panel { position: sticky; top: auto; bottom: 4svh; padding-block: 1.25rem; }
  .ch--hero { justify-content: flex-start; padding-bottom: 0; }
  .panel--hero { position: relative; top: auto; bottom: auto; margin-top: 13svh; }
  .scrim { background: linear-gradient(to top, rgba(5, 8, 13, .94) 0%, rgba(5, 8, 13, .6) 34%, transparent 58%); }
  .cue { bottom: 5svh; }
  .broker-types { grid-template-columns: 1fr; }
  .svc-grid, .inq { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-row { gap: .6rem; }
  .logo-row span { font-size: .78rem; }
  .block--download .logo-row span { font-size: .72rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot { padding-bottom: 5.5rem; }
}

/* page blocks rise in once (class added by story.js, so content shows without JS) */
.will-rise > * { opacity: 0; translate: 0 2.5rem; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
.will-rise > :nth-child(2) { transition-delay: .1s; }
.will-rise > :nth-child(3) { transition-delay: .2s; }
.will-rise.is-in > * { opacity: 1; translate: 0 0; }
.block--join .block__head { max-inline-size: 64rem; }
/* CR44: the two brands under the join title, ours on the right (first in RTL), the network on the left */
.join-brands { display: flex; justify-content: center; gap: clamp(.75rem, 2vw, 1.25rem); margin: clamp(1rem, 2.5vw, 1.6rem) 0; flex-wrap: wrap; }
.join-brands__plate { background: #fff; border-radius: 1.1rem; padding: clamp(.6rem, 1.5vw, 1rem) clamp(.8rem, 2vw, 1.4rem); display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 18px 50px rgba(0, 0, 0, .45); }
.join-brands__plate { inline-size: clamp(12rem, 22vw, 17rem); aspect-ratio: 2.6 / 1; }
.join-brands__plate img { inline-size: 100%; block-size: 100%; object-fit: contain; }
@media (max-width: 30em) { .join-brands { flex-wrap: nowrap; } .join-brands__plate { flex: 1 1 0; min-width: 0; inline-size: auto; } }

/* floating WhatsApp: fixed bottom corner, physical right (CR33), above the safe area */
.wa {
  position: fixed; z-index: 20; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; inline-size: 3.4rem; block-size: 3.4rem; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-out);
}
.wa:hover { transform: scale(1.08); }
.wa svg { inline-size: 1.9rem; block-size: 1.9rem; }
.wa:focus-visible { outline-color: #fff; }
.broker-cta { margin: 1.5rem 0 0; }

/* CR33 footer contact: bare values, WhatsApp row with its icon */
.foot__wa { display: inline-flex; align-items: center; gap: .5rem; }
.foot__wa .wa-ic { inline-size: 1.15rem; block-size: 1.15rem; color: #25d366; flex: none; }
.foot__contact li { align-items: center; }
.foot__contact .ci { inline-size: 1.15rem; block-size: 1.15rem; color: var(--gold, #f2c14e); flex: none; margin-inline-end: -.1rem; }
.foot__social li[hidden] { display: none; }
@media (max-width: 47.99em) { .wa { right: max(.9rem, env(safe-area-inset-right)); bottom: max(.9rem, env(safe-area-inset-bottom)); } }

/* CR39: coloured contact chips + brand-colour socials in the footer (same palette as the broker cards) */
.foot__contact li { gap: .2rem .7rem; }
.foot__contact .ci, .foot__contact .wa-ic { box-sizing: content-box; inline-size: 1.1rem; block-size: 1.1rem; padding: .5rem; border-radius: 50%; color: #fff; margin-inline-end: 0; flex: none; }
.foot__contact li[data-contact="unified"] .ci, .foot__contact li[data-contact="mobile"] .ci { background: #2F9BE0; }
.foot__contact .foot__wa .wa-ic { background: #25D366; color: #fff; }
.foot__contact li[data-contact="email"] .ci { background: #8B5CF6; }
.foot__contact li:last-child .ci { background: #E5383B; }
.foot__wa { gap: .7rem; }
/* CR42: social logos match the app: plain coloured brand glyphs, no circles (same rules as .bk-so in pages.css) */
.foot__social { gap: .35rem .5rem; }
.foot__social a.so { inline-size: 2.5rem; block-size: 2.5rem; border: 0; border-radius: .6rem; background: none; transition: transform .15s; }
.foot__social a.so:hover { background: none; box-shadow: none; transform: translateY(-2px) scale(1.08); }
.foot__social a.so svg { inline-size: 1.75rem; block-size: 1.75rem; fill: none; }
.foot__social a.so--instagram svg { inline-size: 1.6rem; block-size: 1.6rem; border-radius: 28%; background: radial-gradient(circle at 30% 107%, #fdf497 0, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); padding: .1rem; box-sizing: border-box; }

/* CR42: 8 counters on one desktop row need a smaller figure so 15,730 fits its tile */
@media (min-width: 64em) { .counters li { padding-inline: .5rem; } .counters b { font-size: clamp(1.5rem, .9rem + 1.1vw, 1.95rem); } }

/* CR54 (Nabil video 2026-11-02 11:32): the page titles a step or two smaller; the download block
   in two columns on wide screens: the text and the two stores on the right (App Store first), the
   phone and its balloons on the left */
/* CR55 (Nabil 12:08 «كبرها بدرجة واحدة»): one step back up */
.page .block .title { font-size: clamp(1.75rem, 1.12rem + 2.45vw, 3.1rem); }
@media (min-width: 48em) {
  .block--download { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "text phone" "text logos"; align-items: center; column-gap: clamp(2rem, 5vw, 4rem); row-gap: 1.25rem; text-align: start; }
  .block--download .dl__text { grid-area: text; justify-items: start; align-self: center; }
  .block--download .dl__phone { grid-area: phone; }
  .block--download .logo-row { grid-area: logos; }
  .block--download .lede { margin-inline: 0; }
  .block--download .stores { justify-content: flex-start; margin-top: 1.25rem; }
  .dl__text .display { margin-bottom: .6rem; }
}
.nowrap { white-space: nowrap; }
/* CR56: the brand plates link to each brand's site */
a.join-brands__plate { transition: transform .25s, box-shadow .25s; }
a.join-brands__plate:hover { transform: translateY(-2px); }

/* CR57 (Nabil video 2026-11-03 00:27): download block - the brand name with its English name under the
   heading (the long search sentence removed), the stores right under it, a shorter and wider phone with
   the balloons centred beneath it; up/down page arrows on the right edge */
.dl__brand { margin: .25rem 0 0; font-size: clamp(1.05rem, .9rem + .55vw, 1.35rem); font-weight: 600; color: var(--ink); line-height: 1.5; }
.dl__brand bdi { display: block; font-size: .82em; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; }
.block--download .stores { margin-top: 1rem; }
.block--download .phone--map { inline-size: clamp(10.5rem, 15vw, 13rem); aspect-ratio: 9 / 15.5; }
.block--download .logo-row { justify-content: center; justify-self: center; }
@media (min-width: 48em) { .block--download .stores { margin-top: 1rem; } .block--download .dl__phone, .block--download .logo-row { justify-self: center; } }
.pager { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 60; display: grid; gap: .5rem; }
.pager__btn { inline-size: 2.6rem; block-size: 2.6rem; border-radius: 50%; border: 1px solid rgba(238, 243, 249, .25); background: rgba(10, 17, 28, .72); color: var(--ink); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.pager__btn:hover { background: rgba(242, 196, 107, .9); color: #1b1305; transform: scale(1.06); }
.pager__btn svg { inline-size: 1.15rem; block-size: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 30em) { .pager { right: 8px; } .pager__btn { inline-size: 2.3rem; block-size: 2.3rem; } }

/* CR58 (Nabil video 2026-11-03 00:59): the brand name moves above the phone as a white title the size of
   the section titles; «حمّل التطبيق» keeps only the stores; the page arrows sit lower and are easier to see */
.block--download .dl__phone { gap: 1.25rem; text-align: center; }
.block--download .dl__brand { margin: 0; color: #fff; font-weight: 700; line-height: 1.3; }
.block--download .dl__brand bdi { margin-top: .35rem; font-size: .42em; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.block--download .dl__text .stores { margin-top: .75rem; }
.pager { top: 66%; }
.pager__btn { background: var(--gold); color: #1b1305; border-color: rgba(0, 0, 0, .25); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.pager__btn:hover { background: #fff; }
@media (min-width: 48em) { .page .block--download .dl__brand, .block--download .dl__brand { font-size: clamp(1.6rem, .8rem + 1.7vw, 2.4rem); } }

/* CR60 (Nabil video 2026-11-03 01:19): one centred column on every screen - the brand name on one line with
   its English name under it at the same size, then the phone, the balloons, «حمّل التطبيق» and the two stores */
@media (min-width: 48em) {
  .block--download { grid-template-columns: 1fr; grid-template-areas: "phone" "logos" "text"; text-align: center; }
  .block--download .dl__text { justify-items: center; }
  .block--download .stores { justify-content: center; }
}
.block--download .dl__brand { white-space: nowrap; font-size: clamp(1.35rem, .6rem + 3.6vw, 2.6rem) !important; }
.block--download .dl__brand bdi { font-size: 1em; font-weight: 700; color: var(--ink-soft); margin-top: .2rem; letter-spacing: .01em; }

/* CR61 (Nabil 2026-11-03 01:19/01:23): the page arrows sit just above the WhatsApp button; the download phone
   screenshot is a sharper 2x image (new file name because images keep the long cache) */
.pager { top: auto; transform: none; right: calc(max(1rem, env(safe-area-inset-right)) + .4rem); bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.2rem); }
@media (max-width: 30em) { .pager { right: calc(max(1rem, env(safe-area-inset-right)) + .55rem); } }
.block--download .phone--map img { image-rendering: auto; }
/* CR62 (Nabil 01:29): a clear gap between the arrows and the WhatsApp button */
.pager { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 7.2rem); }

/* CR76 (Nabil 2026-11-03 «السهمين … ارفعها فوق … بنص الشاشة يمين» / «صغر حجم الآيفون والاندرويد قليلا»):
   the page arrows sit at the middle of the screen on the right; the two store badges are a little smaller */
.pager { top: 50%; bottom: auto; transform: translateY(-50%); } /* 09:20 «نزلها اشوي كما كانت»: back to the middle */
.store { inline-size: min(9.5rem, 36vw); }
/* CR79 (Nabil 10:01 «أحذف السهمين … نهائياً»): the page arrows are removed */
.pager { display: none !important; }

/* CR83: inquiry tiles are links to the government pages */
.inq__link { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; inline-size: 100%; }
.inq__link[href] { cursor: pointer; }
.inq li:has(.inq__link[href]):hover { border-color: var(--gold); }
.inq__link[href] .inq__label::after { content: " ↗"; color: var(--gold); font-size: .85em; }

/* Nabil 2026-11-05 (video 06): the domain under «منصة الشبكة العقارية العالمية» */
.block--download .dl__brand .dl__domain { display: block; margin-top: .45rem; font-size: .78em; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none; }
/* the network title is longer than «منصة وسيط عقاري عالمي»: on phones let it wrap so the page never scrolls sideways */
@media (max-width: 30em) { .block--download .dl__brand { white-space: normal; text-wrap: balance; font-size: clamp(1.25rem, .5rem + 4.4vw, 1.7rem) !important; } }
/* Nabil 2026-11-07 «الكلام كله وتبقى الشعارات والمربعات وبدون روابط»: icon-only inquiry boxes */
.inq__link { justify-content: center; }
.inq li { justify-content: center; min-block-size: 4.5rem; }
@media (max-width: 640px) { .inq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 48em) { .inq { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Nabil 2026-11-07 10:16 «اكتب باللون الأحمر الموقع غير نشط (قريبا) ومايل ومختومة بختم أحمر»: a tilted red stamp
   on the top corner of the hero logo plate */
.plate { position: relative; }
.stamp {
  position: absolute; inset-block-start: -.9rem; inset-inline-start: -1.1rem; z-index: 2;
  display: grid; justify-items: center; line-height: 1.25; text-align: center;
  padding: .45rem .9rem; border: 3px double #d0021b; border-radius: .6rem;
  color: #d0021b; background: rgba(255, 255, 255, .92); font-weight: 800; font-size: clamp(.85rem, .7rem + .5vw, 1.1rem);
  transform: rotate(14deg); box-shadow: 0 0 0 2px rgba(208, 2, 27, .25), 0 6px 18px rgba(0, 0, 0, .35);
  letter-spacing: .02em; pointer-events: none;
}
.stamp small { font-size: .8em; font-weight: 700; }

