/* =========================================================
   Mohamed Elgnaine — Portfolio
   ========================================================= */
/* Thmanyah Sans — Arabic text only (unicode-range keeps Latin on Montserrat / Readex) */
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Thmanyah Sans"; src: url("../assets/fonts/thmanyahsans-Black.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  /* Brand: deep teal + sand yellow (from the logo) + coral */
  --bg: #031c20;
  --bg-2: #042328;
  --surface: #072e35;
  --line: rgba(245, 218, 137, .12);
  --line-2: rgba(245, 218, 137, .26);
  --text: #f8f1de;
  --muted: #8ea7a5;
  --accent: #f5da89;
  --accent-rgb: 245, 218, 137;
  --accent-2: #ff6f59;
  --accent-3: #0f6b72;
  --ink: #042328;
  --display: "Montserrat", "Thmanyah Sans", "Readex Pro", system-ui, sans-serif;
  --body: "Thmanyah Sans", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: clamp(14px, 1.6vw, 24px);
}
[dir="rtl"] { --display: "Thmanyah Sans", "Readex Pro", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.65; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: opacity .28s ease;
}
body.is-loading { overflow: hidden; }
body.lang-switching main, body.lang-switching .nav, body.lang-switching footer { opacity: 0; transition: opacity .28s ease; }
main, .nav, footer { transition: opacity .4s ease; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-weight: 700; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.6; font-weight: 300; }

/* Film grain */
.grain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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");
}

/* Scroll progress */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .progress i { transform-origin: right; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--gutter) + 8px) var(--gutter);
  transition: transform 1.1s var(--ease-io);
}
.preloader.done { transform: translateY(-100%); }
.pre-logo { position: absolute; left: 50%; top: 46%; translate: -50% -50%; height: clamp(120px, 24vh, 220px); aspect-ratio: 221 / 310; }
.pre-logo svg { width: 100%; height: 100%; overflow: visible; }
.pre-logo path { fill: transparent; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease-io) forwards, fillIn .5s ease 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--accent); } }
.pre-top { display: flex; justify-content: space-between; font-family: var(--display); font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 600; }
.pre-tag { color: var(--muted); font-family: "Montserrat", sans-serif; }
.pre-bottom { display: flex; align-items: flex-end; gap: 2rem; }
.pre-bar { flex: 1; height: 2px; background: var(--line); margin-bottom: 2.4vw; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.pre-count { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(5rem, 20vw, 16rem); line-height: .78; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: end; }

/* ---------- Page curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 250; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  transform: scaleY(0); transform-origin: bottom; transition: transform .65s var(--ease-io);
}
.curtain-mark { height: clamp(90px, 18vh, 170px); aspect-ratio: 221 / 310; opacity: 0; transform: scale(.85); transition: opacity .3s .25s, transform .6s var(--ease) .2s; }
.curtain-mark svg { width: 100%; height: 100%; fill: var(--ink); }
body.leaving .curtain-mark, .curtain.cover .curtain-mark { transform: none; }
body.leaving .curtain { transform: scaleY(1); }
body.leaving .curtain-mark, .curtain.cover .curtain-mark { opacity: 1; }
.curtain.cover { transform: scaleY(1); transition: none; }
.curtain.out { transform-origin: top; }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 350; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor.on .cursor-dot, .cursor.on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .45);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.cursor.hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.cursor.view .cursor-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--accent); border-color: var(--accent); }
.cursor.view .cursor-dot, .cursor.text .cursor-dot { opacity: 0; }
.cursor.text .cursor-ring { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; background: var(--accent); border-color: transparent; }
.cursor.down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor-label { font-size: .78rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s; text-transform: uppercase; letter-spacing: .08em; }
.cursor.view .cursor-label { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 1.8rem; border-radius: 999px; font-weight: 500; font-size: 1rem; line-height: 1;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s, transform .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary::before { background: var(--text); }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--ink); border-color: var(--text); }
.btn-sm { padding: .8rem 1.3rem; font-size: .92rem; }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
[data-magnetic] { transition: transform .5s var(--ease), color .45s var(--ease), border-color .45s; }
[data-magnetic].mag { transition: transform .15s linear, color .45s var(--ease), border-color .45s; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; transition: transform .6s var(--ease), background .4s, border-color .4s, opacity .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(3, 28, 32, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .75rem; font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.logo-mark { height: 42px; width: 30px; display: block; transition: transform .8s var(--ease); }
.logo-mark svg { width: 100%; height: 100%; fill: var(--accent); }
.logo:hover .logo-mark { transform: rotateY(180deg); }
.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav-links a { position: relative; color: var(--muted); font-size: .95rem; font-weight: 400; transition: color .3s; padding-block: .3rem; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .45s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  font-weight: 600; font-size: .9rem; transition: background .3s, color .3s, border-color .3s;
  font-family: "Thmanyah Sans", "Readex Pro", "Montserrat", sans-serif;
}
.lang-toggle:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.back-link { color: var(--muted); font-size: .95rem; padding-inline: .6rem; transition: color .3s; display: inline-flex; gap: .4rem; }
.back-link:hover { color: var(--text); }
.back-link .arr { display: inline-block; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn i:first-child { top: 16px; }
.menu-btn i:last-child { top: 24px; }
.menu-open .menu-btn i:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; align-items: center;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
[dir="rtl"] .mobile-menu { clip-path: circle(0 at 40px 40px); }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
[dir="rtl"].menu-open .mobile-menu, [dir="rtl"] .menu-open .mobile-menu { clip-path: circle(150% at 40px 40px); }
.mobile-menu nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--display); font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 700; line-height: 1.2; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.mobile-menu a small { font-size: .9rem; color: var(--muted); font-family: "Montserrat", sans-serif; }
.mobile-menu a:hover { color: var(--accent); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .32s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .39s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .46s; }
body.menu-open { overflow: hidden; }

/* ---------- Split text & reveals ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em .14em; margin-block: -.06em -.14em; }
.w > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left top; transition: transform 1.2s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 70ms); }
.in .w > span, .reveal.in .w > span, .is-ready .hero-title .w > span, .is-ready .p-title .w > span { transform: none; }
.is-ready .hero-title .w > span { transition-delay: calc(.25s + var(--d, 0s) + var(--i, 0) * 80ms); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
[data-split].reveal { opacity: 1; transform: none; }

.hero-anim { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(.25s + var(--d, 0s)); }
.is-ready .hero-anim { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 130px clamp(70px, 9vh, 110px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; transform: translate3d(calc(var(--mx, 0) * -40px), calc(var(--my, 0) * -40px), 0); transition: transform 1.2s var(--ease); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.b1 { width: 46vw; height: 46vw; background: var(--accent-3); top: -18%; inset-inline-end: -10%; opacity: .7; animation: float1 18s ease-in-out infinite; }
.b2 { width: 34vw; height: 34vw; background: var(--accent-2); bottom: -18%; inset-inline-start: 8%; opacity: .28; animation: float2 22s ease-in-out infinite; }
.b3 { width: 20vw; height: 20vw; background: var(--accent); top: 32%; inset-inline-end: 28%; opacity: .16; animation: float3 15s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8vw, 10vh) scale(1.15); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10vw, -8vh) scale(.9); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(6vw, 6vh); } 66% { transform: translate(-5vw, -4vh); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .45;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-mono { position: absolute; top: 50%; inset-inline-end: -4vw; height: min(118vh, 1100px); aspect-ratio: 221 / 310; translate: 0 -50%; opacity: .9; }
.hero-mono svg { width: 100%; height: 100%; overflow: visible; }
.hero-mono path { fill: rgba(var(--accent-rgb), 0); stroke: rgba(var(--accent-rgb), .22); stroke-width: .5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease-io) .3s, fill 2s ease 2.6s; }
.is-ready .hero-mono path { stroke-dashoffset: 0; fill: rgba(var(--accent-rgb), .025); }
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; color: var(--text); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); margin: 0 0 clamp(1.4rem, 3vw, 2.4rem); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 11.5vw, 11rem); line-height: .9; letter-spacing: -.045em; margin: 0; }
[dir="rtl"] .hero-title { font-weight: 900; line-height: 1.2; letter-spacing: 0; font-size: clamp(2.8rem, 9.5vw, 8.6rem); }
.hero-title .line { display: block; }
.line-accent { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 4rem; margin-top: clamp(2rem, 4vw, 3.4rem); align-items: end; }
.hero-role { grid-column: 1 / -1; margin: 0; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); }
.hero-role strong { color: var(--text); font-weight: 500; }
.role-sep { margin-inline: .4rem; color: var(--accent); }
.role { display: inline-block; color: var(--text); font-weight: 500; transition: opacity .38s var(--ease), transform .38s var(--ease), filter .38s; }
.role.out { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.hero-sub { margin: 0; max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.scroll-cue { position: absolute; bottom: 28px; inset-inline-start: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
[dir="rtl"] .scroll-cue { translate: 50% 0; letter-spacing: 0; }
.scroll-cue i { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Rotating badge */
.badge { width: clamp(110px, 12vw, 170px); height: auto; overflow: visible; }
.badge text, .badge textPath { direction: ltr; unicode-bidi: bidi-override; }
.badge text { font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2.4px; fill: var(--text); }
.badge > text { animation: spin 16s linear infinite; transform-origin: 100px 100px; transform-box: view-box; }
.badge-core { fill: var(--accent); }
.badge-arrow { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.badge .badge-star { font-size: 30px; fill: var(--ink); animation: none; letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-badge { position: absolute; top: clamp(110px, 20vh, 200px); inset-inline-end: var(--gutter); z-index: 2; }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: clamp(30px, 5vw, 60px); position: relative; }
.marquee { overflow: hidden; background: var(--accent); color: var(--ink); padding-block: clamp(.9rem, 1.6vw, 1.4rem); transform: rotate(-2.5deg) scale(1.06); position: relative; z-index: 2; }
.marquee-2 { background: var(--accent-2); color: var(--ink); transform: rotate(2deg) scale(1.06); margin-top: -2.4rem; z-index: 1; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-2 .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); padding-inline-end: clamp(1.2rem, 3vw, 2.6rem); font-family: "Montserrat", "Readex Pro", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 3rem); white-space: nowrap; line-height: 1.25; }
.marquee-item::after { content: "✦"; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(44px, 6vw, 84px); flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: .92rem; }
.sec-title { font-family: var(--display); font-size: clamp(2.6rem, 7.5vw, 6.6rem); line-height: .98; letter-spacing: -.035em; margin: .8rem 0 0; font-weight: 800; }
[dir="rtl"] .sec-title { line-height: 1.3; letter-spacing: 0; font-weight: 700; font-size: clamp(2.3rem, 6.4vw, 5.4rem); }

/* ---------- Filters & work grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { padding: .65rem 1.15rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); transition: color .3s, background .3s, border-color .3s; }
.filter sup { font-size: .65em; margin-inline-start: .35em; opacity: .7; }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.active { background: var(--text); color: var(--ink); border-color: var(--text); }

.grid {
  --offset: clamp(0px, 10vw, 170px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 70px); row-gap: clamp(50px, 7vw, 110px);
  padding-bottom: var(--offset);
  transition: opacity .32s ease, transform .32s var(--ease);
}
.grid.swap { opacity: 0; transform: translateY(24px); }
.card { display: block; position: relative; }
.card:nth-child(even) { translate: 0 var(--offset); }
.card.reveal { transform: translateY(60px); }
.card.reveal.in { transform: none; }
.card-media {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  clip-path: inset(10% 8% 10% 8% round var(--radius)); transition: clip-path 1.3s var(--ease), transform .6s var(--ease);
  will-change: transform;
}
.card.in .card-media { clip-path: inset(0 0 0 0 round var(--radius)); }
.card-inner { position: absolute; inset: 0; transform: scale(1.2); transition: transform 1.5s var(--ease); }
.card.in .card-inner { transform: scale(1); }
.card.in:hover .card-inner { transform: scale(1.06); transition-duration: 1s; }
.card-inner img, .card-inner video { width: 100%; height: 100%; object-fit: cover; }
.card-inner video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.card.playing .card-inner video { opacity: 1; }
.card-meta { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.3rem; }
.card-idx { font-family: "Montserrat", sans-serif; font-size: .85rem; color: var(--muted); padding-top: .45rem; }
.card-text { flex: 1; min-width: 0; }
.card-title { font-family: var(--display); font-size: clamp(1.25rem, 2.1vw, 1.9rem); margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.card-cat { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.card-arrow { flex: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease); }
.card-arrow span { display: inline-block; }
[dir="rtl"] .card-arrow span { transform: scaleX(-1); }
.card:hover .card-arrow { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: rotate(45deg); }
[dir="rtl"] .card:hover .card-arrow { transform: rotate(-45deg); }

/* Generated placeholder covers */
.ph {
  position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 32px);
  background:
    radial-gradient(110% 80% at 15% 5%, var(--a) 0%, transparent 55%),
    radial-gradient(100% 80% at 95% 100%, var(--b) 0%, transparent 60%),
    #052a30;
}
.ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; }
.ph-cat { position: relative; z-index: 2; align-self: flex-start; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .85rem; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }
[dir="rtl"] .ph-cat { letter-spacing: 0; }
.ph-num { position: relative; z-index: 2; align-self: flex-end; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .8; color: rgba(255,255,255,.95); mix-blend-mode: overlay; }
.ph > div { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.ph-posts { width: 58%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; }
.ph-posts i { border-radius: 18%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); animation: postPop 4s var(--ease) infinite; }
.ph-posts i:nth-child(odd) { background: rgba(255,255,255,.3); }
.ph-posts i:nth-child(2) { animation-delay: .2s; } .ph-posts i:nth-child(3) { animation-delay: .4s; } .ph-posts i:nth-child(4) { animation-delay: .6s; }
.ph-posts i:nth-child(5) { animation-delay: .8s; } .ph-posts i:nth-child(6) { animation-delay: 1s; } .ph-posts i:nth-child(7) { animation-delay: 1.2s; }
.ph-posts i:nth-child(8) { animation-delay: 1.4s; } .ph-posts i:nth-child(9) { animation-delay: 1.6s; }
@keyframes postPop { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(.82); } }
.ph-mark { width: 56%; aspect-ratio: 1; }
.ph-mark i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.65); animation: spin 22s linear infinite; border-top-color: transparent; }
.ph-mark b { position: absolute; inset: 24%; background: rgba(255,255,255,.88); mix-blend-mode: overlay; transform: rotate(45deg); border-radius: 14%; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: rotate(135deg) scale(.85); } }
.ph-play { width: 30%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); display: grid; place-items: center; animation: breathe2 3s ease-in-out infinite; }
.ph-play i { width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
@keyframes breathe2 { 50% { transform: scale(1.08); } }
.ph > .ph-timeline { top: auto; bottom: 22%; width: 70%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; translate: -50% 0; }
.ph-timeline i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: timeline 5s linear infinite; }
@keyframes timeline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ph-orbit { width: 64%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.45); animation: spin 14s linear infinite; }
.ph-orbit::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); }
.ph-orbit i { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px #fff; }
.ph-orbit b { position: absolute; inset: 40%; border-radius: 50%; background: rgba(255,255,255,.9); mix-blend-mode: overlay; }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 2rem; align-items: center; padding-block: clamp(28px, 3.6vw, 50px); border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease), opacity 1s var(--ease), transform 1.1s var(--ease);
}
.svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .65s var(--ease); }
.svc-row:hover { color: var(--ink); }
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-num { font-family: "Montserrat", sans-serif; font-size: .9rem; color: var(--muted); transition: color .5s; }
.svc-title { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.svc-row:hover .svc-title { transform: translateX(14px); }
[dir="rtl"] .svc-row:hover .svc-title { transform: translateX(-14px); }
.svc-desc { margin: 0; color: var(--muted); transition: color .5s; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.svc-tags span { font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); transition: border-color .5s; }
.svc-row:hover .svc-num, .svc-row:hover .svc-desc { color: rgba(4,35,40,.72); }
.svc-row:hover .svc-tags span { border-color: rgba(4,35,40,.3); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-visual { position: sticky; top: 110px; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative; display: grid; place-items: center;
  background: radial-gradient(90% 70% at 20% 10%, var(--accent-3), transparent 60%), radial-gradient(80% 70% at 90% 100%, rgba(255,111,89,.55), transparent 60%), var(--surface);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-logo { height: 58%; aspect-ratio: 221 / 310; }
.portrait-logo svg { width: 100%; height: 100%; overflow: visible; }
.portrait-logo path { fill: transparent; stroke: var(--text); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io) .2s, fill 1s ease 1.8s; }
.about-visual.in .portrait-logo path { stroke-dashoffset: 0; fill: rgba(var(--accent-rgb), .9); }
.about-badge { position: absolute; bottom: -40px; inset-inline-end: -30px; }
.about-text .lead { margin: 2rem 0 1rem; }
.about-text .muted { margin: 0 0 2.6rem; max-width: 36rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 1.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.stat:nth-child(odd) { padding-inline-end: 1.4rem; border-inline-end: 1px solid var(--line); }
.stat:nth-child(even) { padding-inline-start: 1.6rem; }
.stat-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .95rem; }
.tools-label { margin: 2.4rem 0 1rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .18em; }
[dir="rtl"] .tools-label { letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; transition: background .3s, color .3s, transform .4s var(--ease); }
.chips span:hover { background: var(--text); color: var(--ink); transform: translateY(-3px); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.step { position: relative; padding: 2rem 1.6rem 2.2rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .6s var(--ease), opacity 1s var(--ease); }
.step::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--rd, 0s) + .3s); }
[dir="rtl"] .step::after { transform-origin: right; }
.step.in::after { transform: scaleX(1); }
.step:hover { border-color: var(--line-2); transform: translateY(-6px); }
.step-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); display: block; margin-bottom: 2.4rem; transition: color .4s; }
.step:hover .step-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { margin: 0 0 .6rem; font-family: var(--display); font-size: 1.4rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Clients ---------- */
.clients { padding-bottom: clamp(60px, 8vw, 120px); }
.clients .container { margin-bottom: 2rem; }
.clients-marquee { background: transparent; color: var(--text); transform: none; border-block: 1px solid var(--line); }
.client { display: flex; align-items: center; padding-inline: clamp(2rem, 5vw, 4.5rem); font-family: "Montserrat", "Readex Pro", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--muted); white-space: nowrap; transition: color .3s; }
.client:hover { color: var(--text); }
.client img { height: clamp(28px, 4vw, 44px); width: auto; filter: grayscale(1) brightness(2); opacity: .7; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact-glow { position: absolute; width: 60vw; height: 60vw; inset-inline-end: -20vw; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255,111,89,.22), transparent 65%); filter: blur(40px); z-index: -1; animation: float2 20s ease-in-out infinite; }
.contact-title { font-family: var(--display); font-size: clamp(3rem, 10vw, 9.6rem); line-height: .92; letter-spacing: -.045em; margin: 1.2rem 0 0; font-weight: 800; }
[dir="rtl"] .contact-title { line-height: 1.25; letter-spacing: 0; font-weight: 900; font-size: clamp(2.6rem, 8.4vw, 7.6rem); }
.contact-title .line { display: block; }
.contact-title .reveal { opacity: 1; transform: none; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 100px); margin-top: clamp(40px, 6vw, 80px); }
.contact-grid .lead { margin: 0 0 2rem; color: var(--muted); max-width: 30rem; }
.big-links { border-top: 1px solid var(--line); }
.big-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); font-family: "Montserrat", "Readex Pro", sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2.2rem); position: relative; overflow: hidden; transition: color .4s, padding .5s var(--ease); word-break: break-all; }
.big-link .arr { flex: none; transition: transform .5s var(--ease); }
.big-link:hover { color: var(--accent); padding-inline: .8rem; }
.big-link:hover .arr { transform: rotate(45deg); }
[dir="rtl"] .big-link:hover .arr { transform: scaleX(-1) rotate(45deg); }
.form { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.field { width: 100%; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 1.1rem; padding: 1rem 0; resize: vertical; transition: border-color .3s; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { margin-top: 1rem; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(50px, 7vw, 90px); padding-top: 2rem; border-top: 1px solid var(--line); }
.socials > div { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.socials a { position: relative; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; }
.socials a svg, .footer-social svg { width: 20px; height: 20px; flex: none; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: color .3s, background .3s, border-color .3s, transform .4s var(--ease); }
.footer-social a:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-row { align-items: center; padding-inline-end: 84px; }
.big-link[hidden] { display: none; }
.socials a::after { content: ""; position: absolute; inset-inline-start: calc(20px + .5rem); inset-inline-end: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.socials a:hover { color: var(--accent); }
.socials a:hover::after { transform: scaleX(1); }

/* ---------- Footer ---------- */
.footer { padding-block: 2rem 2.4rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8.4vw, 9.4rem); line-height: 1; letter-spacing: -.05em; white-space: nowrap; margin: 1rem 0 2rem; background: linear-gradient(180deg, var(--text) 10%, rgba(245,218,137,.06) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
[dir="rtl"] .footer-big { letter-spacing: 0; line-height: 1.3; font-weight: 900; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
.to-top { transition: color .3s; }
.to-top:hover { color: var(--accent); }

/* ---------- Project page ---------- */
.p-hero { padding-top: clamp(140px, 20vh, 200px); padding-bottom: clamp(40px, 5vw, 70px); }
.p-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 8.5vw, 8rem); line-height: .95; letter-spacing: -.04em; margin: 1.2rem 0 0; max-width: 16ch; }
[dir="rtl"] .p-title { line-height: 1.25; letter-spacing: 0; font-weight: 900; font-size: clamp(2.4rem, 7vw, 6.4rem); }
.p-summary { font-size: clamp(1.1rem, 1.7vw, 1.45rem); max-width: 42rem; margin: 2rem 0 0; color: var(--muted); }
.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin: clamp(40px, 5vw, 70px) 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.p-meta dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .4rem; }
[dir="rtl"] .p-meta dt { letter-spacing: 0; font-size: .9rem; }
.p-meta dd { margin: 0; font-weight: 500; }
.p-cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.p-cover-inner { position: absolute; inset: 0; transform: scale(1.12); will-change: transform; }
.p-cover-inner img { width: 100%; height: 100%; object-fit: cover; }
.p-cover .ph { padding: clamp(28px, 6vw, 80px); }
.p-cover .ph-num { font-size: clamp(5rem, 14vw, 13rem); }
.p-cover video { display: none; }
.p-cover.natural { aspect-ratio: auto; }
.p-cover.natural .p-cover-inner { position: relative; transform: scale(1.04); }
.p-cover.natural .p-cover-inner img { height: auto; }
.p-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.p-desc p { font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.55; margin: 0 0 1.4rem; font-weight: 300; }
.gallery { --gap: clamp(12px, 1.8vw, 26px); display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--gap); padding-bottom: clamp(80px, 10vw, 140px); }
.g-item { margin: 0; border-radius: clamp(8px, 1vw, 14px); overflow: hidden; background: var(--surface); flex: none; }
.g-wide { width: 100%; border-radius: var(--radius); }
.g-half { width: calc((100% - var(--gap)) / 2); }
.g-third { width: calc((100% - var(--gap) * 2) / 3); }
.g-quarter { width: calc((100% - var(--gap) * 3) / 4); }
.g-vertical { width: min(100%, 440px); border-radius: clamp(14px, 1.6vw, 24px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.g-vertical video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; }
.g-heading { width: 100%; margin: clamp(30px, 5vw, 70px) 0 clamp(4px, 1vw, 12px); font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 1rem; }
.g-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
[dir="rtl"] .g-heading { letter-spacing: 0; }
.g-item img, .g-item video { width: 100%; height: auto; }
.g-item:has(.g-img) { box-shadow: 0 20px 50px -25px rgba(0,0,0,.6); transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease); }
.g-item:has(.g-img):hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.g-img { transition: transform 1s var(--ease); }
.g-item:hover .g-img { transform: scale(1.03); }
.g-embed { aspect-ratio: 16 / 9; }
.g-embed iframe { width: 100%; height: 100%; border: 0; }
.g-ph { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.4vw, 32px); background: radial-gradient(100% 80% at 10% 0%, var(--a), transparent 60%), radial-gradient(90% 70% at 100% 100%, var(--b), transparent 60%), #052a30; opacity: .9; }
.g-ph.g-wide { aspect-ratio: 16 / 8; }
.g-ph-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: .8; mix-blend-mode: overlay; }
.g-ph-text { align-self: flex-end; font-size: .9rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }
.next-proj { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: clamp(90px, 13vw, 180px) var(--gutter); border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.next-proj::before { content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.next-proj:hover::before { transform: scaleY(1); }
.next-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 7.5vw, 7rem); line-height: 1.05; letter-spacing: -.04em; transition: color .5s, transform .8s var(--ease); max-width: 18ch; }
[dir="rtl"] .next-title { letter-spacing: 0; font-weight: 900; line-height: 1.3; }
.next-cat { color: var(--muted); transition: color .5s; }
.next-proj:hover .next-title, .next-proj:hover .next-cat, .next-proj:hover .kicker { color: var(--ink); }
.next-proj:hover .kicker::before { background: var(--ink); }
.next-proj:hover .next-title { transform: scale(1.03); }
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; align-items: flex-start; }

.lightbox { position: fixed; inset: 0; z-index: 260; background: rgba(3, 20, 23, .96); display: grid; place-items: center; padding: clamp(56px, 6vw, 80px) clamp(16px, 7vw, 110px); opacity: 0; transition: opacity .3s; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; width: auto; border-radius: 10px; transform: scale(.96); transition: transform .5s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox.open img { transform: none; }
.lightbox-close, .lightbox-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.15rem; display: grid; place-items: center; background: rgba(3, 28, 32, .6); transition: background .3s, color .3s; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); color: var(--ink); }
.lightbox-close { top: 18px; inset-inline-end: 18px; }
.lightbox-nav { top: 50%; translate: 0 -50%; }
.lightbox-nav.prev { left: clamp(10px, 2vw, 30px); }
.lightbox-nav.next { right: clamp(10px, 2vw, 30px); }
.lightbox-count { direction: ltr; unicode-bidi: isolate; position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- Hero photo (dramatic entrance) ---------- */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-text { min-width: 0; }
.hero-photo { position: relative; margin: 0; width: min(100%, 460px, 56vh); justify-self: end; transform: translateY(var(--sy, 0)); }
.hero-photo-mask { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io) .35s; }
.is-ready .hero-photo-mask { clip-path: inset(0 0 0 0); }
.hero-photo-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: radial-gradient(90% 70% at 30% 15%, var(--accent-3), transparent 65%), radial-gradient(80% 70% at 90% 100%, rgba(255,111,89,.5), transparent 60%), var(--surface); isolation: isolate; }
.hero-photo-inner { position: absolute; inset: 0; display: grid; place-items: center; transform: scale(1.35); transition: transform 2.6s var(--ease) .9s; }
.is-ready .hero-photo-inner { transform: scale(1); }
.hero-photo-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -16px), 0) scale(1.06); transition: transform 1.2s var(--ease); }
.hero-photo-logo { width: 46%; aspect-ratio: 221 / 310; opacity: .9; transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -12px), 0); transition: transform 1.2s var(--ease); }
.hero-photo-logo svg { width: 100%; height: 100%; fill: var(--accent); }
.hero-photo-wipe { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(1); transition: transform 1s var(--ease-io) 1.15s; z-index: 2; }
.is-ready .hero-photo-wipe { transform: scaleY(0); }
.hero-photo-arch { position: absolute; inset: -14px; border: 1px solid var(--line-2); border-radius: 999px 999px calc(var(--radius) + 14px) calc(var(--radius) + 14px); opacity: 0; transform: scale(.94) rotate(-3deg); transition: opacity 1s ease 1.6s, transform 1.6s var(--ease) 1.6s; pointer-events: none; }
.is-ready .hero-photo-arch { opacity: 1; transform: none; }
.hero-photo-dot { position: absolute; top: 18%; inset-inline-start: -18px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 40px rgba(255,111,89,.6); transform: scale(0); transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) 2s; animation: float3 9s ease-in-out infinite 3s; }
.is-ready .hero-photo-dot { transform: scale(1); }
.hero-photo .hero-badge { position: absolute; top: auto; bottom: -34px; inset-inline-start: -44px; inset-inline-end: auto; z-index: 3; opacity: 0; transform: scale(.6) rotate(-40deg); transition: opacity .6s ease 2.1s, transform 1.2s cubic-bezier(.34, 1.56, .64, 1) 2.1s; }
.is-ready .hero-photo .hero-badge { opacity: 1; transform: none; }
.hero-photo .badge-core { fill: var(--accent); }
.hero .hero-title { font-size: clamp(3rem, 7.4vw, 8.4rem); }
[dir="rtl"] .hero .hero-title { font-size: clamp(2.6rem, 6.4vw, 6.8rem); }
.hero-bottom { grid-template-columns: 1fr; gap: 1.2rem; }
.hero-ctas { justify-content: flex-start; }
.hero-mono { opacity: .5; }

/* ---------- Floating WhatsApp ---------- */
.wa { position: fixed; z-index: 95; bottom: calc(clamp(16px, 2.4vw, 28px) + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(clamp(16px, 2.4vw, 28px) + env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; transition: opacity .5s ease, transform .6s var(--ease); }
.is-loading .wa { opacity: 0; transform: translateY(20px); }
.wa > * { pointer-events: auto; }
.wa-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .25); transition: transform .4s var(--ease), box-shadow .4s; }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.4s ease-out infinite; }
.wa-fab:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .75), 0 6px 16px rgba(0, 0, 0, .3); }
.wa-dot { position: absolute; top: 2px; inset-inline-end: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--bg); transition: transform .3s var(--ease); }
.wa.seen .wa-dot { transform: scale(0); }
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-bubble { position: relative; width: min(320px, calc(100vw - 32px)); background: #fff; color: #111b21; border-radius: 18px; border-end-end-radius: 6px; padding: 16px 16px 14px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(14px) scale(.92); transform-origin: bottom right; transition: opacity .35s ease, transform .5s var(--ease); }
[dir="rtl"] .wa-bubble { transform-origin: bottom left; }
.wa.open .wa-bubble { opacity: 1; transform: none; }
.wa-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; color: #667781; display: grid; place-items: center; transition: background .2s; }
.wa-close:hover { background: #f0f2f5; }
.wa-head { display: flex; align-items: center; gap: 10px; padding-inline-end: 26px; margin-bottom: 12px; }
.wa-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; padding: 8px; }
.wa-avatar svg { width: 100%; height: 100%; fill: var(--accent); }
.wa-head strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.wa-status { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #667781; }
.wa-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.wa-msg { margin: 0 0 14px; background: #f0f2f5; padding: 10px 12px; border-radius: 12px; border-start-start-radius: 4px; font-size: .92rem; line-height: 1.55; font-weight: 400; }
.wa-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 500; font-size: .95rem; transition: background .25s; }
.wa-cta svg { width: 18px; height: 18px; }
.wa-cta:hover { background: #1ebe5b; }
.big-link small { font-family: var(--body); font-weight: 400; font-size: .55em; color: var(--muted); margin-inline-start: .5em; unicode-bidi: isolate; }
@media (max-width: 640px) { .wa-fab { width: 54px; height: 54px; } .wa-fab svg { width: 27px; height: 27px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc-row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1.2fr); }
  .svc-tags { grid-column: 2 / -1; justify-content: flex-start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; justify-self: start; width: min(62vw, 330px); margin-bottom: 1.6rem; }
  .hero-photo .hero-badge { width: 92px; bottom: -20px; inset-inline-start: auto; inset-inline-end: -36px; }
  .hero-photo-dot { width: 24px; height: 24px; inset-inline-start: auto; inset-inline-end: 12px; top: -8px; }
  .hero { align-items: flex-start; padding-top: 110px; }
  .hero-mono { inset-inline-end: -30vw; height: 90vh; opacity: .6; }
  .nav-links, .nav-cta, .back-link span:not(.arr) { display: none; }
  .menu-btn { display: block; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .card:nth-child(even) { translate: none; }
  .about-grid, .contact-grid, .p-overview { grid-template-columns: 1fr; }
  .about-visual { position: relative; top: 0; max-width: 460px; }
  .about-badge { inset-inline-end: -10px; bottom: -30px; width: 110px; }
  .p-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-third, .g-quarter { width: calc((100% - var(--gap)) / 2); }
  .lightbox-nav { top: auto; bottom: 10px; translate: none; }
  .scroll-cue { display: none; }
  .hero-bg { transform: none; }
}
@media (max-width: 640px) {
  .svc-row { grid-template-columns: 1fr; gap: .8rem; }
  .svc-tags { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { padding-inline-end: .8rem; }
  .stat:nth-child(even) { padding-inline-start: .9rem; }
  .logo-name { display: none; }
  .b1 { width: 80vw; height: 80vw; } .b2 { width: 70vw; height: 70vw; } .b3 { width: 40vw; height: 40vw; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-grid { background-size: 50px 50px; }
  .g-half { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .hero-anim { opacity: 1; transform: none; }
  .w > span { transform: none; }
  .pre-logo path, .hero-mono path, .portrait-logo path { stroke-dashoffset: 0 !important; }
  .hero-photo-mask { clip-path: none; } .hero-photo-wipe { transform: scaleY(0); } .hero-photo-inner { transform: none; }
  .hero-photo-arch, .hero-photo .hero-badge { opacity: 1; transform: none; } .hero-photo-dot { transform: scale(1); }
  .wa-bubble { opacity: 1; transform: none; }
  .card-media { clip-path: none; }
  .card-inner { transform: none; }
}

/* ---------- Arabic type rhythm (Thmanyah Sans weights) ---------- */
[dir="rtl"] body { font-weight: 300; }
[dir="rtl"] .lead, [dir="rtl"] .p-desc p, [dir="rtl"] .hero-sub { font-weight: 300; }
[dir="rtl"] .nav-links a, [dir="rtl"] .filter, [dir="rtl"] .eyebrow, [dir="rtl"] .kicker, [dir="rtl"] .card-cat, [dir="rtl"] .stat-label, [dir="rtl"] .svc-tags span { font-weight: 400; }
[dir="rtl"] .btn, [dir="rtl"] .hero-role strong, [dir="rtl"] .role, [dir="rtl"] .p-meta dd, [dir="rtl"] .socials a, [dir="rtl"] .wa-cta { font-weight: 500; }
[dir="rtl"] .sec-title, [dir="rtl"] .card-title, [dir="rtl"] .svc-title, [dir="rtl"] .step h3, [dir="rtl"] .g-heading, [dir="rtl"] .mobile-menu a, [dir="rtl"] .logo, [dir="rtl"] .wa-head strong { font-weight: 700; }
[dir="rtl"] .svc-desc, [dir="rtl"] .step p { font-weight: 300; }
