/* =================================================================
   Golden Touches — شركة اللمسات الذهبية
   Brand: charcoal #333 + gold #E8C37E, geometric triangles
   ================================================================= */

:root {
  --gold: #e8c37e;
  --gold-2: #d8ab5c;
  --gold-soft: #f6ead2;
  --ink: #333333;
  --ink-2: #262626;
  --ink-3: #1c1c1c;
  --paper: #ffffff;
  --mist: #f5f3ef;
  --line: #e7e3dc;
  --text: #4a4a4a;
  --muted: #8a8580;

  --f-head: 'Tajawal', system-ui, sans-serif;
  --f-body: 'Tajawal', system-ui, sans-serif;
  --dir: -1; /* RTL: "start" side is on the right */

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --radius: 4px;
  --header-h: 84px;
  --container: 1240px;
}
html[lang="en"] {
  --f-head: 'Barlow Condensed', 'Tajawal', sans-serif;
  --f-body: 'Barlow', 'Tajawal', sans-serif;
  --dir: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; }
html[lang="en"] :is(h1, h2, h3, h4) { text-transform: uppercase; letter-spacing: .01em; line-height: 1.08; }
em { font-style: normal; color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }
body.no-scroll, body.is-loading { overflow: hidden; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); overflow: hidden; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 17px; }
.eyebrow::before {
  content: ""; width: 0; height: 0;
  border-block: 6px solid transparent;
  border-inline-start: 9px solid var(--gold);
}
.title { font-size: clamp(34px, 5vw, 58px); margin-bottom: 22px; }
.title--light { color: #fff; }
.lead { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--text); margin: 0 0 28px; max-width: 62ch; }
.lead--light { color: rgba(255, 255, 255, .78); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; font-family: var(--f-head); font-weight: 700; font-size: 16px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); overflow: hidden; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 17px; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-io);
}
html[dir="ltr"] .btn::before { transform-origin: left; }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--gold); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink::before { background: var(--gold); }
.btn--ink:hover { color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Geometric triangles (brand motif) ---------- */
.tri {
  position: absolute; pointer-events: none; z-index: 0;
  width: var(--s, 160px); aspect-ratio: 2 / 1;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translate3d(0, var(--py, 0), 0);
  will-change: transform;
}
.tri--gold { background: var(--gold); }
.tri--ink { background: var(--ink); }

/* Little arrow rhythm from the profile: ▸▸  ▸▸▸ ▸ */
.arrows { display: flex; gap: 7px; align-items: center; margin-bottom: 24px; }
.arrows i, .arrows b {
  width: 0; height: 0; border-block: 6px solid transparent;
  border-inline-start: 9px solid var(--gold);
  animation: arrowPulse 2.4s var(--ease) infinite;
}
.arrows b { border-inline-start-color: #fff; margin-inline-end: 12px; }
.arrows > :nth-child(1) { animation-delay: 0s } .arrows > :nth-child(2) { animation-delay: .1s }
.arrows > :nth-child(3) { animation-delay: .2s } .arrows > :nth-child(4) { animation-delay: .3s }
.arrows > :nth-child(5) { animation-delay: .4s } .arrows > :nth-child(6) { animation-delay: .5s }
.arrows > :nth-child(7) { animation-delay: .6s } .arrows > :nth-child(8) { animation-delay: .7s }
@keyframes arrowPulse { 0%, 100% { opacity: .35; transform: translateX(0) } 40% { opacity: 1; transform: translateX(calc(4px * var(--dir))) } }

/* =================================================================
   Preloader
   ================================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink-2);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: clip-path 1.1s var(--ease-io) .1s;
  clip-path: inset(0 0 0 0);
}
.is-loaded .preloader { clip-path: inset(0 0 100% 0); }
.preloader__logo { width: 140px; overflow: visible; }
.preloader__logo path {
  fill: transparent; stroke-width: 1.2; stroke-linejoin: round;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: drawLogo 1.4s var(--ease-io) forwards, fillLogo .6s ease forwards 1.2s;
}
.preloader__logo .lg-c, .preloader__logo .lg-t1 { stroke: #fff; --fill: #fff; }
.preloader__logo .lg-t2 { stroke: var(--gold); --fill: var(--gold); animation-delay: .25s, 1.35s; }
.preloader__logo .lg-t1 { animation-delay: .15s, 1.3s; }
@keyframes drawLogo { to { stroke-dashoffset: 0 } }
@keyframes fillLogo { to { fill: var(--fill) } }
.preloader__name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; color: #fff;
  letter-spacing: .5em; font-size: 15px; padding-inline-start: .5em;
  opacity: 0; animation: fadeUp .8s var(--ease) .9s forwards;
}
.preloader__bar { width: 160px; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; animation: loadBar 1.8s var(--ease-io) forwards; }
@keyframes loadBar { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transform: scaleX(0); transform-origin: right;
}
html[dir="ltr"] .scroll-progress { transform-origin: left; }

/* =================================================================
   Header
   ================================================================= */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.header.is-scrolled { --header-h: 70px; background: rgba(38, 38, 38, .92); backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
/* Logo colors are passed into the <use> shadow tree through custom properties */
.brand__mark { width: 52px; height: 36px; flex: none; --logo-main: #fff; --logo-accent: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.brand__text small { font-family: 'Tajawal', sans-serif; color: var(--gold); font-size: 13px; font-weight: 500; }
.brand__mark { transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }

.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.nav__link {
  position: relative; color: rgba(255,255,255,.85); font-weight: 500; font-size: 16px; padding-block: 6px;
  transition: color .3s;
}
html[lang="en"] .nav__link { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: 16px; }
.nav__link::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .45s var(--ease);
}
html[dir="ltr"] .nav__link::after { --origin: left; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 92px; height: 40px; border-radius: 40px; padding: 4px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.lang-toggle__opt { position: relative; z-index: 1; text-align: center; color: #fff; font-weight: 700; font-size: 14px; transition: color .4s; font-family: 'Barlow Condensed', 'Tajawal', sans-serif; }
.lang-toggle__opt[data-l="ar"] { font-family: 'Tajawal'; font-size: 16px; }
.lang-toggle__opt.is-on { color: var(--ink); }
.lang-toggle__pill {
  position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 40px; background: var(--gold);
  inset-inline-start: 4px; transition: inset-inline-start .45s var(--ease);
}
html[lang="en"] .lang-toggle__pill { inset-inline-start: 50%; }
.lang-toggle:hover .lang-toggle__pill { box-shadow: 0 0 0 4px rgba(232,195,126,.25); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: #fff; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 14px } .burger span:nth-child(2) { top: 21px } .burger span:nth-child(3) { top: 28px }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.menu-open .burger span:nth-child(2) { opacity: 0 }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* Language swap transition */
main, .footer { transition: opacity .32s ease, filter .32s ease; }
.lang-out main, .lang-out .footer, .lang-out .nav { opacity: 0; filter: blur(6px); }
.nav { transition: opacity .32s ease, filter .32s ease; }

/* =================================================================
   Hero
   ================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  transform: translate3d(0, var(--py, 0), 0) scale(1.18);
  transition: transform 2.6s var(--ease);
}
.is-loaded .hero__img { transform: translate3d(0, var(--py, 0), 0) scale(1.06); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(28,28,28,.82) 0%, rgba(28,28,28,.45) 45%, rgba(28,28,28,.1) 75%),
    linear-gradient(to top, rgba(28,28,28,.7), transparent 40%);
}
html[dir="ltr"] .hero__shade {
  background:
    linear-gradient(to right, rgba(28,28,28,.82) 0%, rgba(28,28,28,.45) 45%, rgba(28,28,28,.1) 75%),
    linear-gradient(to top, rgba(28,28,28,.7), transparent 40%);
}
.hero__tri1 { --s: clamp(160px, 20vw, 320px); bottom: -2px; inset-inline-end: 18%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero__tri2 { --s: clamp(70px, 7vw, 110px); bottom: -2px; inset-inline-end: calc(18% + clamp(120px, 15vw, 240px)); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(255,255,255,.18); }
.hero__tri1, .hero__tri2 { opacity: 0; transition: opacity 1.2s ease 1s; }
.is-loaded .hero__tri1, .is-loaded .hero__tri2 { opacity: 1; }

.hero__content { position: relative; padding-top: var(--header-h); }
.hero__kicker {
  margin: 0 0 14px; font-family: var(--f-head); font-weight: 600; font-size: clamp(16px, 1.6vw, 21px);
  color: var(--gold); letter-spacing: .2em; text-transform: uppercase;
}
html[lang="ar"] .hero__kicker { letter-spacing: 0; }
.hero__title { color: #fff; font-size: clamp(44px, 7.6vw, 108px); max-width: 13ch; margin-bottom: 26px; font-weight: 800; }
html[lang="ar"] .hero__title { line-height: 1.3; max-width: 11ch; }
.hero__lead { max-width: 50ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.82); margin: 0 0 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { position: absolute; bottom: 34px; inset-inline: 0; display: flex; justify-content: space-between; align-items: flex-end; }
.hero__year { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .3em; font-size: 14px; color: rgba(255,255,255,.7); }
.hero__year b { color: var(--gold); }
.scroll-cue { width: 28px; height: 46px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 3px; height: 9px; border-radius: 3px; background: var(--gold); animation: scrollCue 1.8s var(--ease) infinite; }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(-4px) } 40% { opacity: 1 } 80%, 100% { opacity: 0; transform: translateY(16px) } }

/* hero intro sequence */
.hero .arrows, .hero__kicker, .hero__lead, .hero__cta, .hero__meta { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-loaded .hero .arrows { opacity: 1; transform: none; transition-delay: .7s; }
.is-loaded .hero__kicker { opacity: 1; transform: none; transition-delay: .8s; }
.is-loaded .hero__lead { opacity: 1; transform: none; transition-delay: 1.4s; }
.is-loaded .hero__cta { opacity: 1; transform: none; transition-delay: 1.55s; }
.is-loaded .hero__meta { opacity: 1; transform: none; transition-delay: 1.8s; }

/* Word-split reveal */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--split-delay, 0ms)); }
.hero [data-split] { --split-delay: 900ms; }
[data-split].is-split-in .w > span { transform: none; }

@keyframes floatY { 0%, 100% { transform: translate3d(0, var(--py, 0), 0) } 50% { transform: translate3d(0, calc(var(--py, 0px) + 16px), 0) } }

/* =================================================================
   Marquee
   ================================================================= */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding-block: 18px; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span { font-family: var(--f-head); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap; padding-inline: 28px; }
html[lang="en"] .marquee__group span { text-transform: uppercase; letter-spacing: .04em; }
.marquee__group i { width: 0; height: 0; border-inline: 9px solid transparent; border-top: 12px solid var(--ink); }
@keyframes marquee { to { transform: translateX(-50%) } }
@keyframes marqueeRtl { to { transform: translateX(50%) } }

/* =================================================================
   Reveal system
   ================================================================= */
[data-reveal] { transition: opacity 1s var(--ease), transform 1s var(--ease), clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0s); }
[data-reveal="up"] { opacity: 0; transform: translateY(40px); }
[data-reveal="zoom"] { opacity: 0; transform: scale(.85); }
[data-reveal="right"] { opacity: 0; transform: translateX(calc(-60px * var(--dir))); }
[data-reveal="mask"] { clip-path: inset(0 0 100% 0); }
[data-reveal="mask"] img { transform: translate3d(0, var(--py, 0), 0) scale(1.25); transition: transform 1.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
[data-reveal="mask"].is-visible img { transform: translate3d(0, var(--py, 0), 0) scale(1.08); }

/* =================================================================
   About
   ================================================================= */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; z-index: 1; }
.about__tri { --s: 260px; top: 0; inset-inline-end: 4%; }
.about__visual { position: relative; display: grid; grid-template-rows: auto auto; }
.about__panel {
  position: relative; z-index: 1; background: var(--ink); color: #fff;
  padding: 44px 44px 64px; width: 82%;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%);
}
html[dir="rtl"] .about__panel { clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%, 0 78%); margin-inline-start: 0; }
.about__logo { width: 92px; height: 62px; margin-bottom: 26px; --logo-main: #fff; --logo-accent: var(--gold); }
.about__panel h3 { color: #fff; font-size: clamp(28px, 3vw, 40px); }
.about__photo { margin-top: -48px; margin-inline-start: 18%; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0) scale(1.15); }

.pillars { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillars li { border-top: 2px solid var(--gold); padding-top: 14px; }
.pillars b { display: block; font-family: var(--f-head); color: var(--ink); font-size: 22px; }
html[lang="en"] .pillars b { text-transform: uppercase; }
.pillars span { font-size: 14.5px; color: var(--muted); }

/* =================================================================
   Values / Goals
   ================================================================= */
.values { background: var(--mist); }
.values__grid { display: grid; grid-template-columns: 1fr .9fr 1fr; gap: 30px; align-items: center; }
.vcard {
  --rx: 0deg; --ry: 0deg;
  position: relative; background: #fff; padding: 46px 38px 40px; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s, opacity 1s var(--ease);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.25);
}
.vcard[data-reveal="up"]:not(.is-visible) { transform: translateY(40px); }
.vcard[data-reveal].is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.vcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(232,195,126,.22), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.vcard:hover::before { opacity: 1; }
.vcard:hover { box-shadow: 0 40px 70px -30px rgba(0,0,0,.35); }
.vcard::after { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 70px; height: 35px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vcard__num { position: absolute; bottom: 10px; inset-inline-end: 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 90px; line-height: 1; color: rgba(0,0,0,.04); }
.vcard h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 18px; }
.vcard p { margin: 0; font-size: 16px; }
.vcard--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.vcard--dark h3 { color: #fff; }
.vcard--dark .vcard__num { color: rgba(255,255,255,.05); }
.values__chair { position: relative; display: grid; place-items: center; }
.values__chair img { position: relative; width: 100%; max-width: 380px; transform: translate3d(0, var(--py, 0), 0); mix-blend-mode: multiply; }
.values__blob {
  display: none;
  position: absolute; width: 80%; aspect-ratio: 1; background: #d9ccbd;
  border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%;
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; transform: rotate(0) }
  50% { border-radius: 58% 42% 40% 60% / 42% 60% 40% 58%; transform: rotate(12deg) }
}

/* Process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: clamp(70px, 9vw, 110px); padding-top: 40px; }
.process__line { position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--line); }
.process__line span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .process__line span { transform-origin: left; }
.process__step { position: relative; }
.process__step::before { content: ""; position: absolute; top: -47px; inset-inline-start: 0; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--mist); }
.process__step i { font-style: normal; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--gold-2); font-size: 15px; letter-spacing: .15em; }
.process__step h4 { font-size: 23px; margin: 4px 0 6px; }
.process__step p { margin: 0; color: var(--muted); font-size: 15px; }

/* =================================================================
   Services
   ================================================================= */
.services { background: var(--ink-2); color: #fff; }
.services__bg { position: absolute; inset: 0; overflow: hidden; opacity: .14; }
.services__bg img { width: 100%; height: 120%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0); filter: grayscale(.4); }
.services__tri { --s: 220px; top: 0; inset-inline-start: 6%; }
.services .container { position: relative; z-index: 1; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.08); }
.svc {
  position: relative; background: var(--ink-2); padding: 38px 30px 46px; min-height: 250px; overflow: hidden;
  transition: background .5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--gold), var(--gold-2)); transform: translateY(101%); transition: transform .6s var(--ease-io); }
.svc > * { position: relative; }
.svc__num { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .15em; color: var(--gold); font-size: 14px; margin-bottom: 26px; transition: color .4s; }
.svc__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 24px; border: 1.5px solid rgba(232,195,126,.5); transition: border-color .4s, transform .6s var(--ease); }
.svc__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.svc h3 { color: #fff; font-size: 21px; line-height: 1.4; transition: color .4s; }
html[lang="en"] .svc h3 { line-height: 1.15; font-size: 23px; }
.svc__line { position: absolute; bottom: 26px; inset-inline-start: 30px; width: 30px; height: 2px; background: var(--gold); transition: width .5s var(--ease), background .4s; }
.svc:hover::before { transform: none; }
.svc:hover .svc__num, .svc:hover h3 { color: var(--ink); }
.svc:hover .svc__icon { border-color: var(--ink); transform: rotate(-8deg) scale(1.05); }
.svc:hover .svc__icon svg { stroke: var(--ink); }
.svc:hover .svc__line { width: 70px; background: var(--ink); }
.svc.is-visible .svc__icon svg * { stroke-dasharray: 120; stroke-dashoffset: 120; animation: drawIcon 1.6s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .3s); }
@keyframes drawIcon { to { stroke-dashoffset: 0 } }

/* =================================================================
   Quote band
   ================================================================= */
.quote-band { position: relative; min-height: clamp(420px, 60vw, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.quote-band__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.quote-band__media img { width: 100%; height: 130%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0); }
.quote-band__inner { padding-bottom: 0; }
.quote-band__box {
  position: relative; background: var(--ink); color: #fff; padding: 56px clamp(30px, 5vw, 70px) 60px; max-width: 640px;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}
html[dir="rtl"] .quote-band__box { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.quote-band__mark { position: absolute; top: 4px; inset-inline-start: 28px; font-family: Georgia, serif; font-size: 150px; line-height: 1; color: var(--gold); opacity: .9; }
.quote-band__box h2 { position: relative; color: #fff; font-size: clamp(32px, 4.4vw, 58px); }

/* =================================================================
   Projects
   ================================================================= */
.projects__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.featured { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: clamp(280px, 34vw, 460px); gap: 22px; margin-bottom: 60px; }
.featured__item { position: relative; margin: 0; overflow: hidden; }
.featured__item img { width: 100%; height: 100%; object-fit: cover; }
.featured__item:hover img { transform: scale(1.14) !important; transition-duration: 1.4s; }
.featured__item figcaption {
  position: absolute; bottom: 0; inset-inline-start: 0; background: var(--ink); color: #fff; padding: 18px 26px;
  display: flex; flex-direction: column; line-height: 1.4; font-family: var(--f-head); font-weight: 700; font-size: 20px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
html[dir="rtl"] .featured__item figcaption { clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%); }
.featured__item figcaption small { font-family: 'Barlow Condensed', sans-serif; color: var(--gold); letter-spacing: .15em; font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  position: relative; padding: 10px 22px; font-size: 15.5px; font-weight: 500; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; isolation: isolate; transition: color .35s, box-shadow .35s;
}
html[lang="en"] .filter { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.filter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); }
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter.is-active { color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter.is-active::before { transform: none; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; transition: opacity .25s; }
.gallery.is-switching { opacity: 0; }
.gitem { position: relative; overflow: hidden; background: var(--mist); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--gd, 0s); }
.gitem.is-in { opacity: 1; transform: none; }
.gitem[hidden] { display: none; }
.gitem--tall { grid-row: span 2; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(38,38,38,.75), transparent 60%); opacity: 0; transition: opacity .5s; }
.gitem__zoom {
  position: absolute; z-index: 1; bottom: 16px; inset-inline-start: 16px; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--gold); transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease);
}
.gitem__zoom svg { width: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.gitem:hover img { transform: scale(1.1); }
.gitem:hover::after { opacity: 1; }
.gitem:hover .gitem__zoom { transform: none; }
.gallery__more { text-align: center; margin-top: 44px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(20,20,20,.94); backdrop-filter: blur(6px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 30px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; height: 100%; align-content: center; min-width: 0; }
.lightbox__figure img { max-height: calc(100vh - 130px); max-width: 100%; object-fit: contain; opacity: 0; transform: scale(.96); transition: opacity .45s, transform .6s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__figure img.is-in { opacity: 1; transform: none; }
.lightbox__figure figcaption { color: rgba(255,255,255,.7); font-size: 15px; }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 24px; font-size: 44px; line-height: 1; color: #fff; transition: transform .4s var(--ease), color .3s; }
.lightbox__close:hover { color: var(--gold); transform: rotate(90deg); }
.lightbox__nav { width: 54px; height: 54px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); transition: background .3s, box-shadow .3s; }
.lightbox__nav svg { width: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.lightbox__nav:hover { background: var(--gold); box-shadow: none; }
.lightbox__nav:hover svg { stroke: var(--ink); }
html[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }

/* =================================================================
   Clients
   ================================================================= */
.clients { background: var(--mist); }
.clients__media { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 38%; overflow: hidden; }
.clients__media img { width: 100%; height: 100%; object-fit: cover; }
.clients__tri { --s: 200px; top: 0; inset-inline-start: calc(38% - 100px); }
.clients__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; padding-inline-start: 42%; }
.sectors { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sector {
  display: flex; align-items: center; gap: 14px; background: #fff; padding: 16px 18px; font-weight: 500; color: var(--ink); line-height: 1.35;
  transition: transform .45s var(--ease), box-shadow .45s, opacity 1s var(--ease);
}
html[lang="en"] .sector { font-size: 15.5px; }
.sector__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: background .4s, transform .6s var(--ease); }
.sector__icon svg { width: 21px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sector:hover { transform: translateY(-5px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.3); }
.sector:hover .sector__icon { background: var(--gold); transform: rotate(360deg); }
.sector:hover .sector__icon svg { stroke: var(--ink); }

/* =================================================================
   Closing
   ================================================================= */
.closing { position: relative; min-height: clamp(440px, 56vw, 620px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.closing__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.closing__media img { width: 100%; height: 130%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0); }
.closing__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(232,195,126,.92) 0 42%, rgba(232,195,126,.35) 42% 60%, transparent 60%); }
html[dir="rtl"] .closing__veil { background: linear-gradient(-115deg, rgba(232,195,126,.92) 0 42%, rgba(232,195,126,.35) 42% 60%, transparent 60%); }
.closing__inner { position: relative; }
.closing__mark { display: block; font-family: Georgia, serif; font-size: 130px; line-height: .6; color: var(--ink); height: 60px; }
.closing__quote { max-width: 15ch; font-size: clamp(32px, 4.4vw, 60px); color: var(--ink); }
html[lang="ar"] .closing__quote { max-width: 13ch; line-height: 1.4; }

/* =================================================================
   Contact
   ================================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; margin-bottom: 70px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; }
.contact__list .ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); transition: background .4s; }
.contact__list .ic svg { width: 24px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list li:hover .ic { background: var(--gold); }
.contact__list li:hover .ic svg { stroke: var(--ink); }
.contact__list small { display: block; color: var(--gold-2); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.contact__list span, .contact__list a { color: var(--ink); font-weight: 500; font-size: 17px; line-height: 1.6; }
.contact__list a:hover { color: var(--gold-2); }
html[dir="rtl"] .contact__list a[dir="ltr"] { display: inline-block; }

.cform { position: relative; background: var(--ink); padding: clamp(32px, 4vw, 50px); color: #fff; }
.cform::before { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 90px; height: 45px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.cform h3 { color: #fff; font-size: 30px; margin-bottom: 26px; }
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: #fff; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.25);
  padding: 22px 0 10px; outline: none; transition: border-color .3s; border-radius: 0; resize: vertical;
}
.field select { padding: 16px 0 12px; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c37e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat;
  background-size: 18px; background-position: left center; }
html[dir="ltr"] .field select { background-position: right center; }
.field select option { color: var(--ink); }
.field label { position: absolute; top: 20px; inset-inline-start: 0; color: rgba(255,255,255,.55); pointer-events: none; transition: transform .35s var(--ease), color .3s, font-size .35s; transform-origin: right top; }
html[dir="ltr"] .field label { transform-origin: left top; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.82); color: var(--gold); }
.cform__note { margin: 14px 0 0; font-size: 13.5px; color: rgba(255,255,255,.5); text-align: center; }
.cform__error { color: #ffb4a2; font-size: 14px; margin: -6px 0 14px; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }

.map { position: relative; height: 380px; overflow: hidden; background: var(--mist) url("../img/logo-mark.png") center / 120px no-repeat; }
.map iframe { position: relative; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); transition: filter .6s; }
.map:hover iframe { filter: none; }
.map__open { position: absolute; z-index: 1; bottom: 18px; inset-inline-start: 18px; padding: 12px 24px; font-size: 15px; }

/* =================================================================
   Footer & floating WhatsApp
   ================================================================= */
.footer { background: var(--ink-3); color: rgba(255,255,255,.6); padding-block: 50px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__tag { margin: 0; color: var(--gold); font-family: var(--f-head); font-size: 20px; font-weight: 600; }
html[lang="en"] .footer__tag { text-transform: uppercase; letter-spacing: .05em; }
.footer__copy { margin: 0; font-size: 14px; width: 100%; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.footer .credit { margin: -12px 0 0; font-size: 13.5px; width: 100%; }
.credit a { color: var(--gold); font-weight: 700; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
html[dir="rtl"] .credit a { background-position: 100% 100%; }
.credit a:hover { background-size: 100% 1.5px; }

.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transform: scale(0); transition: transform .6s var(--ease) 2.4s;
}
.is-loaded .wa-float { transform: scale(1); }
.wa-float svg { width: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(1.8); opacity: 0 } }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .values__chair { grid-column: 1 / -1; grid-row: 1; max-width: 340px; margin-inline: auto; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--ink-2);
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    clip-path: circle(0 at calc(100% - 40px) 35px); transition: clip-path .8s var(--ease-io);
  }
  html[dir="rtl"] .nav { clip-path: circle(0 at 40px 35px); }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 35px); }
  html[dir="rtl"] .menu-open .nav { clip-path: circle(150% at 40px 35px); }
  .nav__link { font-size: 26px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .3s; }
  .menu-open .nav__link { opacity: 1; transform: none; }
  .menu-open .nav__link:nth-child(2) { transition-delay: .05s } .menu-open .nav__link:nth-child(3) { transition-delay: .1s }
  .menu-open .nav__link:nth-child(4) { transition-delay: .15s } .menu-open .nav__link:nth-child(5) { transition-delay: .2s }
  .menu-open .nav__link:nth-child(6) { transition-delay: .25s }
  .menu-open { overflow: hidden; }
  .menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }

  .about__grid, .projects__head, .contact__grid { grid-template-columns: 1fr; }
  .about__panel { width: 90%; }
  .featured { grid-template-columns: 1fr; }
  .featured { grid-auto-rows: clamp(240px, 60vw, 420px); }
  .process { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .process__line { display: none; }
  .process__step::before { top: -22px; }
  .clients__media { position: relative; width: 100%; height: 280px; margin-top: calc(-1 * clamp(80px, 11vw, 140px)); margin-bottom: 60px; }
  .clients__tri { display: none; }
  .clients__inner { padding-inline-start: 0; }
  .closing__veil, html[dir="rtl"] .closing__veil { background: rgba(232,195,126,.86); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__text small { display: none; }
  .brand__mark { width: 44px; height: 30px; }
  .hero__title { font-size: clamp(40px, 12vw, 60px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .values__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 18px; padding: 26px 22px 34px; }
  .svc__num { grid-column: 1 / -1; margin-bottom: 14px; }
  .svc__icon { margin: 0; }
  .svc__line { inset-inline-start: 22px; bottom: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .pillars { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .pillars b { font-size: 18px; }
  .sectors { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 80px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__prev { inset-inline-start: calc(50% - 64px); }
  .lightbox__next { inset-inline-end: calc(50% - 64px); }
  .quote-band__box { clip-path: none !important; }
  .about__photo { margin-inline-start: 8%; }
  .map { height: 300px; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; inset-inline-end: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], .gitem { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-split] .w > span { transform: none !important; }
}
