/* elhelowtech.online — portfolio home and project pages.
   One dark look for the whole site; each project page sets its own brand colours (--p1/--p2) on <body>.
   Layout: a centred 1200px column; heroes split text/phones on wide screens and stack on phones. */
:root {
  --bg: #07090D; --bg2: #0B0F15; --panel: #0F141B; --panel2: #151C25; --line: #1E2833; --line2: #2B3846;
  --text: #EEF2F6; --text2: #B7C2CD; --muted: #8794A2;
  --acc: #3FA9CF; --acc-hi: #6CC9EA; --gold: #F2C14E;
  --p1: #3FA9CF; --p2: #F2C14E; --p-ink: #04202D; --p-soft: rgba(63, 169, 207, .12);
  --r: 20px; --r-sm: 12px;
  --wrap: 1200px;
  --f-latin: "Sora", "Cairo", system-ui, sans-serif;
  --f-arabic: "Cairo", "Sora", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 17px/1.7 var(--f-latin); overflow-x: hidden; min-height: 100vh; }
main { overflow-x: clip; }
html[lang="ar"] body { font-family: var(--f-arabic); font-size: 18px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--p1); outline-offset: 3px; border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; position: relative; z-index: 2; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* ---------------------------------------------------------------- ambient background */
.glow { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(120px); opacity: .55; }
.glow.a { width: 640px; height: 640px; top: -260px; inset-inline-start: -200px; background: color-mix(in srgb, var(--p1) 30%, transparent); }
.glow.b { width: 520px; height: 520px; top: 40%; inset-inline-end: -220px; background: color-mix(in srgb, var(--p2) 18%, transparent); }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--p1), var(--p2), var(--p1)); background-size: 200% 100%; animation: slide 10s linear infinite; }
@keyframes slide { to { background-position: 200% 0; } }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 13, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 10px; min-height: 68px; }
/* Same wordmark as El-Helow BandScan: Figtree 600, two words joined, the second in brand blue */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 Figtree, var(--f-latin); letter-spacing: -.01em; white-space: nowrap; }
.brand b { color: #3FA9CF; font-weight: 600; }
.brand img { height: 34px; width: auto; border-radius: 9px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.crumb:hover { color: var(--text); }
.crumb svg { width: 16px; height: 16px; }
.crumb .mark { width: 24px; height: 24px; }
.nav .sep { width: 1px; height: 24px; background: var(--line2); }
.links { display: flex; gap: 2px; margin-inline-start: auto; }
.links a { color: var(--text2); padding: 8px 13px; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.links a:hover { color: var(--text); background: var(--panel2); }
.langbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 11px; font-weight: 700; font-size: 14.5px;
  background: var(--panel2); border: 1px solid var(--line2); white-space: nowrap; }
.langbtn:hover { border-color: var(--p1); }
.langbtn svg { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .links { display: none; }
  .langbtn { margin-inline-start: auto; }
}
@media (max-width: 420px) { .nav .sep, .crumb span { display: none; } .brand { font-size: 17px; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 800; font-size: 16.5px; color: var(--p-ink); background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 70%, #fff), var(--p1));
  box-shadow: 0 10px 34px color-mix(in srgb, var(--p1) 35%, transparent); transition: transform .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: rgba(255, 255, 255, .03); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--p1); }
.btn.alt { background: linear-gradient(135deg, color-mix(in srgb, var(--p2) 70%, #fff), var(--p2)); box-shadow: 0 10px 34px color-mix(in srgb, var(--p2) 30%, transparent); }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn .two small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- shared type */
section { padding: 92px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--p2); font-weight: 800; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15.5px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--p2); }
.h2 { font-size: clamp(30px, 4.2vw, 46px); max-width: 820px; }
.lead { color: var(--text2); font-size: clamp(16.5px, 1.9vw, 19px); max-width: 700px; margin-top: 14px; }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-head.center .h2, .sec-head.center .lead { margin-inline: auto; }
.grad { background: linear-gradient(110deg, color-mix(in srgb, var(--p1) 60%, #fff), #fff 45%, color-mix(in srgb, var(--p2) 70%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text2); background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); white-space: nowrap; }
.chip svg { width: 15px; height: 15px; color: var(--p1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: color-mix(in srgb, var(--p1) 55%, #fff); background: var(--p-soft); border: 1px solid color-mix(in srgb, var(--p1) 35%, transparent); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3FD69A; box-shadow: 0 0 10px #3FD69A; animation: pulse 1.8s infinite; }
.status.soon i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.35); } }

/* ---------------------------------------------------------------- phone + browser frames */
/* The camera sits in a black status strip above the screenshot, so it never covers the app's own header. */
.phone { position: relative; width: 100%; border-radius: 34px; padding: 30px 9px 9px; background: linear-gradient(160deg, #2a313b, #0d1116 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 30px 70px rgba(0, 0, 0, .55); }
.phone::before { content: ""; position: absolute; inset: 9px; border-radius: 26px; background: #05070a; }
.phone img { position: relative; display: block; width: 100%; aspect-ratio: var(--shot-ratio, 640 / 1385); object-fit: cover; object-position: top; border-radius: 4px 4px 26px 26px; background: var(--panel); }
.phone::after { content: ""; position: absolute; top: 14px; left: 50%; width: 26%; height: 11px; transform: translateX(-50%); border-radius: 10px; background: #1a2029; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: var(--panel); box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.browser .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #0a0d12; border-bottom: 1px solid var(--line); direction: ltr; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4552; }
.browser .bar i:nth-child(1) { background: #ff5f56; } .browser .bar i:nth-child(2) { background: #ffbd2e; } .browser .bar i:nth-child(3) { background: #27c93f; }
.browser .bar span { margin-inline-start: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ---------------------------------------------------------------- HOME: hero */
.intro { padding: 96px 0 40px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.intro h1 { font-size: clamp(38px, 5.6vw, 66px); margin: 18px 0 20px; }
.intro .lead { margin-top: 0; }
.intro .cta { margin-top: 30px; }
.fan { position: relative; height: 560px; }
.fan .phone { position: absolute; width: 210px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fan .phone:nth-child(1) { top: 70px; inset-inline-start: 0; transform: rotate(-9deg); }
.fan .phone:nth-child(2) { top: 0; inset-inline-start: calc(50% - 105px); z-index: 3; }
.fan .phone:nth-child(3) { top: 70px; inset-inline-end: 0; transform: rotate(9deg); }
html[dir="rtl"] .fan .phone:nth-child(1) { transform: rotate(9deg); }
html[dir="rtl"] .fan .phone:nth-child(3) { transform: rotate(-9deg); }
.fan:hover .phone:nth-child(1) { transform: rotate(-12deg) translateX(-10px); }
.fan:hover .phone:nth-child(3) { transform: rotate(12deg) translateX(10px); }
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; }
  .fan { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .fan .phone { width: 180px; }
  .fan .phone:nth-child(2) { inset-inline-start: calc(50% - 90px); }
}
@media (max-width: 480px) {
  .intro { padding-top: 64px; }
  .fan { height: 360px; }
  .fan .phone { width: 136px; border-radius: 24px; padding: 20px 6px 6px; }
  .fan .phone::before { inset: 6px; border-radius: 19px; }
  .fan .phone img { border-radius: 3px 3px 19px 19px; }
  .fan .phone:nth-child(2) { inset-inline-start: calc(50% - 68px); }
  .fan .phone::after { top: 9px; height: 8px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.stat { padding: 22px 18px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel), rgba(15, 20, 27, .4)); border: 1px solid var(--line); }
.stat b { display: block; font: 800 34px/1.1 var(--f-latin); }
.stat span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b { font-size: 28px; } }

/* ---------------------------------------------------------------- HOME: work */
.work-list { display: grid; gap: 22px; }
.project { --p1: #3FA9CF; --p2: #F2C14E; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden;
  border-radius: 26px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s; isolation: isolate; }
.project::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--p1) 26%, transparent), transparent 70%),
              radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--p2) 12%, transparent), transparent 70%); }
html[dir="rtl"] .project::before { transform: scaleX(-1); }
.project:hover { border-color: color-mix(in srgb, var(--p1) 55%, transparent); transform: translateY(-3px); }
.project .txt { padding: 40px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.project .logo { display: flex; align-items: center; gap: 14px; }
.project .logo img { height: 56px; width: 56px; object-fit: contain; border-radius: 14px; }
.project .logo strong { font-size: 24px; font-weight: 800; line-height: 1.2; }
.project .logo small { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.project h3 { font-size: clamp(22px, 2.4vw, 28px); }
.project p { color: var(--text2); }
.project .more { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: color-mix(in srgb, var(--p1) 60%, #fff); }
.project .more svg { width: 19px; height: 19px; transition: transform .2s; }
.project:hover .more svg { transform: translateX(4px); }
html[dir="rtl"] .project:hover .more svg { transform: scaleX(-1) translateX(4px); }
.project .pics { position: relative; min-height: 430px; display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 40px 30px 0; }
.project .pics .phone { width: 215px; flex: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: auto; height: 390px; padding-bottom: 0; }
.project .pics .phone img { height: 100%; aspect-ratio: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.project .pics .phone::before { bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.project .pics .phone:nth-child(2) { height: 340px; }
.project .pics .wide { align-self: center; width: 100%; margin-bottom: 30px; }
.project .pics .wide img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project .txt { padding: 28px 24px 8px; }
  .project .pics { min-height: 0; padding: 24px 16px 0; }
  .project .pics .phone { width: 46%; max-width: 200px; height: auto; aspect-ratio: 640 / 1000; }
  .project .pics .phone:nth-child(2) { height: auto; aspect-ratio: 640 / 900; }
}

/* ---------------------------------------------------------------- HOME: skills + process + contact */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill { padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.skill .ic, .feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  color: color-mix(in srgb, var(--p1) 65%, #fff); background: var(--p-soft); border: 1px solid color-mix(in srgb, var(--p1) 30%, transparent); }
.skill .ic svg, .feat .ic svg { width: 22px; height: 22px; }
.skill h3, .feat h3 { font-size: 19px; margin-bottom: 8px; }
.skill p, .feat p { color: var(--text2); font-size: 15.5px; }
.skill .chips { margin-top: 14px; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font: 800 15px/1 var(--f-latin); color: var(--p-ink); background: var(--p1); margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text2); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; border-radius: 26px;
  background: radial-gradient(80% 140% at 0% 0%, var(--p-soft), transparent 70%), var(--panel); border: 1px solid var(--line2); }
.contact h2 { font-size: clamp(26px, 3.4vw, 36px); }
.contact p { color: var(--text2); margin-top: 8px; }
@media (max-width: 600px) { .contact { padding: 28px 22px; } .contact .btn { width: 100%; } }

/* ---------------------------------------------------------------- PROJECT: hero */
.p-hero { padding: 72px 0 30px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.p-hero .app-id { display: flex; align-items: center; gap: 16px; margin: 20px 0 6px; }
.p-hero .app-id img { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.p-hero .app-id strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.p-hero .app-id small { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.p-hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 16px 0 18px; }
.p-hero .lead { margin-top: 0; }
.p-hero .cta { margin-top: 28px; }
.p-hero .chips { margin-top: 22px; }
.stack3 { position: relative; height: 600px; }
.stack3 .phone { position: absolute; width: 230px; }
.stack3 .phone:nth-child(1) { top: 60px; inset-inline-start: 2%; transform: rotate(-6deg); opacity: .92; }
.stack3 .phone:nth-child(2) { top: 0; inset-inline-start: calc(50% - 115px); z-index: 2; }
.stack3 .phone:nth-child(3) { top: 60px; inset-inline-end: 2%; transform: rotate(6deg); opacity: .92; }
html[dir="rtl"] .stack3 .phone:nth-child(1) { transform: rotate(6deg); }
html[dir="rtl"] .stack3 .phone:nth-child(3) { transform: rotate(-6deg); }
@media (max-width: 1100px) { .stack3 .phone { width: 200px; } .stack3 .phone:nth-child(2) { inset-inline-start: calc(50% - 100px); } .stack3 { height: 520px; } }
@media (max-width: 960px) {
  .p-grid { grid-template-columns: 1fr; }
  .stack3 { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .p-hero { padding-top: 48px; }
  .stack3 { height: 380px; }
  .stack3 .phone { width: 142px; border-radius: 24px; padding: 20px 6px 6px; }
  .stack3 .phone::before { inset: 6px; border-radius: 19px; }
  .stack3 .phone img { border-radius: 3px 3px 19px 19px; }
  .stack3 .phone::after { top: 9px; height: 8px; }
  .stack3 .phone:nth-child(1) { top: 40px; } .stack3 .phone:nth-child(3) { top: 40px; }
  .stack3 .phone:nth-child(2) { inset-inline-start: calc(50% - 71px); }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.fact svg { width: 22px; height: 22px; color: color-mix(in srgb, var(--p1) 65%, #fff); margin-top: 3px; }
.fact b { display: block; font-size: 18px; line-height: 1.3; }
.fact span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- PROJECT: screens (tabs + galleries) */
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  color: var(--text2); background: var(--panel); border: 1px solid var(--line); transition: .2s; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--text); border-color: var(--line2); }
.tab[aria-selected="true"] { color: var(--p-ink); background: var(--p1); border-color: var(--p1); }
.panel-note { color: var(--text2); margin: -8px 0 22px; max-width: 760px; }
.gallery { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { height: 8px; } .track::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; }
.shot { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; text-align: start; }
.shot .phone { cursor: zoom-in; transition: transform .25s; }
.shot:hover .phone { transform: translateY(-4px); }
.shot b { font-size: 15.5px; line-height: 1.35; }
.shot span { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: -6px; }
.arrows { display: flex; gap: 8px; justify-content: flex-end; margin-top: -4px; }
.arrows button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line2); }
.arrows button:hover { border-color: var(--p1); }
.arrows svg { width: 20px; height: 20px; }
html[dir="rtl"] .arrows svg { transform: scaleX(-1); }
@media (max-width: 520px) { .track { grid-auto-columns: 62%; gap: 14px; } }

/* desktop dashboard viewer */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.viewer .browser { cursor: zoom-in; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; padding-inline-end: 4px; }
.thumb { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-align: start; }
.thumb img { width: 84px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 7px; flex: none; }
.thumb b { font-size: 14px; line-height: 1.35; font-weight: 700; color: var(--text2); }
.thumb[aria-current="true"] { border-color: var(--p1); background: var(--p-soft); }
.thumb[aria-current="true"] b { color: var(--text); }
.viewer-cap { margin-top: 14px; color: var(--text2); font-size: 15.5px; }
.viewer-cap b { color: var(--text); }
@media (max-width: 960px) {
  .viewer { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; }
  .thumb { flex: none; width: 210px; }
}

/* ---------------------------------------------------------------- PROJECT: features + flow + build */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat { padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.build .card { padding: 30px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.build h3 { font-size: 20px; margin-bottom: 14px; }
.build ul { list-style: none; display: grid; gap: 10px; }
.build li { display: flex; gap: 10px; color: var(--text2); font-size: 15.5px; }
.build li svg { width: 18px; height: 18px; color: color-mix(in srgb, var(--p1) 65%, #fff); margin-top: 5px; flex: none; }
@media (max-width: 860px) { .build { grid-template-columns: 1fr; } }

.get { text-align: center; padding: 54px 28px; border-radius: 28px; border: 1px solid var(--line2);
  background: radial-gradient(60% 120% at 50% 0%, var(--p-soft), transparent 70%), var(--panel); }
.get h2 { font-size: clamp(28px, 3.8vw, 40px); }
.get p { color: var(--text2); margin: 12px auto 26px; max-width: 620px; }
.get .cta { justify-content: center; }
@media (max-width: 520px) { .get .cta .btn { width: 100%; } }

/* ---------------------------------------------------------------- other projects + footer */
.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.other { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.other:hover { border-color: var(--line2); background: var(--panel2); }
.other img { width: 44px; height: 44px; border-radius: 11px; object-fit: contain; flex: none; }
.other b { display: block; font-size: 15.5px; line-height: 1.3; }
.other span { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .others { grid-template-columns: 1fr; } }
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; position: relative; z-index: 2; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text2); } .foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(3, 5, 8, .94); display: grid; grid-template-rows: auto 1fr auto; padding: 14px; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 12px; color: var(--text2); font-weight: 700; }
.lb-top span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb button { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line2); flex: none; }
.lb button svg { width: 21px; height: 21px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 12px 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-nav { display: flex; justify-content: center; gap: 12px; }
html[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }

/* ---------------------------------------------------------------- motion */
.rise { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(16px); opacity: .001; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Arabic headlines run longer; keep them to three lines */
html[lang="ar"] .p-hero h1 { font-size: clamp(30px, 4.1vw, 50px); }
html[lang="ar"] .intro h1 { font-size: clamp(32px, 4.7vw, 56px); }

/* desktop products: one browser frame in the hero */
.hero-desk { align-self: center; }
.hero-desk .browser { box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
