/* Petra Cranes — light, photo-led theme.
   70% light (white / stone) · 20% charcoal (text, footer) · 10% amber (actions, accents).
   Petra sandstone colours appear only as thin brand strips. */
:root {
  --ink: #1d1b19;
  --ink-2: #2b2724;
  --text: #4d4640;
  --muted: #7a7068;
  --line: #e7e1d8;
  --white: #ffffff;
  --stone: #f5f2ed;
  --stone-2: #ece6dd;
  --amber: #f2a90f;
  --amber-ink: #a35f08;
  --esp: #2d1511;
  --s1: #591e16; --s2: #993923; --s3: #c9633b; --s4: #e08b57; --s5: #e9b183; --s6: #f2a90f;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 76px;
  --radius: 14px;
  --shadow: 0 22px 50px -28px rgba(29, 27, 25, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(29, 27, 25, 0.3);
}
:root:lang(ar) { --font: "Alexandria", system-ui, sans-serif; --display: "Alexandria", system-ui, sans-serif; }
:lang(ar) * { letter-spacing: 0 !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[dir="ltr"] { unicode-bidi: isolate; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.light { background: var(--white); }
.stone { background: var(--stone); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- brand motifs ---------- */
.strata-strip { display: flex; height: 6px; }
.strata-strip i { flex: 1; }
.strata-strip i:nth-child(1) { background: var(--s1); } .strata-strip i:nth-child(2) { background: var(--s2); }
.strata-strip i:nth-child(3) { background: var(--s3); } .strata-strip i:nth-child(4) { background: var(--s4); }
.strata-strip i:nth-child(5) { background: var(--s5); } .strata-strip i:nth-child(6) { background: var(--s6); flex: 2; }
.dashes { display: inline-flex; gap: 6px; align-items: center; }
.dashes i { display: block; height: 4px; border-radius: 2px; }
.dashes i:nth-child(1) { width: 30px; background: var(--amber); } .dashes i:nth-child(2) { width: 12px; background: var(--s5); }
.dashes i:nth-child(3) { width: 12px; background: var(--s3); } .dashes i:nth-child(4) { width: 8px; background: var(--s2); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 115%; font-size: 1.35rem; letter-spacing: 0.03em; }
.wm i { font-style: normal; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.6rem; letter-spacing: 0.46em; color: var(--amber-ink); margin-top: 5px; }
:lang(ar) .wm b { font-family: "Alexandria", sans-serif; font-size: 1.45rem; }
:lang(ar) .wm i { font-family: "Alexandria", sans-serif; font-size: 0.82rem; font-weight: 500; margin-top: 2px; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); }
h2 { font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: clamp(1.85rem, 3.2vw, 2.7rem); line-height: 1.15; letter-spacing: -0.015em; margin: 12px 0 16px; }
:lang(ar) h2 { line-height: 1.4; }
.accent { color: var(--amber-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .eyebrow { font-size: 0.9rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-lead { font-size: 1.06rem; max-width: 36em; }
.split-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 40px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 0.94rem; text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--amber); cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); background: #ffb928; box-shadow: 0 10px 22px -12px rgba(242, 169, 15, 0.9); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr { transform: translateX(-4px); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(29, 27, 25, 0.25); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 700; color: var(--amber-ink); text-decoration: none; }
.link-arrow span { transition: transform 0.2s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
[dir="rtl"] .link-arrow:hover span { transform: translateX(-5px); }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 8px 24px -16px rgba(29, 27, 25, 0.35); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text); text-decoration: none; padding: 8px 13px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--stone); }
.nav-links a.active { color: var(--ink); background: var(--stone-2); font-weight: 600; }
.lang { font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--ink); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.2s; }
.lang:lang(ar) { font-family: "Alexandria", sans-serif; }
.lang:lang(en) { font-family: "Archivo", sans-serif; }
.lang:hover { border-color: var(--ink); }
.nav-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; }
.nav-progress span { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .nav-progress span { transform-origin: right; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; inset-inline: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.nav.open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- home hero: big full-width photo ---------- */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; min-height: min(94vh, 900px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 48px) 0 clamp(72px, 9vw, 120px); background: #10151d; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; transform-origin: 55% 35%; animation: kenburns 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13) translate(-1.2%, 0.8%); } }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 16, 26, 0.78) 0%, rgba(10, 16, 26, 0.45) 42%, rgba(10, 16, 26, 0) 72%), linear-gradient(0deg, rgba(10, 16, 26, 0.6) 0%, rgba(10, 16, 26, 0) 50%); }
[dir="rtl"] .hero-photo::before { background: linear-gradient(270deg, rgba(10, 16, 26, 0.78) 0%, rgba(10, 16, 26, 0.45) 42%, rgba(10, 16, 26, 0) 72%), linear-gradient(0deg, rgba(10, 16, 26, 0.6) 0%, rgba(10, 16, 26, 0) 50%); }
.hero-photo .hero-content { position: relative; will-change: transform, opacity; }
.hero-photo .hero-title { color: #fff; max-width: 11em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero-photo .accent { color: var(--amber); }
.hero-photo .hero-lead { color: rgba(255, 255, 255, 0.88); }
.eyebrow-light { color: var(--amber); }
.hero-cap { position: absolute; bottom: 30px; inset-inline-end: clamp(16px, 4vw, 40px); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.82rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); transition: background 0.2s; }
.hero-cap:hover { background: #fff; }
.cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 169, 15, 0.25); }
.hero-strip { position: absolute; inset-inline: 0; bottom: 0; }
.hero-title { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.04; letter-spacing: -0.025em; margin: 14px 0 20px; }
:lang(ar) .hero-title { font-size: clamp(2.7rem, 5.8vw, 5.2rem); line-height: 1.28; }

/* ---------- home hero: illustrated Dubai dusk with the crane game ---------- */
.hero-scene { position: relative; isolation: isolate; overflow: hidden; min-height: min(94vh, 900px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 120px; color: #fff;
  background: radial-gradient(900px 420px at 72% 100%, rgba(242, 169, 15, 0.55), transparent 70%), linear-gradient(180deg, #061a48 0%, #0f3b8c 34%, #2b66b8 60%, #6f9fd6 80%, #f0b25c 100%); }
.hero-scene::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 14, 38, 0.6) 0%, rgba(4, 14, 38, 0.25) 40%, transparent 62%); }
[dir="rtl"] .hero-scene::before { background: linear-gradient(270deg, rgba(4, 14, 38, 0.6) 0%, rgba(4, 14, 38, 0.25) 40%, transparent 62%); }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sun { position: absolute; top: 9%; inset-inline-end: 14%; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 252, 235, 0.95) 0%, rgba(255, 236, 180, 0.55) 30%, rgba(255, 220, 140, 0) 70%); filter: blur(2px); }
.cloud { position: absolute; height: 46px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); filter: blur(10px); animation: drift 70s linear infinite; }
.cloud.c1 { top: 16%; width: 320px; inset-inline-start: -340px; }
.cloud.c2 { top: 30%; width: 220px; inset-inline-start: -240px; animation-duration: 95s; animation-delay: -40s; opacity: 0.8; }
.cloud.c3 { top: 8%; width: 420px; inset-inline-start: -440px; animation-duration: 120s; animation-delay: -75s; opacity: 0.6; }
@keyframes drift { to { transform: translateX(calc(100vw + 480px)); } }
[dir="rtl"] .cloud { animation-name: driftR; }
@keyframes driftR { to { transform: translateX(calc(-100vw - 480px)); } }
.hero-scene .hero-window { position: absolute; z-index: 1; inset-inline-end: 0; bottom: 64px; width: min(64vw, 1080px); height: calc(100% - var(--nav-h) - 84px); aspect-ratio: auto; border-radius: 0; box-shadow: none; background: none; overflow: visible; }
.hero-scene .hero-window::before { display: none; }
.hero-scene .hero-crane { inset: 0; width: 100%; height: 100%; }
.hero-ground { position: absolute; inset-inline: 0; bottom: 0; height: 64px; z-index: 1; background: linear-gradient(#0c1a33, #091326); }
.hero-scene .hero-strip { z-index: 2; }
.hero-scene .hero-content { position: relative; z-index: 2; }
.hero-scene .hero-title { color: #fff; max-width: 9.5em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero-scene .accent { color: var(--amber); }
.hero-scene .hero-lead { color: rgba(255, 255, 255, 0.88); max-width: 30em; }
.hero-scene .hero-hint { color: rgba(255, 255, 255, 0.65); }
.hero-scene .crane-hud { background: rgba(255, 255, 255, 0.92); border-color: transparent; }
.js .hero-scene .crane-hud { animation: rise 0.8s var(--ease) 0.9s both; }
.hero-scene.can-grab .hero-window { cursor: grab; }
.hero-scene.holding .hero-window { cursor: grabbing; }

/* ---------- hero: night photo, the real crane is playable ---------- */
.hero-scene { background: #0d1116; }
.hero-scene .hero-window { inset: 0; width: 100%; height: 100%; bottom: 0; z-index: 0; }
.hero-scene .hero-crane { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 1.2px rgba(255, 214, 160, 0.95)) drop-shadow(0 0 7px rgba(255, 186, 110, 0.5)); }
.hero-scene::before { z-index: 1; background: linear-gradient(90deg, rgba(8, 11, 16, 0.82) 0%, rgba(8, 11, 16, 0.5) 38%, rgba(8, 11, 16, 0) 62%), linear-gradient(0deg, rgba(8, 11, 16, 0.35), transparent 30%); }
[dir="rtl"] .hero-scene::before { background: linear-gradient(270deg, rgba(8, 11, 16, 0.82) 0%, rgba(8, 11, 16, 0.5) 38%, rgba(8, 11, 16, 0) 62%), linear-gradient(0deg, rgba(8, 11, 16, 0.35), transparent 30%); }
.hero-scene .hero-crane image { filter: saturate(1.08) contrast(1.04); }

/* ---------- hero: Dubai sunset photo + silhouette crane game ---------- */
.hero-scene { background: #e9902f; }
.hero-scene .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-scene .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-scene::before { z-index: 1; background: linear-gradient(90deg, rgba(26, 14, 6, 0.72) 0%, rgba(26, 14, 6, 0.42) 36%, rgba(26, 14, 6, 0) 60%) !important; }
[dir="rtl"] .hero-scene::before { background: linear-gradient(270deg, rgba(26, 14, 6, 0.72) 0%, rgba(26, 14, 6, 0.42) 36%, rgba(26, 14, 6, 0) 60%) !important; }
.hero-scene .hero-window { position: absolute; inset: auto; inset-inline-end: 0; bottom: 6px; z-index: 1; width: min(60vw, 1040px); height: calc(100% - var(--nav-h) - 40px); }
.hero-scene .hero-crane { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 1.2px rgba(255, 214, 160, 0.95)) drop-shadow(0 0 7px rgba(255, 186, 110, 0.5)); }
.hero-scene .hero-content { pointer-events: none; }
.hero-scene .hero-content > * { pointer-events: auto; max-width: min(620px, 100%); }
.hero-scene .hero-crane .floor .win { fill: #ffd27a; opacity: 0.75; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.4); transition: transform 0.25s var(--ease); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wa-float:hover { transform: scale(1.07); }
.c-wa { border-color: rgba(37, 211, 102, 0.5); }
.c-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* ---------- crane game section ---------- */
.game-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.game-copy p:not(.eyebrow) { max-width: 30em; }
.crane-game.can-grab .hero-window { cursor: grab; }
.crane-game.holding .hero-window { cursor: grabbing; }
.hero-title .mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .mask > span { display: inline-block; }
.js .hero-title .mask > span { animation: up 0.9s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 100ms); }
@keyframes up { from { transform: translateY(110%); } to { transform: none; } }
.hero-lead { font-size: clamp(1.02rem, 1.25vw, 1.12rem); max-width: 32em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.js .hero-lead, .js .hero-actions, .js .hero-cap { animation: rise 0.8s var(--ease) both; animation-delay: 0.45s; }
.js .hero-actions { animation-delay: 0.55s; }
.js .hero-cap { animation-delay: 0.9s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-window { position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--ink); isolation: isolate; }
.hw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(0.2); }
.hero-window::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 27, 25, 0.35), rgba(29, 27, 25, 0.62)); }
.hero-window .strata-strip { position: absolute; inset-inline: 0; bottom: 0; }
.hero-crane { position: absolute; inset: 4% 3% 6px; width: 94%; height: calc(100% - 4% - 6px); pointer-events: none; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.hero-crane.thud { animation: thud 0.35s ease-out; }
@keyframes thud { 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } }
.crate-text { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 16px; letter-spacing: 0.14em; fill: #f2a90f; }
:lang(ar) .crate-text { font-family: "Alexandria", sans-serif; font-size: 19px; }
.beacon { animation: beacon 1.6s steps(1) infinite; }
.beacon.b2 { animation-delay: 0.8s; }
@keyframes beacon { 50% { opacity: 0.15; } }
#c-dust circle { animation: dust 0.9s ease-out forwards; transform-box: fill-box; transform-origin: center; }
#c-dust circle.spark { fill: #f2a90f; }
@keyframes dust { from { opacity: 0.5; transform: scale(0.4); } to { opacity: 0; transform: scale(2.6) translateY(-6px); } }
.hero-crane .win { fill: #f2a90f; opacity: 0.1; transition: opacity 0.6s; }
.hero-crane .win.tip { fill: #ff5a36; opacity: 0.5; }
.hero-crane .floor .win { fill: #e9b183; opacity: 0.45; }
.hero-crane.lit .win { opacity: 0.95; }
.hero-crane .floor { animation: floorIn 0.5s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes floorIn { from { transform: scaleY(0.6); opacity: 0.4; } to { transform: none; opacity: 1; } }
.crane-hud { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin-top: 28px; padding: 8px 16px 8px 12px; padding-inline: 12px 16px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); font-size: 0.82rem; color: var(--text); }
.hud-tower { display: flex; flex-direction: column-reverse; gap: 2px; }
.hud-tower i { width: 16px; height: 3px; border-radius: 1px; background: var(--stone-2); transition: background 0.3s; }
.hud-tower i.on { background: var(--amber); }
.hud-text b { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.hud-msg { color: var(--amber-ink); font-weight: 600; border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.hud-msg.pop { animation: rise 0.35s var(--ease); }
.hero-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.hero-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; flex: none; }
@media (hover: none) { .hero-hint { display: none; } }

/* ---------- proof ---------- */
.proof { background: var(--stone); padding-bottom: clamp(48px, 6vw, 72px); }
.proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.proof-stats li { padding: 24px 26px; display: flex; flex-direction: column; gap: 2px; }
.proof-stats li + li { border-inline-start: 1px solid var(--line); }
.proof-stats b { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 110%; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--ink); }
.proof-stats b::after { content: ""; display: block; width: 26px; height: 3px; margin-top: 10px; background: var(--amber); border-radius: 2px; }
.proof-stats span { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }
.brands { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }
.brands > span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .brands > span { font-size: 0.88rem; }
.brands ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.brands li { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 120%; font-size: 1.05rem; letter-spacing: 0.08em !important; text-transform: uppercase; color: #9a9088; transition: color 0.2s; }
.brands li:hover { color: var(--ink); }

/* ---------- about (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-lead, .about-copy .lead { font-size: 1.12rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 22px; max-width: 34em; }
.always-card { position: relative; background: var(--stone); border-radius: var(--radius); padding: 30px 30px 32px; border-top: 4px solid var(--amber); }
.always-badge { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.always-badge b { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 115%; font-size: 3.2rem; line-height: 1; color: var(--ink); }
.always-badge span { font-weight: 700; color: var(--amber-ink); }
.always-card h3 { font-size: 1.12rem; line-height: 1.55; margin: 10px 0 8px; font-weight: 600; }
.always-card p:last-child { color: var(--text); }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.caps li { background: var(--stone); border-radius: 12px; padding: 14px 16px; border-inline-start: 3px solid var(--amber); }
.caps strong { display: block; color: var(--ink); }
.caps span { font-size: 0.86rem; color: var(--muted); }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.8s var(--ease); }
.stone .card { border-color: transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 0.84rem; }
.card h3 { font-family: var(--display); font-stretch: 104%; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.card p { grid-column: 1 / -1; font-size: 0.94rem; }

/* ---------- featured: loads hanging from a jib ---------- */
.featured { overflow: hidden; }
.jib-zone { position: relative; }
.jib { position: relative; height: 30px; margin-inline-end: 4vw; border-block: 3px solid var(--ink-2);
  background: repeating-linear-gradient(60deg, transparent 0 13px, rgba(43, 39, 36, 0.8) 13px 15px, transparent 15px 28px), repeating-linear-gradient(-60deg, transparent 0 13px, rgba(43, 39, 36, 0.8) 13px 15px, transparent 15px 28px); }
.jib::after { content: ""; position: absolute; inset-inline-end: -4vw; top: -3px; width: 4vw; height: 30px; background: var(--amber); clip-path: polygon(0 0, 100% 50%, 0 100%); }
[dir="rtl"] .jib::after { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.hangers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hanger { --a: 0deg; --rope: 80px; --drop: 0px; position: relative; display: block; text-decoration: none; color: inherit; transform-origin: 50% 0; transform: rotate(var(--a)); padding-top: calc(var(--rope) + var(--drop) + 54px); transition: padding 0.6s var(--ease); }
.hanger:hover { --drop: 14px; }
.trolley { position: absolute; top: -6px; left: 50%; width: 32px; height: 11px; margin-left: -16px; border-radius: 3px; background: var(--ink-2); }
.rope { position: absolute; top: 5px; left: 50%; width: 2px; margin-left: -1px; height: calc(var(--rope) + var(--drop)); background: var(--ink-2); transition: height 0.6s var(--ease); }
.hook-sm { position: absolute; left: 50%; top: calc(var(--rope) + var(--drop) + 4px); width: 18px; height: 20px; margin-left: -9px; border-radius: 3px 3px 9px 9px; background: var(--amber); transition: top 0.6s var(--ease); }
.sling-set { position: absolute; left: 0; width: 100%; height: 30px; top: calc(var(--rope) + var(--drop) + 24px); overflow: visible; transition: top 0.6s var(--ease); }
.sling-set path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.load { display: block; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border-bottom: 4px solid var(--amber); }
.load-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.load-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hanger:hover .load-img img { transform: scale(1.05); }
.load-cap { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 16px 18px 18px; }
.load-cap .tag-no { grid-row: span 2; }
.load-cap b { font-family: var(--display); font-size: 1.04rem; line-height: 1.3; color: var(--ink); }
.load-cap small { color: var(--muted); font-size: 0.82rem; }
.hang-hint { margin-top: 26px; font-size: 0.78rem; color: var(--muted); }
@media (hover: none) { .hang-hint { display: none; } }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--stone); padding: calc(var(--nav-h) + clamp(36px, 5vw, 64px)) 0 clamp(44px, 5vw, 72px); }
.ph-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.has-photo .ph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--amber-ink); }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 16px; max-width: 15em; }
:lang(ar) .page-hero h1 { line-height: 1.35; }
.ph-lead { font-size: 1.08rem; max-width: 36em; }
.ph-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo .strata-strip { position: absolute; inset-inline: 0; bottom: 0; }

/* ---------- 5-stage installation scene (light) ---------- */
.story-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); }
.story-stage { position: sticky; top: 0; height: 100vh; display: flex; gap: 18px; padding: calc(var(--nav-h) + 24px) 0 36px; --p: 0; }
.rail { position: relative; width: 4px; flex: none; border-radius: 4px; background: var(--stone-2); }
.rail-fill { position: absolute; inset-inline: 0; top: 0; height: calc(var(--p) * 100%); border-radius: 4px; background: var(--amber); }
.rail-fill::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(242, 169, 15, 0.22); }
.scene-panel { position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(#fbf8f3, #f1ebe1 72%); box-shadow: var(--shadow-sm); }
.scene { position: absolute; inset: 0; }
.scene svg { width: 100%; height: 100%; display: block; }
[dir="rtl"] .scene svg { transform: scaleX(-1); }
.frames { position: absolute; top: 18px; inset-inline-start: 18px; width: 30%; aspect-ratio: 4 / 3; border-radius: 10px; border: 3px solid var(--white); box-shadow: var(--shadow); z-index: 2; background: var(--stone-2); transform: rotate(-2deg); }
[dir="rtl"] .frames { transform: rotate(2deg); }
.frame { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1); border-radius: 7px; }
.frame.active { clip-path: inset(0 0 0 0); z-index: 2; }
.frame.prev { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.frame .main { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.frame figcaption { position: absolute; inset-inline-start: 50%; bottom: 8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--white); color: var(--ink); font-weight: 700; font-size: 0.76rem; padding: 4px 12px 4px 4px; padding-inline: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
[dir="rtl"] .frame figcaption { transform: translateX(50%); }
.frame figcaption span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 0.68rem; font-weight: 800; }
.scene-no { position: absolute; top: 14px; inset-inline-end: 20px; z-index: 2; font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 125%; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(29, 27, 25, 0.25); pointer-events: none; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; opacity: 0.3; transition: opacity 0.4s; }
.step.active { opacity: 1; }
.step-num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .step-num { font-size: 0.9rem; }
.step h3 { font-family: var(--display); font-stretch: 106%; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: 8px 0 12px; }
.step p { font-size: 1.04rem; max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 0.8rem; font-weight: 500; padding: 5px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.step-img { display: none; }

/* ---------- 5 stages: text inside the animation box, photo panel the same size ---------- */
@media (min-width: 981px) {
  .story-body { display: block; }
  .story-stage { height: 100vh; display: flex; gap: 18px; padding: calc(var(--nav-h) + 20px) 0 28px; }
  .scene-panel { flex: 1.15; }
  .photo-panel { flex: 1; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--stone-2); }
  .photo-panel .frames { position: absolute; inset: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .photo-panel .frame, .photo-panel .frame .main { border-radius: 0; }
  .photo-panel .frame figcaption { inset-inline-start: 18px; bottom: 18px; transform: none; font-size: 0.86rem; padding-inline: 6px 14px; }
  [dir="rtl"] .photo-panel .frame figcaption { transform: none; }
  .photo-panel .frame figcaption span { width: 28px; height: 28px; font-size: 0.74rem; }
  .story-steps { visibility: hidden; padding-bottom: 35vh; }
  .story-steps .step { min-height: 80vh; padding: 0; }
  .stage-texts { position: absolute; inset: 0 0 auto; z-index: 2; height: 230px; pointer-events: none; }
  .stage-text { position: absolute; top: 22px; inset-inline: 26px; opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
  .stage-text.active { opacity: 1; transform: none; }
  .stage-text h3 { font-family: var(--display); font-stretch: 106%; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.2; margin: 6px 0 8px; }
  :lang(ar) .stage-text h3 { margin-top: 12px; line-height: 1.45; }
  .stage-text p { font-size: 0.96rem; max-width: 34em; }
  .stage-text .tags { margin-top: 12px; }
  .scene-panel .scene-no { top: auto; bottom: 12px; inset-inline-end: 18px; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6); }
}
@media (max-width: 980px) {
  .stage-texts, .photo-panel { display: none; }
}

/* ---------- projects: map ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); min-height: 500px; box-shadow: var(--shadow-sm); }
.map { min-height: 500px; background: var(--stone-2); z-index: 0; }
.map .leaflet-tile-pane { filter: grayscale(0.55) contrast(0.95) brightness(1.03); }
.map .leaflet-control-attribution { background: rgba(255, 255, 255, 0.85); color: var(--ink); font-size: 10px; }
.map .leaflet-control-zoom a { background: var(--white); color: var(--ink); border-color: var(--line); }
.map .leaflet-control-zoom a:hover { background: var(--amber); }
.pmark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font: 800 13px/1 "Archivo", "Alexandria", sans-serif; border: 3px solid var(--white); box-shadow: 0 0 0 1px rgba(29, 27, 25, 0.3), 0 6px 14px rgba(29, 27, 25, 0.35); transition: transform 0.25s var(--ease), background 0.2s, opacity 0.3s; }
.pmark.active { transform: scale(1.3); background: var(--ink); color: var(--white); }
.pmark.dim { opacity: 0.25; }
.leaflet-popup-content-wrapper { background: var(--white); color: var(--ink); border-radius: 12px; padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--font); }
.leaflet-popup-tip { background: var(--white); }
.pop img { width: 100%; height: 130px; object-fit: cover; display: block; }
.pop div { padding: 12px 14px 14px; }
.pop b { display: block; font-size: 0.95rem; line-height: 1.3; }
.pop small { display: block; color: var(--muted); font-size: 0.78rem; margin: 2px 0 10px; }
.pop-go { display: inline-block; background: var(--amber); color: var(--ink) !important; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.8rem; text-decoration: none; }
.pins { border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; max-height: 500px; }
.pins-head { padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pins-head b { font-family: "Archivo", sans-serif; font-size: 1.6rem; color: var(--amber-ink); margin-inline-end: 4px; }
.pins-head small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-top: 2px; }
.pin-list { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.pin-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: start; cursor: pointer; transition: background 0.2s; }
.pin-item:hover, .pin-item.active { background: var(--stone); }
.pin-item.dim { opacity: 0.35; }
.pin-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 0.78rem; }
.pin-item.active .pin-dot { background: var(--ink); color: var(--white); }
.pin-text b { display: block; color: var(--ink); font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.pin-text small { color: var(--muted); font-size: 0.78rem; }
.pfilters { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 40px 0 14px; }
.fgroup { display: flex; flex-direction: column; gap: 10px; }
.flabel { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .flabel { font-size: 0.86rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.86rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip small { opacity: 0.55; margin-inline-start: 4px; font-size: 0.75rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.showing { font-size: 0.86rem; color: var(--muted); padding-bottom: 22px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }

/* ---------- load tag (project card) ---------- */
.tag-no { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 125%; font-size: 2.4rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--amber-ink); }
.plate { position: relative; display: inline-flex; align-items: center; padding: 6px 18px; border-radius: 4px; background: var(--ink); color: var(--amber); font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 125%; font-size: 0.78rem; letter-spacing: 0.24em !important; }
.plate i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #8d8379; }
.plate i:nth-child(1) { top: 3px; left: 4px; } .plate i:nth-child(2) { bottom: 3px; left: 4px; }
.plate i:nth-child(3) { top: 3px; right: 4px; } .plate i:nth-child(4) { bottom: 3px; right: 4px; }
.ptag { --sw: 0deg; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px 18px 14px 14px; padding: 34px 26px 30px; box-shadow: var(--shadow); transform-origin: 50% -20px; transform: rotate(var(--sw)); }
.eyelet { position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--stone); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 4px var(--amber); }
.ptag-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ptag-sector { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .ptag-sector { font-size: 0.86rem; }
.ptag h3 { font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 1.4rem; line-height: 1.25; margin: 6px 0 10px; }
.ptag h3 a { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) no-repeat 0 100% / 0 3px; transition: background-size 0.35s var(--ease); }
[dir="rtl"] .ptag h3 a { background-position: 100% 100%; }
.ptag h3 a:hover { background-size: 100% 3px; }
.ptag-place { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.ptag-place svg, .pmap svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ptag-scope { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.ptag-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--line); }
.tag-go { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.88rem; padding: 10px 18px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.tag-go:hover { background: var(--amber); color: var(--ink); }
.pmap { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 0.84rem; cursor: pointer; }
.pmap:hover { border-color: var(--ink); }
.tag-stripe { position: absolute; inset-inline: 22px; bottom: 12px; display: flex; gap: 6px; }
.tag-stripe i { height: 4px; border-radius: 2px; }
.tag-stripe i:nth-child(1) { flex: 4; background: var(--amber); } .tag-stripe i:nth-child(2) { flex: 1.4; background: var(--s5); }
.tag-stripe i:nth-child(3) { flex: 1.4; background: var(--s3); } .tag-stripe i:nth-child(4) { flex: 0.8; background: var(--s2); }

/* ---------- project list: rows hanging from a cable ---------- */
.plist { position: relative; padding-inline-start: 64px; padding-top: 30px; }
.cable { position: absolute; top: 0; bottom: 0; inset-inline-start: 22px; width: 2px; background: linear-gradient(var(--ink-2), rgba(43, 39, 36, 0.25)); }
.cable-hook { position: absolute; top: 0; left: -11px; width: 24px; height: 30px; border-radius: 4px 4px 12px 12px; background: var(--amber); box-shadow: 0 0 0 4px var(--white); will-change: transform; }
.cable-hook::after { content: ""; position: absolute; left: 7px; top: 22px; width: 10px; height: 12px; border: 3px solid var(--amber); border-top: 0; border-radius: 0 0 8px 8px; }
.prow { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(64px, 8vw, 110px); }
.prow.hide { display: none; }
.prow:nth-of-type(even) .pcol { order: 2; }
.sling { position: absolute; top: 50%; inset-inline-start: -42px; width: 42px; height: 2px; background: rgba(43, 39, 36, 0.4); }
.sling::before { content: ""; position: absolute; inset-inline-start: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--amber); background: var(--white); }
.pcol { position: relative; display: block; aspect-ratio: 5 / 4; }
.pmain { width: 82%; height: 88%; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); transition: transform 0.6s var(--ease); }
.pthumb { position: absolute; width: 36%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 4px solid var(--white); box-shadow: var(--shadow); transition: transform 0.6s var(--ease); }
.pthumb.t0 { inset-inline-end: 0; top: 10%; transform: rotate(4deg); }
.pthumb.t1 { inset-inline-end: 9%; bottom: 0; transform: rotate(-3deg); }
.pcol:hover .pmain { transform: scale(1.02); }
.pcol:hover .pthumb.t0 { transform: rotate(7deg) translate(6px, -6px); }
.pcol:hover .pthumb.t1 { transform: rotate(-6deg) translate(6px, 6px); }
.pcount { position: absolute; bottom: 16%; inset-inline-start: 14px; background: rgba(29, 27, 25, 0.82); color: var(--white); font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

/* ---------- project detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.dg-item { position: relative; border: 0; padding: 0; background: var(--stone-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.dg-item.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.dg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.dg-item:hover img { transform: scale(1.04); }
.dside { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 28px; }
.ptag-static { transform: none; }
.facts { display: grid; gap: 10px; margin: 12px 0 22px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; color: var(--ink); text-align: end; }
.tag-btn { width: 100%; }
.dmap-wrap .flabel { display: block; margin-bottom: 10px; }
.dmap { min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.pnav-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); padding: 16px 20px; border-radius: var(--radius); background: var(--stone); transition: background 0.2s, transform 0.3s var(--ease); }
.pnav-link:hover { background: var(--stone-2); transform: translateY(-2px); }
.pnav-link small { color: var(--amber-ink); font-weight: 700; font-size: 0.8rem; }
.pnav-link b { font-family: var(--display); }
.pnav-link.next { text-align: end; }
.pnav-all { font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.pnav-all:hover { border-color: var(--ink); }

/* ---------- photo viewer ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border: 0; padding: 0; background: rgba(20, 18, 16, 0.96); color: #fff; display: none; align-items: center; justify-content: center; }
.lightbox[open] { display: flex; animation: fade 0.3s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { max-width: min(92vw, 1400px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 10px; }
.lightbox img.swap { animation: pop 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lightbox figcaption { display: flex; gap: 18px; font-size: 0.9rem; }
.lb-count { color: rgba(255, 255, 255, 0.55); }
.lb-close, .lb-nav { position: absolute; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: #fff; transition: background 0.2s, color 0.2s; }
.lb-close:hover, .lb-nav:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; margin-top: -25px; }
.lb-next { inset-inline-end: 20px; top: 50%; margin-top: -25px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--stone); padding: clamp(56px, 7vw, 96px) 0; }
.cta-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); background: var(--white); border-radius: 20px; padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); border-top: 4px solid var(--amber); }
.cta-card h2 { margin-top: 10px; }
.cta-main > p:not(.eyebrow) { max-width: 30em; margin-bottom: 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-check { background: var(--stone); border-radius: var(--radius); padding: 24px 26px; }
.cta-check h3, .checkbox h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.check { counter-reset: chk; display: grid; gap: 10px; }
.check li { counter-increment: chk; display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.check li::before { content: counter(chk); flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 0.75rem; font-weight: 800; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.people { display: flex; flex-direction: column; gap: 14px; }
.person { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--amber); border-radius: var(--radius); transition: box-shadow 0.3s, opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.person:hover { box-shadow: var(--shadow-sm); }
.p-avatar, .m-avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--stone-2); color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.p-avatar svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.p-info { display: flex; flex-direction: column; min-width: 0; }
.p-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .p-title { font-size: 0.86rem; }
.p-name { font-family: var(--display); font-size: 1.12rem; color: var(--ink); overflow-wrap: anywhere; text-decoration: none; }
.p-phone { font-weight: 600; color: var(--text); text-decoration: none; }
.p-phone:hover, a.p-name:hover { color: var(--amber-ink); }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.c-btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 0.86rem; font-weight: 600; color: var(--ink); padding: 8px 15px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; transition: background 0.2s, border-color 0.2s; }
.c-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.c-btn:hover { background: var(--amber); border-color: var(--amber); }
.checkbox { background: var(--stone); border-radius: var(--radius); padding: 22px 24px; }
.always-mini { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.always-mini b { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 120%; font-size: 1.6rem; color: var(--amber); flex: none; }
.quote { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--amber); }
.q-h { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; margin: 0; }
.quote .dashes { margin-bottom: 4px; }
.quote label { display: flex; flex-direction: column; gap: 6px; }
.quote label span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .quote label span { font-size: 0.86rem; }
.quote input, .quote select, .quote textarea { width: 100%; background: var(--stone); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); transition: border-color 0.2s, background 0.2s; resize: vertical; }
.quote input::placeholder, .quote textarea::placeholder { color: #a39a91; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--amber); background: var(--white); }
.quote .invalid { border-color: #d9534f; }
.quote .btn { margin-top: 6px; width: 100%; }
.q-note { font-size: 0.8rem; color: var(--muted); }
.q-note a { color: var(--ink); font-weight: 600; }

/* ---------- about page ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safe { background: var(--white); border-radius: var(--radius); padding: 26px 24px 28px; transition: box-shadow 0.3s, opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.safe:hover { box-shadow: var(--shadow-sm); }
.safe-icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--amber); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.safe h3 { font-size: 1.06rem; margin-bottom: 6px; }
.safe p { font-size: 0.94rem; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.member { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.member .m-avatar { width: 64px; height: 64px; font-size: 1.5rem; background: var(--amber); }
.member h3 { font-size: 1.2rem; margin: 2px 0 4px; }

/* ---------- copy buttons ---------- */
.copy-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; opacity: 0.5; cursor: pointer; transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s; }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.copy:hover, .copy:focus-visible { opacity: 1; }
.copy.done { opacity: 1; background: var(--amber); border-color: var(--amber); color: var(--ink); }
.copy::after { content: attr(data-done); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.copy.done::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.footer .strata-strip { height: 5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.brand-foot { color: #fff; }
.brand-foot .wm i { color: var(--amber); }
.f-brand p { max-width: 24em; margin-top: 16px; }
.footer h3 { color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
:lang(ar) .footer h3 { font-size: 0.9rem; }
.footer li { margin-bottom: 10px; }
.footer a { color: #fff; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--amber); }
.footer .copy { width: 26px; height: 26px; color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem; }

/* ---------- blueprint mesh on light sections (glows around the cursor) ---------- */
.section.light, .section.stone, .page-hero, .proof, .cta-band { position: relative; isolation: isolate; --mx: -999px; --my: -999px; }
.section.light::before, .section.stone::before, .page-hero::before, .proof::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(29, 27, 25, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 27, 25, 0.045) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.section.light::after, .section.stone::after, .page-hero::after, .proof::after, .cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background-image: linear-gradient(rgba(242, 169, 15, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 169, 15, 0.55) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}
.section.light:hover::after, .section.stone:hover::after, .page-hero:hover::after, .proof:hover::after, .cta-band:hover::after { opacity: 1; }
@media (hover: none) { .section.light::after, .section.stone::after, .page-hero::after, .proof::after, .cta-band::after { display: none; } }

/* ---------- WhatsApp mark ---------- */
.btn svg.wa-ico, .c-btn svg.wa-ico, .wa-float svg.wa-ico, .quote svg.wa-ico { fill: currentColor; stroke: none; }
.wa-float svg.wa-ico { width: 30px; height: 30px; }
.c-wa svg.wa-ico { color: #1fae55; }
.c-wa:hover svg.wa-ico { color: #fff; }

/* ---------- WhatsApp chooser + lines ---------- */
.wa-wrap { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-wrap .wa-float { position: static; border: 0; cursor: pointer; }
.wa-menu { min-width: 230px; background: var(--white); border-radius: 16px; padding: 12px; box-shadow: 0 20px 50px -18px rgba(29, 27, 25, 0.45); border: 1px solid var(--line); animation: rise 0.25s var(--ease); }
.wa-menu[hidden] { display: none; }
.wa-menu p { font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 2px 6px 8px; }
.wa-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background 0.2s; }
.wa-opt:hover { background: #e9f9ef; }
.wa-opt b { font-weight: 700; }
.wa-opt span { font-weight: 600; color: #1fae55; font-size: 0.9rem; }
.wa-opt.local { background: #f2fbf5; }
.wa-card { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid #25d366; border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 10px; }
.wa-card-head { display: flex; align-items: center; gap: 10px; }
.wa-card-head b { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.wa-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; }
.wa-badge svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.wa-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.wa-country { min-width: 74px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .wa-country { font-size: 0.88rem; }
.wa-line .c-wa { margin-inline-start: auto; }
.segs { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segs legend { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
:lang(ar) .segs legend { font-size: 0.86rem; }
.seg { position: relative; flex: 1; min-width: 150px; cursor: pointer; }
.quote .seg input { position: absolute; inset: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--stone); font-weight: 700; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.seg small { font-weight: 600; color: var(--muted); }
.seg input:checked + span { border-color: #25d366; background: #f2fbf5; }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.wa-btn svg.wa-ico { fill: currentColor; stroke: none; }

/* ---------- logo ---------- */
.brand-full img { height: 46px; width: auto; }
.brand-foot.brand-full img { height: 52px; }
.brand .brand-symbol { height: 46px; width: auto; }
@media (max-width: 600px) { .brand-full img, .brand .brand-symbol { height: 38px; } }

/* ================= mockup look: floating glass nav + dusk hero ================= */
:root { --nav-top: 18px; }
.nav { top: var(--nav-top); inset-inline: 0; margin: 0 auto; width: min(1240px, calc(100% - 32px)); border-radius: 999px;
  background: rgba(24, 29, 38, 0.62); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55); }
.nav.scrolled { background: rgba(20, 24, 32, 0.82); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.nav-inner { height: 70px; max-width: none; padding-inline: 22px 12px; }
.nav-links a { color: rgba(255, 255, 255, 0.86); }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.14); }
.nav .lang { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.nav .lang:hover { border-color: rgba(255, 255, 255, 0.5); }
.nav .brand { color: #fff; }
.nav .brand .wm i { color: var(--amber); }
.nav-progress { display: none; }
.nav-toggle { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }
.nav-toggle span { background: #fff; }
.page-hero { padding-top: calc(var(--nav-h) + var(--nav-top) + clamp(36px, 5vw, 64px)); }
@media (max-width: 980px) {
  .nav { border-radius: 22px; }
  .nav-inner { height: 62px; padding-inline: 16px 10px; }
  .mobile-menu { background: transparent; border-radius: 0 0 22px 22px; }
  .nav.open .mobile-menu { border-top: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; }
  .mobile-menu a:not(.btn) { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.1); }
}

.hero-scene { background: #141a24; padding-top: calc(var(--nav-h) + var(--nav-top) + 40px); }
.hero-scene .hero-bg img { object-position: 50% 38%; }
[dir="ltr"] .hero-scene .hero-bg img { transform: scaleX(-1); }
.hero-scene::before { background:
    linear-gradient(90deg, rgba(14, 18, 26, 0.88) 0%, rgba(14, 18, 26, 0.62) 34%, rgba(14, 18, 26, 0.12) 58%, rgba(14, 18, 26, 0) 70%),
    linear-gradient(0deg, rgba(12, 15, 21, 0.96) 0%, rgba(12, 15, 21, 0.75) 7%, rgba(12, 15, 21, 0) 26%) !important; }
[dir="rtl"] .hero-scene::before { background:
    linear-gradient(270deg, rgba(14, 18, 26, 0.88) 0%, rgba(14, 18, 26, 0.62) 34%, rgba(14, 18, 26, 0.12) 58%, rgba(14, 18, 26, 0) 70%),
    linear-gradient(0deg, rgba(12, 15, 21, 0.96) 0%, rgba(12, 15, 21, 0.75) 7%, rgba(12, 15, 21, 0) 26%) !important; }
.hero-scene .hero-crane { filter: drop-shadow(0 0 0.8px rgba(10, 12, 16, 0.9)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)) !important; }
.hero-scene .hero-strip { display: none; }
.hero-scene .eyebrow { display: inline-flex; padding: 9px 20px; border: 1px solid rgba(242, 169, 15, 0.6); border-radius: 999px; background: rgba(20, 24, 32, 0.35); color: var(--amber); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: none; }
.hero-scene .eyebrow::before { width: 14px; height: 2px; }
:lang(ar) .hero-scene .eyebrow { font-size: 1rem; }
.hero-scene .btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-scene .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.hero-scene .btn { padding: 15px 30px; font-size: 1rem; }
.hero-scene .crane-hud { display: block; width: min(440px, 100%); margin-top: 34px; padding: 16px 22px; border-radius: 22px; background: rgba(24, 29, 38, 0.6); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6); }
.hud-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 1.05rem; }
.hero-scene .hud-text b { color: #fff; font-size: 1.3rem; }
.hero-scene .hud-text span { color: #fff; font-weight: 700; }
.hud-sep { width: 2px; height: 22px; background: rgba(255, 255, 255, 0.55); border-radius: 2px; }
.hero-scene .hud-msg { border: 0; padding: 0; color: var(--amber); font-weight: 700; }
.hud-sub { margin-top: 6px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.truck-text { font-family: "Archivo", "Alexandria", sans-serif; letter-spacing: 0.06em; }
:lang(ar) .truck-text { font-family: "Alexandria", sans-serif; letter-spacing: 0; font-size: 13px; }

/* mockup fit */
@media (min-width: 981px) {
  .hero-scene .hero-window { width: min(52vw, 900px); height: calc(100% - var(--nav-h) - 90px); }
  .hero-scene .hero-content > * { max-width: min(640px, 100%); }
  .hero-scene .hero-content > .hero-title { max-width: min(780px, 100%); }
}
.hero-scene .hero-title { font-size: clamp(2.6rem, 4.9vw, 4.3rem); }
:lang(ar) .hero-scene .hero-title { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.hero-scene .crane-hud { margin-top: 26px; }
@media (max-width: 600px) { .hud-sub { display: none; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card[data-reveal].in { transition: transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.8s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .cards, .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 8px 9px; font-size: 0.85rem; }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .lang { margin-inline-start: auto; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; flex-direction: column; gap: 2px; padding: 0 clamp(16px, 4vw, 40px); background: var(--white); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.4s var(--ease), padding 0.4s var(--ease), visibility 0s 0.4s; }
  .nav.open .mobile-menu { max-height: 90vh; padding-top: 8px; padding-bottom: 22px; visibility: visible; border-top: 1px solid var(--line); box-shadow: 0 24px 30px -20px rgba(29, 27, 25, 0.3); transition: max-height 0.4s var(--ease), padding 0.4s var(--ease); }
  .mobile-menu a:not(.btn) { padding: 13px 4px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 14px; }
  .game-grid, .has-photo .ph-grid, .about-grid, .contact-grid, .detail-grid, .cta-card { grid-template-columns: minmax(0, 1fr); }
  .hero-scene { min-height: 100svh; align-items: flex-start; padding-bottom: calc(min(36vh, 300px) + 70px); }
  .hero-scene::before { background: linear-gradient(180deg, rgba(4, 14, 38, 0.55) 0%, rgba(4, 14, 38, 0.2) 55%, transparent 75%) !important; }
  .hero-scene .hero-window { inset: auto; inset-inline-end: -6vw; bottom: 6px; width: 112vw; height: min(40vh, 330px); }
  .hero-scene { padding-bottom: calc(min(40vh, 330px) + 24px); }
  .hero-scene::before { background: linear-gradient(180deg, rgba(26, 14, 6, 0.7) 0%, rgba(26, 14, 6, 0.35) 55%, rgba(26, 14, 6, 0) 80%) !important; }
  .hero-scene .hero-bg img { object-position: 30% 70%; }
  [dir="rtl"] .hero-scene::before { background: linear-gradient(180deg, rgba(26, 14, 6, 0.7) 0%, rgba(26, 14, 6, 0.35) 55%, rgba(26, 14, 6, 0) 80%) !important; }
  .sun { width: 90px; height: 90px; top: auto; bottom: 34%; }
  .hero-photo { min-height: 88svh; padding-bottom: 96px; }
  .hero-photo::before { background: linear-gradient(0deg, rgba(10, 16, 26, 0.85) 0%, rgba(10, 16, 26, 0.45) 55%, rgba(10, 16, 26, 0.15) 100%) !important; }
  .hero-cap { bottom: 22px; font-size: 0.74rem; }
  .crane-hud { width: auto; border-radius: 16px; }
  .hud-msg { min-width: 0; }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .proof-stats li:nth-child(3) { border-inline-start: 0; }
  .proof-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .map-wrap { grid-template-columns: 1fr; }
  .map { min-height: 360px; }
  .pins { border-inline-start: 0; border-top: 1px solid var(--line); max-height: 320px; }
  .story-body { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid var(--line); }
  .step-img { display: block; width: 100%; max-height: 70vh; object-fit: cover; border-radius: 12px; margin-top: 22px; }
  .dside { position: static; }
  .hangers { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .prow { grid-template-columns: 1fr; }
  .prow:nth-of-type(even) .pcol { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand img { height: 38px; }
  .wm b { font-size: 1.15rem; }
  .cards, .safety-grid, .team, .caps { grid-template-columns: 1fr; }
  .proof-stats li { padding: 18px; }
  .plist { padding-inline-start: 40px; }
  .cable { inset-inline-start: 12px; }
  .sling { inset-inline-start: -28px; width: 28px; }
  .dg-grid { grid-template-columns: repeat(2, 1fr); }
  .pnav { grid-template-columns: 1fr; }
  .pnav-link.next { text-align: start; }
  .pnav-all { justify-self: center; }
  .p-actions { margin-inline-start: 0; width: 100%; }
  .p-actions .c-btn { flex: 1; justify-content: center; padding-inline: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .jib { margin-inline-end: 10vw; }
  .crane-hud { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* "Start your project" card: replaces the quote button once the hero tower is complete */
.tower-done .hero-actions .btn:not(.btn-ghost) { display: none; }
.hud-cta { position: relative; display: flex; align-items: flex-start; gap: 18px; width: min(560px, 100%); margin: 26px 0 4px; padding: 22px 24px; border-radius: 24px;
  background: linear-gradient(135deg, #ffd25a 0%, #f2a90f 55%, #e3901a 100%); color: #1d1b19;
  box-shadow: 0 24px 50px -22px rgba(242, 169, 15, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 0.6s var(--ease), transform 0.7s cubic-bezier(.2, 1.4, .4, 1); }
.hud-cta[hidden] { display: none; }
.hud-cta.show { opacity: 1; transform: none; }
.hud-cta::after { content: ""; position: absolute; inset: -6px; border-radius: 30px; border: 2px solid rgba(255, 210, 90, 0.7); opacity: 0; pointer-events: none; }
.hud-cta.show::after { animation: cta-ring 2.4s ease-out 0.6s 2; }
@keyframes cta-ring { 0% { opacity: 0.9; transform: scale(0.98); } 100% { opacity: 0; transform: scale(1.06); } }
.cta-ico { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #1d1b19; color: #ffc21a; }
.cta-ico svg { width: 34px; height: 34px; }
[dir="rtl"] .cta-ico svg { transform: scaleX(-1); }
.cta-body { flex: 1; min-width: 0; }
.hud-cta .cta-h { margin: 2px 0 6px; font-family: var(--display); font-size: 1.35rem; font-weight: 800; line-height: 1.25; color: #1d1b19; }
:lang(ar) .hud-cta .cta-h { line-height: 1.45; }
.hud-cta p { margin: 0 0 16px; font-size: 0.98rem; line-height: 1.55; color: rgba(29, 27, 25, 0.85); font-weight: 500; }
.hud-cta .cta-go { background: #1d1b19; color: #fff; border-color: #1d1b19; padding: 14px 26px; }
.hud-cta .cta-go:hover { background: #000; color: #ffc21a; }
@media (max-width: 760px) {
  .hud-cta { gap: 14px; padding: 18px; margin-top: 18px; border-radius: 20px; }
  .cta-ico { width: 46px; height: 46px; border-radius: 14px; }
  .cta-ico svg { width: 28px; height: 28px; }
  .hud-cta .cta-h { font-size: 1.12rem; }
  .hud-cta p { font-size: 0.9rem; margin-bottom: 12px; }
  .hud-cta .cta-go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hud-cta { transition: none; } .hud-cta.show::after { animation: none; } }

/* hanging project loads: keep the swing visible after the reveal animation */
.js .hanger[data-reveal].in { transform: rotate(var(--a)); transition: opacity 0.8s var(--ease), padding 0.6s var(--ease); }

/* ================= PHONE LAYOUT ================= */
@media (max-width: 760px) {
  /* swipe rows: featured projects and home services scroll sideways with snap */
  .swipe { display: flex !important; gap: 16px; max-width: none !important; margin-inline: 0 !important; padding-inline: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x pan-y; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
  .hangers.swipe { padding-bottom: 18px; }
  .hangers.swipe .hanger { --rope: 34px !important; }
  .js .hanger[data-reveal] { transform: none; opacity: 1; }
  .cards.swipe { padding-bottom: 6px; }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width 0.3s var(--ease), background 0.3s; }
  .swipe-dots i.on { width: 22px; background: var(--amber); }
  .jib { margin-inline-end: 12vw; }

  /* hero: tighter text so the crane game gets room */
  .hero-scene { padding-top: calc(var(--nav-h) + var(--nav-top) + 20px); }
  .hero-scene .eyebrow { padding: 7px 14px; font-size: 0.8rem; }
  :lang(ar) .hero-scene .eyebrow { font-size: 0.88rem; }
  .hero-scene .hero-title { font-size: clamp(2.1rem, 10vw, 2.8rem); margin-top: 14px; }
  .hero-scene .hero-lead { font-size: 0.95rem; line-height: 1.6; margin-top: 12px; }
  .hero-scene .hero-actions { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
  .hero-scene .hero-actions .btn { flex: 1 1 0; justify-content: center; padding: 13px 14px; font-size: 0.92rem; white-space: nowrap; }
  .hero-scene .crane-hud { margin-top: 14px; padding: 10px 16px; border-radius: 16px; }
  .hero-scene .hud-main { font-size: 0.9rem; gap: 10px; }
  .hero-scene .hud-text b { font-size: 1.05rem; }
  .hud-cta { margin-top: 10px; padding: 12px 14px; border-radius: 16px; }
  .hud-cta p { font-size: 0.88rem; flex-basis: 100%; }
  .hud-cta .btn { width: 100%; justify-content: center; }
  .hero-scene .hero-window { height: min(46vh, 380px); }
  .hero-scene { padding-bottom: calc(min(46vh, 380px) + 16px); }

  /* contact: WhatsApp lines stay on one row */
  .wa-card { padding: 16px; }
  .wa-line { flex-wrap: nowrap; gap: 8px; }
  .wa-line .wa-country { min-width: 54px; }
  .wa-line .copy-line { min-width: 0; }
  .wa-line .p-phone { white-space: nowrap; font-size: 0.95rem; }
  .wa-line .c-wa { padding: 8px 12px; }

  /* projects list: lighter photo stacks */
  .pcol { aspect-ratio: 16 / 10; }
  .prow { gap: 18px; margin-bottom: 44px; }
}

/* game hint: mouse wording on desktop, tap wording on touch screens */
.hud-touch { display: none; }
@media (hover: none) {
  .hud-sub:not(.hud-touch) { display: none; }
  .hero-scene .hud-touch { display: block; }
}

/* photo credits on project pages (Creative Commons photos) */
.dg-credit { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.dg-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* game HUD keeps one fixed height whatever the message, so the hero (and its photo) never resizes */
.hero-scene .hud-msg { display: block; flex: 1 0 100%; line-height: 1.45; min-height: 2.9em; overflow: hidden; }
.hero-scene .hud-sep { display: none; }

/* ================= five stages on phones: one self-playing panel with just the stage label ================= */
@media (max-width: 980px) {
  .story-stage { display: flex; position: relative; top: auto; height: min(70svh, 520px); padding: 0; margin: 0; }
  .story-stage .rail { display: none; }
  .story-stage .scene-panel { flex: 1; }
  .story-stage .scene-no { top: auto; bottom: 10px; inset-inline-end: 14px; font-size: 2.6rem; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.7); }
  .story-stage .stage-texts { display: block; position: absolute; inset: 0 0 auto; z-index: 2; height: 90px; pointer-events: none; }
  .story-stage .stage-text { position: absolute; top: 16px; inset-inline: 18px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.45s var(--ease); }
  .story-stage .stage-text.active { opacity: 1; transform: none; }
  .story-stage .stage-text p, .story-stage .stage-text .tags { display: none; }
  .story-stage .stage-text h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin: 4px 0 0; }
  :lang(ar) .story-stage .stage-text h3 { line-height: 1.45; }
  .story-steps { display: none; }
}

/* hero crane on phones/tablets: scene box stays inside the screen (the crop happens in site.js) */
@media (max-width: 980px) {
  .hero-scene .hero-window { inset-inline: 0 !important; width: 100% !important; }
}

/* ================= phones: the crane game lives in its own section under the stats ================= */
.game-m { display: none; }
@media (max-width: 980px) {
  .hero-scene { min-height: 0; padding-bottom: 64px !important; }
  .hero-scene .hero-bg img { object-position: 50% 40%; }
  .game-m { display: block; padding: 8px 0 56px; }
  .game-m h2 { margin: 6px 0 16px; }
  .game-slot { position: relative; border-radius: 22px; overflow: hidden; background: #141a24 url(/assets/photos/dubai-dusk.jpg) 50% 42% / cover no-repeat; box-shadow: var(--shadow); }
  .game-slot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 15, 21, 0.25), rgba(12, 15, 21, 0.1) 40%, rgba(12, 15, 21, 0.55)); pointer-events: none; }
  .game-slot .hero-window { position: relative !important; inset: auto !important; width: 100% !important; height: min(56svh, 420px) !important; bottom: auto !important; z-index: 1; background: transparent; box-shadow: none; border-radius: 0; }
  .game-slot .crane-hud { position: relative; z-index: 2; display: block; width: auto; max-width: none; margin: 0; padding: 14px 18px 16px; border-radius: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(16, 20, 27, 0.9); color: #fff; animation: none; }
  .game-slot .hud-main { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 0.95rem; }
  .game-slot .hud-text b { color: #fff; font-size: 1.1rem; }
  .game-slot .hud-text span { color: #fff; font-weight: 700; }
  .game-slot .hud-sep { display: none; }
  .game-slot .hud-msg { display: block; flex: 1 0 100%; border: 0; padding: 0; color: var(--amber); font-weight: 700; line-height: 1.45; min-height: 2.9em; }
  .game-slot .hud-sub { display: none; }
  .game-slot .hud-touch { display: block; margin-top: 4px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.65); }
  /* after the tower is complete the card replaces the play screen */
  .game-slot.done::before { background: rgba(12, 15, 21, 0.62); z-index: 2; transition: background 0.5s; }
  .game-slot.done .hero-window, .game-slot.done .crane-hud { visibility: hidden; }
  .game-slot.done .hud-cta { position: absolute; z-index: 3; inset: auto 16px; top: 50%; margin: 0; width: auto; flex-direction: column; align-items: flex-start; translate: 0 -50%; }
  .game-slot.done .hud-cta .cta-go { width: 100%; justify-content: center; }
}
@media (max-width: 980px) { .tower-done .hero-actions .btn:not(.btn-ghost) { display: inline-flex; } }

/* confetti layer (tower complete) */
.confetti { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; display: block; will-change: transform, opacity; }

/* phones: the hero photo continues behind the stats card */
@media (max-width: 980px) {
  .hero-scene { padding-bottom: 300px !important; }
  .proof { margin-top: -250px; z-index: 2; background: linear-gradient(180deg, transparent 0 250px, var(--stone) 250px); }
  .proof::before, .proof::after { top: 250px; }
  .proof-stats { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55); }
}

/* phones: stats card sits on the photo, so it takes the dark glass look of the nav and HUD */
@media (max-width: 980px) {
  .proof-stats { background: rgba(18, 22, 30, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7); }
  .proof-stats li + li { border-inline-start-color: rgba(255, 255, 255, 0.14); }
  .proof-stats li:nth-child(n + 3) { border-top-color: rgba(255, 255, 255, 0.14); }
  .proof-stats b { color: #fff; }
  .proof-stats span { color: rgba(255, 255, 255, 0.72); }
}

/* skyscraper floors: warm office lights, brighter when the tower is lit */
.hero-scene .hero-crane .floor .win { fill: #ffd27a; opacity: 0.32; }
.hero-scene .hero-crane.lit .floor .win { opacity: 0.95; }
.hero-scene .hero-crane .floor .win.tip { fill: #ff3b1f; opacity: 1; }

/* developer credit in the footer */
.footer-bottom .credit { white-space: nowrap; }
.footer-bottom .credit a { color: var(--amber); text-decoration: none; font-weight: 600; }
.footer-bottom .credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .footer-bottom .credit { display: block; margin-top: 4px; } .footer-bottom .credit .sep { display: none; } }

/* longer headline ("…tower cranes & construction hoists"): smaller, a little wider, room below */
.hero-scene .hero-title { font-size: clamp(2.3rem, 3.9vw, 3.5rem); max-width: 12.5em; }
:lang(ar) .hero-scene .hero-title { font-size: clamp(2.3rem, 3.9vw, 3.6rem); line-height: 1.32; }
@media (max-width: 760px) {
  .hero-scene .hero-title { font-size: clamp(1.85rem, 8.2vw, 2.35rem); margin-bottom: 16px; }
  :lang(ar) .hero-scene .hero-title { font-size: clamp(1.95rem, 8.6vw, 2.45rem); line-height: 1.38; }
}

/* game sound toggle */
.hud-sound { margin-inline-start: auto; order: 2; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; pointer-events: auto; }
.hud-sound:hover { background: rgba(255, 255, 255, 0.18); }
.hud-sound .x { display: none; }
.hud-sound.off .w1, .hud-sound.off .w2 { display: none; }
.hud-sound.off .x { display: inline; }
.hud-main .hud-text { order: 1; }
.hud-main .hud-msg { order: 3; }

/* sound toggle as a small labelled pill: gold when on, muted grey when off */
.hud-sound { width: auto; height: 32px; padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 0.8rem/1 inherit; font-family: inherit; color: #1d1b19; background: var(--amber); border: 0; }
.hud-sound:hover { background: #ffc21a; }
.hud-sound.off { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.hud-sound.off:hover { background: rgba(255, 255, 255, 0.18); }
.hud-sound svg { flex: none; }

/* desktop: when the tower is complete the card covers the buttons + game box in place (no resize) */
@media (min-width: 981px) {
  .tower-done .hero-actions .btn:not(.btn-ghost) { display: inline-flex; }
  .hero-content.has-cta { position: relative; }
  .tower-done .hero-content.has-cta > .hero-actions, .tower-done .hero-content.has-cta > .crane-hud { visibility: hidden; }
  .hud-cta.over { position: absolute; margin: 0; width: min(560px, 100%); }
}

/* numbers take calls and WhatsApp */
.wa-acts { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.wa-line .wa-acts .c-wa { margin-inline-start: 0; }
.footer-bottom + * {}
.f-wa { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-start: 6px; border-radius: 999px; background: #25d366; color: #fff; }
.f-wa svg { width: 15px; height: 15px; fill: currentColor; }
.cta-call { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.cta-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cta-call a { color: var(--ink); font-weight: 700; text-decoration: none; }
.cta-call a:hover { color: var(--amber-ink); }
@media (max-width: 600px) { .wa-line { flex-wrap: wrap; } .wa-acts { width: 100%; } .wa-acts .c-btn { flex: 1; justify-content: center; } }

/* floating menu: each line offers WhatsApp and a phone call */
.wa-opt { flex-direction: column; align-items: stretch; gap: 8px; cursor: default; }
.wa-opt:hover { background: transparent; }
.wa-opt.local { background: #f2fbf5; }
.wa-who { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.wa-do { display: flex; gap: 8px; }
.wa-do a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.wa-do svg { width: 16px; height: 16px; }
.wa-do-wa { background: #25d366; color: #fff; }
.wa-do-wa svg { fill: currentColor; }
.wa-do-wa:hover { background: #1fae55; }
.wa-do-call { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.wa-do-call svg { fill: none; stroke: currentColor; stroke-width: 2; }
.wa-do-call:hover { border-color: var(--ink); }
