/* Future Methods Contracting Company — main stylesheet
   STRICT BRAND PALETTE — only these colours appear on the site:
     Navy  #1F2A44   Beige  #E8DCC8   Gold  #C6A75E (+ the official gold gradient)
   Rule: on a beige surface, text is navy or gold; on a navy surface, text is beige or gold.
   Every surface sets --bg / --fg, and components inherit them.
   Logical properties (inline-start/end) make the same rules work in RTL and LTR. */

:root {
  --navy: #1F2A44;
  --beige: #E8DCC8;
  --gold: #C6A75E;
  --gold-grad: linear-gradient(90deg, #A3773F 0%, #D2A35C 55%, #EBC27D 82%, #DEB572 100%);
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(31, 42, 68, .55);
  --container: 1200px;
  --header-h: 78px;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-head: 'Cinzel', Georgia, serif;
  --bg: var(--beige);
  --fg: var(--navy);
}
html[lang="ar"] {
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* Surfaces */
.on-navy, .site-header, .hero, .page-hero, .section--navy, .cta-band, .site-footer, .main-nav, .lightbox, .ph {
  --bg: var(--navy); --fg: var(--beige);
}
.section, .on-beige { --bg: var(--beige); --fg: var(--navy); }
.section--navy { --bg: var(--navy); --fg: var(--beige); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="en"] body { line-height: 1.7; font-size: 15.5px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; color: var(--fg); }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy); }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 200; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Placeholder for missing client info (removed once data arrives) */
.todo {
  display: inline-block; color: var(--fg); background: transparent;
  border: 1px dashed var(--gold); border-radius: 3px; padding: 0 .45em; font-size: .92em; line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.7em; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--gold { background: var(--gold-grad); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--gold); color: var(--beige); }
.btn--ghost:hover { background: var(--gold); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--beige); border-color: var(--navy); }
.btn--navy:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--outline { border-color: var(--fg); color: var(--fg); }
.btn--outline:hover { background: var(--fg); color: var(--bg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--navy); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(31, 42, 68, .9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.main-nav { margin-inline-start: auto; background: transparent; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; color: var(--beige); font-size: .93rem; font-weight: 500; position: relative; transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { color: var(--gold); font-weight: 600; font-size: .88rem; border: 1px solid var(--gold); border-radius: 30px; padding: 5px 14px; transition: background-color .2s, color .2s; }
.lang-switch:hover { background: var(--gold); color: var(--navy); }
.header-actions .btn { padding: .65em 1.2em; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.gold-rule { height: 3px; background: var(--gold-grad); }

/* ---------- One continuous ground: tones + slanted blends ----------
   Every block carries data-tone (navy|beige). A block whose tone differs from the one
   above carries data-from, and paints a slanted gradient across the seam, so the page
   flows from navy to beige with no hard edge. */
:root { --blend: clamp(90px, 12vw, 170px); }
[data-tone] { position: relative; }
[data-tone="navy"] { --bg: var(--navy); --fg: var(--beige); --art: var(--gold); background-color: var(--navy); color: var(--beige); }
[data-tone="beige"] { --bg: var(--beige); --fg: var(--navy); --art: var(--navy); background-color: var(--beige); color: var(--navy); }
[data-tone] > :not(.scene) { position: relative; z-index: 2; }
[data-from]::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--blend) * -1); height: calc(var(--blend) * 2);
  z-index: 1; pointer-events: none;
}
/* eased, many-stop blend so the two colours melt into each other */
[data-from="navy"]::before { --a: var(--navy); --b: var(--beige); }
[data-from="beige"]::before { --a: var(--beige); --b: var(--navy); }
[data-from]::before {
  background: linear-gradient(180deg,
    var(--a) 0%, color-mix(in oklab, var(--a) 96%, var(--b)) 12%, color-mix(in oklab, var(--a) 88%, var(--b)) 22%,
    color-mix(in oklab, var(--a) 75%, var(--b)) 32%, color-mix(in oklab, var(--a) 60%, var(--b)) 41%,
    color-mix(in oklab, var(--a) 50%, var(--b)) 50%, color-mix(in oklab, var(--a) 40%, var(--b)) 59%,
    color-mix(in oklab, var(--a) 25%, var(--b)) 68%, color-mix(in oklab, var(--a) 12%, var(--b)) 78%,
    color-mix(in oklab, var(--a) 4%, var(--b)) 88%, var(--b) 100%);
}

/* ---------- Live construction scenes (scenes.js) ---------- */
.scene { position: absolute; z-index: 1; pointer-events: none; color: var(--art); }
.scene--sm { width: min(300px, 64vw); }
.scene--md { width: min(440px, 84vw); }
.scene--lg { width: min(560px, 92vw); }
.scene--full { width: 100%; left: 0; }
.scene.is-end { inset-inline-end: max(10px, calc((100% - 1240px) / 2)); }
.scene.is-start { inset-inline-start: max(10px, calc((100% - 1240px) / 2)); }
.scene.is-mid { left: 50%; translate: -50% 0; }
.scene.at-center { top: 50%; translate: 0 -50%; }
.scene.is-mid.at-center { translate: -50% -50%; }
/* the street of buildings gets its own band under the section's content */
:is(.section, .service-block)[data-scene="skyline"] { padding-bottom: calc(var(--blend) + 25vw); }
.scene.at-bottom { bottom: calc(var(--blend) + 8px); }
.scene.at-top { top: calc(var(--blend) + 8px); }
.scene__inner {
  --depth: 14px;
  transform: translate3d(calc(var(--mx, 0) * var(--depth) * -1), calc(var(--my, 0) * var(--depth) * -0.6), 0);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
  opacity: .36;
}
.scene--strong .scene__inner { opacity: .62; --depth: 22px; }
[data-tone="beige"] .scene__inner { opacity: .3; }
.scene.is-active .scene__inner, .scene.is-boost .scene__inner { opacity: .72; }
.scene svg { width: 100%; height: auto; overflow: visible; }
.scene path { stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.scene path.thin { stroke-width: .6; }
.scene path.hair { stroke-width: .45; }
.scene .hat { fill: currentColor; }

/* draw-in on first view */
.scene path.d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.is-built path.d { animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i, 0) * 9ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scene .live { opacity: 0; transition: opacity .8s ease 1.6s; }
.scene.is-built .live { opacity: 1; }

/* caption with a live dot */
.scene__cap {
  position: absolute; top: -6px; inset-inline-start: 8%; display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: var(--art); border: 1px solid var(--gold); border-radius: 30px; padding: 3px 12px;
  background: var(--bg); opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; white-space: nowrap;
}
.scene__cap i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: live 1.6s ease-out infinite; }
.scene.is-built .scene__cap { opacity: .75; transform: none; transition-delay: 2s; }
.scene.is-active .scene__cap, .scene.is-boost .scene__cap { opacity: 1; transition-delay: 0s; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(198, 167, 94, .8); } 100% { box-shadow: 0 0 0 9px rgba(198, 167, 94, 0); } }

/* working parts (speed via --spd: idle 1, hover 1.8, click 3) */
.scene { --spd: 1; }
.scene.is-active { --spd: 1.8; }
.scene.is-boost { --spd: 3; }
.scene g { transform-box: view-box; }
.tro { animation: tro calc(14s / var(--spd)) ease-in-out infinite; }
.tro .cable { stroke-linecap: butt; stroke-linejoin: miter; transform-origin: 255px 102px; animation: cable calc(14s / var(--spd)) ease-in-out infinite; }
.tro .hook { animation: hook calc(14s / var(--spd)) ease-in-out infinite; }
.tro .load { animation: load calc(14s / var(--spd)) linear infinite; }
.scene.is-built .placed { animation: placed calc(14s / var(--spd)) linear infinite; }
@keyframes tro { 0%, 18% { transform: translateX(0); } 42%, 66% { transform: translateX(-162px); } 88%, 100% { transform: translateX(0); } }
@keyframes cable { 0% { transform: scaleY(372); } 18%, 42% { transform: scaleY(60); } 52%, 58% { transform: scaleY(106); } 66%, 88% { transform: scaleY(60); } 100% { transform: scaleY(372); } }
@keyframes hook { 0% { transform: translateY(372px); } 18%, 42% { transform: translateY(60px); } 52%, 58% { transform: translateY(106px); } 66%, 88% { transform: translateY(60px); } 100% { transform: translateY(372px); } }
@keyframes load { 0%, 55% { opacity: 1; } 56%, 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes placed { 0%, 55% { opacity: 0; } 56%, 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
.sway { transform: rotate(var(--sway, 0deg)); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.swing { animation: swing calc(7s / var(--spd)) ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(calc(-1.8deg + var(--sway, 0deg))); } 50% { transform: rotate(calc(1.8deg + var(--sway, 0deg))); } }
.boom { animation: boom calc(11s / var(--spd)) ease-in-out infinite; }
@keyframes boom { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2deg); } }
.gon { animation: gon calc(16s / var(--spd)) ease-in-out infinite; }
@keyframes gon { 0%, 100% { transform: translateY(-120px); } 50% { transform: translateY(110px); } }
.arm--hammer { animation: hammer calc(.9s / var(--spd)) ease-in infinite; }
.arm--paint { animation: paint calc(1.8s / var(--spd)) ease-in-out infinite; }
.arm--wipe { animation: wipe calc(1.4s / var(--spd)) ease-in-out infinite; }
@keyframes hammer { 0%, 100% { transform: rotate(-38deg); } 55% { transform: rotate(18deg); } }
@keyframes paint { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(10deg); } }
@keyframes wipe { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(25deg); } }
.spark { color: var(--gold); animation: spark calc(1.3s / var(--spd)) steps(2, jump-none) infinite; }
.spark .sp { stroke-width: .8; }
.glow { fill: var(--gold); stroke: none; }
@keyframes spark { 0%, 40% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1); } 60% { opacity: .2; transform: scale(1.3); } 65%, 100% { opacity: 0; } }
.scene.is-boost .spark { animation-duration: .35s; }
.win { fill: var(--gold); fill-opacity: 0; animation: lights 12s ease-in-out infinite; }
@keyframes lights { 0%, 30% { fill-opacity: 0; } 38%, 78% { fill-opacity: .35; } 86%, 100% { fill-opacity: 0; } }
.scene.is-active .win, .scene.is-boost .win { fill-opacity: .4; animation-play-state: paused; }
.spin { animation: spin calc(80s / var(--spd)) linear infinite; }
.orbit { animation: spin calc(7s / var(--spd)) linear infinite; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.tro2 { animation: tro2 calc(10s / var(--spd)) ease-in-out infinite; }
.bob { animation: bob calc(10s / var(--spd)) ease-in-out infinite; }
@keyframes tro2 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(110px); } }
@keyframes bob { 0%, 100% { transform: translateY(150px); } 25%, 75% { transform: translateY(0); } }
.truck { animation: drive calc(22s / var(--spd)) linear infinite; }
.car { animation: drive-back calc(15s / var(--spd)) linear infinite; animation-delay: -6s; }
@keyframes drive { from { transform: translateX(0); } to { transform: translateX(1400px); } }
@keyframes drive-back { from { transform: translateX(0); } to { transform: translateX(-1400px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: var(--beige);
  min-height: calc(92vh - var(--header-h)); display: flex; align-items: center; padding: 100px 0 190px;
}
.hero__mark { position: absolute; inset-inline-end: -4%; top: 50%; transform: translateY(-50%); width: min(560px, 48vw); opacity: .1; pointer-events: none; }
html[dir="rtl"] .hero__mark { transform: translateY(-50%) scaleX(-1); }
.hero__inner { position: relative; }
.hero__inner > * { max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--gold);
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold-grad); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 22px; color: var(--beige); }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--beige); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--gold); color: var(--beige); font-size: .9rem; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--beige); padding: 80px 0 190px; min-height: clamp(360px, 40vw, 520px); display: flex; align-items: center; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { color: var(--beige); max-width: 680px; margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--gold); margin-bottom: 18px; }
.breadcrumb a { color: var(--beige); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(110px, 13vw, 180px) 0; background: var(--bg); color: var(--fg); }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
.section-head p { font-size: 1.05rem; margin: 0; }

/* ---------- Cards (same colour as their section, framed in gold) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: var(--bg); color: var(--fg); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 34px 28px 30px; transition: transform .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset-inline: -1px; top: -1px; height: 3px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .35s ease;
}
html[dir="ltr"] .card { --origin: left; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); border: 1px solid var(--gold); margin-bottom: 22px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
html[lang="en"] .card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.card p { font-size: .95rem; margin: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.check-list li { position: relative; padding-inline-start: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 16px; height: 9px;
  border-inline-start: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
html[dir="rtl"] .check-list li::before { transform: rotate(45deg) scaleX(-1); }

/* Image placeholder (navy, gold frame, beige label) */
.ph {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(118deg, transparent 0 22px, rgba(198, 167, 94, .1) 22px 23px), var(--navy);
  border: 1px solid var(--gold);
  display: grid; place-items: center; text-align: center; color: var(--beige); font-size: .85rem; padding: 20px;
}
.ph::after { content: ""; position: absolute; inset: 12px; border: 1px dashed var(--gold); border-radius: 2px; pointer-events: none; }
.ph svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold); }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }
.media-frame { position: relative; z-index: 0; }
.media-frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
html[dir="rtl"] .media-frame::before { inset: 22px 22px -22px -22px; }
.media-frame img { width: 100%; border-radius: var(--radius); object-fit: cover; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  --bg: var(--beige); --fg: var(--navy);
  background: var(--beige); color: var(--navy); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--gold); }
.project__body { padding: 22px 24px 26px; }
.project__tag { font-size: .78rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .project__tag { letter-spacing: 0; font-size: .85rem; }
.project h3 { font-size: 1.15rem; margin: 6px 0 8px; }
html[lang="en"] .project h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; }
.project p { font-size: .92rem; margin: 0; }
.project[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  background: var(--bg); border: 1px solid var(--gold); border-radius: 30px; padding: 8px 20px;
  font: inherit; font-size: .92rem; cursor: pointer; color: var(--fg); transition: all .2s;
}
.filter:hover { color: var(--gold); }
.filter.is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.gallery-item { cursor: zoom-in; }
.section-cta { margin-top: 44px; text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: var(--navy); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 3px; border: 1px solid var(--gold); }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 22px; background: none; border: 0; color: var(--gold); font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gold); }
.why__item { padding: 40px 34px 10px; border-inline-end: 1px solid var(--gold); }
.why__item:last-child { border-inline-end: 0; }
.why__num { font-family: 'Cinzel', serif; font-size: 2.4rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; display: block; }
.why__item h3 { font-size: 1.15rem; }
html[lang="en"] .why__item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.why__item p { font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--bg); color: var(--fg); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--gold); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: 'Cinzel', serif; font-size: 1.9rem; color: var(--gold); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
html[lang="en"] .step h3 { font-family: var(--font-body); font-weight: 700; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Service detail ---------- */
.service-block { --bg: var(--beige); --fg: var(--navy); padding: clamp(110px, 13vw, 180px) 0; background: var(--beige); color: var(--navy); }
.service-block--navy { --bg: var(--navy); --fg: var(--beige); background: var(--navy); color: var(--beige); }
.service-block .card__icon { margin-bottom: 18px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: var(--beige); padding: clamp(130px, 14vw, 190px) 0; }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Facts / credentials ---------- */
.facts { border: 1px solid var(--gold); border-radius: var(--radius); background: var(--bg); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 24px; border-bottom: 1px solid var(--gold); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--gold); font-size: .92rem; font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.ltr-num { direction: ltr; unicode-bidi: embed; display: inline-block; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.creds--2 { grid-template-columns: repeat(2, 1fr); }
.cred { background: var(--bg); color: var(--fg); border: 1px solid var(--gold); border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; }
.cred::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; width: 70px; height: 70px; background: var(--gold-grad); clip-path: polygon(100% 0, 0 0, 100% 100%); }
html[dir="rtl"] .cred::after { clip-path: polygon(0 0, 100% 0, 0 100%); }
.cred__label { color: var(--gold); font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.cred__value { font-size: 1.45rem; font-weight: 700; color: var(--fg); font-family: 'Montserrat', sans-serif; letter-spacing: .03em; }
.cred--todo { border-style: dashed; }
.cred--todo::after { display: none; }
.cred p { font-size: .9rem; margin: 10px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); color: var(--fg); border: 1px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.info-item__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); border: 1px solid var(--gold); display: grid; place-items: center; }
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 { font-size: .9rem; color: var(--gold); font-weight: 600; margin: 0 0 2px; font-family: var(--font-body); }
.info-item a, .info-item span { font-weight: 600; }
.info-item a:hover { color: var(--gold); }
.form-card { --bg: var(--navy); --fg: var(--beige); background: var(--navy); color: var(--beige); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--gold); border-top: 3px solid var(--gold); }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--beige); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--beige); color: var(--navy); width: 100%; transition: box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gold); opacity: 1; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--gold); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
html[dir="rtl"] .field input[type="tel"], html[dir="rtl"] .field input[type="email"] { text-align: right; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.form-note { font-size: .82rem; margin-top: 14px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); display: none; font-size: .93rem; border: 1px solid var(--gold); }
.form-status.is-ok { display: block; background: var(--beige); color: var(--navy); }
.form-status.is-err { display: block; background: var(--navy); color: var(--gold); }
.map-ph { margin-top: 50px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--beige); padding: clamp(130px, 14vw, 190px) 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h3 { color: var(--gold); font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--gold); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--beige); }
.footer-bottom strong { color: var(--gold); font-weight: 600; }

/* ---------- WhatsApp float (brand gold, not WhatsApp green) ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy); border: 2px solid var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
/* The one orchestrated motion is the buildings drawing themselves; content does not animate in. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene *, .scene__cap i { animation: none !important; }
  .scene path.d { stroke-dashoffset: 0; }
  .scene .live { opacity: 1; transition: none; }
  .wa-float::before { animation: none; }
  * { transition-duration: 0s !important; }
}
html[dir="rtl"] .i-arrow { transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .btn { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0; background: var(--navy); padding: 24px 20px; margin: 0;
    border-top: 1px solid var(--gold);
    transform: translateY(-110%); visibility: hidden; transition: transform .35s ease, visibility .35s; overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 16px 6px; font-size: 1.08rem; border-bottom: 1px solid var(--gold); }
  .main-nav a::after { display: none; }
  .header-actions { margin-inline-start: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .split--reverse .split__media { order: 0; }
  .projects-grid, .creds, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .why__item { border-inline-end: 0; border-bottom: 1px solid var(--gold); padding: 30px 0; }
  .why__item:last-child { border-bottom: 0; }
  .section, .service-block { padding: 140px 0; }
  .media-frame::before { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .cards, .cards--3, .steps, .projects-grid, .creds, .creds--2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 110px; min-height: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__mark { width: 80vw; inset-inline-end: -30%; opacity: .07; }
  .section, .service-block { padding: 120px 0; }
  .form-card { padding: 28px 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}

/* ---------- Phones & small tablets: scenes leave the background and get their own space ----------
   Under 900px there is no room beside the text, so each drawing sits in the flow at the
   end of its section, centred, never behind words. Blends get shorter to match the screen. */
@media (max-width: 900px) {
  :root { --blend: 56px; }
  .hero, .page-hero { display: block; min-height: 0; }
  .hero { padding: 56px 0 96px; }
  .page-hero { padding: 56px 0 96px; }
  .section, .service-block { padding: 88px 0; }
  .cta-band { padding: 96px 0; }
  .site-footer { padding-top: 96px; }
  :is(.section, .service-block)[data-scene="skyline"] { padding-bottom: 88px; }

  .scene {
    position: relative; inset: auto !important; translate: none !important;
    display: block; margin: 40px auto 0; width: min(78vw, 340px); z-index: 1;
  }
  .scene--tower { width: min(56vw, 230px); }
  .scene--scaffold { width: min(76vw, 320px); }
  .scene--medallion { width: min(62vw, 250px); }
  .scene--full { width: 100%; margin-top: 48px; }
  .scene__inner { transform: none !important; opacity: .55; }
  [data-tone="beige"] .scene__inner { opacity: .45; }
  .scene--strong .scene__inner { opacity: .8; }
  .scene.is-active .scene__inner { opacity: .85; }
  [data-tone="beige"] .scene.is-active .scene__inner { opacity: .7; }
  .scene__cap { position: relative; top: 0; inset-inline-start: 0; display: flex; width: max-content; margin: 0 auto 14px; font-size: .74rem; }
  .scene path { stroke-width: 1.1; }
  .scene path.thin { stroke-width: .7; }
  .scene path.hair { stroke-width: .5; }
}

/* ---------- Services: the cards ARE the building (build.js) ----------
   A structural frame is drawn on top of the cards: columns in the gaps, slabs, bolted ties,
   and a tower crane that lowers each card into its bay. */
.section--build { overflow-x: clip; }
.section--build .section-head { margin-bottom: 14px; }
.build { position: relative; padding: 112px 16px 40px; }
.build .cards { position: relative; z-index: 1; }
.build__frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; color: var(--navy); }
.build__frame path { stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .62; }
.build__frame path.thin { stroke-width: .75; }
.build__frame path.hair { stroke-width: .5; opacity: .42; }
.build__frame path.solid { fill: var(--navy); opacity: .85; }
.build__frame path.thick { stroke-width: 1.6; opacity: .85; }
.build__frame path.cable { stroke-width: .8; opacity: .8; }
.build__frame .bolt { fill: var(--gold); stroke: var(--navy); stroke-width: .6; }
.build__frame g { transform-box: view-box; }

/* waiting for the section to scroll in */
.build.is-wait .card { opacity: 0; }
.build.is-wait .build__frame { visibility: hidden; }

/* line draw-in */
.build__frame path.bd { stroke-dasharray: 1; stroke-dashoffset: 0; }
.build.is-on:not(.is-done) .b-base path.bd { stroke-dashoffset: 1; animation: draw .7s ease-out forwards; }
.build.is-on:not(.is-done) .b-col { transform: scaleY(0); transform-origin: 0 100%; transform-box: fill-box; animation: rise .5s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(.1s + var(--d) * .5); }
.build.is-on:not(.is-done) .b-slabs path.bd { stroke-dashoffset: 1; animation: draw .7s ease-out .9s forwards; }
.build.is-on:not(.is-done) .b-crane path.bd { stroke-dashoffset: 1; animation: draw .9s ease-out .6s forwards; }
.build.is-on:not(.is-done) .b-trolley { opacity: 0; animation: fadein .4s ease 1s forwards; }
.build:not(.is-roof) .b-roof { visibility: hidden; }
.build.is-roof:not(.is-done) .b-roof path.bd { stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes fadein { to { opacity: 1; } }

/* each card hangs, gets lowered into its bay, then is bolted in */
.build.is-on .card:not(.is-hung):not(.is-set) { opacity: 0; }
.build .card.is-placing { transition: translate .38s cubic-bezier(.45, 0, .2, 1.15), transform .3s ease, box-shadow .3s ease; }
.build .card.is-quick { transition: translate .3s cubic-bezier(.3, .7, .2, 1.1), opacity .2s ease; }
.b-card .b-bolts, .b-card > path { opacity: 0; transition: opacity .35s ease; }
.b-card.is-locked > path { opacity: .62; }
.b-card.is-locked .b-bolts { opacity: 1; animation: lock .5s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes lock { 0% { transform: scale(2.2); } 60% { transform: scale(.85); } 100% { transform: scale(1); } }
.build.is-done .b-card.is-locked .b-bolts { animation: none; }

/* crane: moved by the physics loop in build.js (no CSS transitions) */
.b-trolley, .b-swing, .b-hook, .b-trolley .cable { will-change: transform; }

/* cards hang from the hook */
.build .card { cursor: pointer; transform-origin: 50% 0; transition: translate .45s cubic-bezier(.3, .7, .2, 1.2), rotate .6s ease, box-shadow .35s ease; }
.build .card:hover { transform: none; }
.build .card.is-lifted { translate: 0 -14px; box-shadow: 0 34px 40px -30px rgba(31, 42, 68, .7); transition: translate .5s cubic-bezier(.3, .7, .2, 1.2), box-shadow .35s ease; }
.build .card.is-lifted::before { transform: scaleX(1); }
.build .card.is-raise { translate: 0 -48px; transition: translate .6s cubic-bezier(.4, 0, .2, 1); box-shadow: 0 50px 50px -34px rgba(31, 42, 68, .75); }
.build .card.is-slam { translate: 0 0; transition: translate .38s cubic-bezier(.6, 0, .9, .45); }
.build.has-hot .card:not(.is-lifted):not(.is-raise) { opacity: .82; transition: opacity .3s ease, translate .45s ease; }

/* gold light following the pointer */
.build .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 30%), rgba(198, 167, 94, .2), rgba(198, 167, 94, 0) 70%);
}
.build .card:hover::after { opacity: 1; }
.build .card > * { position: relative; z-index: 1; }
.build .card__icon { transition: transform .5s cubic-bezier(.3, .7, .2, 1.3); }
.build .card.is-lifted .card__icon { transform: rotate(-8deg) scale(1.06); }

/* welding sparks + re-lock + frame shudder */
.b-burst path { stroke: var(--gold); stroke-width: 1.2; opacity: 1; }
.b-burst circle { fill: var(--gold); }
.b-burst { animation: burst .6s ease-out forwards; }
@keyframes burst { 0% { transform: scale(.3); opacity: 1; } 50% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.b-card.is-relock .bolt { animation: glow .6s ease-out; }
@keyframes glow { 0% { fill: var(--beige); r: 4; } 100% { fill: var(--gold); r: 2.3; } }
.build.is-shake .b-cols, .build.is-shake .b-slabs, .build.is-shake .b-roof { animation: shudder .35s linear; }
@keyframes shudder { 20% { transform: translateY(1.5px); } 45% { transform: translateY(-1px); } 70% { transform: translateY(.6px); } 100% { transform: none; } }

/* hover: the card's bay lights up in gold */
.b-hl path { stroke: var(--gold); stroke-width: 2; opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity .25s ease, stroke-dashoffset .6s ease; }
.b-hl path.hl--in { stroke-width: 1; }
.b-card.is-hot .b-hl path { opacity: 1; stroke-dashoffset: 0; }
.b-card.is-hot .bolt { fill: var(--navy); stroke: var(--gold); }

@media (max-width: 900px) { .build { padding-top: 96px; } }
@media (max-width: 560px) { .build { padding-inline: 14px; } .build__frame path.hair { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .build__frame *, .build .card { animation: none !important; transition: none !important; }
}

/* ---------- Project journey (journey.js): one building, six stages, driven by scroll ---------- */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.journey__fig {
  position: sticky; top: calc(var(--header-h) + 24px); color: var(--gold);
  border: 1px solid rgba(198, 167, 94, .35); border-radius: var(--radius); padding: 28px 28px 22px; background: var(--navy);
}
.journey__svg svg { width: 100%; height: auto; display: block; overflow: visible; }
.journey__svg path { stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.journey__svg path.thin { stroke-width: .7; }
.journey__svg path.hair { stroke-width: .45; }
.journey__svg path.dash { stroke-dasharray: 3 3; }
.journey .st path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1); }
.journey .st path.dash { stroke-dasharray: 1; }
.journey .st.on path { stroke-dashoffset: 0; }
.journey .st { transition: opacity .6s ease; }
.journey .st-crane:not(.on), .journey .st-scaf:not(.on) { opacity: 0; transition: opacity .8s ease .2s; }
.journey .j-hook { animation: jhook 5s ease-in-out infinite; transform-box: view-box; }
@keyframes jhook { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-60px, 26px); } }
.journey .jwin { fill: var(--gold); fill-opacity: 0; transition: fill-opacity 1s ease .4s; }
[data-stage="6"] .journey .jwin { fill-opacity: .35; }
.journey .flag { fill: var(--gold); fill-opacity: 0; transition: fill-opacity .8s ease 1s; }
[data-stage="6"] .journey .flag { fill-opacity: .9; }

.journey__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 18px; font-size: .85rem; color: var(--beige); }
.journey__count b { color: var(--gold); font-size: 1.1rem; }
.journey__pct { color: var(--gold); font-weight: 700; }
.journey__bar { height: 3px; background: rgba(198, 167, 94, .2); border-radius: 3px; overflow: hidden; }
.journey__bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .8s cubic-bezier(.16, 1, .3, 1); }

.journey__steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.journey__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-inline-start: 22px; border-inline-start: 1px solid rgba(198, 167, 94, .25); position: relative; }
.journey__step::before {
  content: ""; position: absolute; inset-inline-start: -1px; top: 50%; height: 0; width: 2px; background: var(--gold-grad);
  transform: translateY(-50%); transition: height .6s ease;
}
.journey__step.is-current::before { height: 120px; }
.journey__step button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 14px; color: var(--beige);
}
.journey__step button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.journey__n {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center;
  font-family: 'Cinzel', serif; color: var(--gold); flex-shrink: 0; transition: background-color .4s, color .4s;
}
.journey__step h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: inherit; }
.journey__step p { margin: 12px 0 0; max-width: 440px; color: var(--beige); opacity: .55; transition: opacity .4s; }
.journey__step.is-current p { opacity: 1; }
.journey__step.is-current .journey__n, .journey__step.is-done .journey__n { background: var(--gold); color: var(--navy); }
.journey__step:not(.is-current) h3 { opacity: .6; }
.journey__step.is-current h3 { color: var(--gold); }

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey__fig { top: calc(var(--header-h) + 8px); z-index: 3; padding: 14px 16px 12px; }
  .journey__svg { max-width: 300px; margin: 0 auto; }
  .journey__svg svg { max-height: 24vh; width: auto; margin: 0 auto; }
  .journey__step { min-height: 52vh; justify-content: flex-end; padding-bottom: 6vh; }
  .journey__step::before { top: auto; bottom: 6vh; transform: none; }
  .journey__step.is-current::before { height: 90px; }
  .journey__fig { box-shadow: 0 -24px 0 var(--navy); }
  .journey__meta { margin-top: 10px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey .st path, .journey__bar i, .journey .st { transition: none; }
  .journey .j-hook { animation: none; }
}

/* ---------- 404: the page is under construction ---------- */
.page-404 { background: var(--navy); color: var(--beige); padding: 48px 0 120px; text-align: center; }
.e404 { display: flex; flex-direction: column; align-items: center; }
.e404__logo img { height: 52px; width: auto; margin-bottom: 30px; }
.e404__svg { width: min(520px, 92vw); height: auto; color: var(--gold); overflow: visible; margin-bottom: 28px; }
.e404__svg path { stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.e404__svg path.thin { stroke-width: .7; }
.e404__svg path.hair { stroke-width: .45; }
.e404__svg text { fill: var(--gold); stroke: none; font-family: 'Cinzel', serif; font-size: 64px; font-weight: 700; letter-spacing: 4px; }
.e404__sign { transform-box: view-box; transform-origin: 200px 60px; animation: sign 4.5s ease-in-out infinite; }
@keyframes sign { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.page-404 h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-404 p { max-width: 560px; margin: 0 auto 8px; }
.e404__en { font-family: 'Montserrat', sans-serif; font-size: .9rem; color: var(--gold); }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.section.page-404__street { padding: 40px 0 calc(var(--blend) + 25vw); }
@media (max-width: 900px) { .section.page-404__street { padding: 30px 0 60px; } }
@media (prefers-reduced-motion: reduce) { .e404__sign { animation: none; } }
.scene:not(.is-built) .win { animation: none; fill-opacity: 0; }

/* ---------- Intro (main.js): full-screen Jeddah film, the logo builds on it,
   then the film shrinks into the hero's own frame and the logo flies to the header ---------- */
.fm-intro { display: none; }
html.is-intro body { overflow: hidden; }
html.is-intro .fm-intro { display: block; position: fixed; inset: 0; z-index: 500; background: var(--navy); cursor: pointer; transition: background-color .7s ease .35s; }
html.is-intro .site-header .brand { opacity: 0; }
html.intro-out .site-header .brand { opacity: 1; transition: opacity .2s ease .85s; }
html.intro-out .fm-intro { background-color: rgba(31, 42, 68, 0); }
.fm-intro__video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; background: var(--navy);
  transition: top .95s cubic-bezier(.65, 0, .35, 1), left .95s cubic-bezier(.65, 0, .35, 1), width .95s cubic-bezier(.65, 0, .35, 1), height .95s cubic-bezier(.65, 0, .35, 1); }
html[dir="ltr"] .fm-intro__video { transform: scaleX(-1); object-position: 70% 50%; }
/* a soft glow only behind the logo so it reads on the bright sky (no full-screen darkening) */
.fm-intro__glow { position: absolute; left: var(--lx); top: var(--ly); width: min(560px, 120vw); height: 260px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(31, 42, 68, .62), rgba(31, 42, 68, .3) 60%, rgba(31, 42, 68, 0)); pointer-events: none; opacity: 0; animation: i-glow .9s ease 1.4s forwards; transition: opacity .5s ease; }
@keyframes i-glow { to { opacity: 1; } }
html.intro-out .fm-intro__glow { opacity: 0 !important; animation: none; }
.fm-intro__brand { position: absolute; left: var(--lx); top: var(--ly); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; transform-origin: 0 0; }
.fm-intro__brand.is-fly { transition: transform .95s cubic-bezier(.65, 0, .35, 1); }
.fm-intro__mark { position: absolute; top: 50%; left: 50%; width: min(150px, 34vw); margin: 0; transform: translate(-50%, -62%); overflow: visible; filter: drop-shadow(0 2px 10px rgba(31, 42, 68, .55)); animation: i-out .4s ease 1.55s forwards; }
.fm-intro__mark path {
  fill: url(#ig); fill-opacity: 0; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: i-draw 1s cubic-bezier(.65, 0, .35, 1) .15s forwards, i-fill .45s ease .95s forwards;
}
.fm-intro__mark path + path { animation-delay: .35s, 1.1s; }
.fm-intro__logo { opacity: 0; animation: i-in .55s cubic-bezier(.16, 1, .3, 1) 1.7s forwards; }
.fm-intro__logo img { display: block; width: min(340px, 72vw); height: auto; filter: drop-shadow(0 3px 14px rgba(31, 42, 68, .7)); }
.fm-intro__line { width: 0; height: 1.5px; background: var(--gold-grad); margin-top: 16px; animation: i-line .7s cubic-bezier(.16, 1, .3, 1) 1.9s forwards; }
html.intro-out .fm-intro__line { opacity: 0; transition: opacity .25s ease; }
@keyframes i-draw { to { stroke-dashoffset: 0; } }
@keyframes i-fill { to { fill-opacity: 1; } }
@keyframes i-out { to { opacity: 0; transform: translate(-50%, -62%) scale(.8); } }
@keyframes i-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes i-line { to { width: min(220px, 46vw); } }
@media (max-width: 700px) { .fm-intro__video, html[dir="ltr"] .fm-intro__video { transform: none; object-position: 100% 0; } }
/* ---------- Project photos ---------- */
.split__media > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gold); background: var(--navy); }
.split__media > img.is-tall { aspect-ratio: 4 / 5; }
.split__media > img.is-plan, .project img.is-plan { aspect-ratio: 3 / 2; object-fit: cover; }
.project .gallery-item { overflow: hidden; border-bottom: 1px solid var(--gold); }
.project .gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project:hover .gallery-item img { transform: scale(1.04); }
.project .gallery-item .ph { aspect-ratio: 3 / 2; border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .project .gallery-item img { transition: none; } }

/* ---------- Home hero: background video (crane over the Jeddah corniche) ---------- */
.hero--video { overflow: hidden; isolation: isolate; }
.hero--video > .hero__media { position: absolute; inset: 0 0 var(--blend) 0; z-index: 0; background: var(--navy); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
/* navy veil on the text side so the headline always reads */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(31, 42, 68, .78) 0%, rgba(31, 42, 68, .55) 30%, rgba(31, 42, 68, .08) 58%, rgba(31, 42, 68, 0) 72%),
    linear-gradient(to bottom, rgba(31, 42, 68, .3) 0%, rgba(31, 42, 68, 0) 16%, rgba(31, 42, 68, 0) 66%, var(--navy) 100%);
}
/* English: text sits on the left, so the scene is mirrored to keep the crane clear of it */
html[dir="ltr"] .hero__video { transform: scaleX(-1); object-position: 70% 50%; }
html[dir="ltr"] .hero__media::after {
  background:
    linear-gradient(to right, rgba(31, 42, 68, .78) 0%, rgba(31, 42, 68, .55) 30%, rgba(31, 42, 68, .08) 58%, rgba(31, 42, 68, 0) 72%),
    linear-gradient(to bottom, rgba(31, 42, 68, .3) 0%, rgba(31, 42, 68, 0) 16%, rgba(31, 42, 68, 0) 66%, var(--navy) 100%);
}
.hero--video > .container { position: relative; z-index: 2; }
.hero--video h1, .hero--video .hero__lead, .hero--video .hero__facts { text-shadow: 0 1px 2px rgba(31, 42, 68, .55), 0 2px 22px rgba(31, 42, 68, .75); }
/* stronger blinking warning light on the crane jib tip */
.hero__beacon {
  position: absolute; left: 50%; top: 40%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
  background: #ff3b30; box-shadow: 0 0 10px 3px rgba(255, 59, 48, .75); opacity: 0;
  animation: beacon 3.2s ease-in-out infinite;
}
@keyframes beacon { 0%, 60%, 100% { opacity: 0; } 70%, 85% { opacity: 1; } }
.hero--video:not(.is-playing) .hero__beacon { display: none; }

@media (max-width: 700px) {
  /* the scene keeps a full screen to itself; the text starts low, on the dark sea */
  .hero--video { min-height: calc(100svh - var(--header-h)); display: block; padding: 0 0 56px; }
  .hero--video > .hero__media { bottom: auto; height: calc(100svh - var(--header-h)); }
  .hero__video { object-position: 100% 0; }
  .hero__media::after, html[dir="ltr"] .hero__media::after {
    background: linear-gradient(to bottom, rgba(31, 42, 68, .35) 0%, rgba(31, 42, 68, 0) 14%, rgba(31, 42, 68, 0) 58%, rgba(31, 42, 68, .8) 68%, var(--navy) 80%, var(--navy) 100%);
  }
  html[dir="ltr"] .hero__video { transform: none; object-position: 100% 0; }
  .hero--video .container { padding-top: calc((100svh - var(--header-h)) * .64); }
  .hero__beacon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__beacon { display: none; } }
/* gold gradient words: a text-shadow would show through the transparent fill, so use a drop-shadow */
.hero--video h1 em { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(31, 42, 68, .8)); }

/* ---------- Medallion tinted with the lobby photo's marble palette (home, marble section) ---------- */
.scene .inlay { display: none; }
.scene--tint .inlay { display: inline; }
.scene--tint { --m-cream: #e1d6d1; --m-sand: #cdb9ac; --m-taupe: #988476; --m-caramel: #b5947c; --m-brown: #796052; --m-dark: #48281f; color: #5a3f33; }
.scene--tint .scene__inner, [data-tone="beige"] .scene--tint .scene__inner { opacity: .95; }
.scene--tint.is-active .scene__inner { opacity: 1; }
.scene--tint .inl { stroke: none; opacity: 0; transition: opacity 1.4s ease 1.6s; }
.scene--tint.is-built .inl { opacity: 1; }
.scene--tint .m-cream { fill: var(--m-cream); } .scene--tint .m-sand { fill: var(--m-sand); }
.scene--tint .m-taupe { fill: var(--m-taupe); } .scene--tint .m-caramel { fill: var(--m-caramel); }
.scene--tint .m-brown { fill: var(--m-brown); } .scene--tint .m-dark { fill: var(--m-dark); }
.scene--tint .m-gold { fill: var(--gold); }
.scene--tint svg { filter: drop-shadow(0 18px 26px rgba(72, 40, 31, .28)); }
@media (prefers-reduced-motion: reduce) { .scene--tint .inl { opacity: 1; transition: none; } }
/* the tinted medallion is opaque, so it gets its own space under the text instead of sitting behind it */
@media (min-width: 901px) {
  .section[data-tint] { padding-bottom: calc(var(--blend) + 230px); }
  .scene--tint.scene--sm { width: 210px; }
  .scene--tint.is-end { inset-inline-start: auto; inset-inline-end: max(16px, calc((100% - 1200px) / 2 + 24px)); }
  .scene--tint.at-bottom { bottom: calc(var(--blend) + 20px); }
  .scene--tint .scene__inner { transform: none !important; }
}

/* ---------- Sketch → model comparison ---------- */
.compare { position: relative; max-width: 1100px; margin-inline: auto; aspect-ratio: 1451 / 1084; border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; background: var(--beige); direction: ltr; box-shadow: var(--shadow); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.compare__bar i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); }
.compare__bar i::before, .compare__bar i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare__bar i::before { left: 6px; border-right-color: var(--gold); }
.compare__bar i::after { right: 6px; border-left-color: var(--gold); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + * , .compare:focus-within .compare__bar i { outline: 2px solid var(--gold); outline-offset: 3px; }
.compare__lbl { position: absolute; top: 16px; padding: 4px 14px; border-radius: 30px; background: var(--navy); color: var(--beige); font-size: .85rem; pointer-events: none; }
.compare__lbl--a { left: 16px; } .compare__lbl--b { right: 16px; }
.section--compare { padding-bottom: 0; }

/* ---------- Project journey: build film (film.js) ---------- */
.journey__fig--film .journey__svg { display: none; }
.journey__film { position: relative; border-radius: 3px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid rgba(198, 167, 94, .35); }
.jf-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.jf-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; min-height: 46px;
  background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: var(--radius);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.jf-btn:hover, .jf-btn:focus-visible { background: var(--gold); color: var(--navy); }
.jf-btn svg { width: 18px; height: 18px; }
.jf-dur { font-size: .8rem; font-weight: 400; opacity: .8; direction: ltr; }
.is-full .jf-btn svg { display: none; }
.is-full .jf-dur { display: none; }
@media (max-width: 900px) { .jf-btn { margin-top: 10px; min-height: 44px; } }
/* ghost buttons on a beige surface: navy text, gold frame */
[data-tone="beige"] .btn--ghost, .section:not(.section--navy) .btn--ghost { color: var(--navy); }
[data-tone="beige"] .btn--ghost:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }
[data-tone="navy"] .btn--ghost { color: var(--beige); }

/* ---------- Journey: line-art motion graphic under each stage (stage-art.js) ---------- */
.jstep-art { margin-top: 22px; max-width: 440px; color: var(--gold); }
.jstep-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.jstep-art path { stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.jstep-art path.t { stroke-width: .8; }
.jstep-art path.h { stroke-width: .5; opacity: .55; }
.jstep-art path:not(.flow) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.jstep-art.is-drawn path:not(.flow) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.jstep-art .live, .jstep-art .fill, .jstep-art .spin { opacity: 0; transition: opacity .6s ease 1.1s; }
.jstep-art.is-drawn .live, .jstep-art.is-drawn .fill, .jstep-art.is-drawn .spin { opacity: 1; }
.jstep-art .fill rect { fill: var(--gold); fill-opacity: .22; stroke: none; }
.jstep-art .dot { fill: var(--beige); stroke: none; }
.jstep-art g { transform-box: view-box; }
.jstep-art path.flow { stroke: var(--beige); stroke-width: 1.4; stroke-dasharray: 3 9; opacity: .9; }
.jstep-art path.pipe, .jstep-art path.pipe2 { stroke-width: 1.6; }
.jstep-art path.pipe2 { opacity: .6; }
/* live loops run only while the stage is on screen */
.jstep-art.is-live .flow { animation: jflow 1.2s linear infinite; }
.jstep-art.is-live .flow2 { animation-duration: 1.8s; animation-direction: reverse; }
@keyframes jflow { to { stroke-dashoffset: -12; } }
.jstep-art .sway { transform-origin: 240px 30px; }
.jstep-art.is-live .sway { animation: jsway 4s ease-in-out infinite; }
@keyframes jsway { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
.jstep-art.is-live .gond { animation: jgond 7s ease-in-out infinite; }
@keyframes jgond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(60px); } }
.jstep-art path.cut { stroke: var(--beige); stroke-width: 2; stroke-dasharray: .06 .94; }
.jstep-art.is-live path.cut { animation: jcut 5s linear infinite; }
@keyframes jcut { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.jstep-art.is-live .jet { animation: jjet 5s ease-in-out infinite; }
@keyframes jjet { 0%, 100% { transform: translateX(-60px); } 50% { transform: translateX(60px); } }
.jstep-art.is-live .jet .dot { animation: jdot .5s ease-in-out infinite alternate; }
@keyframes jdot { to { r: 5; fill: var(--gold); } }
.jstep-art .win { fill: var(--gold); fill-opacity: 0; transition: fill-opacity .8s ease; }
.jstep-art--4.is-live .win:nth-of-type(3n) { animation: jlit 6s ease-in-out infinite; }
.jstep-art--6.is-drawn .lit { fill-opacity: .35; transition-delay: calc(1.2s + var(--i) * 60ms); }
@keyframes jlit { 50% { fill-opacity: .3; } }
.jstep-art .flag { transform-origin: 200px 18px; }
.jstep-art.is-live .flag { animation: jflag 2.4s ease-in-out infinite; }
@keyframes jflag { 50% { transform: scaleX(.85) skewY(-4deg); } }
@media (max-width: 900px) { .jstep-art { max-width: 100%; margin-top: 16px; } .journey__step { min-height: auto; padding-block: 36px; } }
@media (prefers-reduced-motion: reduce) { .jstep-art * { animation: none !important; transition: none !important; } .jstep-art path:not(.flow) { stroke-dashoffset: 0; } }
/* phones: each stage now has its own drawing, so the film panel sits at the top of the section instead of covering the stages */
@media (max-width: 900px) { .journey__fig--film { position: relative; top: auto; margin-bottom: 8px; } }
html.is-intro .fm-intro .fm-intro__brand { visibility: visible; }
html { overflow-x: clip; }
