/* ==========================================================================
   Fazma shared design system — one set of components, four brand themes.
   Each site sets its palette on body.site-<key>; components only read tokens.
   Palettes are sampled from the official logos (see config/fazma.php brands).
   ========================================================================== */

:root {
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dir: 1;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-mark: "Syne", "Inter", system-ui, sans-serif;
}
[dir="rtl"] { --dir: -1; }
html[lang="ar"] {
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[lang="en"] .site-construction { --font-display: "Syne", "Inter", system-ui, sans-serif; }
html[lang="en"] .site-concept { --font-display: "Saira", "Inter", system-ui, sans-serif; }

/* ---------- Theme tokens ----------
   --bg*            main brand surface (hero, "dark" sections), deep = marquee, raise = cards
   --fg / --heading text and headings on --bg
   --accent*        small accents on --bg (kickers, numbers, lines); -hi = lighter/stronger text accent
   --btn-*          primary button
   --paper / --ink  text-heavy "light" sections
   --sky-* --lens-* --bp-line  hero illustrations
*/

/* Fazma Group L.L.C — navy primary, gold accents (logo: navy #012350, gold #e8ae2a) */
body, .site-group {
  --bg: #011a3d; --bg-deep: #00122b; --bg-raise: #022a5e; --bg-raise-2: #0a3672;
  --fg: #f5f1e8; --fg-soft: #cfd6e3; --fg-muted: #a9b6cc; --heading: #ffffff;
  --accent: #e8ae2a; --accent-hi: #f3c95c; --accent-lo: #b9861a;
  --shine-1: #f3c95c; --shine-2: #e8ae2a; --shine-3: #b9861a;
  --btn-bg: #e8ae2a; --btn-bg-2: #f3c95c; --btn-fg: #011a3d;
  --line: rgb(232 174 42 / .16); --line-strong: rgb(232 174 42 / .45);
  --card-1: rgb(10 54 114 / .6); --card-2: rgb(0 18 43 / .92);
  --form-bg: rgb(2 42 94 / .55); --field-bg: rgb(255 255 255 / .05); --field-line: rgb(255 255 255 / .16);
  --hero-tint: rgb(10 54 114 / .9); --glow: rgb(232 174 42 / .2); --scrim: rgb(1 26 61 / .72);
  --topbar-bg: rgb(1 26 61 / .78);
  --paper: #f7f4ec; --paper-2: #efe9dc; --ink: #0b1a33; --ink-heading: #012350; --ink-accent: #8a6410;
  --muted: #5d6779; --line-light: rgb(1 35 80 / .12);
  --footer-bg: #00122b; --footer-fg: #c9d1de; --footer-muted: #8e9ab0; --footer-line: rgb(255 255 255 / .08);
  --focus: #f3c95c; --danger: #f29a8f; --ok: #7fd3a8;
  --sky-back-1: #1b4688; --sky-back-2: #0a2b5c; --sky-mid-1: #0d3168; --sky-mid-2: #04204a;
  --sky-front-1: #03204a; --sky-front-2: #00122b; --sky-light: #f3c95c;
  --lens-glass-1: #f3c95c; --lens-glass-2: #0a3672; --lens-core: #00122b; --lens-blade: #022a5e;
  --lens-ring-1: #f3c95c; --lens-ring-2: #e8ae2a; --lens-ring-3: #8a6410;
  --bp-line: #e8ae2a;
  --logo-h: 46px;
  color-scheme: dark;
}

/* Fazma Real Estate — warm beige backgrounds, dark green headings & buttons (logo: beige #dbccad, green #143c34) */
.site-realestate {
  --bg: #efe6d2; --bg-deep: #e3d6b9; --bg-raise: #f7f1e4; --bg-raise-2: #fbf8f1;
  --fg: #1d302b; --fg-soft: #36463f; --fg-muted: #5a665f; --heading: #143c34;
  --accent: #2f6352; --accent-hi: #143c34; --accent-lo: #8a6a35;
  --shine-1: #143c34; --shine-2: #2f6352; --shine-3: #143c34;
  --btn-bg: #143c34; --btn-bg-2: #24584a; --btn-fg: #f6efe0;
  --line: rgb(20 60 52 / .14); --line-strong: rgb(20 60 52 / .4);
  --card-1: #fbf8f1; --card-2: #f4ecdb;
  --form-bg: rgb(251 248 241 / .85); --field-bg: #ffffff; --field-line: rgb(20 60 52 / .22);
  --hero-tint: rgb(255 250 238 / .95); --glow: rgb(47 99 82 / .14); --scrim: rgb(239 230 210 / .8);
  --topbar-bg: rgb(239 230 210 / .86);
  --paper: #fbf8f1; --paper-2: #f4ecdb; --ink: #1d302b; --ink-heading: #143c34; --ink-accent: #80602d;
  --muted: #5a665f; --line-light: rgb(20 60 52 / .12);
  --footer-bg: #dbccad; --footer-fg: #143c34; --footer-muted: #4a5a52; --footer-line: rgb(20 60 52 / .16);
  --focus: #143c34; --danger: #a3352a; --ok: #2d7a52;
  --sky-back-1: #b9c7b4; --sky-back-2: #d9d3bd; --sky-mid-1: #6f8f80; --sky-mid-2: #9fb3a3;
  --sky-front-1: #2f5a4c; --sky-front-2: #143c34; --sky-light: #e7c98a;
  --bp-line: #143c34;
  --logo-h: 46px;
  color-scheme: light;
}

/* Fazma Concept — portfolio identity: deep navy pages, mustard gold accents, white type
   (portfolio PDF: navy #092442, gold #d9a12b, slate panel #394f67) */
.site-concept {
  --bg: #092442; --bg-deep: #061a32; --bg-raise: #0d2c50; --bg-raise-2: #123660;
  --fg: #ffffff; --fg-soft: #d5dde8; --fg-muted: #b3c0d1; --heading: #ffffff;
  --accent: #d9a12b; --accent-hi: #e9b84a; --accent-lo: #b5841c;
  --shine-1: #f2cd72; --shine-2: #d9a12b; --shine-3: #e9b84a;
  --btn-bg: #d9a12b; --btn-bg-2: #e9b84a; --btn-fg: #092442;
  --line: rgb(217 161 43 / .2); --line-strong: rgb(217 161 43 / .5);
  --card-1: rgb(57 79 103 / .55); --card-2: rgb(9 36 66 / .9);
  --form-bg: rgb(57 79 103 / .5); --field-bg: rgb(255 255 255 / .06); --field-line: rgb(255 255 255 / .18);
  --hero-tint: rgb(26 66 116 / .85); --glow: rgb(217 161 43 / .18); --scrim: rgb(9 36 66 / .7);
  --topbar-bg: rgb(9 36 66 / .84);
  --paper: #0c2b4f; --paper-2: #123660; --ink: #ffffff; --ink-heading: #ffffff; --ink-accent: #e9b84a;
  --muted: #b3c0d1; --line-light: rgb(255 255 255 / .14);
  --footer-bg: #061a32; --footer-fg: #d5dde8; --footer-muted: #9fb0c5; --footer-line: rgb(255 255 255 / .08);
  --focus: #e9b84a; --danger: #f29a8f; --ok: #7fd3a8;
  --gold-bg: #d8a12a; --on-gold: #092442; --slate: #394f67;
  --show-bg: #061a32; --show-bg-2: #030f20; --show-fg: #ffffff; --show-muted: #b3c0d1; --show-accent: #e9b84a;
  --logo-h: 48px;
  color-scheme: dark;
}

/* Fazma Construction & Development — charcoal sections, brick orange accents (logo: charcoal #141414, brick #bb593b) */
.site-construction {
  --bg: #1c1c1c; --bg-deep: #121212; --bg-raise: #262626; --bg-raise-2: #303030;
  --fg: #f2ede8; --fg-soft: #d6cfc8; --fg-muted: #a9a39d; --heading: #ffffff;
  --accent: #e07a55; --accent-hi: #ec9a79; --accent-lo: #bb593b;
  --shine-1: #ec9a79; --shine-2: #bb593b; --shine-3: #e07a55;
  --btn-bg: #bb593b; --btn-bg-2: #a94b2f; --btn-fg: #ffffff;
  --line: rgb(224 122 85 / .16); --line-strong: rgb(224 122 85 / .45);
  --card-1: rgb(48 48 48 / .7); --card-2: rgb(18 18 18 / .92);
  --form-bg: rgb(38 38 38 / .7); --field-bg: rgb(255 255 255 / .05); --field-line: rgb(255 255 255 / .16);
  --hero-tint: rgb(60 44 38 / .9); --glow: rgb(187 89 59 / .22); --scrim: rgb(28 28 28 / .74);
  --topbar-bg: rgb(28 28 28 / .82);
  --paper: #f4efe9; --paper-2: #eae2d8; --ink: #1c1c1c; --ink-heading: #141414; --ink-accent: #a94b2f;
  --muted: #5f5953; --line-light: rgb(20 20 20 / .12);
  --footer-bg: #121212; --footer-fg: #cfc8c1; --footer-muted: #948d86; --footer-line: rgb(255 255 255 / .08);
  --focus: #ec9a79; --danger: #f29a8f; --ok: #7fd3a8;
  --bp-line: #e07a55;
  --logo-h: 52px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.4; }
p, ul, ol { margin: 0; }
::selection { background: var(--btn-bg); color: var(--btn-fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sec--light :focus-visible { outline-color: var(--ink-heading); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap--wide { max-width: 1360px; }
.muted { color: var(--fg-muted); }
.sec--light .muted { color: var(--muted); }
.icon { width: 100%; height: 100%; }

.skip {
  position: fixed; inset-inline-start: 12px; top: -100px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Motion primitives ---------- */
[data-mouse] { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .6s var(--ease); }
[data-parallax] { transform: translate3d(var(--mx, 0px), calc(var(--py, 0px) + var(--my, 0px)), 0); }
.skyline [data-parallax] { transition: transform .5s var(--ease); }

.js [data-reveal] {
  opacity: 0;
  transition: opacity .9s var(--ease) var(--delay, 0ms), transform 1.1s var(--ease) var(--delay, 0ms), clip-path 1.2s var(--ease) var(--delay, 0ms);
}
.js [data-reveal]:not(.done) { will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translate3d(0, 46px, 0); }
.js [data-reveal="start"] { transform: translate3d(calc(-90px * var(--dir)), 0, 0); }
.js [data-reveal="end"] { transform: translate3d(calc(90px * var(--dir)), 0, 0); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Image mask reveal (wipes up from the bottom) */
.js [data-reveal="mask"] { opacity: 1; clip-path: inset(100% 0 0 0); }
.js [data-reveal="mask"].in { clip-path: inset(0 0 0 0); }
/* After the reveal finishes (js adds .done), hover effects get their own short timing */
.js [data-reveal].done { transition: opacity .3s; }

[data-magnetic] { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }
.js [data-magnetic][data-reveal].in { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }
.js [data-magnetic][data-reveal].done { transition: transform .35s var(--ease), background-position .6s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s; }

[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  transform-style: preserve-3d;
}
.js [data-tilt][data-reveal].in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js :is(.vm__card, .contact-card)[data-reveal].done { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.js [data-tilt][data-reveal].done { transition: transform .5s var(--ease), border-color .4s, background .4s; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 0%), var(--glow), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
[data-tilt]:hover::after { opacity: 1; }

.arrow { display: inline-block; transition: transform .4s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover .arrow, button:hover .arrow, a:focus-visible .arrow { transform: translateX(calc(6px * var(--dir))); }
[dir="rtl"] a:hover .arrow, [dir="rtl"] button:hover .arrow, [dir="rtl"] a:focus-visible .arrow { transform: scaleX(-1) translateX(6px); }

/* ---------- Failsafe: without fazma.js nothing stays hidden (3 s) ---------- */
@keyframes fz-unhide { to { opacity: 1; transform: none; clip-path: none; } }
@keyframes fz-hide { to { opacity: 0; visibility: hidden; } }
.js:not(.is-ready) [data-reveal], .js:not(.is-ready) .hero__title-in { animation: fz-unhide 0s 3s forwards; }
.js:not(.is-ready) .curtain { animation: fz-hide 0s 3s forwards; }

/* ---------- Intro curtain (opens left & right) ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: none; }
.js .curtain { display: block; }
.curtain__half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: linear-gradient(180deg, var(--bg), var(--bg-deep));
  transition: transform 1.1s var(--ease) .1s;
}
.curtain__half--a { left: 0; border-right: 1px solid var(--line); }
.curtain__half--b { right: 0; }
.curtain__mark {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 24px;
  transition: opacity .5s ease, transform .9s var(--ease);
}
.curtain__logo { height: clamp(64px, 14vw, 110px); width: auto; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.is-loaded .curtain__half--a { transform: translateX(-101%); }
.is-loaded .curtain__half--b { transform: translateX(101%); }
.is-loaded .curtain__mark { opacity: 0; transform: scale(1.12); }
.is-loaded .curtain { visibility: hidden; transition: visibility 0s 1.3s; }
.curtain.is-gone { display: none !important; } /* stops the logo pulse after it opens */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent));
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}
[dir="rtl"] .progress { transform-origin: right; }
@supports (animation-timeline: scroll()) {
  .progress { animation: fz-progress linear both; animation-timeline: scroll(root block); }
  @keyframes fz-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s, backdrop-filter .5s, border-color .5s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: var(--topbar-bg);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; border-radius: 8px; }
.brand__logo { display: block; height: var(--logo-h); width: auto; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.03); }
.brand__text {
  color: var(--fg-muted); font-size: .9rem; padding-inline-start: 16px;
  border-inline-start: 1px solid var(--line-strong); white-space: nowrap;
}
.topbar__nav { display: flex; align-items: center; gap: 6px; }
.topbar__anchors { display: flex; gap: 2px; margin-inline-end: 10px; }
.topbar__anchors a, .topbar__link {
  position: relative; color: var(--fg); opacity: .8; text-decoration: none; font-size: .92rem;
  padding: 8px 12px; transition: opacity .3s, color .3s;
}
.topbar__anchors a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform .45s var(--ease);
}
.topbar__anchors a:hover, .topbar__anchors a:focus-visible { opacity: 1; color: var(--heading); }
.topbar__anchors a:hover::after, .topbar__anchors a:focus-visible::after { transform: scaleX(1); }
.topbar__link:hover, .topbar__link:focus-visible { opacity: 1; color: var(--heading); }
.lang-switch {
  text-decoration: none; font-size: .88rem; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--accent-hi); transition: background .3s, color .3s, border-color .3s;
}
.login-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent-hi); transition: background .3s, color .3s, border-color .3s;
}
.login-icon:hover, .login-icon:focus-visible { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.shell .login-icon { width: 44px; height: 44px; }
.lang-switch:hover, .lang-switch:focus-visible { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 16px 30px; min-height: 54px; border-radius: 999px; border: 0;
  transition: transform .35s var(--ease), background-position .6s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
/* .btn--gold is the primary button; its colours come from the site theme */
.btn--gold {
  color: var(--btn-fg);
  background: linear-gradient(110deg, var(--btn-bg) 0%, var(--btn-bg) 45%, var(--btn-bg-2) 55%, var(--btn-bg-2));
  background-size: 250% 100%;
  box-shadow: 0 10px 34px -14px color-mix(in srgb, var(--btn-bg) 75%, transparent);
}
.btn--gold:hover, .btn--gold:focus-visible { background-position: 100% 0; box-shadow: 0 16px 44px -12px color-mix(in srgb, var(--btn-bg) 90%, transparent); }
.btn--line { color: var(--fg); border: 1px solid var(--line-strong); background: transparent; }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--accent-hi); color: var(--accent-hi); }
.sec--light .btn--line { color: var(--ink); border-color: var(--line-light); }
.sec--light .btn--line:hover { border-color: var(--ink-heading); color: var(--ink-heading); }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  display: flex; align-items: center;
  padding-block: 120px clamp(120px, 20vh, 220px);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--hero-tint), transparent 60%),
    linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 70%);
}
[dir="rtl"] .hero { background:
    radial-gradient(1200px 600px at 20% -10%, var(--hero-tint), transparent 60%),
    linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 70%); }
.site-realestate .hero { background:
    radial-gradient(1200px 600px at 80% -10%, var(--hero-tint), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 30%), var(--glow), transparent 60%);
}
.hero__art { position: absolute; z-index: -1; pointer-events: none; }
.hero__art--skyline { left: 0; right: 0; bottom: 0; height: 50%; opacity: .85; }
.hero__inner::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -8%; pointer-events: none;
  background: radial-gradient(closest-side, var(--scrim), transparent);
}
.hero__art--skyline::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(transparent, var(--bg));
}
.site-realestate .hero__art--skyline::after { background: linear-gradient(transparent, var(--bg-deep)); }
.skyline { display: block; width: 100%; height: 100%; }
.sky-light { fill: var(--sky-light); }
.skyline .win { opacity: .5; }
.skyline .win-set--1 { animation: blink 7s ease-in-out infinite; }
.skyline .win-set--3 { animation: blink 9s ease-in-out -3.5s infinite; }
.skyline .beacon { animation: beacon 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 45% { opacity: .15; } 55% { opacity: 1; } }
@keyframes beacon { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.hero__art--lens {
  inset-inline-end: -6vw; top: 50%; width: min(52vw, 640px); aspect-ratio: 1; margin-top: calc(min(52vw, 640px) / -2);
  opacity: .9;
}
.lens { width: 100%; height: 100%; filter: drop-shadow(0 30px 80px color-mix(in srgb, var(--lens-ring-2) 25%, transparent)); }
.lens-ring, .lens-aperture { transform-origin: 300px 300px; transform-box: view-box; }
.lens-ring--outer { animation: spin 40s linear infinite; }
.lens-ring--ticks { animation: spin 90s linear infinite reverse; }
.lens-aperture { animation: aperture 9s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes aperture { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(30deg) scale(.82); } }

.hero__art--blueprint {
  inset-inline-end: 2vw; bottom: 6vh; width: min(56vw, 640px); opacity: .9;
}
[dir="rtl"] .blueprint { transform: scaleX(-1); }
[dir="rtl"] .blueprint text { display: none; }
.bp-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* Each path draws in turn (--bp-d); the crane hook draws, then sways. */
.is-loaded .bp-draw path { animation: draw 2.6s var(--ease) var(--bp-d, 0s) forwards; }
.bp-draw path:nth-child(2) { --bp-d: .2s; }
.bp-draw path:nth-child(3) { --bp-d: .5s; }
.bp-draw path:nth-child(4) { --bp-d: .7s; }
.bp-draw path:nth-child(5) { --bp-d: .9s; }
.bp-draw path:nth-child(n+6) { --bp-d: 1.2s; }
.bp-hook { transform-origin: 400px 90px; transform-box: view-box; }
.is-loaded .bp-draw .bp-hook { animation: draw 2.6s var(--ease) 1.2s forwards, sway 5s ease-in-out 3.8s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }

.hero__inner { position: relative; }
.hero--lens .hero__inner > *, .hero--blueprint .hero__inner > * { max-width: 760px; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--accent-hi); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  margin-bottom: 26px;
}
html[lang="ar"] .hero__eyebrow { letter-spacing: 0; text-transform: none; font-size: 1.05rem; }
.hero__line { width: 54px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
[dir="rtl"] .hero__line { background: linear-gradient(-90deg, var(--accent), transparent); }
.hero__title {
  font-family: var(--font-display); font-weight: 700; color: var(--heading);
  font-size: clamp(2.7rem, 7.4vw, 6.6rem); line-height: 1.02; letter-spacing: -.01em;
}
html[lang="ar"] .hero__title { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.3; letter-spacing: 0; }
.site-realestate .hero__title { font-size: clamp(2.5rem, 6vw, 5.4rem); }
html[lang="ar"] .site-realestate .hero__title { font-size: clamp(2.1rem, 4.6vw, 4rem); }
.site-realestate .hero__lead { margin-block: 22px 0; }
.site-realestate .finder { margin-top: 32px; }
.hero__title-line { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.hero__title-in { display: inline-block; }
.js .hero__title-in {
  transform: translate3d(0, 110%, 0) rotate(calc(4deg * var(--dir)));
  transition: transform 1.1s var(--ease) calc(var(--i) * 100ms + 80ms);
}
.js.is-loaded .hero__title-in { transform: none; }
.hero__title-line:last-child .hero__title-in {
  background: linear-gradient(100deg, var(--shine-1), var(--shine-2) 45%, var(--shine-1) 70%, var(--shine-3));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
html[lang="en"] .site-realestate .hero__title-line:last-child .hero__title-in,
html[lang="en"] .site-group .hero__title-line:last-child .hero__title-in { font-style: italic; font-weight: 500; }
.hero__lead { color: var(--fg-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; margin-block: 30px 38px; font-weight: 300; }
.site-realestate .hero__lead, html[lang="ar"] .hero__lead { font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--accent-hi); font-size: .85rem;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: beacon 1.6s infinite; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid var(--line-strong); border-radius: 14px; z-index: 2;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--accent); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Finder bar (real estate) ---------- */
.finder {
  margin-top: 46px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px; border-radius: 999px; max-width: 760px;
  background: var(--form-bg); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -34px color-mix(in srgb, var(--heading) 45%, transparent);
}
.finder__label { padding-inline: 18px 6px; color: var(--heading); font-weight: 600; }
.finder__opts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.finder__opt {
  display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; padding: 12px 16px; border-radius: 999px;
  color: var(--fg); transition: background .3s, color .3s;
}
.finder__opt:hover, .finder__opt:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--heading); }
.finder__num { font-size: .7rem; color: var(--accent); font-family: var(--font-mark); }
.finder__go {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; color: var(--btn-fg);
  background: var(--btn-bg); transition: transform .35s var(--ease), box-shadow .3s, background-color .3s;
}
.finder__go:hover, .finder__go:focus-visible { background: var(--btn-bg-2); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--btn-bg) 70%, transparent); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; background: var(--bg-deep); border-block: 1px solid var(--line);
  padding-block: 22px; direction: ltr;
}
.marquee + .marquee { border-top: 0; padding-top: 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; }
.marquee__item {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.2; white-space: nowrap; color: var(--heading);
}
.marquee__item--outline { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 75%, transparent); }
.marquee__star { color: var(--accent); font-size: 1.3rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(90px, 13vw, 170px); }
.sec--dark { background: var(--bg); color: var(--fg); }
.sec--dark .section__title { color: var(--heading); }
.sec--light { background: var(--paper); color: var(--ink); }
.sec--light .section__title { color: var(--ink-heading); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 500; margin-bottom: 16px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.sec--light .kicker { color: var(--ink-accent); }
.section__title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 18px; letter-spacing: -.01em;
}
html[lang="ar"] .section__title { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: 0; }
.section__lead { color: var(--fg-muted); max-width: 54ch; font-size: 1.08rem; }
.sec--light .section__lead { color: var(--muted); }

/* Statement: words light up as you scroll */
.statement { padding-block: clamp(96px, 13vw, 180px); }
.sec--dark .statement__text { color: var(--heading); }
.sec--dark .statement__text .w.is-lit:nth-child(4n+3) { color: var(--accent-hi); }
.statement__text {
  font-family: var(--font-display); font-weight: 500; max-width: 22ch; color: var(--ink-heading);
  font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.22; letter-spacing: -.01em;
}
html[lang="ar"] .statement__text { font-weight: 700; line-height: 1.55; max-width: 24ch; letter-spacing: 0; }
.statement__text .w { opacity: .13; transition: opacity .5s ease, color .5s ease; }
.statement__text .w.is-lit { opacity: 1; }
.statement__text .w.is-lit:nth-child(4n+3) { color: var(--ink-accent); }

/* ---------- Group: company "doors" ---------- */
.doors { display: flex; gap: 18px; margin-top: 54px; min-height: 560px; }
.door {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: linear-gradient(170deg, var(--bg-raise-2), var(--bg-raise) 55%, var(--bg-deep));
  border: 1px solid var(--line);
  transition: flex 0.9s var(--ease), border-color .4s, opacity 1s var(--ease) var(--delay, 0ms), transform 1.1s var(--ease) var(--delay, 0ms);
}
.door::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(520px circle at 50% 110%, var(--door-tint, var(--glow)), transparent 65%);
}
.door--realestate { --door-tint: rgb(219 204 173 / .32); }
.door--concept { --door-tint: rgb(255 255 255 / .2); }
.door--construction { --door-tint: rgb(187 89 59 / .4); }
.doors:hover .door { flex: .82; }
.doors .door:hover, .doors .door:focus-visible { flex: 1.6; border-color: var(--line-strong); }
.door:hover::before, .door:focus-visible::before { opacity: 1; }
.door__num { position: relative; font-family: var(--font-mark); font-size: 4.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.door__icon { position: relative; width: 74px; height: 74px; color: var(--accent-hi); transition: transform .8s var(--ease); }
.door:hover .door__icon { transform: translateY(-10px) scale(1.08); }
.door__body { position: relative; display: grid; gap: 10px; }
/* Each company's own logo on its own background colour */
.door__plate {
  justify-self: start; display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 14px;
  background: var(--plate); box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 14px 30px -18px rgb(0 0 0 / .7);
}
.door__logo { display: block; height: 40px; width: auto; max-width: 100%; }
.door__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--heading); }
.door__text { color: var(--fg-muted); max-width: 34ch; }
.door__more { color: var(--accent-hi); font-weight: 600; margin-top: 8px; }

/* ---------- Real estate: horizontal scroll services ---------- */
.hscroll { padding-block: clamp(90px, 12vw, 150px); background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.hscroll__head { margin-bottom: 44px; }
.hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll__viewport::-webkit-scrollbar { display: none; }
.hscroll__track {
  display: flex; gap: 22px; width: max-content;
  padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding-block: 10px 30px; will-change: transform;
}
.hscroll.is-pinned { padding-block: 0; }
.hscroll.is-pinned .hscroll__sticky {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hscroll.is-pinned .hscroll__viewport { overflow: visible; scroll-snap-type: none; }
.hscroll.is-pinned .hscroll__sticky::after {
  content: ""; position: absolute; bottom: 7vh; inset-inline-start: max(24px, calc((100vw - 1200px) / 2 + 24px));
  width: 220px; height: 2px; background: linear-gradient(90deg, var(--accent) calc(var(--hs, 0) * 100%), var(--line) 0);
}
[dir="rtl"] .hscroll.is-pinned .hscroll__sticky::after { background: linear-gradient(-90deg, var(--accent) calc(var(--hs, 0) * 100%), var(--line) 0); }

.panel, .duo__card {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 16px;
  width: min(80vw, 430px); min-height: 440px; padding: 38px 34px; scroll-snap-align: start;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-1), var(--card-2));
}
.site-realestate .panel { box-shadow: 0 24px 60px -40px color-mix(in srgb, var(--heading) 60%, transparent); }
.panel:hover, .duo__card:hover { border-color: var(--line-strong); }
.panel__num { font-family: var(--font-mark); font-size: 1rem; color: var(--accent); letter-spacing: .1em; }
.panel__icon { width: 64px; height: 64px; color: var(--accent-hi); margin-block: 18px 6px; transform: translateZ(40px); }
.panel__title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--heading); transform: translateZ(30px); }
.panel__text { color: var(--fg-muted); font-size: 1.04rem; }
.panel__link { margin-top: auto; color: var(--accent-hi); text-decoration: none; font-weight: 600; }
.panel__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Process steps ---------- */
.steps-wrap { position: relative; margin-top: 64px; --fill: 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps__line { position: absolute; top: 28px; inset-inline: 28px; height: 2px; background: var(--line-light); }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-accent), var(--ink-heading)); transform: scaleX(var(--fill)); transform-origin: left; }
[dir="rtl"] .steps__fill { transform-origin: right; background: linear-gradient(-90deg, var(--ink-accent), var(--ink-heading)); }
.step { display: grid; gap: 12px; }
.step__dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  background: var(--paper); border: 1.5px solid var(--ink-heading); color: var(--ink-heading);
  box-shadow: 0 0 0 8px var(--paper);
}
.step__title { font-family: var(--font-display); font-size: 1.45rem; margin-top: 10px; color: var(--ink-heading); }
.step__text { color: var(--muted); }

/* ---------- Inquiry form ---------- */
.inquiry { overflow: hidden; background: radial-gradient(900px 500px at 15% 0%, var(--hero-tint), transparent 60%), var(--bg); }
.inquiry__art { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; opacity: .45; pointer-events: none; }
/* The background skyline stays put and fades in from the top (no hard edge or gap under a shifted layer) */
.inquiry__art { -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.inquiry__art [data-parallax] { transform: none !important; }
.form-layout { position: relative; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .form-intro { position: sticky; top: 120px; } }
.form {
  display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: 28px;
  background: var(--form-bg); border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 120px -50px color-mix(in srgb, var(--heading) 55%, transparent);
}
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .95rem; color: var(--fg-soft); padding: 0; }
.field legend { margin-bottom: 10px; }
.field-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: var(--field-bg); border: 1px solid var(--field-line);
  border-radius: 14px; padding: 14px 16px; min-height: 52px; transition: border-color .3s, background .3s, box-shadow .3s;
}
[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.form [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { color: var(--fg-muted); font-size: .88rem; margin-top: -8px; }
.form > .field__hint:last-child { margin-top: 0; text-align: center; }
.field__error { color: var(--danger); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 11px 22px; border-radius: 999px; min-height: 46px;
  border: 1px solid var(--line-strong); color: var(--fg); transition: all .35s var(--ease);
}
.chip:hover span { border-color: var(--accent-hi); }
.chip input:checked + span { background: var(--btn-bg); border-color: transparent; color: var(--btn-fg); font-weight: 600; transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.notice { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: .95rem; }
.notice--preview { border-color: var(--line-strong); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-hi); margin-top: 24px; }
.notice--sent { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.notice--expired { border-color: var(--line-strong); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-hi); }
.notice--failed { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Concept: services, work, partners ---------- */
.duo { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 50px; }
.duo__card { width: auto; min-height: 400px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 6px; }
.ticks li { position: relative; padding-inline-start: 26px; color: var(--fg-soft); font-size: 1.05rem; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 12px; height: 1px; background: var(--accent);
}
/* Portfolio band: a dark, wide stage so the productions stand out */
.sec--showcase { background: linear-gradient(180deg, var(--show-bg, var(--bg-raise)), var(--show-bg-2, var(--bg-deep))); color: var(--show-fg, var(--fg)); }
.sec--showcase .section__title { color: var(--show-fg, var(--heading)); }
.sec--showcase :focus-visible { outline-color: var(--show-fg, var(--focus)); }
.sec--showcase .section__lead { color: var(--show-muted, var(--fg-muted)); }
/* Portfolio grid: 9:16 social videos; 16:9 short films span two columns */
.works {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: clamp(12px, 1.6vw, 22px); grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr));
}
.work { position: relative; min-width: 0; }
.work[hidden] { display: none; }
.work--wide { grid-column: span 2; }
.work__link {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  height: 100%; min-height: 100%; aspect-ratio: 9 / 16; padding: 20px; overflow: hidden; isolation: isolate;
  border-radius: 18px; text-decoration: none; color: var(--show-fg, var(--fg));
  background: var(--show-bg-2, var(--bg-raise)); border: 1px solid rgb(255 255 255 / .12);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.work--wide .work__link { aspect-ratio: 16 / 10; }
.work__poster {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
}
.work__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(3 15 32 / 0) 40%, rgb(3 15 32 / .88) 100%);
}
.work__link:hover, .work__link:focus-visible { border-color: var(--show-accent, var(--accent)); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.work__link:hover .work__poster, .work__link:focus-visible .work__poster { transform: scale(1.06); }
.work__meta { display: grid; gap: 4px; }
.work__format { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--show-accent, var(--accent-hi)); }
html[lang="ar"] .work__format { letter-spacing: 0; font-size: .82rem; }
.work__title { font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.25; }
.work__client { color: var(--show-muted, var(--fg-muted)); }
.work__more { color: var(--show-accent, var(--accent-hi)); font-weight: 600; font-size: .9rem; }
.play {
  position: absolute; top: 16px; inset-inline-start: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--btn-bg); transition: transform .5s var(--ease);
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / .6);
}
.work__link:hover .play, .work__link:focus-visible .play { transform: scale(1.12); }
.play::after {
  content: ""; position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--btn-fg);
}
.cx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cx-filter {
  font: inherit; font-size: .92rem; cursor: pointer; padding: 9px 18px; min-height: 42px; border-radius: 999px;
  color: var(--show-fg, var(--fg)); background: transparent; border: 1px solid rgb(255 255 255 / .22);
  transition: background .3s, color .3s, border-color .3s;
}
.cx-filter:hover { border-color: var(--accent); }
.cx-filter[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); font-weight: 600; }
.cx-player {
  width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: #000; color: #fff;
}
.cx-player.is-tall { width: min(92vw, calc(82vh * 9 / 16)); }
.cx-player::backdrop { background: rgb(3 10 22 / .86); backdrop-filter: blur(6px); }
.cx-player__frame { aspect-ratio: 16 / 9; }
.cx-player.is-tall .cx-player__frame { aspect-ratio: 9 / 16; max-height: 82vh; }
.cx-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.cx-player__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #061a32; }
.cx-player__drive { color: #e9b84a; font-size: .9rem; }
.cx-player__close {
  font: inherit; cursor: pointer; color: #fff; background: transparent; border: 1px solid rgb(255 255 255 / .3);
  border-radius: 999px; padding: 6px 14px; min-height: 40px;
}
.cx-player__close:hover, .cx-player__close:focus-visible { background: #fff; color: #061a32; }
.partners { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 40px; }
.partners__item {
  display: grid; place-items: center; min-height: 110px; padding: 18px; text-align: center; font-weight: 600;
  border-radius: var(--radius); border: 1px solid var(--line-light); background: #fff; color: var(--ink-heading);
}
.partners__item a { text-decoration: none; }
.partners__item img { max-height: 56px; width: auto; filter: grayscale(1); transition: filter .4s; }
.partners__item:hover img { filter: none; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-raise), var(--bg)); border-top: 1px solid var(--line); }
.site-realestate .contact { background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 40px; }
.contact-list li {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-raise-2) 55%, transparent); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact-list li:hover, .contact-list li:focus-within { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 40px -24px var(--glow); }
.contact-card__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); transition: background-color .3s, color .3s;
}
.contact-card__icon .icon { width: 24px; height: 24px; stroke-width: 3.4; }
.contact-list li:hover .contact-card__icon, .contact-list li:focus-within .contact-card__icon { background: var(--btn-bg); color: var(--btn-fg); }
.contact-card__body { display: grid; gap: 2px; min-width: 0; }
.contact-list__label { font-size: .85rem; color: var(--accent); }
.contact-list a, .contact-list__value { font-weight: 600; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; color: var(--heading); }
@media (max-width: 600px) {
  .contact-list li { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
}
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card__link--stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; }
.contact .btn { margin-top: 24px; }

/* ---------- Vision & mission (Real Estate, Construction) ---------- */
.vm--after-statement { padding-top: 0; }
.vm__grid { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: 44px; grid-template-columns: 1fr minmax(0, .9fr) 1fr; align-items: stretch; }
.vm__card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius); background: color-mix(in srgb, var(--paper-2) 60%, var(--paper)); border: 1px solid var(--line-light);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.vm__card::before { content: ""; position: absolute; inset-block: 34px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--ink-accent); }
.vm__card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ink-accent) 40%, transparent); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--ink-heading) 45%, transparent); }
.vm__icon { width: 52px; height: 52px; color: var(--ink-accent); }
.vm__icon .icon { width: 100%; height: 100%; stroke-width: 2.4; }
.vm__label { font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 1.9rem); color: var(--ink-heading); }
.vm__text { font-size: 1.06rem; line-height: 1.85; color: var(--ink); }
.vm__photo { position: relative; margin: 0; min-height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.vm__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vm__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--ink-heading) 30%, transparent)); pointer-events: none; }
.vm__grid:hover .vm__photo img { transform: scale(1.04); }
@media (max-width: 1100px) {
  .vm__grid { grid-template-columns: 1fr 1fr; }
  .vm__photo { grid-column: 1 / -1; order: -1; min-height: 0; aspect-ratio: 21 / 9; }
}
@media (max-width: 700px) {
  .vm__grid { grid-template-columns: 1fr; margin-top: 32px; }
  .vm__photo { aspect-ratio: 16 / 10; }
}

.footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--footer-fg); border: 1px solid var(--footer-line); transition: color .3s, border-color .3s, background-color .3s, transform .4s var(--ease);
}
.footer__social a:hover, .footer__social a:focus-visible { color: var(--accent-hi); border-color: currentColor; transform: translateY(-2px); }
.footer__social .icon { width: 20px; height: 20px; stroke-width: 3.6; }

/* ---------- Concept: portfolio sections ---------- */
.hero__art--robot {
  inset-inline-end: -2vw; top: 0; bottom: 0; width: min(48vw, 640px);
  display: flex; align-items: flex-end; justify-content: center;
}
.hero__art--robot img {
  width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: radial-gradient(closest-side at 50% 54%, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 54%, #000 62%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero--robot .hero__inner > * { max-width: min(680px, 50vw - 24px); }
html[lang="en"] .site-concept .hero__title { text-transform: uppercase; font-weight: 800; letter-spacing: -.005em; font-size: clamp(2.6rem, 6.4vw, 5.8rem); }
html[lang="en"] .site-concept .hero__title-line:last-child .hero__title-in { font-style: italic; font-weight: 600; text-transform: none; }

.hl { font-style: normal; color: var(--accent-hi); }
.cx-dot { display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--accent); margin-inline-end: .35em; vertical-align: .14em; }
.sec--light .cx-dot { background: var(--ink-accent); }
.cx-sub { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--accent-hi); margin-top: clamp(70px, 9vw, 120px); }
html[lang="en"] .site-concept :is(.section__title, .cx-sub) { text-transform: uppercase; font-weight: 800; letter-spacing: .005em; }

.cx-intro__lead {
  font-family: var(--font-display); font-weight: 600; color: var(--heading);
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.3; max-width: 30ch;
}
html[lang="ar"] .cx-intro__lead { line-height: 1.6; }
.cx-intro__more { margin-top: 24px; max-width: 64ch; color: var(--fg-soft); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.cx-pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 56px; }
.cx-pillar {
  padding: 30px 28px; border-radius: var(--radius); background: var(--card-1); border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start; color: var(--fg-soft);
}
.cx-pillar__num { font-family: var(--font-mark); color: var(--accent); }
.cx-pillar__title { font-family: var(--font-display); font-size: 1.45rem; color: var(--heading); }
.cx-approach { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.cx-approach li {
  display: grid; place-items: center; text-align: center; min-height: 112px; padding: 18px 16px; border-radius: 14px;
  background: var(--gold-bg, var(--accent)); color: var(--on-gold, var(--bg)); font-weight: 700; font-size: 1.05rem; line-height: 1.35;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.cx-approach li:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgb(217 161 43 / .7); }

.cx-serve__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .cx-serve__grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.cx-serve__list { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 16px; }
.cx-serve__list li { display: grid; grid-template-columns: 96px 1fr; align-items: stretch; border: 2px solid #fff; min-height: 84px; background: var(--bg); }
.cx-serve__num {
  display: grid; place-items: center; background: var(--gold-bg, var(--accent));
  font-family: var(--font-mark); font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #fff;
  clip-path: polygon(0 0, 100% 0, 86% 22%, 100% 40%, 84% 62%, 100% 80%, 88% 100%, 0 100%);
}
[dir="rtl"] .cx-serve__num { clip-path: polygon(100% 0, 0 0, 14% 22%, 0 40%, 16% 62%, 0 80%, 12% 100%, 100% 100%); }
.cx-serve__text { display: flex; align-items: center; padding: 14px 22px; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); text-transform: uppercase; color: #fff; }
html[lang="ar"] .cx-serve__text { text-transform: none; }
.cx-serve__robots { width: 100%; max-width: 520px; justify-self: center; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); }

.cx-services { background: var(--gold-bg, var(--accent)); color: var(--on-gold, var(--bg)); overflow: hidden; }
.cx-services .section__title { color: var(--on-gold, var(--bg)); }
.cx-services .cx-dot { background: var(--on-gold, var(--bg)); }
.cx-services :focus-visible { outline-color: var(--on-gold, var(--bg)); }
.cx-services__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 44px; }
.cx-service {
  position: relative; display: grid; align-content: start; gap: 10px; min-height: 230px; padding: 26px 26px 30px;
  border-radius: 26px; border: 2px solid rgb(255 255 255 / .55); background: rgb(255 255 255 / .06);
  transition: border-color .4s, background .4s;
}
.cx-service:hover { border-color: #fff; background: rgb(255 255 255 / .14); }
.cx-service__num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--on-gold); }
.cx-service__num::after { content: ""; display: block; width: 74px; height: 3px; margin-top: 12px; background: var(--on-gold); }
.cx-service__title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--on-gold); text-transform: uppercase; margin-top: 6px; }
html[lang="ar"] .cx-service__title:not([lang="en"]) { text-transform: none; }
.cx-service__text { color: var(--on-gold); font-weight: 500; }

.cx-orbit { position: relative; margin-top: 50px; }
.cx-orbit__art { display: none; }
.cx-orbit__steps { list-style: none; padding: 0; display: grid; gap: 22px; }
.cx-step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.cx-step__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.2rem); line-height: 1; color: var(--accent); }
.cx-step__text {
  position: relative; padding-inline-start: 22px; font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.35;
  border-inline-start: 2px solid #fff;
}
html[lang="ar"] .cx-step__text { text-transform: none; }
@media (min-width: 900px) {
  .cx-orbit { display: grid; place-items: center; min-height: 560px; }
  .cx-orbit__art { display: block; width: 300px; height: 220px; fill: none; stroke: rgb(255 255 255 / .8); stroke-width: 2; }
  .cx-orbit__dot { fill: var(--accent); stroke: none; offset-path: path("M 38 110 a 112 58 -18 1 0 224 0 a 112 58 -18 1 0 -224 0"); animation: orbit 9s linear infinite; }
  @keyframes orbit { to { offset-distance: 100%; } }
  .cx-orbit__steps { position: absolute; inset: 0; display: block; }
  .cx-step { position: absolute; width: min(30%, 300px); }
  .cx-step--1 { top: 0; left: 50%; }
  .cx-step--2 { top: 38%; right: 0; }
  .cx-step--3 { bottom: 0; right: 50%; }
  .cx-step--4 { top: 38%; left: 0; }
  [dir="rtl"] .cx-step--1 { left: auto; right: 50%; }
  [dir="rtl"] .cx-step--3 { right: auto; left: 50%; }
}
.cx-care { display: grid; gap: 30px; align-items: center; margin-top: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .cx-care { grid-template-columns: 1fr 300px; } }
.cx-care__text { margin-top: 16px; max-width: 58ch; font-size: 1.12rem; color: var(--fg-soft); }
.cx-worth { margin-top: 40px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.2; color: #fff; }
html[lang="en"] .cx-worth { text-transform: uppercase; }
.cx-worth mark { background: var(--accent); color: #fff; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cx-care__robot { width: 100%; max-width: 280px; justify-self: center; animation: float 5s ease-in-out infinite; }

.cx-library { overflow: hidden; }
.cx-library__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .cx-library__grid { grid-template-columns: 5fr 6fr; } }
.cx-library .btn { margin-top: 18px; }
.cx-library__robot { width: 100%; max-width: 620px; justify-self: center; filter: drop-shadow(0 30px 50px rgb(0 0 0 / .45)); }

.cx-contact { background: radial-gradient(800px 420px at 85% 0%, rgb(57 79 103 / .55), transparent 65%), var(--bg); }
.cx-contact .contact-list li { background: var(--slate, var(--bg-raise)); border-color: transparent; }
.cx-contact .contact-list li a + a { margin-top: 2px; }
.cx-thanks { margin-top: 56px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); color: var(--accent); }
html[lang="en"] .cx-thanks { text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--footer-bg); color: var(--footer-fg); padding-block: 70px 30px; border-top: 1px solid var(--footer-line); }
.footer__big {
  position: absolute; left: 50%; bottom: -0.18em; translate: -50% 0; z-index: 0; pointer-events: none;
  font-family: var(--font-mark); font-weight: 800; font-size: clamp(6rem, 24vw, 22rem); line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 12%, transparent); white-space: nowrap;
}
.footer__inner, .footer__legal { position: relative; z-index: 1; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 22px; color: var(--footer-fg); }
.footer__brand strong { color: var(--footer-fg); }
.footer__logo { display: inline-flex; border-radius: 8px; padding-inline-end: 22px; border-inline-end: 1px solid var(--footer-line); }
.footer__logo-img { display: block; height: 64px; width: auto; }
.footer__muted { color: var(--footer-muted); font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__links a { text-decoration: none; color: var(--footer-fg); opacity: .85; transition: color .3s, opacity .3s; }
.footer__links a:hover, .footer__links a:focus-visible, .footer__links a[aria-current="page"] { color: var(--accent-hi); opacity: 1; }
.footer__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--footer-line); font-size: .85rem; color: var(--footer-muted);
}
.to-top { color: var(--accent-hi); text-decoration: none; }
.to-top:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand__text { display: none; }
}
@media (max-width: 900px) {
  .topbar__anchors, .topbar__link { display: none; }
  .doors { flex-direction: column; min-height: 0; }
  .doors:hover .door, .doors .door:hover { flex: none; }
  .door { min-height: 300px; gap: 24px; }
  .door__num { font-size: 3.2rem; position: absolute; top: 26px; inset-inline-end: 28px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__line { top: 28px; bottom: 28px; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto; }
  .steps__fill { transform: scaleY(var(--fill)); transform-origin: top !important; background: linear-gradient(180deg, var(--ink-accent), var(--ink-heading)) !important; }
  .step { grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step__dot { grid-row: span 2; }
  .step__title { margin-top: 4px; }
  .hero__art--lens { width: 90vw; margin-top: 0; top: auto; bottom: -22vw; inset-inline-end: -28vw; opacity: .45; }
  .hero__art--blueprint { width: 92vw; opacity: .35; bottom: 2vh; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .topbar__inner { min-height: 68px; }
  .brand__logo { height: calc(var(--logo-h) * .8); }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__logo { padding-inline-end: 0; border: 0; }
  .footer__logo-img { height: 54px; }
  .hero { padding-block: 110px 34vh; align-items: flex-start; }
  .hero__art--skyline { height: 42%; }
  .finder { border-radius: 22px; padding: 12px; }
  .finder__label { width: 100%; padding: 4px 8px 2px; }
  .finder__opts { width: 100%; }
  .finder__opt { flex: 1 1 40%; justify-content: center; background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .finder__go { width: 100%; justify-content: center; }
  .marquee { padding-block: 16px; }
  .panel { min-height: 380px; padding: 30px 26px; }
  .work__link { padding: 14px; border-radius: 14px; }
  .play { width: 40px; height: 40px; top: 12px; inset-inline-start: 12px; }
  .footer__legal { margin-top: 40px; }
}

/* ==========================================================================
   Mobile shell for every public page (body.shell): compact header + menu, 44px
   targets, safe areas, vertical reveals on phones. Concept adds the web-app
   extras (manifest, service worker) through @section('webapp').
   Mobile-first: compact header + menu, 44px targets, safe areas, fluid hero.
   ========================================================================== */
html:has(.shell) { scroll-padding-top: calc(80px + env(safe-area-inset-top)); }
html.menu-open { overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shell .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.shell .topbar { padding-top: env(safe-area-inset-top); }
.shell .topbar__inner { min-height: 64px; }
.shell .brand { min-height: 44px; }
.shell .brand__logo { height: clamp(34px, 9vw, var(--logo-h)); }
.shell .lang-switch, .shell .topbar__anchors a, .shell .topbar__link { display: inline-flex; align-items: center; min-height: 44px; }
.shell .lang-switch { padding-inline: 14px; flex: none; }
.shell .brand { flex: 0 1 auto; }
.shell .topbar:has(.menu:not([hidden])) { background: var(--bg-deep); border-color: var(--line); }

.menu-btn {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
  color: var(--fg); background: transparent; border: 1px solid var(--line-strong);
}
.menu-btn:hover { border-color: var(--accent-hi); }
.menu-btn__bars { position: relative; width: 20px; height: 14px; }
.menu-btn__bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 6px; }
.menu-btn__bars span:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.no-js .menu-btn { display: none; }

/* Full-height sheet; links sit at the bottom, within thumb reach */
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: calc(64px + env(safe-area-inset-top));
  display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; overflow-y: auto; overscroll-behavior: contain;
  padding: 24px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  animation: menu-in .35s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: center; min-height: 60px; padding-block: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 7vw, 2.2rem); line-height: 1.2;
  color: var(--heading); border-bottom: 1px solid var(--line);
}
html[lang="en"] .menu__links a { text-transform: uppercase; }
.menu__links a:hover, .menu__links a:focus-visible { color: var(--accent-hi); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px; }
.menu__secondary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 999px; text-decoration: none;
  color: var(--accent-hi); border: 1px solid var(--line-strong);
}
.menu__secondary:hover, .menu__secondary:focus-visible { background: var(--btn-bg); color: var(--btn-fg); }

/* Touch targets */
.shell .cx-filter { min-height: 44px; }
.shell .footer__links { gap: 0 22px; }
.shell .footer__links a, .shell .to-top { display: inline-flex; align-items: center; min-height: 44px; }
.shell .footer__legal { align-items: center; padding-bottom: env(safe-area-inset-bottom); }
.shell .contact-card__body { gap: 0; }
.shell .contact-list a { display: flex; align-items: center; min-height: 44px; }
.shell .hero__actions .btn { min-height: 52px; }
.shell main { overflow-x: clip; } /* off-screen reveal transforms must never widen the page */
.shell .scroll-cue { width: 44px; height: 56px; margin-left: -22px; border: 0; }
.shell .scroll-cue::before { content: ""; position: absolute; inset: 7px 9px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.shell .scroll-cue span { top: 15px; }

.shell .panel__link, .shell .finder__opt, .shell .door__more { min-height: 44px; display: inline-flex; align-items: center; }

/* Connection status toast */
.net {
  position: fixed; z-index: 140; left: 50%; translate: -50% 0; bottom: calc(16px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; border-radius: 14px;
  background: #fff; color: #092442; font-weight: 600; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .6);
}
.net.is-offline { background: #f8e3b0; }
.net[hidden] { display: none; }

/* Video dialog fits short and landscape screens */
.shell .cx-player { max-height: 92dvh; }
.shell .cx-player:not(.is-tall) { width: min(92vw, 1100px, calc((92dvh - 64px) * 16 / 9)); }
.shell .cx-player.is-tall { width: min(92vw, calc((92dvh - 64px) * 9 / 16)); }
.shell .cx-player.is-tall .cx-player__frame { max-height: none; }

@media (min-width: 900px) {
  .menu, .menu-btn { display: none !important; }
}

/* Mobile & tablet: content first, robot below, no intro curtain */
@media (max-width: 899px) {
  .shell .curtain { display: none; }
  /* sideways reveals would push the layout viewport wider than the phone: rise instead */
  .js .shell [data-reveal="start"]:not(.in), .js .shell [data-reveal="end"]:not(.in) { transform: translate3d(0, 36px, 0); }
  .shell .topbar__nav { gap: 8px; }
  .shell .topbar__link { display: none; }
  .shell .hero--robot {
    flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0;
    padding-block: calc(84px + env(safe-area-inset-top)) 28px;
  }
  .shell .hero--robot .hero__inner { order: 1; }
  .shell .hero--robot .hero__inner > * { max-width: 620px; }
  .shell .hero--robot .hero__eyebrow { margin-bottom: 14px; }
  .shell .hero--robot .hero__lead { margin-block: 14px 22px; font-size: clamp(1rem, 3.6vw, 1.15rem); }
  .shell .hero--robot .hero__actions { gap: 10px; }
  .shell .hero--robot .hero__actions .btn { flex: 1 1 150px; padding-inline: 20px; }
  .shell .hero--robot .scroll-cue { display: none; }
  .shell .hero__art--robot {
    position: relative; order: 2; inset: auto; z-index: 0; align-self: center;
    width: auto; height: auto; margin-top: 18px; opacity: 1; display: block;
  }
  .shell .hero__art--robot img { width: min(70vw, 300px); max-height: min(52svh, 420px); object-fit: contain; }
  html[lang="en"] .shell .hero--robot .hero__title { font-size: clamp(2.1rem, 10.4vw, 3.6rem); }
  html[lang="ar"] .shell .hero--robot .hero__title { font-size: clamp(1.9rem, 8.6vw, 3rem); }
  .shell .section__title { overflow-wrap: anywhere; }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  /* phones held sideways: robot beside the text instead of below it */
  .shell .hero--robot { flex-direction: row; align-items: center; gap: 12px; padding-block: calc(70px + env(safe-area-inset-top)) 16px; }
  .shell .hero--robot .hero__eyebrow { display: none; } /* the logo already names the studio */
  .shell .hero--robot .hero__lead { margin-block: 8px 14px; font-size: .95rem; line-height: 1.5; }
  .shell .hero--robot .hero__inner { flex: 1 1 60%; }
  .shell .hero__art--robot { margin-top: 0; flex: 0 1 34%; }
  .shell .hero__art--robot img { width: 100%; max-height: 72svh; }
  html[lang="en"] .shell .hero--robot .hero__title { font-size: clamp(1.9rem, 5.4vw, 2.8rem); }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  /* phones held sideways (all sites): headline and main action on the first screen */
  .shell .hero:not(.hero--robot) { min-height: 0; padding-block: calc(76px + env(safe-area-inset-top)) 24px; }
  .shell .hero:not(.hero--robot) .hero__eyebrow { margin-bottom: 10px; font-size: .9rem; }
  .shell .hero:not(.hero--robot) .hero__title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .shell .hero:not(.hero--robot) .hero__lead { margin-block: 8px 14px; font-size: .95rem; line-height: 1.5; }
  .shell .hero:not(.hero--robot) .finder { margin-top: 14px; }
  .shell .hero:not(.hero--robot) .scroll-cue { display: none; }
}
@media (max-width: 360px) {
  /* smallest phones: keep the main action on the first screen */
  .shell .hero:not(.hero--robot) { padding-top: calc(84px + env(safe-area-inset-top)); }
  .shell .hero:not(.hero--robot) .hero__eyebrow { margin-bottom: 12px; }
  html[lang="en"] .shell .hero:not(.hero--robot) .hero__title { font-size: 2.15rem; }
  .shell .hero:not(.hero--robot) .hero__lead { margin-block: 14px 20px; font-size: .98rem; }
  .shell .hero:not(.hero--robot) .finder { margin-top: 18px; }
}
@media (max-width: 420px) {
  .shell .hero--robot .hero__actions .btn { flex-basis: 100%; }
  .cx-serve__list li { grid-template-columns: 70px 1fr; }
  .cx-serve__num { font-size: 2rem; }
  .cx-serve__text { padding: 12px 16px; }
  .shell .footer__links { gap: 0 18px; }
}

/* ---------- Off-screen sections pause their loops (js: .is-off) ---------- */
.is-off, .is-off * { animation-play-state: paused !important; }

/* ---------- Marquee pause control (WCAG 2.2.2) ---------- */
.marquee-wrap { position: relative; }
.marquee-toggle {
  position: absolute; z-index: 2; inset-inline-end: 12px; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-deep); color: var(--accent-hi); border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity .3s;
}
.marquee-wrap:hover .marquee-toggle, .marquee-toggle:focus-visible, .marquee-wrap.is-paused .marquee-toggle { opacity: 1; }
@media (hover: none) { .marquee-toggle { opacity: .85; } }
.marquee-toggle svg { width: 16px; height: 16px; }
.marquee-toggle .i-play, .marquee-wrap.is-paused .marquee-toggle .i-pause { display: none; }
.marquee-wrap.is-paused .marquee-toggle .i-play { display: block; }
.marquee-wrap.is-paused .marquee__track, .marquee-wrap:focus-within .marquee__track { animation-play-state: paused; }

/* ---------- Page-to-page cross-fade (language switch, sister sites) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Print: everything visible, nothing animated ---------- */
@media print {
  .curtain, .progress, .topbar, .menu, .scroll-cue, .marquee-toggle, .hero__art, .footer__big { display: none !important; }
  .js [data-reveal], .js .hero__title-in, .statement__text .w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { min-height: 0; padding-block: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero__title-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  @view-transition { navigation: none; }
  .bp-draw path { stroke-dashoffset: 0; }
  .curtain { display: none !important; }
  .vm__grid:hover .vm__photo img, .vm__card:hover, .contact-list li:hover { transform: none; }
}
