/* ═══════════════════════════════════════════════════════════
   GreenSpace Construction Est — Landing Page
   مؤسسة المجال الأخضر للمقاولات
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* brand: green #3C7B3B · dark gray #423D39 */
  --brand-green: #3C7B3B;
  --brand-gray: #423D39;

  --ink: #100E0A;            /* gray-950 */
  --ink-2: #161310;          /* gray-900 */
  --pine: #26231E;           /* gray-850 */
  --moss: #423D39;           /* brand gray */
  --accent: #7CC468;         /* green-400 (on dark) */
  --accent-deep: #3C7B3B;    /* brand green (on light) */
  --accent-on-dark: #61A84D; /* green-500 (text/icons on dark) */

  --paper: #F3F1E9;
  --card-light: #FBF9F2;
  --sand: #DAD4C2;

  --text-dark: #2A2623;
  --muted-dark: #6E665E;
  --body-dark: #4A443E;

  --text-light: #F3F1E9;
  --muted-light: #B5ADA1;

  --line-dark: rgba(66, 61, 57, .16);
  --line-light: rgba(243, 241, 233, .16);

  --hh: 76px;
  --font-ar: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-lift: cubic-bezier(.86, 0, .07, 1);
}

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 14px);
  overflow-x: clip;
}

body {
  font-family: var(--font-ar);
  background: var(--ink);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

html[data-lang="en"] body { font-family: var(--font-en); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3C352C; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* ── Bilingual display rules ───────────────────────────── */
.l-en { display: none !important; }
html[data-lang="en"] .l-ar { display: none !important; }
html[data-lang="en"] .l-en { display: inline !important; }
html[data-lang="en"] p.l-en,
html[data-lang="en"] .l-en:is(p, h1, h2, h3, h4) { display: block !important; }

/* letter-spacing only for LTR (Arabic must stay joined) */
html[dir="rtl"] { --ls: 0; }
html[dir="ltr"] { --ls: .16em; }

/* ── Utilities ─────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.section-light { background: var(--paper); color: var(--text-dark); position: relative; }
.section-dark  { background: var(--ink-2); color: var(--text-light); position: relative; }

.section-dark::after,
.pin-sticky::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
}

.kicker {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--accent-deep);
  display: flex; align-items: center; gap: 14px;
}
html[data-lang="en"] .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: var(--ls); text-transform: uppercase; }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.kicker-accent { color: var(--accent); }

.dot-accent { color: var(--accent-on-dark); }

.sec-head {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(44px, 7vh, 80px);
}
.sec-num {
  font-family: var(--mono); font-size: 15px; color: var(--accent-deep);
  width: 50px; height: 50px; flex: none;
  border: 1px solid currentColor;
  display: grid; place-items: center;
}
.sec-head-dark .sec-num { color: var(--accent-on-dark); }
.sec-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
html[data-lang="en"] .sec-title { font-weight: 800; letter-spacing: -.02em; }
.sec-kicker {
  font-size: clamp(.95rem, 1.3vw, 1.05rem); font-weight: 600;
  color: var(--muted-dark); margin-top: 8px;
}
html[data-lang="en"] .sec-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: var(--ls); text-transform: uppercase; }
.sec-head-dark .sec-kicker { color: var(--muted-light); }

.sub-head {
  display: flex; align-items: center; gap: 20px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800;
  margin-top: clamp(64px, 10vh, 110px);
}
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .85s var(--ease-out) var(--d, 0s), transform .85s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 3px;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(60, 123, 59, .3); }
.btn-accent:hover svg:last-of-type { transform: translateX(4px); }
html[dir="rtl"] .btn-accent:hover svg:last-of-type { transform: translateX(-4px) scaleX(-1); }
.btn-ghost { border: 1px solid var(--line-light); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ══════════════ PRELOADER · typewriter + lift-away ══════════════ */
#preloader { position: fixed; inset: 0; z-index: 200; }
#preloader.lift { pointer-events: none; }

.pre-back, .pre-front { position: absolute; inset: 0; will-change: transform; }
.pre-back  { background: linear-gradient(155deg, #2E2A25 0%, var(--pine) 45%, var(--ink) 100%); transition: transform .95s var(--ease-lift) .3s; }
.pre-front { background: var(--ink); transition: transform .95s var(--ease-lift) .16s; }

#preloader.lift .pre-front { transform: translateY(-102%); }
#preloader.lift .pre-back  { transform: translateY(-102%); }

.pre-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3vh, 28px); text-align: center; padding-inline: 24px;
  transition: transform .5s ease, opacity .45s ease;
}
#preloader.lift .pre-inner { transform: translateY(-64px); opacity: 0; }

.pre-mark { width: clamp(120px, 16vw, 190px); height: auto; opacity: .95; }

.pre-name {
  font-size: clamp(1.45rem, 4.6vw, 3.1rem);
  font-weight: 800; line-height: 1.35; letter-spacing: -.01em;
  color: var(--text-light); min-height: 1.4em;
}
html[data-lang="en"] .pre-name { font-weight: 700; letter-spacing: -.02em; }

.caret {
  display: inline-block; width: .09em; height: .92em;
  margin-inline-start: .14em; vertical-align: -.06em;
  background: var(--accent-on-dark);
  animation: caretBlink 1s steps(2, start) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.pre-tag {
  font-family: var(--mono); font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: var(--ls); text-transform: uppercase; color: var(--muted-light);
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s var(--ease-out);
}
.pre-line { width: min(320px, 60vw); height: 1px; background: var(--line-light); position: relative; overflow: hidden; }
.pre-line i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--accent-on-dark); transform: scaleX(0); transform-origin: center; transition: transform .8s var(--ease-out) .15s; }
html[dir="rtl"] .pre-line i { transform-origin: right center; }

#preloader.ready .pre-tag { opacity: 1; transform: none; }
#preloader.ready .pre-line i { transform: scaleX(1); }

/* ══════════════ HEADER ══════════════ */
#siteHeader {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--hh);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: clamp(20px, 4vw, 44px);
  background: rgba(251, 249, 242, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: background .35s ease, border-color .35s ease;
}
#siteHeader.scrolled { background: rgba(251, 249, 242, .97); border-bottom-color: var(--line-dark); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: auto; height: 54px; flex: none; color: var(--brand-gray); }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--muted-dark); transition: color .25s; }
.main-nav a:hover { color: var(--accent-deep); }
.nav-cta {
  border: 1px solid var(--accent-deep); padding: 9px 18px; border-radius: 3px;
  color: var(--accent-deep);
  transition: color .25s, border-color .25s, background .25s;
}
.main-nav a.nav-cta:hover { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.wa-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-dark); border-radius: 3px;
  color: var(--brand-gray); transition: color .25s, border-color .25s, background .25s;
}
.wa-btn svg { width: 20px; height: 20px; }
.wa-btn:hover { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); }

.lang-toggle {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  border: 1px solid var(--line-dark); padding: 8px 14px; border-radius: 3px;
  color: var(--brand-gray); transition: color .25s, border-color .25s;
}
.lang-toggle:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.menu-btn { display: none; width: 42px; height: 42px; position: relative; }
.menu-btn span {
  position: absolute; inset-inline: 10px; height: 2px; background: var(--brand-gray);
  transition: transform .35s var(--ease-out), top .35s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 24px; }
body.menu-open .menu-btn span { background: var(--text-light); }
body.menu-open .menu-btn span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* Mobile menu */
#mobileMenu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(16, 14, 10, .97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: center;
  padding-inline: clamp(24px, 8vw, 60px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s;
}
#mobileMenu.open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.mm-nav a {
  display: flex; align-items: baseline; gap: 20px;
  font-size: clamp(26px, 7vw, 38px); font-weight: 800; color: var(--text-light);
  padding-block: clamp(12px, 2.4vh, 20px);
  border-bottom: 1px solid var(--line-light);
  transition: color .25s, padding-inline-start .3s var(--ease-out);
}
.mm-nav a:hover { color: var(--accent-on-dark); padding-inline-start: 10px; }
.mm-nav i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--accent-on-dark); }
.mm-foot { margin-top: clamp(28px, 5vh, 48px); display: flex; gap: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-light); flex-wrap: wrap; }
.mm-foot a:hover { color: var(--accent-on-dark); }

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
body.is-loaded .hero-bg img { animation: heroZoom 2.8s var(--ease-out) forwards, heroDrift 26s ease-in-out 3s infinite alternate; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }

.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 14, 10, .95) 0%, rgba(16, 14, 10, .68) 40%, rgba(16, 14, 10, .28) 65%, rgba(16, 14, 10, .5) 100%);
}
.hero-side { position: absolute; inset-block: 0; inline-size: 62%; }
html[dir="rtl"] .hero-side { inset-inline-start: auto; inset-inline-end: 0; background: linear-gradient(to left, rgba(16, 14, 10, .78), transparent 90%); }
html[dir="ltr"] .hero-side { inset-inline-start: 0; inset-inline-end: auto; background: linear-gradient(to right, rgba(16, 14, 10, .78), transparent 90%); }

.hero-lines { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.hero-lines i { width: 1px; background: linear-gradient(to bottom, transparent, rgba(243, 241, 233, .09) 25%, rgba(243, 241, 233, .09) 75%, transparent); }

.hero-content { position: relative; z-index: 2; padding-bottom: clamp(130px, 19vh, 190px); max-width: 980px; }

.hero [data-anim] {
  opacity: 0; transform: translateY(38px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
}
body.is-loaded .hero [data-anim] { opacity: 1; transform: none; }
.hero-content > :nth-child(1) { transition-delay: .3s; }
.hero-content > :nth-child(2) { transition-delay: .45s; }
.hero-content > :nth-child(3) { transition-delay: .62s; }
.hero-content > :nth-child(4) { transition-delay: .78s; }
.hero-content > :nth-child(5) { transition-delay: .94s; }

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 900; line-height: 1.18; letter-spacing: -.01em;
  margin-block: clamp(20px, 3vh, 30px) clamp(18px, 3vh, 26px);
}
html[data-lang="en"] .hero-title { font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }

.hero-sub { max-width: 680px; color: var(--text-light); opacity: .92; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.9; }
html[data-lang="en"] .hero-sub { line-height: 1.65; }

.hero-cta { display: flex; gap: 16px; margin-top: clamp(28px, 4.5vh, 44px); flex-wrap: wrap; }

.hero-meta { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 6vh, 60px); flex-wrap: wrap; }
.hero-meta li { font-size: clamp(.95rem, 1.3vw, 1.05rem); color: var(--muted-light); display: flex; align-items: center; gap: 10px; }
html[data-lang="en"] .hero-meta li { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.hero-meta li::before { content: ""; width: 8px; height: 8px; background: var(--accent-on-dark); flex: none; }
.hero-meta b { color: var(--text-light); font-weight: 500; }

.scroll-cue {
  position: absolute; bottom: 26px; inset-inline-end: clamp(20px, 4vw, 44px); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-light); opacity: .85; transition: color .3s;
}
.scroll-cue:hover { color: var(--accent-on-dark); }
.scroll-cue i { width: 1px; height: 52px; background: var(--line-light); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; top: -40%; inset-inline: 0; height: 40%; background: var(--accent-on-dark); animation: cueDrop 2.1s ease-in-out infinite; }
@keyframes cueDrop { 0% { top: -40%; } 70%, 100% { top: 110%; } }

/* ══════════════ ABOUT ══════════════ */
.about { padding-block: clamp(90px, 13vh, 150px); }

.about-lead { max-width: 940px; margin-bottom: clamp(56px, 8vh, 90px); }
.about-lead p { font-size: clamp(1.3rem, 2.5vw, 1.95rem); line-height: 1.8; font-weight: 700; color: var(--text-dark); }
html[data-lang="en"] .about-lead p { font-weight: 500; line-height: 1.65; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 26px); }
.vm-card { background: var(--card-light); border: 1px solid var(--line-dark); padding: clamp(26px, 3.5vw, 40px); transition: transform .4s var(--ease-out), box-shadow .4s; }
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(42, 38, 34, .1); }
.vm-label { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 800; color: var(--accent-deep); display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
html[data-lang="en"] .vm-label { font-family: var(--mono); font-size: 14px; letter-spacing: var(--ls); text-transform: uppercase; }
.vm-label::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.vm-card p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 2.05; color: var(--body-dark); }
html[data-lang="en"] .vm-card p { line-height: 1.8; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(34px, 5vh, 52px); }
.why-card { border-top: 1px solid var(--line-dark); padding-top: 24px; transition: border-color .35s, transform .4s var(--ease-out); }
.why-card:hover { border-top-color: var(--accent-deep); transform: translateY(-4px); }
.why-num { font-family: var(--mono); font-size: 14px; color: var(--accent-deep); }
.why-card h4 { font-size: 19px; font-weight: 800; margin-block: 12px 10px; line-height: 1.5; }
.why-card p { font-size: 16px; line-height: 1.9; color: var(--muted-dark); }

.values-strip { display: flex; gap: 14px; margin-top: clamp(60px, 9vh, 100px); flex-wrap: wrap; }
.values-strip li {
  flex: 1 1 170px; display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line-dark); padding: 24px 26px;
  transition: background .3s, transform .35s var(--ease-out), border-color .3s;
}
.values-strip li:hover { background: #fff; transform: translateY(-4px); border-color: var(--accent-deep); }
.v-num { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); }
.values-strip b { font-size: 18px; font-weight: 800; }

/* ══════════════ PINNED STATEMENT · rising image ══════════════ */
.pin { position: relative; height: 320vh; background: var(--ink); }
.pin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }

.pin-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pin-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .08; filter: grayscale(1); }
.pin-statement { position: relative; z-index: 2; will-change: transform, opacity; }
.pin-title { font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: 1.2; font-weight: 900; margin-top: clamp(18px, 3vh, 26px); }
html[data-lang="en"] .pin-title { font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }

.pin-figure {
  position: absolute; inset-inline: 0; bottom: 0; height: 76vh; z-index: 1;
  transform: translateY(105%) scale(.9); will-change: transform;
}
.pin-figure img { width: 100%; height: 100%; object-fit: cover; }
.pin-figure::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 2px; background: var(--accent-on-dark); z-index: 3; }

#pinCaption {
  position: absolute; bottom: clamp(20px, 4vh, 36px); inset-inline-start: clamp(20px, 5vw, 48px); z-index: 3;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-light);
  background: rgba(16, 14, 10, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-inline-start: 2px solid var(--accent);
  padding: 12px 18px; opacity: 0; will-change: transform, opacity;
}

/* ══════════════ GOALS + STICKY STATS BAND ══════════════ */
.goals { padding-top: clamp(90px, 13vh, 150px); padding-bottom: 12vh; }

.stats-band {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(120deg, var(--brand-gray) 0%, #17140F 55%, #1D1A15 100%);
  border-block: 1px solid rgba(124, 196, 104, .26);
  padding-top: calc(var(--hh) + clamp(26px, 4vh, 40px));
  padding-bottom: clamp(30px, 5vh, 46px);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.stat { display: flex; flex-direction: column; gap: 12px; padding-inline-end: clamp(16px, 2.5vw, 30px); border-inline-end: 1px solid var(--line-light); }
.stat:last-child { border-inline-end: 0; padding-inline-end: 0; }

.stat-num { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-en); }
.stat-num b { font-size: clamp(2.5rem, 4.8vw, 4.1rem); font-weight: 800; line-height: 1; color: var(--text-light); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-num i { font-style: normal; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--accent-on-dark); }
.stat-label { font-size: clamp(1rem, 1.35vw, 1.1rem); font-weight: 600; color: var(--muted-light); max-width: 230px; line-height: 1.8; }
html[data-lang="en"] .stat-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: var(--ls); text-transform: uppercase; line-height: 1.7; }

.goals-list { margin-top: clamp(56px, 9vh, 100px); }
.goal {
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline; gap: clamp(16px, 3vw, 32px);
  min-height: clamp(190px, 32vh, 360px);
  border-top: 1px solid var(--line-light); padding-block: clamp(34px, 6vh, 64px);
}
.goal:last-child { border-bottom: 1px solid var(--line-light); }
.goal-num {
  font-family: var(--mono); font-size: 15px; color: var(--accent-on-dark);
  padding-top: .55em; border-top: 2px solid currentColor;
}
.goal p { font-size: clamp(1.35rem, 3vw, 2.35rem); line-height: 1.6; font-weight: 700; max-width: 900px; }
html[data-lang="en"] .goal p { font-weight: 600; line-height: 1.4; }

/* ══════════════ SERVICES ══════════════ */
.services { padding-block: clamp(90px, 13vh, 150px); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.service-card {
  position: relative; background: var(--card-light); border: 1px solid var(--line-dark);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .35s;
}
.service-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; height: 2px; width: 0; background: var(--accent-deep); transition: width .5s var(--ease-out); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(42, 38, 34, .1); border-color: rgba(60, 123, 59, .4); }
.service-card:hover::before { width: 100%; }
.svc-num { font-family: var(--mono); font-size: 14px; color: var(--accent-deep); }
.service-card h3 { font-size: 21px; font-weight: 800; margin-block: 16px 12px; line-height: 1.5; }
.service-card p { font-size: 16.5px; line-height: 1.95; color: var(--muted-dark); }

/* ══════════════ PROJECTS (dark) + EXPANDING GALLERY ══════════════ */
.projects { padding-top: clamp(90px, 13vh, 150px); padding-bottom: 36vh; }
/* Clients strip */
.clients { margin-top: clamp(56px, 9vh, 96px); border-top: 1px solid var(--line-light); padding-top: clamp(30px, 5vh, 48px); }
.clients-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: var(--ls);
  text-transform: uppercase; color: var(--muted-light); margin-bottom: clamp(26px, 4vh, 40px);
}
html[dir="rtl"] .clients-kicker { font-family: var(--font-ar); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--accent-on-dark); font-weight: 700; }
.clients-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: center;
}
.clients-grid li { display: grid; place-items: center; }
.clients-grid img {
  max-width: 150px; width: 100%; height: auto; max-height: 64px; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .4s ease, opacity .4s ease, transform .4s var(--ease-out);
}
.clients-grid img:hover { filter: grayscale(1) brightness(2.4); opacity: 1; transform: translateY(-3px); }
.clients-grid li:last-child img { max-width: 64px; }

.projects-intro { max-width: 780px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.9; color: var(--muted-light); margin-bottom: clamp(40px, 6vh, 64px); }

.project-names { display: grid; grid-template-columns: 1fr 1fr; gap-x: clamp(28px, 5vw, 60px); }
.project-names li { display: flex; align-items: baseline; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line-light); transition: padding-inline-start .35s var(--ease-out); }
.project-names li:hover { padding-inline-start: 10px; }
.project-names i { font-family: var(--mono); font-style: normal; font-size: 12.5px; color: var(--accent-on-dark); flex: none; }
.project-names span { font-size: 16.5px; font-weight: 600; color: var(--text-light); transition: color .3s; }
.project-names li:hover span { color: var(--accent-on-dark); }

.expander-wrap { position: relative; z-index: 5; margin-top: -16vh; will-change: transform, opacity; }
.expander { display: flex; gap: 5px; height: clamp(340px, 62vh, 600px); }
.exp-item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; transition: flex-grow .7s var(--ease-out); background: var(--ink-2); }
.exp-item:hover, .exp-item:focus-visible, .exp-item.is-active { flex-grow: 4.6; }
.exp-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.exp-item:hover img, .exp-item:focus-visible img, .exp-item.is-active img { transform: scale(1.07); }
.exp-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(16, 14, 10, .88), transparent);
  opacity: 0; transform: translateY(14px); transition: opacity .45s ease .08s, transform .45s var(--ease-out) .08s;
}
.exp-item:hover figcaption, .exp-item:focus-visible figcaption, .exp-item.is-active figcaption { opacity: 1; transform: none; }
.exp-item figcaption b { font-size: 15px; font-weight: 700; color: var(--text-light); }
.exp-item figcaption i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--accent-on-dark); }

/* ══════════════ MASONRY GALLERY ══════════════ */
.works { padding-block: clamp(90px, 13vh, 150px); }
.masonry { columns: 3; column-gap: 14px; }
.ms-item { position: relative; break-inside: avoid; margin-bottom: 14px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.ms-item img { width: 100%; height: auto; object-fit: cover; object-position: center; transition: transform .9s var(--ease-out); }
.ms-item:hover img { transform: scale(1.05); }
.ms-num {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--text-light);
  background: rgba(16, 14, 10, .68); padding: 4px 9px;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease-out);
}
.ms-item:hover .ms-num { opacity: 1; transform: none; }

/* ══════════════ TEAM ══════════════ */
.team { padding-block: clamp(90px, 13vh, 150px); }
.team-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.team-lead { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 2; color: var(--muted-light); margin-bottom: clamp(30px, 5vh, 46px); }
.team-points li { position: relative; padding-inline-start: 28px; margin-bottom: 16px; font-size: 15.5px; font-weight: 600; color: var(--text-light); }
.team-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 14px; height: 2px; background: var(--accent); }

.team-figure { position: relative; }
.team-figure::before { content: ""; position: absolute; inset-block-start: 26px; inset-inline-end: -26px; width: 100%; height: 100%; border: 1px solid rgba(124, 196, 104, .35); pointer-events: none; }
.team-figure img { width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; object-position: center top; }
.team-figure figcaption { margin-top: 16px; font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 600; color: var(--muted-light); display: flex; align-items: center; gap: 12px; }
html[data-lang="en"] .team-figure figcaption { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.team-figure figcaption::before { content: ""; width: 26px; height: 1px; background: var(--accent-on-dark); }

/* ══════════════ CONTACT ══════════════ */
.contact { padding-block: clamp(90px, 13vh, 150px); background: var(--ink); }
.contact-statement { font-size: clamp(1.9rem, 4.8vw, 3.5rem); line-height: 1.3; font-weight: 900; max-width: 1020px; margin-bottom: clamp(48px, 8vh, 84px); }
html[data-lang="en"] .contact-statement { font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 20px); }
.contact-card { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line-light); padding: clamp(26px, 3vw, 36px); transition: border-color .3s, background .3s, transform .35s var(--ease-out); }
.contact-card:hover { border-color: var(--accent); background: rgba(124, 196, 104, .06); transform: translateY(-4px); }
.cc-label { font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 700; color: var(--accent-on-dark); }
html[data-lang="en"] .cc-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: var(--ls); text-transform: uppercase; }
.contact-card b { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; line-height: 1.75; color: var(--text-light); }
.contact-cta-row { display: flex; gap: 16px; margin-top: clamp(40px, 6vh, 60px); flex-wrap: wrap; }
.btn-wa { background: var(--accent-deep); color: #fff; }
.btn-wa svg { width: 21px; height: 21px; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(60, 123, 59, .35); background: #336A32; }
@media (max-width: 600px) { .contact-cta-row .btn { width: 100%; justify-content: center; } }

/* ══════════════ FOOTER ══════════════ */
.site-footer { background: #0A0907; padding-block: clamp(52px, 8vh, 76px) 26px; border-top: 1px solid var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr minmax(0, 1fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .brand-mark { height: 64px; color: var(--text-light); }
.footer-brand strong { display: block; font-size: 16.5px; font-weight: 800; }
.footer-brand p { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--muted-light); max-width: 360px; }
.footer-brand .footer-tag { color: var(--accent-on-dark); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 44px); row-gap: 14px; }
.footer-nav a { font-size: 15px; font-weight: 600; color: var(--muted-light); transition: color .25s; }
.footer-nav a:hover { color: var(--accent-on-dark); }

.footer-bottom { margin-top: clamp(40px, 6vh, 56px); padding-top: 22px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: #8A8175; }

/* ══════════════ BACK TO TOP ══════════════ */
#backToTop {
  position: fixed; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(66, 61, 57, .18); background: rgba(251, 249, 242, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--brand-gray); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 22px rgba(42, 38, 34, .12);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease-out), background .25s, color .25s, border-color .25s;
}
#backToTop svg { width: 22px; height: 22px; }
#backToTop.show { opacity: 1; transform: none; pointer-events: auto; }
#backToTop:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
html[dir="rtl"] #backToTop { left: 26px; right: auto; }
html[dir="ltr"] #backToTop { right: 26px; left: auto; }
@media (max-width: 600px) {
  #backToTop { width: 46px; height: 46px; bottom: 18px; }
  #backToTop svg { width: 20px; height: 20px; }
  html[dir="rtl"] #backToTop { left: 14px; right: auto; }
  html[dir="ltr"] #backToTop { right: 14px; left: auto; }
}

/* ══════════════ LIGHTBOX ══════════════ */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 9, 7, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; }
.lb-figure { max-width: min(1200px, 90vw); }
.lb-figure img { max-width: 100%; max-height: 76vh; object-fit: contain; margin-inline: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-cap { margin-top: 16px; display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-light); }
#lbCount { color: var(--accent-on-dark); }

.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-light); background: rgba(16, 14, 10, .55);
  color: var(--text-light); display: grid; place-items: center;
  transition: border-color .25s, color .25s, transform .25s;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); transform: scale(1.06); }
.lb-close { top: 22px; inset-inline-end: 22px; }
.lb-prev { top: 50%; transform: translateY(-50%); inset-inline-start: clamp(12px, 3vw, 34px); }
.lb-next { top: 50%; transform: translateY(-50%); inset-inline-end: clamp(12px, 3vw, 34px); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
html[dir="rtl"] .lb-prev svg, html[dir="rtl"] .lb-next svg { transform: scaleX(-1); }

/* ══════════════ RESPONSIVE ══════════════ */
@media (min-width: 1500px) { .masonry { columns: 4; } }

@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; row-gap: clamp(30px, 5vh, 48px); }
  .stat { border-inline-end: 0; padding-inline-end: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .team-figure { max-width: 480px; margin-inline: auto; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); row-gap: clamp(26px, 4vh, 36px); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }

  .expander-wrap { margin-top: -10vh; }
  .expander { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; height: auto; }
  .exp-item { aspect-ratio: 4 / 3; flex-grow: 1 !important; }
  .exp-item.is-active { grid-column: span 2; aspect-ratio: 16 / 9; }
  .exp-item figcaption { opacity: 1; transform: none; padding-block-end: 12px; }
  .exp-item figcaption b { font-size: 13px; }

  .project-names { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 600px) {
  .vm-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .masonry { columns: 2; column-gap: 10px; }
  .ms-item { margin-bottom: 10px; aspect-ratio: 3 / 4; overflow: hidden; }
  .ms-item img { width: 100%; height: 100%; object-fit: cover; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-content { padding-top: calc(var(--hh) + 12px); }
  .hero-scrim {
    background: linear-gradient(to top,
      rgba(16, 14, 10, .97) 0%,
      rgba(16, 14, 10, .9) 50%,
      rgba(16, 14, 10, .72) 78%,
      rgba(16, 14, 10, .62) 100%);
  }
  .hero-sub { opacity: 1; }
  .goal { grid-template-columns: 40px minmax(0, 1fr); min-height: 0; gap: 14px; padding-block: 28px; }
  .stats-band { padding-top: calc(var(--hh) + 20px); }
  .vm-card p, .contact-card b { line-height: 1.9; }
  .contact-statement { line-height: 1.45; }
  .footer-brand p { font-size: 14px; }
}

@media (max-width: 460px) { .masonry { columns: 1; } .ms-item { aspect-ratio: 4 / 3; } }

/* ══════════════ REDUCED MOTION ══════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero [data-anim] { opacity: 1 !important; transform: none !important; }
  .pin-figure { transform: translateY(0) scale(1); }
  #pinCaption { opacity: 1; transform: none; }
  .expander-wrap { transform: none !important; opacity: 1 !important; }
}
