/* دار — RTL */
:root {
  --bg: #0f2a24; --bg-2: #13342d; --bg-3: #0b201b; --ink: #f5efe3; --mute: #a8b3a9; --gold: #c9a45c; --gold-2: #e2c48a; --line: rgba(245, 239, 227, .14);
  --disp: 'El Messiri', serif; --sans: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --pad: clamp(18px, 4vw, 64px); --pt: #0b201b; --pt-ink: var(--gold); --cursor: #c9a45c; --cursor-bg: #c9a45c; --cursor-ink: #0f2a24;
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.8; }
.pt__panel:nth-child(even) { background: #0d251f; }
.pt-dar { font-family: var(--disp); font-size: clamp(3rem, 8vw, 6rem); }
.wrap { padding-inline: var(--pad); }
.gold { color: var(--gold); }
.eyebrow { color: var(--gold); font-size: 15px; margin-bottom: 1.2rem; }
.h-hero { font-family: var(--disp); font-weight: 600; font-size: clamp(2.8rem, 8vw, 7.6rem); line-height: 1.15; }
.h-xl { font-family: var(--disp); font-weight: 600; font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: 1.2; }
.btn-gold { display: inline-flex; align-items: center; gap: .6rem; background: var(--gold); color: var(--bg); padding: .7rem 1.4rem; border-radius: 99px; font-weight: 600; font-size: 15px; transition: background .4s, transform .4s; }
.btn-gold:hover { background: var(--gold-2); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 17px; }
.btn-line { display: inline-block; border-bottom: 1px solid var(--gold); padding-bottom: .3rem; color: var(--gold); }

/* header */
.hd { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; gap: 2rem; padding: 16px var(--pad); transition: transform .6s cubic-bezier(.7, 0, .2, 1), background .4s; }
.hd.is-scrolled { background: rgba(15, 42, 36, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__logo { display: flex; align-items: baseline; gap: .6rem; }
.hd__logo span { font-family: var(--disp); font-size: 2rem; color: var(--gold); line-height: 1; }
.hd__logo small { font-size: 12px; color: var(--mute); }
.hd__nav { display: flex; gap: 2rem; margin-inline-start: auto; font-size: 15px; }
.hd__nav a { position: relative; }
.hd__nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.hd__nav a:hover::after { transform: scaleX(1); transform-origin: right; }
.hd__burger { display: none; width: 44px; height: 44px; position: relative; margin-inline-start: auto; }
.hd__burger span { position: absolute; inset-inline: 10px; height: 1.5px; background: var(--gold); transition: transform .5s; }
.hd__burger span:first-child { top: 18px; } .hd__burger span:last-child { top: 25px; }
.menu-open .hd__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .hd__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-open .hd { transform: none !important; background: transparent; backdrop-filter: none; }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--bg-3); display: flex; flex-direction: column; justify-content: center; padding: var(--pad); overflow: hidden; }
.menu a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--disp); font-size: clamp(2.4rem, 11vw, 4.4rem); line-height: 1.35; }
.menu a small { font-family: var(--sans); font-size: 13px; color: var(--gold); }
.menu__pattern { position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(circle at 50% 50%, transparent 38%, var(--gold) 39%, var(--gold) 40%, transparent 41%), radial-gradient(circle at 0 0, transparent 38%, var(--gold) 39%, var(--gold) 40%, transparent 41%); background-size: 80px 80px; }
.menu__foot { position: absolute; bottom: var(--pad); font-size: 14px; color: var(--mute); }

/* hero: name with floating images */
.hero { position: relative; }
.hero__pin { position: relative; height: 100svh; min-height: 600px; overflow: hidden; display: grid; place-items: center; }
.hero__center { position: relative; z-index: 3; text-align: center; pointer-events: none; }
.hero__kicker { color: var(--gold); font-size: 15px; }
.hero__word { font-family: var(--disp); font-weight: 700; font-size: clamp(9rem, 34vw, 30rem); line-height: 1; color: var(--gold); text-shadow: 0 20px 80px rgba(0, 0, 0, .35); }
.hero__tag { font-family: var(--disp); font-size: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(1.4rem, 5vw, 4.4rem); }
.hero__floats { position: absolute; inset: 0; z-index: 2; }
.float { position: absolute; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); will-change: transform; }
.float--1 { width: clamp(120px, 15vw, 240px); aspect-ratio: 3/4; top: 64%; right: 6%; }
.float--2 { width: clamp(110px, 12vw, 200px); aspect-ratio: 1; top: 82%; right: 38%; }
.float--3 { width: clamp(120px, 14vw, 230px); aspect-ratio: 4/5; top: 70%; left: 8%; }
.float--4 { width: clamp(140px, 17vw, 280px); aspect-ratio: 4/3; top: 98%; left: 34%; }
.float--5 { width: clamp(110px, 12vw, 190px); aspect-ratio: 3/4; top: 110%; right: 18%; }
.float--6 { width: clamp(120px, 13vw, 210px); aspect-ratio: 1; top: 124%; left: 12%; }
.float--7 { width: clamp(130px, 16vw, 260px); aspect-ratio: 3/4; top: 138%; right: 52%; }
.float--8 { width: clamp(110px, 12vw, 200px); aspect-ratio: 4/5; top: 150%; right: 4%; }
.hero__scroll { position: absolute; bottom: 24px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: 13px; color: var(--mute); z-index: 3; }
.hero__scroll i { width: 22px; height: 36px; border: 1.5px solid var(--gold); border-radius: 12px; position: relative; }
.hero__scroll i::after { content: ''; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: dar-wheel 1.8s ease-in-out infinite; }
@keyframes dar-wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* intro + stats */
.intro { padding-block: clamp(90px, 13vw, 190px) clamp(40px, 6vw, 80px); }
.intro__text { font-family: var(--disp); font-size: clamp(1.8rem, 3.8vw, 3.6rem); line-height: 1.5; max-width: 1100px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-bottom: clamp(80px, 12vw, 170px); }
.stat { background: var(--bg-2); border-radius: 16px; padding: 1.6rem; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--disp); font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1.1; color: var(--gold); }
.stat span { color: var(--mute); font-size: 15px; }

/* before / after */
.ba { padding-bottom: clamp(80px, 12vw, 170px); }
.ba__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2.4rem; }
.ba__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.ba__head > p:last-child { color: var(--mute); }
.ba__box { --pos: 50%; position: relative; aspect-ratio: 16/8; border-radius: 18px; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba__img { position: absolute; inset: 0; }
.ba__before { clip-path: inset(0 0 0 var(--pos)); }
.ba__before img { filter: grayscale(.7) brightness(.85); }
.ba__lbl { position: absolute; top: 18px; background: rgba(11, 32, 27, .7); padding: .2rem .9rem; border-radius: 99px; font-size: 14px; z-index: 2; }
.ba__lbl--b { right: 18px; } .ba__lbl--a { left: 18px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--gold); transform: translateX(-1px); z-index: 3; outline: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .3s; }
.ba__handle:focus-visible span, .ba__box:hover .ba__handle span { transform: scale(1.12); }

/* services */
.services { padding-bottom: clamp(80px, 12vw, 170px); }
.services__head { margin-bottom: 3rem; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.svc { position: relative; background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.6rem; min-height: 320px; display: flex; flex-direction: column; transform-style: preserve-3d; transition: border-color .5s; }
.svc:hover { border-color: var(--gold); }
.svc__n { position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--disp); color: var(--mute); }
.svc svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.2; margin-bottom: auto; transform: translateZ(40px); }
.svc h3 { font-family: var(--disp); font-size: 1.6rem; margin: 1.6rem 0 .4rem; transform: translateZ(30px); }
.svc p { color: var(--mute); font-size: 15px; transform: translateZ(20px); }

/* horizontal works (RTL) */
.works { height: 100svh; overflow: hidden; display: flex; align-items: center; background: var(--bg-3); }
.works__track { display: flex; gap: clamp(18px, 3vw, 44px); padding-inline: var(--pad); align-items: center; }
.works__intro { flex: 0 0 auto; width: min(78vw, 460px); }
.works__intro h2 { margin-bottom: 2rem; }
.work { flex: 0 0 auto; width: clamp(260px, 34vw, 520px); }
.work:nth-child(even) { margin-top: 10vh; }
.work__img { aspect-ratio: 4/5; border-radius: 14px; }
.work__img img { width: 124%; max-width: none; margin-right: -12%; }
.work__meta { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; padding-top: 1rem; align-items: baseline; }
.work__meta span { color: var(--gold); grid-row: span 2; font-family: var(--disp); font-size: 1.4rem; }
.work__meta h3 { font-family: var(--disp); font-size: 1.7rem; line-height: 1.2; }
.work__meta small { color: var(--mute); font-size: 14px; }

/* testimonial + band */
.testi { padding-block: clamp(90px, 13vw, 190px); text-align: center; position: relative; }
.testi__q { display: block; font-family: var(--disp); font-size: 10rem; line-height: .5; color: var(--gold); height: 70px; }
.testi__text { font-family: var(--disp); font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.6; max-width: 30ch; margin: 0 auto 1.4rem; }
.testi__by { color: var(--gold); }
.marquee-band { background: var(--gold); color: var(--bg); font-family: var(--disp); font-size: clamp(2.4rem, 7vw, 6rem); padding-block: .4rem; }
.marquee-band span { padding-inline: 2.2rem; }
.marquee-band i { font-style: normal; font-size: .5em; }
.marquee-band .marquee__track > * { display: inline-flex; align-items: center; }

/* footer */
.ft { background: var(--bg-3); }
.ft__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-block: clamp(80px, 12vw, 160px) clamp(50px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.ft__title { font-family: var(--disp); font-weight: 600; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1.2; }
.ft__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-block: 3rem; font-size: 15px; color: var(--mute); }
.ft__grid h4 { font-family: var(--disp); color: var(--gold); font-size: 1.2rem; margin: 0 0 .4rem; font-weight: 500; }
.ft__base { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

/* page heads */
.phead { padding-top: clamp(130px, 17vw, 220px); padding-bottom: clamp(40px, 6vw, 80px); }

/* projects page */
.pfilter { padding-bottom: clamp(80px, 12vw, 170px); }
.pfilter__bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.pfilter__bar button { padding: .55rem 1.3rem; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; transition: all .4s; }
.pfilter__bar button.is-active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pcard { background: var(--bg-2); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); transition: border-color .4s; display: block; }
.pcard:hover { border-color: var(--gold); }
.pcard__img { aspect-ratio: 4/3; }
.pcard__img img { transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard__body { padding: 1.2rem 1.4rem 1.4rem; }
.pcard__type { font-size: 13px; color: var(--gold); }
.pcard h3 { font-family: var(--disp); font-size: 1.7rem; line-height: 1.3; }
.pcard p { color: var(--mute); font-size: 14px; }

/* project page */
.pj-hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.pj-hero__img { position: absolute; inset: 0; }
.pj-hero__img img { height: 120%; position: absolute; inset: -10% 0 auto 0; }
.pj-hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(11, 32, 27, .9)); }
.pj-hero__txt { position: relative; padding-bottom: clamp(30px, 5vw, 60px); }
.pj-info { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 6vw, 100px); padding-block: clamp(70px, 10vw, 140px); }
.pj-facts div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .9rem 0; font-size: 15px; }
.pj-facts dt { color: var(--gold); } .pj-facts dd { margin: 0; }
.pj-lede { font-family: var(--disp); font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.55; margin-bottom: 1.6rem; }
.pj-p { color: var(--mute); max-width: 62ch; }
.pj-gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding-bottom: clamp(80px, 12vw, 170px); }
.pg { border-radius: 14px; }
.pg img { height: 120%; position: absolute; inset: -10% 0 auto 0; }
.pg--a { grid-column: 1 / 8; aspect-ratio: 4/3; }
.pg--b { grid-column: 8 / 13; aspect-ratio: 3/4; margin-top: 10vw; }
.pg--c { grid-column: 2 / 6; aspect-ratio: 3/4; }
.pg--d { grid-column: 6 / 13; aspect-ratio: 4/3; margin-top: 6vw; }
.pg--e { grid-column: 1 / -1; aspect-ratio: 21/9; }
.pj-next { position: relative; display: grid; place-items: center; height: 80svh; text-align: center; overflow: hidden; }
.pj-next__img { position: absolute; inset: 0; }
.pj-next__img::after { content: ''; position: absolute; inset: 0; background: rgba(11, 32, 27, .65); transition: background .6s; }
.pj-next:hover .pj-next__img::after { background: rgba(11, 32, 27, .4); }
.pj-next__txt { position: relative; }

/* about */
.ab { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 6vw, 100px); align-items: center; padding-bottom: clamp(80px, 12vw, 170px); }
.ab__img { aspect-ratio: 4/5; border-radius: 300px 300px 18px 18px; }
.ab__img img { height: 120%; position: absolute; inset: -10% 0 auto 0; }
.ab__txt p:last-child { color: var(--mute); margin-top: 1.6rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: clamp(80px, 12vw, 170px); }
.value { border-top: 2px solid var(--gold); padding-top: 1.4rem; }
.value span { color: var(--gold); font-family: var(--disp); }
.value h3 { font-family: var(--disp); font-size: 2.2rem; margin: .2rem 0; }
.value p { color: var(--mute); }
.team { padding-bottom: clamp(80px, 12vw, 170px); }
.team h2 { margin-bottom: 2.4rem; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.member { background: var(--bg-2); border-radius: 18px; padding: .8rem .8rem 1.2rem; border: 1px solid var(--line); }
.member__img { aspect-ratio: 1; border-radius: 12px; margin-bottom: 1rem; }
.member figcaption { display: flex; flex-direction: column; padding-inline: .4rem; }
.member strong { font-family: var(--disp); font-size: 1.4rem; }
.member span { color: var(--mute); font-size: 14px; }

/* services page */
.srows { padding-bottom: clamp(80px, 12vw, 170px); --hp-radius: 14px; }
.srow { display: grid; grid-template-columns: 60px 1.4fr 1.6fr 40px; gap: 1.4rem; align-items: center; padding: 1.8rem 0; border-top: 1px solid var(--line); transition: padding .6s cubic-bezier(.7, 0, .2, 1), color .4s; }
.srow:hover { padding-inline-start: 1.2rem; color: var(--gold); }
.srow__n { color: var(--gold); font-family: var(--disp); }
.srow__t { font-family: var(--disp); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.2; }
.srow__d { color: var(--mute); }
.srow__a { font-size: 1.6rem; transition: transform .5s; }
.srow:hover .srow__a { transform: translateX(-10px); }
.steps { padding-bottom: clamp(80px, 12vw, 170px); }
.steps h2 { margin-bottom: 2.4rem; }
.steps__list { position: relative; display: flex; flex-direction: column; gap: 1.6rem; padding-inline-start: 0; }
.steps__list::before { content: ''; position: absolute; top: 10px; bottom: 10px; right: 23px; width: 1px; background: var(--line); }
.step { position: relative; display: flex; gap: 1.6rem; align-items: flex-start; }
.step__dot { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--disp); font-size: 1.2rem; z-index: 1; }
.step h3 { font-family: var(--disp); font-size: 1.8rem; line-height: 1.3; }
.step p { color: var(--mute); }

/* contact */
.ct { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 6vw, 100px); padding-bottom: clamp(80px, 12vw, 170px); }
.ct form > label, .ct__row label { display: block; margin-bottom: 1.2rem; }
.ct__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ct span { display: block; font-size: 14px; color: var(--mute); margin-bottom: .4rem; }
.ct input:not([type="range"]), .ct select, .ct textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; outline: 0; transition: border-color .3s; }
.ct input:focus, .ct select:focus, .ct textarea:focus { border-color: var(--gold); }
.ct select option { background: var(--bg); }
.ct input[type="range"] { width: 100%; accent-color: var(--gold); }
.ct output { color: var(--gold); font-weight: 600; }
.ct__aside { display: flex; flex-direction: column; gap: 1rem; }
.ct__card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.ct__card h4 { font-family: var(--disp); color: var(--gold); font-size: 1.4rem; margin: 0 0 .3rem; }
.ct__card p { color: var(--mute); font-size: 15px; }
.form-success p { color: var(--mute); margin-top: 1rem; }

@media (max-width: 900px) {
  .hd__nav, .hd__cta { display: none; }
  .hd__burger { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ba__head { grid-template-columns: 1fr; }
  .ba__box { aspect-ratio: 4/5; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .svc { min-height: 260px; }
  .work { width: 72vw; }
  .work:nth-child(even) { margin-top: 0; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pj-info, .ab, .ct { grid-template-columns: 1fr; }
  .pg--a, .pg--b, .pg--c, .pg--d { grid-column: 1 / -1; margin-top: 0; }
  .values { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .srow { grid-template-columns: 40px 1fr 30px; }
  .srow__d { display: none; }
}
@media (max-width: 560px) {
  .services__grid, .pgrid { grid-template-columns: 1fr; }
  .ct__row { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; }
  .ft__base { flex-direction: column; }
}
