/* ================= X — black / fire / champagne ================= */
@font-face { font-family: "Bebas"; src: url("bebas.woff") format("woff"); font-display: swap; }
:root, :root[data-theme="dark"] {
  --bk: #050505; --bk2: #0c0c0c; --bk3: #141414;
  --o: #ff6a1a; --o2: #ff9a3c; --champ: #d9b26f; --cream: #f3ece0; --mute: rgba(243,236,224,.56); --hair: rgba(243,236,224,.12);
  --fire: linear-gradient(100deg, #ff5a0a 0%, #ff8a2a 45%, #e9b46a 100%);
  --bg: #050505; --white: #111; --line: #232323; --ink: #f3ece0; --ink-2: #c9c1b4; --ink-3: #8e877c; --title: #fff;
  --navy: #1a1a1a; --navy-2: #0c0c0c; --navy-3: #222; --navy-soft: #161616; --gold: #ff8a2a; --gold-2: #ff8a2a; --gold-3: #e9b46a; --gold-soft: rgba(255,106,26,.12);
  --grad-gold: var(--fire); --grad: linear-gradient(135deg, #1c1c1c, #0a0a0a);
  --ar: "Alexandria", "Plex Arabic", sans-serif; --ease: cubic-bezier(.2,.75,.15,1);
  color-scheme: dark;
}
html { scroll-behavior: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body.x { background: var(--bk); color: var(--cream); overflow-x: hidden; }
body.x ::selection { background: var(--o); color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (pointer: fine) { body.x, body.x a, body.x button { cursor: none; } }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
main, .xfoot, .xbar { position: relative; z-index: 2; }
.grain { position: fixed; inset: -50%; z-index: 95; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} }

/* loader */
.loader-x { position: fixed; inset: 0; z-index: 300; background: var(--bk); display: grid; place-content: center; justify-items: center; gap: 14px; transition: clip-path 1.1s cubic-bezier(.8,0,.15,1); clip-path: inset(0 0 0 0); }
.loader-x.out { clip-path: inset(0 0 100% 0); }
.lx-mark { font-family: "Bebas", sans-serif; font-size: clamp(5rem, 22vw, 11rem); line-height: .85; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; animation: lxp 1.6s ease-in-out infinite alternate; }
@keyframes lxp { to { letter-spacing: .12em; filter: drop-shadow(0 0 30px rgba(255,106,26,.5)); } }
.lx-num { font-family: "Bebas", sans-serif; font-size: 1.6rem; color: var(--cream); direction: ltr; letter-spacing: .1em; }
.lx-bar { width: min(260px, 60vw); height: 2px; background: var(--hair); overflow: hidden; }
.lx-bar i { display: block; height: 100%; width: 0; background: var(--fire); transition: width .2s; }
.loader-x small { color: var(--mute); letter-spacing: .3em; font-size: .62rem; direction: ltr; }

/* cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
@media (pointer: fine) { .cursor { display: block; } }
.cursor i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--o); }
.cursor span { position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 1px solid rgba(243,236,224,.55); display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: #000; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s; }
.cursor.big span { width: 96px; height: 96px; margin: -48px; background: var(--fire); border-color: transparent; }
.cursor.big i { opacity: 0; }

/* top bar */
.xbar { position: fixed !important; inset-inline: 0; top: 0; z-index: 100 !important; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); mix-blend-mode: difference; color: #fff; }
.xbrand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--ar); font-weight: 800; }
.xbrand b { font-family: "Bebas", sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: .04em; }
.xnav { display: none; gap: 26px; }
.xnav a { color: #fff; font-family: var(--ar); font-weight: 600; font-size: .92rem; position: relative; }
.xnav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.xnav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .xnav { display: flex; } }
.xlang { color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.xprog { position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 0; z-index: 101; background: var(--fire); }

/* shared */
.xw { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 64px); }
.eyebrow-x { display: flex; align-items: baseline; gap: 12px; margin-bottom: clamp(24px, 4vw, 44px); font-family: var(--ar); }
.eyebrow-x em { font-style: normal; font-family: "Bebas", sans-serif; font-size: 1.6rem; color: var(--o); direction: ltr; }
.eyebrow-x span { font-weight: 800; font-size: 1.05rem; color: var(--cream); }
.eyebrow-x small { font-weight: 700; letter-spacing: .3em; font-size: .66rem; color: var(--champ); direction: ltr; }
.eyebrow-x::after { content: ""; flex: 1; height: 1px; background: var(--hair); align-self: center; }
.big { font-family: var(--ar); font-weight: 900; font-size: clamp(2.2rem, 6.4vw, 5.4rem); line-height: 1.12; color: var(--cream); }
.rx { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.rx > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 40ms); }
.in .rx > span, .rx.in > span { transform: none; }

/* hero */
.xhero { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; padding: 80px clamp(18px, 5vw, 64px) 28px; }
.xh-top { display: flex; justify-content: space-between; font-family: "Bebas", sans-serif; letter-spacing: .2em; font-size: .95rem; color: var(--mute); direction: ltr; }
.xh-top span:last-child { font-family: var(--ar); letter-spacing: 0; font-size: .8rem; }
.xh-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.xh-ar { display: grid; gap: 6px; max-width: 520px; }
.xh-ar b { font-family: var(--ar); font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.8rem); line-height: 1.2; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xh-ar span { color: var(--cream); font-size: clamp(.95rem, 2.6vw, 1.15rem); font-weight: 500; }
.xh-scroll { display: grid; justify-items: center; gap: 8px; color: var(--mute); font-size: .72rem; letter-spacing: .2em; }
.xh-scroll i { width: 1px; height: 64px; background: linear-gradient(var(--o), transparent); position: relative; overflow: hidden; }
.xh-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.xh-ar, .xh-scroll, .xh-top { opacity: 0; transform: translateY(20px); transition: opacity 1s 1.2s, transform 1.2s 1.2s var(--ease); }
body.ready .xh-ar, body.ready .xh-scroll, body.ready .xh-top { opacity: 1; transform: none; }
.nogl-name { display: none; }
body.nogl .nogl-name { display: block; }

/* about: scroll-lit statement */
.xabout { padding: 14vh 0 6vh; }
.lit { font-family: var(--ar); font-weight: 800; font-size: clamp(1.35rem, 3vw, 2.5rem); line-height: 1.7; max-width: 1100px; }
html[lang="en"] .lit { line-height: 1.45; }
@media (min-width: 900px) { .xabout .xw { padding-inline-start: clamp(18px, 5vw, 64px); padding-inline-end: 22vw; } }
.lit .w { color: rgba(243,236,224,.14); transition: color .5s; }
.lit .w.on { color: var(--cream); }
.lit .w.hot { color: var(--o2); }

/* numbers */
.xnums { padding: 6vh 0 12vh; }
.xnums .nums { max-width: 1100px; margin-inline: auto; }
.num { text-align: center; }
.num b { text-align: center !important; }
.num small { margin-inline: auto; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px) 20px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(4, 1fr); } }
.num { border-top: 1px solid var(--hair); padding-top: 18px; }
.num b { display: block; font-family: "Bebas", sans-serif; font-weight: 400; font-size: clamp(3.6rem, 13vw, 8.6rem); line-height: .9; direction: ltr; text-align: start; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="rtl"] .num b { text-align: right; }
.num small { display: block; margin-top: 10px; color: var(--mute); font-size: .9rem; line-height: 1.6; max-width: 22ch; }

/* work: stacked rows */
.xwork { padding: 14vh 0 8vh; }
.wrows { display: grid; gap: clamp(26px, 5vw, 64px); margin-top: clamp(30px, 5vw, 60px); }
.wrow { display: grid; gap: 18px; color: var(--cream); align-items: center; opacity: 0; transform: translateX(-80px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
html[dir="ltr"] .wrow { transform: translateX(80px); }
.wrow.in { opacity: 1; transform: none; }
@media (min-width: 900px) { .wrow { grid-template-columns: 1.1fr 1fr; gap: 56px; } .wrow:nth-child(even) .wr-img { order: 2; } }
.wr-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #111; border: 1px solid var(--hair); }
.wr-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.35); }
.wr-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,106,26,.25), transparent 50%); opacity: 0; transition: opacity .6s; }
.wrow:hover .wr-img img { transform: scale(1.1); filter: none; }
.wrow:hover .wr-img::after { opacity: 1; }
.wr-txt { display: grid; gap: 12px; }
.wr-meta { display: flex; align-items: baseline; gap: 14px; }
.wr-meta em { font-style: normal; font-family: "Bebas", sans-serif; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--o); direction: ltr; }
.wr-meta small { color: var(--champ); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.wr-txt > b { font-family: var(--ar); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.3; }
.wr-p { color: var(--ink-2); font-size: clamp(.98rem, 1.6vw, 1.1rem); line-height: 1.9; max-width: 52ch; }
.wr-go { display: inline-flex; align-items: center; gap: 12px; width: max-content; margin-top: 6px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(243,236,224,.3); font-weight: 800; font-size: .9rem; transition: background .4s, color .4s, border-color .4s, gap .4s var(--ease); }
.wr-go i { width: 18px; height: 1.5px; background: currentColor; position: relative; }
.wr-go i::after { content: ""; position: absolute; left: 0; top: -4px; width: 8px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
html[dir="ltr"] .wr-go i::after { left: auto; right: 0; transform: rotate(-135deg); }
.wrow:hover .wr-go { background: var(--fire); color: #000; border-color: transparent; gap: 18px; }

/* experience rows */
.xexp { padding: 18vh 0 10vh; }
.xrows { border-bottom: 1px solid var(--hair); }
.xrow { border-top: 1px solid var(--hair); position: relative; }
.xr-head { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: clamp(18px, 3vw, 30px) 0; text-align: start; color: var(--cream); overflow: hidden; }
@media (min-width: 900px) { .xr-head { grid-template-columns: 210px 1fr auto; } }
.xr-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,106,26,.16), rgba(217,178,111,.05)); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
html[dir="ltr"] .xr-head::before { transform-origin: left; }
.xrow:hover .xr-head::before, .xrow.open .xr-head::before { transform: scaleX(1); }
.xr-date { color: var(--champ); font-size: .82rem; font-weight: 700; grid-column: 1 / -1; }
@media (min-width: 900px) { .xr-date { grid-column: auto; } }
.xr-main b { font-family: var(--ar); font-weight: 800; font-size: clamp(1.15rem, 3.2vw, 2rem); line-height: 1.35; transition: transform .6s var(--ease); display: inline-block; }
.xrow:hover .xr-main b { transform: translateX(-12px); }
html[dir="ltr"] .xrow:hover .xr-main b { transform: translateX(12px); }
.xr-main small { display: block; color: var(--mute); font-size: .9rem; margin-top: 4px; }
.xr-main .now { font-style: normal; font-size: .7rem; font-weight: 800; color: #000; background: var(--fire); padding: 2px 9px; border-radius: 999px; margin-inline-start: 10px; vertical-align: middle; }
.xr-plus { width: 42px; height: 42px; border: 1px solid var(--hair); border-radius: 50%; position: relative; transition: transform .6s var(--ease), background .4s; }
.xr-plus::before, .xr-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px -7px; background: var(--cream); }
.xr-plus::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.xrow.open .xr-plus { background: var(--o); border-color: var(--o); transform: rotate(180deg); }
.xrow.open .xr-plus::after { transform: rotate(0); }
.xr-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.xr-body > div { overflow: hidden; }
.xrow.open .xr-body { grid-template-rows: 1fr; }
.xr-body ul { list-style: none; display: grid; gap: 10px; padding: 0 0 26px; max-width: 760px; }
@media (min-width: 900px) { .xr-body ul { margin-inline-start: 228px; } }
.xr-body li { position: relative; padding-inline-start: 22px; color: var(--ink-2); line-height: 1.8; }
.xr-body li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 10px; height: 1.5px; background: var(--o); }

/* archive */
.xarch { padding: 12vh 0; }
.arows { border-bottom: 1px solid var(--hair); }
.arow { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 22px; padding: clamp(22px, 3.6vw, 40px) 0; border-top: 1px solid var(--hair); color: var(--cream); }
.arow em { font-style: normal; font-family: "Bebas", sans-serif; font-size: 1.4rem; color: var(--o); direction: ltr; }
.ar-t b { display: block; font-family: var(--ar); font-weight: 900; font-size: clamp(2rem, 7.4vw, 6rem); line-height: 1.05; transition: transform .8s var(--ease), color .4s; }
.ar-t small { display: block; margin-top: 6px; font-weight: 700; letter-spacing: .3em; font-size: .64rem; color: var(--champ); direction: ltr; text-align: start; }
html[dir="rtl"] .ar-t small { text-align: right; }
.ar-s { grid-column: 2 / 3; color: var(--mute); font-size: .9rem; }
@media (min-width: 900px) { .arow { grid-template-columns: 70px 1fr 280px auto; } .ar-s { grid-column: auto; } }
.ar-go { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--hair); position: relative; transition: background .4s, transform .6s var(--ease); grid-row: 1; grid-column: 3; }
@media (min-width: 900px) { .ar-go { grid-column: 4; } }
.ar-go::after { content: "↖"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.2rem; }
html[dir="ltr"] .ar-go::after { content: "↗"; }
.arow:hover .ar-t b { transform: translateX(-18px); background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="ltr"] .arow:hover .ar-t b { transform: translateX(18px); }
.arow:hover .ar-go { background: var(--o); border-color: var(--o); transform: rotate(-45deg); }
.hover-img { position: fixed; left: 0; top: 0; z-index: 5; width: 300px; aspect-ratio: 4/3; pointer-events: none; border-radius: 16px; overflow: hidden; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease); display: none; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
@media (pointer: fine) { .hover-img { display: block; } }
.hover-img.on { opacity: 1; transform: scale(1); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* skills marquee */
.xskills { padding: 10vh 0 14vh; overflow: hidden; }
.skm { overflow: hidden; padding: 8px 0; transform: rotate(-3deg); margin: 0 -4vw; }
.mq + .skm { transform: rotate(2deg); margin-top: 6px; }
.skm-t { display: flex; align-items: center; gap: 26px; width: max-content; animation: skm 40s linear infinite; direction: ltr; }
.skm.rev .skm-t { animation-direction: reverse; }
.skm-t span { font-family: var(--ar); font-weight: 900; font-size: clamp(2rem, 6vw, 4.6rem); white-space: nowrap; color: var(--cream); direction: rtl; }
html[lang="en"] .skm-t span { direction: ltr; }
.skm-t span:nth-of-type(3n+2) { color: transparent; -webkit-text-stroke: 1.2px rgba(243,236,224,.7); }
.skm-t span:nth-of-type(3n) { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skm-t i { font-style: normal; color: var(--o); font-size: 1.6rem; }
@keyframes skm { to { transform: translateX(-50%); } }

/* contact */
.xcontact { padding: 16vh 0 10vh; min-height: 100svh; }
.huge { font-family: var(--ar); font-weight: 900; font-size: clamp(3rem, 11vw, 9.4rem); line-height: 1.08; margin-bottom: 50px; }
.huge .rx:nth-of-type(n+2) > span, .huge em { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xcontact .c-list { display: grid; gap: 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 900px) { .xcontact .c-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.xcontact .c-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--hair); border-radius: 0; background: none !important; border-inline: 0; border-bottom: 0; color: var(--cream); transition: padding .5s var(--ease); }
.xcontact a.c-item:hover { padding-inline-start: 14px; }
.xcontact .c-item .ci { width: 46px; height: 46px; border-radius: 50%; background: var(--bk3); display: grid; place-items: center; color: var(--o); flex: none; }
.xcontact .c-item.wa .ci { background: #25d366; color: #fff; }
.xcontact .c-item small { color: var(--mute); font-size: .78rem; display: block; }
.xcontact .c-item b { font-size: 1.05rem; color: var(--cream); }
.xcontact .cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; max-width: 640px; }
.xcontact .cv-row a { height: 60px; border-radius: 999px; background: var(--fire); color: #000; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.xcontact .cv-row a.en { background: transparent; color: var(--cream); border: 1px solid rgba(243,236,224,.4); }
.xfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 28px clamp(18px, 5vw, 64px) 40px; border-top: 1px solid var(--hair); color: var(--mute); font-size: .82rem; }
.xfoot a { color: var(--cream); }
.fab { background: #25d366 !important; z-index: 90 !important; }

/* case overlay */
.case { position: fixed; inset: 0; z-index: 150; background: #090909; visibility: hidden; }
.case.open { visibility: visible; }
.wipe { position: fixed; inset: 0; z-index: 170; pointer-events: none; }
.wipe i { position: absolute; inset: 0; transform: translateX(105%); }
html[dir="ltr"] .wipe i { transform: translateX(-105%); }
.wipe i:first-child { background: var(--fire); }
.wipe i:last-child { background: #0b0b0b; }
.case-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.case-x { position: sticky; top: 16px; z-index: 5; margin: 16px clamp(16px, 4vw, 40px) 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--fire); color: #000; font-weight: 800; float: left; }
html[dir="ltr"] .case-x { float: right; }
.case-x i { font-style: normal; }
.case-body { clear: both; padding-bottom: 60px; }
.case-wrap { max-width: 1180px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 40px); }
.case .sec { background: transparent !important; padding: 40px 0; }
.case .sec.navy::before, .case .blobs { display: none !important; }
.case .head .eyebrow { color: var(--o); }
.case .sec .head .title { font-family: var(--ar) !important; font-weight: 900 !important; font-size: clamp(2rem, 6vw, 4rem) !important; line-height: 1.2 !important; color: var(--cream) !important; transform: none !important; }
.case .sec .head .title .w { display: inline; }
.case .rv { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
.case .work { background: #111; border: 1px solid var(--line); }
.case .work.full { display: block !important; }
.case-body > * { animation: caseIn 1s .5s var(--ease) both; }
@keyframes caseIn { from { opacity: 0; transform: translateY(60px); } }
/* lightbox above case */
.lb { z-index: 500 !important; }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } .xabout { height: auto; } .xabout .xw { position: static; } .lit .w { color: var(--cream); } }

/* hero photo */
.xh-photo { position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; margin: 0 auto; height: min(62svh, 120vw); width: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); filter: drop-shadow(0 0 60px rgba(0,0,0,.7));
  opacity: 0; translate: 0 60px; transition: opacity 1.4s 1.3s, translate 1.6s 1.3s var(--ease); }
body.ready .xh-photo { opacity: 1; translate: 0 0; }
.xh-bottom { position: relative; z-index: 2; }
.xh-ar { text-shadow: 0 2px 20px rgba(0,0,0,.8); }
@media (max-width: 899px) { .xh-bottom { flex-direction: column; align-items: flex-start; } .xh-scroll { display: none; } .xh-ar b { font-size: 1.5rem; } }

/* ===== v3.2: crimson & ivory palette (matches the shemagh) + desktop layouts ===== */
:root, :root[data-theme="dark"] {
  --o: #d4253a; --o2: #ff5a66; --champ: #e9dcc6; --cream: #f5efe6;
  --fire: linear-gradient(100deg, #a50f24 0%, #d4253a 40%, #f0b8ae 100%);
  --gold: #e0394b; --gold-2: #e0394b; --gold-3: #f0b8ae; --gold-soft: rgba(212,37,58,.14);
}
body.x ::selection { background: var(--o); color: #fff; }
.cursor.big span { color: #fff; }
.xcontact .cv-row a { color: #fff; }
.case-x { color: #fff; }
.wrow:hover .wr-go { color: #fff; }
.xr-main .now { color: #fff; }
.xw { max-width: 1440px; }

/* about: statement + numbers side by side */
.about-grid { display: grid; gap: 50px; align-items: center; }
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 1.35fr 1fr; gap: 70px; }
  .xabout .xw { padding-inline-end: clamp(18px, 5vw, 64px) !important; }
  .about-grid .lit { font-size: clamp(1.5rem, 2.2vw, 2.4rem); max-width: none; }
}
.about-grid .nums { grid-template-columns: 1fr 1fr !important; gap: 34px 24px; }
.about-grid .num { text-align: start; border-top: 1px solid var(--hair); }
.about-grid .num b { text-align: start !important; font-size: clamp(3.2rem, 6vw, 6rem); }
html[dir="rtl"] .about-grid .num b { text-align: right !important; }
.about-grid .num small { margin-inline: 0; }

/* works head */
.whead { display: grid; gap: 20px; align-items: end; }
@media (min-width: 1000px) { .whead { grid-template-columns: 1.2fr 1fr; gap: 70px; } }
.wintro { color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.9; max-width: 46ch; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }

/* skills grid */
.xskills { padding: 12vh 0 8vh; }
.skgrid { display: grid; gap: 0; border-top: 1px solid var(--hair); }
@media (min-width: 700px) { .skgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .skgrid { grid-template-columns: repeat(3, 1fr); } }
.skg { position: relative; padding: 30px 24px 34px; border-bottom: 1px solid var(--hair); border-inline-start: 1px solid var(--hair); overflow: hidden; transition: background .5s; }
.skg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 0% 0%, rgba(212,37,58,.18), transparent 70%); opacity: 0; transition: opacity .6s; }
.skg:hover::before { opacity: 1; }
.skg em { position: relative; font-style: normal; font-family: "Bebas", sans-serif; font-size: 1.6rem; color: transparent; -webkit-text-stroke: 1px var(--o); direction: ltr; display: block; }
.skg h3 { position: relative; font-family: var(--ar); font-weight: 900; font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--cream); margin: 8px 0 16px; }
.skc { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.skc span { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(245,239,230,.18); color: var(--ink-2); font-size: .88rem; transition: border-color .3s, color .3s, background .3s; }
.skg:hover .skc span { border-color: rgba(212,37,58,.5); color: var(--cream); }
.sk-tape { position: relative; z-index: 2; padding: 6vh 0 0; overflow: hidden; }
.sk-tape .skm { transform: rotate(-2deg); background: var(--o); padding: 10px 0; margin: 0 -3vw; }
.sk-tape .skm-t { animation-duration: 60s; gap: 18px; }
.sk-tape .skm-t span, html[lang="en"] .sk-tape .skm-t span { font-size: clamp(1rem, 2.2vw, 1.5rem); color: #fff !important; -webkit-text-stroke: 0 !important; background: none !important; -webkit-background-clip: border-box !important; }
.sk-tape .skm-t i { color: #fff; font-size: 1rem; }
.whead .big { font-size: clamp(2.2rem, 4.6vw, 4.6rem); }

/* ===== v3.3: full-width layout, rich cases, expanding picture ===== */
.xw { max-width: none !important; padding-inline: clamp(18px, 6vw, 120px) !important; }
@media (min-width: 1000px) {
  .lit, .about-grid .lit { font-size: clamp(1.6rem, 2.1vw, 3rem); }
  .ar-t b { font-size: clamp(3rem, 6vw, 7.5rem); }
  .wrow { grid-template-columns: 1.25fr 1fr; gap: 6vw; }
  .wr-txt > b { font-size: clamp(2rem, 2.8vw, 3.4rem); }
  .wr-p { font-size: clamp(1.05rem, 1.15vw, 1.35rem); max-width: 60ch; }
  .arow { grid-template-columns: 90px 1fr 30vw auto; }
  .ar-s { font-size: 1.05rem; }
}
.fly { position: fixed; z-index: 160; overflow: hidden; pointer-events: none; box-shadow: 0 40px 120px rgba(0,0,0,.8); }
.fly img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
body.dim main { transition: opacity .6s, filter .6s; opacity: .25; filter: blur(4px); }
.case.open .case-body > *:not(.ch) { opacity: 0; transform: translateY(70px); }
.case.shown .case-body > *:not(.ch) { opacity: 1; transform: none; transition: opacity 1s .15s, transform 1.2s .15s var(--ease); }
.case-body > * { animation: none !important; }
.case-x { position: fixed !important; top: 18px; inset-inline-end: 20px; margin: 0 !important; float: none !important; }
html[dir="rtl"] .case-x { inset-inline-end: auto; left: 20px; }
.ch { position: relative; }
.ch-img { height: 78vh; overflow: hidden; position: relative; }
@media (max-width: 899px) { .ch-img { height: 55vh; } }
.ch-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ch-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(9,9,9,.75) 75%, #090909); }
.ch-txt { position: relative; margin-top: -26vh; padding: 0 clamp(18px, 6vw, 120px) 40px; }
.ch-meta { display: flex; gap: 14px; align-items: baseline; }
.ch-meta em { font-style: normal; font-family: "Bebas", sans-serif; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--o2); direction: ltr; }
.ch-meta small { color: var(--champ); font-weight: 700; letter-spacing: .06em; }
.ch h1 { font-family: var(--ar); font-weight: 900; font-size: clamp(2.4rem, 6.4vw, 7rem); line-height: 1.08; color: #fff; max-width: 18ch; margin-top: 10px; }
.ch-p { margin-top: 18px; font-size: clamp(1.1rem, 1.6vw, 1.6rem); line-height: 1.8; color: var(--ink-2); max-width: 54ch; }
.case.shown .ch h1, .case.shown .ch-p, .case.shown .ch-meta { animation: rise 1s var(--ease) both; }
.case.shown .ch-p { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.ch-down { display: block; width: 1px; height: 70px; margin-top: 30px; background: linear-gradient(var(--o), transparent); }
/* bigger, roomier case content */
.case-wrap { max-width: none; padding-inline: clamp(18px, 6vw, 120px); }
.case .wrap { max-width: none !important; padding-inline: clamp(18px, 6vw, 120px) !important; }
@media (min-width: 1100px) { .case-body > div[data-case] { zoom: 1.18; } }
.case .work { border: 0; background: transparent; }
.case .work .shots img, .case .org-strip img, .case .tile img { border-radius: 14px; }
.case .org-strip { gap: 14px; }

/* reel on the main page */
.xreel { padding: 10vh 0 4vh; overflow: hidden; }
.xreel .head { text-align: center; }
.xreel .title { font-family: var(--ar) !important; font-weight: 900 !important; font-size: clamp(2.4rem, 6vw, 5.6rem) !important; color: var(--cream) !important; transform: none !important; }
.xreel .title .w { display: inline; }
.xreel .reel-cyc { color: var(--o2); font-family: var(--ar); font-weight: 800; text-align: center; min-height: 1.4em; }
.xreel .reel { -webkit-mask-image: none; mask-image: none; }
.xreel .reel .rc { width: clamp(200px, 18vw, 320px); height: clamp(260px, 23vw, 410px); background: #111; }
.xreel .reel.rev .rc { width: clamp(260px, 22vw, 380px); height: clamp(180px, 15vw, 260px); }
.xreel .rc .rl { background: rgba(9,9,9,.75); }

/* ===== v3.4 ===== */
.case.open .case-body > *:not(.ch) { opacity: 1 !important; transform: none !important; }
.case.shown .ch h1, .case.shown .ch-p, .case.shown .ch-meta { animation-delay: .35s; }
.case.shown .ch-p { animation-delay: .45s; }
.xctl { display: flex; gap: 8px; }
#themeBtn { padding: 6px 11px; font-size: .95rem; line-height: 1; }
.huge { margin-bottom: 18px; }
.huge-sub { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.8; max-width: 56ch; margin-bottom: 50px; }

/* ---- LIGHT ---- */
:root[data-theme="light"] {
  --bk: #f6f2ec; --bk2: #efe9e1; --bk3: #e9e1d6;
  --cream: #16110f; --mute: rgba(22,17,15,.58); --hair: rgba(22,17,15,.12); --champ: #8a1424;
  --o: #c81d33; --o2: #c81d33;
  --bg: #f6f2ec; --white: #ffffff; --line: #e4ddd2; --ink: #16110f; --ink-2: #4a413b; --ink-3: #7a716a; --title: #111;
  --navy: #1b1b1b; --navy-2: #f1ebe2; --navy-3: #e6ded3; --navy-soft: #f1ebe2; --gold-soft: rgba(200,29,51,.08);
  color-scheme: light;
}
:root[data-theme="light"] body.x { background: var(--bk); }
:root[data-theme="light"] .grain { opacity: .04; }
:root[data-theme="light"] .loader-x { background: var(--bk); }
:root[data-theme="light"] .lit .w { color: rgba(22,17,15,.13); }
:root[data-theme="light"] .lit .w.on { color: var(--cream); }
:root[data-theme="light"] .cursor span { border-color: rgba(22,17,15,.45); }
:root[data-theme="light"] .xh-ar { text-shadow: none; }
:root[data-theme="light"] .xh-photo { filter: drop-shadow(0 20px 40px rgba(80,20,20,.18)); }
:root[data-theme="light"] .skc span { border-color: rgba(22,17,15,.16); }
:root[data-theme="light"] .wr-img, :root[data-theme="light"] .wc-img { background: #e9e1d6; }
:root[data-theme="light"] .case { background: var(--bk); }
:root[data-theme="light"] .ch-img::after { background: linear-gradient(transparent 35%, rgba(246,242,236,.8) 75%, var(--bk)); }
:root[data-theme="light"] .ch h1 { color: var(--cream); }
:root[data-theme="light"] .case .work { background: transparent; }
:root[data-theme="light"] .case .sec .head .title { color: var(--cream) !important; }
:root[data-theme="light"] .xcontact .c-item .ci { background: #ece4d9; }
:root[data-theme="light"] .xcontact .cv-row a.en { color: var(--cream); border-color: rgba(22,17,15,.3); }
:root[data-theme="light"] .xreel .reel .rc { background: #e9e1d6; }
:root[data-theme="light"] .hover-img { box-shadow: 0 30px 60px -20px rgba(80,20,20,.35); }
:root[data-theme="light"] .mq-t span:nth-of-type(3n+2), :root[data-theme="light"] .skc span { -webkit-text-stroke-color: rgba(22,17,15,.6); }
:root[data-theme="light"] .lb { --cream: #f5efe6; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ===== v3.5 ===== */
.skm { direction: ltr; }
.ch-img { display: none !important; }
.ch-txt { margin-top: 0; padding-top: clamp(110px, 16vh, 180px); padding-bottom: 50px; border-bottom: 1px solid var(--hair); }
.ch h1 { font-size: clamp(3rem, 9vw, 10rem); max-width: none; }
.ch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 85% 0%, rgba(212,37,58,.22), transparent 70%); }
.ch { isolation: isolate; }
.case.shown .ch h1 { animation: chIn 1.1s .25s var(--ease) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(60px) scale(.96); letter-spacing: .04em; } }
