/* ==========================================================
   Dr. Farah Merhi — Invest in Dubai
   Palette: ink / ivory / champagne gold
   ========================================================== */

:root {
  --ink: #0b0a08;
  --ink-2: #14120e;
  --ink-3: #1d1a15;
  --ivory: #f4efe6;
  --ivory-2: #ebe3d4;
  --gold: #c9a86a;
  --gold-2: #e3cc98;
  --gold-deep: #9c7c43;
  --muted-on-dark: #a8a194;
  --muted-on-light: #6a6357;
  --line-dark: rgba(244, 239, 230, 0.12);
  --line-light: rgba(11, 10, 8, 0.12);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

html[lang="ar"] {
  --f-display: "Tajawal", system-ui, sans-serif;
  --f-body: "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-style: italic; color: var(--gold); }
html[lang="ar"] em { font-style: normal; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- WebGL + overlays ---------- */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.no-webgl #webgl { display: none; }
.no-webgl .story-sticky {
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(201, 168, 106, 0.25), transparent 70%),
    linear-gradient(180deg, #17130d, var(--ink));
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Cursor (pointer devices only) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold-2);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.loader-inner { width: min(320px, 70vw); }
.loader-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 28px;
}
.loader-bar { height: 1px; background: var(--line-dark); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.loader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow.dark { color: var(--gold-deep); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; text-transform: none; }

.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 7.4vw, 7.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
html[lang="ar"] .display,
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.2; font-weight: 400; }
html[lang="ar"] .display { font-size: clamp(2.3rem, 6.4vw, 6.4rem); }

.mask { overflow: hidden; padding-bottom: 0.08em; }
.mask > span { display: inline-block; }

.lede {
  margin-top: 26px;
  max-width: 34rem;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 300;
  color: rgba(244, 239, 230, 0.78);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
html[lang="ar"] .btn { letter-spacing: 0; text-transform: none; font-size: 15px; }
.btn-sm { padding: 11px 20px; font-size: 11px; }
.btn-lg { padding: 20px 34px; width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid rgba(244, 239, 230, 0.35); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 8, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition: transform 0.6s var(--ease), background 0.5s var(--ease), border-color 0.5s; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 168, 106, 0.6);
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--gold-2);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name > span { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.brand-name small { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-on-dark); }
html[lang="ar"] .brand-name small { letter-spacing: 0; font-size: 12px; }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  position: relative;
  font-size: 13px;
  color: rgba(244, 239, 230, 0.75);
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-on-dark);
  transition: border-color 0.3s;
}
.lang:hover { border-color: var(--gold); }
.lang-sep { width: 1px; height: 12px; background: var(--line-dark); }
.lang-ar { font-family: "Tajawal", sans-serif; font-size: 14px; }
html[lang="en"] .lang-en, html[lang="ar"] .lang-ar { color: var(--gold-2); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  border-bottom: 1px solid var(--line-dark);
  padding: 6px 0 10px;
}
.menu-foot { color: var(--muted-on-dark); font-size: 13px; letter-spacing: 0.1em; }

/* ---------- Story (3D scroll) ---------- */
.story { position: relative; height: 560vh; }
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.story-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0.78) 0%, rgba(11, 10, 8, 0.35) 38%, transparent 62%),
    linear-gradient(0deg, rgba(11, 10, 8, 0.7) 0%, transparent 35%);
}
html[dir="rtl"] .story-shade {
  background:
    linear-gradient(270deg, rgba(11, 10, 8, 0.78) 0%, rgba(11, 10, 8, 0.35) 38%, transparent 62%),
    linear-gradient(0deg, rgba(11, 10, 8, 0.7) 0%, transparent 35%);
}

.step {
  position: absolute;
  inset-inline-start: var(--gutter);
  bottom: clamp(88px, 15vh, 150px);
  width: min(720px, calc(100% - var(--gutter) * 2 - 60px));
  opacity: 0;
  visibility: hidden;
}
.step.is-first { opacity: 1; visibility: visible; }
.step-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.scroll-hint {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
html[lang="ar"] .scroll-hint { letter-spacing: 0; font-size: 13px; }
.scroll-hint i {
  position: relative;
  width: 1px;
  height: 46px;
  background: var(--line-dark);
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--gold);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.rail {
  position: absolute;
  inset-inline-end: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-on-dark);
  font-variant-numeric: lining-nums tabular-nums;
}
.rail-num { writing-mode: vertical-rl; }
.rail-current { color: var(--gold-2); font-weight: 500; }
.rail-line { width: 1px; height: 160px; background: var(--line-dark); position: relative; overflow: hidden; }
.rail-fill { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  padding: 18px 0;
  direction: ltr;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 400;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 0.6em; opacity: 0.6; }

/* ---------- Sections ---------- */
main > *:not(.story) { position: relative; z-index: 2; }
.section { padding: clamp(96px, 13vw, 190px) 0; }
.section.light { background: var(--ivory); color: var(--ink); }
.section.dark { background: var(--ink); }
.section.light em { color: var(--gold-deep); }

.section-head { margin-bottom: clamp(56px, 7vw, 100px); }
.section-head.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}
.section-sub { max-width: 30rem; color: var(--muted-on-light); font-size: 1.05rem; font-weight: 300; }
.light-sub { color: var(--muted-on-dark); margin-top: 26px; }

/* Why — stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.stat {
  padding: 36px 28px 40px 0;
  border-inline-end: 1px solid var(--line-light);
}
.stat + .stat { padding-inline-start: 28px; }
.stat:last-child { border-inline-end: 0; }
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  direction: ltr;
  text-align: start;
}
html[dir="rtl"] .stat-num { text-align: right; }
.stat-num small { font-size: 0.42em; color: var(--gold-deep); margin-left: 4px; letter-spacing: 0; }
html[lang="ar"] .stat-num small { font-family: "Tajawal", sans-serif; }
.stat p { margin-top: 14px; color: var(--muted-on-light); font-size: 0.95rem; max-width: 15rem; }

.tax {
  margin-top: clamp(64px, 8vw, 110px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--ivory);
  border-radius: 28px;
}
.tax-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.tax-head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.tax-head p { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); }
html[lang="ar"] .tax-head p { letter-spacing: 0; text-transform: none; font-size: 14px; }
.tax-row {
  display: grid;
  grid-template-columns: 160px 1fr 64px;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.tax-label { font-size: 0.95rem; color: rgba(244, 239, 230, 0.8); }
.tax-bar { height: 10px; border-radius: 999px; background: rgba(244, 239, 230, 0.06); overflow: hidden; }
.tax-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: rgba(244, 239, 230, 0.35); }
.tax-val { text-align: end; font-variant-numeric: lining-nums tabular-nums; font-family: "Cormorant Garamond", serif; font-size: 1.6rem; }
.is-dubai .tax-label, .is-dubai .tax-val { color: var(--gold-2); }
.is-dubai .tax-fill { background: var(--gold); box-shadow: 0 0 18px rgba(201, 168, 106, 0.8); }
.footnote { margin-top: 22px; font-size: 12px; color: var(--muted-on-light); }

/* Services — horizontal track */
.services { background: var(--ink); overflow: hidden; }
.services-inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 30px) 0 60px;
}
.services-head { margin-bottom: clamp(36px, 5vw, 64px); }
.h-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding: 0 var(--gutter);
  direction: ltr;
  will-change: transform;
}
.s-card {
  position: relative;
  width: clamp(300px, 30vw, 440px);
  min-height: clamp(420px, 58vh, 560px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%);
  border: 1px solid var(--line-dark);
  transform-style: preserve-3d;
  transition: border-color 0.5s var(--ease);
}
/* Keep the track anchored left in both directions so the scroll math is identical */
html[dir="rtl"] .services-inner { direction: ltr; }
html[dir="rtl"] .services-head { direction: rtl; }
html[dir="rtl"] .h-track { flex-direction: row-reverse; }
html[dir="rtl"] .s-card { direction: rtl; }
.s-card:hover { border-color: rgba(201, 168, 106, 0.45); }
.s-card-top { display: flex; justify-content: space-between; align-items: center; transform: translateZ(30px); }
.s-num { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--gold); }
.s-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted-on-dark);
}
html[lang="ar"] .s-tag { letter-spacing: 0; font-size: 12px; }
.s-card-art {
  flex: 1;
  min-height: 150px;
  margin: 26px 0;
  border-radius: 20px;
  transform: translateZ(50px);
  position: relative;
  overflow: hidden;
}
.s-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  line-height: 1.05;
  transform: translateZ(40px);
}
.s-card p { margin-top: 12px; color: var(--muted-on-dark); font-size: 0.95rem; font-weight: 300; transform: translateZ(20px); }

/* Abstract art blocks — pure CSS, no images */
.art-1 {
  background:
    repeating-linear-gradient(0deg, rgba(201, 168, 106, 0.55) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(201, 168, 106, 0.18), transparent);
  -webkit-mask: linear-gradient(90deg, transparent 18%, #000 18% 34%, transparent 34% 42%, #000 42% 66%, transparent 66% 74%, #000 74% 84%, transparent 84%) bottom / 100% 100% no-repeat;
          mask: linear-gradient(90deg, transparent 18%, #000 18% 34%, transparent 34% 42%, #000 42% 66%, transparent 66% 74%, #000 74% 84%, transparent 84%) bottom / 100% 100% no-repeat;
}
.art-2 {
  background:
    radial-gradient(circle at 38% 50%, transparent 30%, rgba(201, 168, 106, 0.7) 30.5%, transparent 31.5%),
    radial-gradient(circle at 62% 50%, transparent 30%, rgba(201, 168, 106, 0.7) 30.5%, transparent 31.5%),
    radial-gradient(circle at 50% 50%, rgba(201, 168, 106, 0.18), transparent 60%);
}
.art-3 {
  background:
    linear-gradient(135deg, transparent 48%, rgba(227, 204, 152, 0.9) 49%, rgba(227, 204, 152, 0.9) 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(244, 239, 230, 0.06) 0 1px, transparent 1px 28px);
}
.art-4 {
  background:
    radial-gradient(circle at 30% 40%, rgba(201, 168, 106, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 55% 30%, rgba(201, 168, 106, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 62%, rgba(201, 168, 106, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 40% 70%, rgba(201, 168, 106, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 50%, rgba(201, 168, 106, 0.22), transparent 55%);
}
.art-5 {
  background:
    linear-gradient(180deg, transparent 60%, rgba(201, 168, 106, 0.25) 60% 61%, transparent 61%),
    conic-gradient(from 200deg at 50% 100%, transparent 0 20deg, rgba(227, 204, 152, 0.35) 20deg 60deg, transparent 60deg 360deg);
}

/* Track record */
.record { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); perspective: 1200px; }
.r-card {
  position: relative;
  min-height: 380px;
  padding: 30px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transform-style: preserve-3d;
}
.r-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(201, 168, 106, 0.22), transparent 55%);
  pointer-events: none;
}
.r-kicker {
  position: absolute;
  top: 28px;
  inset-inline-start: 30px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
html[lang="ar"] .r-kicker { letter-spacing: 0; font-size: 13px; }
.r-big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%) translateZ(40px);
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 204, 152, 0.7);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.r-icon { width: 64px; height: 64px; color: var(--gold-2); margin-bottom: auto; margin-top: 50px; transform: translateZ(40px); }
.r-card h3 {
  position: relative;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.08;
  transform: translateZ(30px);
}
.r-card p { position: relative; margin-top: 10px; color: var(--muted-on-dark); font-size: 0.92rem; transform: translateZ(20px); }

/* Areas */
.areas { list-style: none; border-top: 1px solid var(--line-dark); }
.area {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto 56px;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  cursor: default;
}
.area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.16), rgba(201, 168, 106, 0.02));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.area:hover::before { transform: scaleY(1); }
.area > * { position: relative; }
.area-idx { font-size: 12px; color: var(--muted-on-dark); font-variant-numeric: lining-nums tabular-nums; }
.area-name {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.area:hover .area-name { transform: translateX(14px); color: var(--gold-2); }
html[dir="rtl"] .area:hover .area-name { transform: translateX(-14px); }
.area-meta { text-align: end; font-size: 13px; color: var(--muted-on-dark); }
.area-meta b { display: block; font-weight: 500; color: var(--ivory); font-size: 14px; }
.area-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease);
}
.area:hover .area-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }
html[dir="rtl"] .area-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .area:hover .area-arrow { transform: rotate(45deg); }

/* Process */
.process-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.sticky-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.process { list-style: none; position: relative; padding-inline-start: 56px; }
.process-line { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 11px; width: 1px; background: var(--line-light); }
.process-line span { position: absolute; inset: 0; background: var(--gold-deep); transform: scaleY(0); transform-origin: top; }
.process li { position: relative; padding: 0 0 clamp(48px, 6vw, 80px); }
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: "";
  position: absolute;
  inset-inline-start: -51px;
  top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold-deep);
}
.p-num { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: var(--gold-deep); }
.process h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin: 6px 0 10px; }
.process p { color: var(--muted-on-light); max-width: 28rem; font-weight: 300; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.portrait { position: relative; perspective: 1000px; }
.portrait-art {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 28px 28px;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(227, 204, 152, 0.35), transparent 70%),
    linear-gradient(180deg, #2a2219, #110e0a);
  border: 1px solid rgba(201, 168, 106, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait-art img { width: 100%; height: 100%; object-fit: cover; }
.portrait-art span {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(6rem, 14vw, 11rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 204, 152, 0.55);
}
.portrait-badge {
  position: absolute;
  bottom: 28px;
  inset-inline-end: -18px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.08);
  border: 1px solid rgba(244, 239, 230, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}
.portrait-badge b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--gold-2); }
.portrait-badge small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); }
.about-text { margin-top: 24px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); font-weight: 300; color: rgba(244, 239, 230, 0.8); max-width: 36rem; }
.about-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; border-top: 1px solid var(--line-dark); }
.about-facts li { flex: 1 1 140px; padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.about-facts b { font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 1.6rem; color: var(--gold-2); direction: ltr; text-align: start; }
html[dir="rtl"] .about-facts b { text-align: right; }
.about-facts span { font-size: 13px; color: var(--muted-on-dark); }

/* Contact */
.contact {
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(201, 168, 106, 0.14), transparent 70%),
    var(--ink-2);
  border-top: 1px solid var(--line-dark);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-links { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted-on-dark); }
.contact-links a { color: var(--gold-2); width: fit-content; border-bottom: 1px solid rgba(227, 204, 152, 0.35); padding-bottom: 2px; }
.form {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 28px;
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-on-dark); }
html[lang="ar"] .field > span { letter-spacing: 0; font-size: 13px; text-transform: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.2);
  padding: 10px 0 12px;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 22px;
}
html[dir="rtl"] .field select { background-position: 5px 55%, 10px 55%; }
.field select option { background: var(--ink-2); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 239, 230, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form-error { min-height: 1.2em; font-size: 13px; color: #e8a08a; }

/* Footer */
.footer { background: var(--ink); padding: clamp(60px, 8vw, 110px) 0 30px; overflow: hidden; border-top: 1px solid var(--line-dark); }
.footer-word {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(4rem, 17vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 106, 0.4);
  direction: ltr;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--muted-on-dark);
}
.footer-bar a:hover { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-light); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(3) { padding-inline-start: 0; }
  .record { grid-template-columns: 1fr 1fr; }
  .r-sold { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .services-inner { min-height: 0; padding: clamp(90px, 14vw, 140px) 0; }
  .h-track, html[dir="rtl"] .h-track { flex-direction: column; width: 100%; direction: inherit; }
  .s-card { width: 100%; min-height: 0; }
  .s-card-art { min-height: 140px; flex: none; height: 160px; }
  .section-head.split { grid-template-columns: 1fr; }
  .process-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .sticky-head { position: static; margin-bottom: 48px; }
  .portrait { max-width: 420px; }
  .portrait-badge { inset-inline-end: 16px; }
  .area { grid-template-columns: 40px 1fr 46px; }
  .area-meta { display: none; }
  .rail { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .nav-cta { display: none; }
  .brand-name small { display: none; }
  .step { width: calc(100% - var(--gutter) * 2); bottom: 96px; }
  .story-shade {
    background: linear-gradient(0deg, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.6) 40%, transparent 70%);
  }
  html[dir="rtl"] .story-shade {
    background: linear-gradient(0deg, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.6) 40%, transparent 70%);
  }
  .lede { margin-top: 18px; }
  .step-actions .btn { flex: 1 1 auto; }
  .scroll-hint { left: 50%; right: auto; transform: translateX(-50%); bottom: 24px; }
  .scroll-hint span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-inline-end: 0; }
  .tax-row { grid-template-columns: 1fr 52px; gap: 10px 16px; }
  .tax-bar { grid-column: 1 / -1; grid-row: 2; }
  .record { grid-template-columns: 1fr; }
  .r-card { min-height: 320px; }
  .field-row { grid-template-columns: 1fr; }
  .area { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint i::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
