/* ashurlabs — "Stone & Nail" identity
   ivory and limestone surfaces, basalt ink, bronze from the A, teal for actions */

:root {
  --ivory: #f5f2eb;
  --ivory-2: #fbfaf6;
  --limestone: #ebe5d8;
  --sand: #dcd2bf;
  --clay: #cbbfa8;
  --ink: #1d1c1a;
  --ink-2: #4e4a42;
  --ink-3: #6b665b;
  --teal: #0f6b70;
  --teal-2: #0b5659;
  --bronze: #86572a;
  --night: #15140f;
  --night-2: #201f19;
  --line: rgba(29, 28, 26, .14);
  --f-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-en: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .36  0 0 0 0 .27  0 0 0 .32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
/* while the English text is being applied, the Arabic markup stays hidden so it never flashes */
html.lang-pending body { opacity: 0; }
html { background: var(--ivory); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[dir="rtl"] body { font-family: var(--f-ar); }
html[dir="ltr"] body { font-family: var(--f-en); }
body { margin: 0; background: var(--ivory); font-size: 1.0625rem; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; background-image: var(--grain); opacity: .55; pointer-events: none; z-index: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main, footer { position: relative; z-index: 1; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--flip { transform: scaleX(-1); }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; top: -60px; inset-inline-start: 16px; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- brand: the A + the word ---------- */
.brand { direction: ltr; display: inline-flex; align-items: flex-end; }
.brand__a { height: 46px; width: auto; flex: none; }
.brand__wordwrap { flex: none; padding-inline-start: 8px; margin-bottom: 1px; white-space: nowrap; }
/* hidden letters keep their width (visibility, not display), so the nav links never move when the name closes */
.brand__word .ch[hidden] { display: inline; visibility: hidden; }
.brand__word .cursor[hidden] { visibility: hidden; }
.brand__word { display: block; font-family: var(--f-mono); font-weight: 600; font-size: 25px; letter-spacing: -.035em; line-height: 1; color: var(--ink); padding-bottom: 5px; }
.brand__word b { font-weight: 600; color: var(--teal); }
.cursor { display: inline-block; width: 7px; height: .9em; margin-inline-start: 3px; background: var(--teal); vertical-align: -.08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- header ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto 0; height: 76px; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(245, 242, 235, .88); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
/* the header keeps the English order in both languages: logo left, menu centre, controls right */
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; direction: ltr; }
.nav__links { flex: 1; }
.nav__links ul { display: flex; gap: 6px; justify-content: center; }
.nav__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .9375rem; color: var(--ink-2); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(29, 28, 26, .06); }
.nav__cta-mobile { display: none; }
.nav__actions { direction: ltr; display: flex; align-items: center; gap: 10px; }
.lang { min-width: 64px; min-height: 40px; text-align: center; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .75rem; color: var(--ink-2); font-family: var(--f-mono); cursor: pointer; transition: color .2s, border-color .2s; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
.burger { display: none; width: 44px; height: 44px; position: relative; padding: 0; background: var(--ivory-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { inset-block-start: 15px; }
.burger span:nth-child(2) { inset-block-start: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero__chip { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; color: var(--ink-3); background: rgba(255, 255, 255, .45); }
.hero__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero__title { margin-top: 26px; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.hero__title span { display: block; text-wrap: balance; }
.hero__title .accent { color: var(--bronze); }
.hero__lead { margin-top: 26px; max-width: 34em; font-size: 1.1875rem; line-height: 1.75; color: var(--ink-2); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { margin-top: 52px; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 56px; padding-top: 28px; border-top: 1px solid var(--line); direction: ltr; }
.stat__n { font-family: var(--f-mono); font-size: 2rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.stat__n--text { font-family: var(--f-ar); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; }
html[dir="ltr"] .stat__n--text { font-family: var(--f-en); }
.stat__l { margin-top: 6px; font-size: .875rem; color: var(--ink-3); }
html[dir="rtl"] .hero__stats { justify-content: start; }

/* the hero art: a limestone tablet with the logo and the three nails */
.hero__art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.tablet { position: absolute; inset: 0; border-radius: 32px; background: linear-gradient(160deg, #f1ece1 0%, var(--limestone) 58%, var(--sand) 100%); border: 1px solid var(--clay); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(40, 30, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.tablet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(29, 28, 26, .06) 47px 48px); }
.tablet::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(29, 28, 26, .12); border-radius: 22px; pointer-events: none; }
/* hero: the words are typed one slide after another */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset-inline: 10%; top: 22%; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.slide.is-active { opacity: 1; transform: none; }
.slide__no { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; color: var(--ink-3); }
.slide__word { margin-top: 14px; min-height: 1.15em; font-size: clamp(3.2rem, 6.6vw, 5.2rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.slide__word .cursor { height: .8em; margin-inline-start: 6px; }
.slide__desc { margin-top: 20px; max-width: 22em; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.slides__dots { position: absolute; bottom: 9%; inset-inline-end: 10%; display: flex; gap: 8px; }
.slides__dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(29, 28, 26, .2); transition: width .4s ease, background .4s ease; }
.slides__dots i.is-on { width: 44px; background: var(--bronze); }
.tablet__nails { position: absolute; width: 96px; height: 120px; inset-inline-start: 9%; bottom: 7%; fill: var(--bronze); opacity: .9; }
.tablet__tag { position: absolute; inset-inline-end: 9%; top: 9%; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- sections ---------- */
.sec { position: relative; padding: 120px 0; }
.sec--alt { background: var(--limestone); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 56px; }
.label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.sec__lead { max-width: 30em; color: var(--ink-2); font-size: 1.0625rem; }

/* three worlds: games, apps, business */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; color: var(--bronze); background: rgba(134, 87, 42, .12); white-space: nowrap; }


/* about */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about__lead { margin-top: 16px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.38; font-weight: 600; letter-spacing: -.01em; }
.about__p { margin-top: 22px; color: var(--ink-2); font-size: 1.0625rem; max-width: 34em; }
.facts { position: relative; border-radius: 26px; background: var(--ivory-2); border: 1px solid var(--line); padding: 10px 32px; box-shadow: 0 30px 60px -44px rgba(40, 30, 10, .4); }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.facts dd { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.facts .nails { position: absolute; inset-inline-end: 28px; top: 24px; width: 40px; fill: var(--bronze); opacity: .85; }

/* goals */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.goals li { padding: 30px 26px 10px 0; border-top: 2px solid var(--ink); }
.goals li + li { padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
.goal__n { font-family: var(--f-mono); font-size: .8rem; color: var(--bronze); letter-spacing: .08em; unicode-bidi: isolate; }
.goal__t { margin-top: 18px; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.goal__d { margin-top: 12px; color: var(--ink-2); font-size: .98rem; line-height: 1.7; }

/* leadership */
.lead { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 26px; border-radius: 28px; background: var(--ivory-2); border: 1px solid var(--line); }
.avatar { width: 128px; height: 128px; border-radius: 24px; object-fit: cover; background: var(--sand); }
.lead__role, .person__role, .word__k { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.lead__name { margin-top: 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.25; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--teal); font-weight: 600; }
.link:hover { color: var(--teal-2); }
.link:hover .icon { transform: translateX(-3px); }
html[dir="ltr"] .link:hover .icon { transform: translateX(3px); }

/* contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__lead { margin-top: 20px; color: var(--ink-2); font-size: 1.0625rem; max-width: 30em; }
.info { margin-top: 36px; display: grid; gap: 22px; }
.info__k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.info__v { margin-top: 6px; font-size: 1.0625rem; color: var(--ink); }
.info__link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 2px; color: var(--teal); font-weight: 600; font-size: .95rem; }
.mails { display: grid; gap: 2px; }
.mails a { display: block; padding-block: 7px; font-family: var(--f-mono); font-size: .9rem; color: var(--ink); direction: ltr; text-align: start; }
.mails a:hover { color: var(--teal); }
.wa { display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--ivory-2); border: 1px solid var(--line); color: var(--ink); width: fit-content; min-height: 60px; }
.wa:hover { border-color: var(--teal); }
.wa .icon { color: var(--teal); width: 26px; height: 26px; }
.wa span { display: grid; }
.wa small { font-size: .8rem; color: var(--ink-3); }
.wa b { font-family: var(--f-mono); font-weight: 500; direction: ltr; font-size: .98rem; }

.form { display: grid; gap: 18px; padding: 34px; border-radius: 28px; background: var(--ivory-2); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(40, 30, 10, .4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--clay); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 107, 112, .14); }
.field .is-invalid { border-color: #b4372f; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--teal); }
.form__status.is-error { color: #b4372f; }

/* team page */
.page { position: relative; padding: 170px 0 110px; }
.page__head { margin-bottom: 56px; }
.page__title { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.word { margin-top: 64px; padding: 44px; border-radius: 28px; background: var(--ink); color: var(--ivory); }
.word .word__k { color: #cfc7b6; }
.word blockquote { margin-top: 20px; display: grid; gap: 18px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.85; color: #ece6d9; max-width: 50em; border-inline-start: 3px solid var(--bronze); padding-inline-start: 26px; }
.word__by { margin-top: 26px; display: grid; gap: 2px; font-style: normal; }
.word__by strong { font-size: 1.05rem; }
.word__by span { color: #cfc7b6; font-size: .92rem; }
.team { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { display: flex; gap: 22px; align-items: center; padding: 22px; border-radius: 26px; background: var(--ivory-2); border: 1px solid var(--line); }
.person .avatar { width: 112px; height: 112px; border-radius: 22px; }
.person__name { margin-top: 8px; font-size: 1.35rem; font-weight: 700; }
.page__cta { margin-top: 56px; }

/* footer */
.footer { position: relative; background: var(--night); color: #d8d0bf; padding: 88px 0 36px; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .5; pointer-events: none; }
.footer .wrap { position: relative; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.lockup { display: inline-flex; flex-direction: column; gap: 14px; direction: ltr; }
.lockup__row { display: flex; align-items: flex-end; }
.lockup .brand__a { height: 72px; }
.lockup .brand__word { font-size: 34px; padding-bottom: 6px; margin-inline-start: 10px; color: var(--ivory); }
.lockup .brand__word b { color: #5fc4c8; }
.lockup__tag { font-size: .9rem; color: #a9a293; }
html[dir="rtl"] .lockup { align-items: flex-start; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer__col { display: grid; gap: 10px; align-content: start; min-width: 180px; }
.footer__col h2 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: #a9a293; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.footer__col a, .footer__col p { color: #ece6d9; font-size: .98rem; }
.footer__col a { display: flex; align-items: center; min-height: 40px; padding-block: 6px; }
.footer__col a:hover { color: #5fc4c8; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(245, 242, 235, .12); font-size: .88rem; color: #8f8779; }

/* products: what runs today */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product { display: flex; flex-direction: column; border-radius: 26px; background: var(--ivory-2); border: 1px solid var(--line); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(40, 30, 10, .45); }
.shot { display: block; background: var(--night); }
.shot img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #ece6d9; border-bottom: 1px solid var(--line); direction: ltr; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); }
.shot__bar b { margin-inline-start: 10px; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.product__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 28px 30px; }
.product__t { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.product__d { color: var(--ink-2); max-width: 34em; }
.tag--live { color: #0b5a2f; background: rgba(15, 122, 70, .12); }

/* services */
.svcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { padding: 32px; border-radius: 24px; background: var(--ivory-2); border: 1px solid var(--line); }
.svc__no { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; color: var(--bronze); }
.svc__t { margin-top: 18px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.svc__d { margin-top: 12px; color: var(--ink-2); }
ol { margin: 0; padding: 0; list-style: none; }

/* goals in development */
.road { margin-top: 64px; padding: 34px; border-radius: 26px; background: var(--limestone); border: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; }
.sec--alt .road { background: var(--ivory-2); }
.road__t { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.road__lead { margin-top: 8px; color: var(--ink-2); }
.road__list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 10px 0; font-weight: 500; line-height: 1.5; }
.road__list li + li { border-top: 1px solid var(--line); }

/* contact form: hidden trap field for bots */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* legal pages */
.doc { max-width: 760px; }
.doc__updated { margin-top: 14px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: var(--ink-3); }
.doc h2 { margin: 44px 0 12px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-inline-start: 22px; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--teal); font-weight: 500; }
html[lang="en"] .only-ar, html[lang="ar"] .only-en { display: none; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links ul { gap: 2px; }
  .nav__links a { padding: 0 10px; }
}

@media (max-width: 960px) {
  .nav__links { position: fixed; inset: 76px 0 auto 0; display: none; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .2); }
  .nav__links.is-open { display: block; }
  .nav__links ul { display: grid; gap: 0; justify-content: stretch; }
  .nav__links a { display: block; min-height: 0; padding: 15px 0; font-size: 1.0625rem; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links a:hover, .nav__links a.is-active { background: none; }
  .nav__cta-mobile { display: block; }
  html[dir="rtl"] .nav__links a { direction: rtl; text-align: right; }
  .nav__cta-mobile a { border-bottom: 0; color: var(--teal); font-weight: 600; }
  .nav__cta { display: none; }
  .burger { display: block; }

  .hero { padding: 120px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__art { max-width: 480px; }

  .about { grid-template-columns: 1fr; gap: 48px; }
  .goals { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .goals li:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .goals li:nth-child(even) { padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
  .lead { grid-template-columns: auto 1fr; }
  .lead .link { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .brand__a { height: 40px; }
  .brand__word { font-size: 21px; }
  .nav { height: 68px; }
  .nav__links { inset-block-start: 68px; }
  .sec { padding: 88px 0; }
  .sec__head { margin-bottom: 40px; }
  .hero { padding: 104px 0 56px; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  html[dir="ltr"] .hero__title { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats { gap: 26px; }
  .stat__n { font-size: 1.6rem; }
  .goals { grid-template-columns: 1fr; }
  .goals li, .goals li:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
  .lead { grid-template-columns: 1fr; text-align: start; }
  .avatar { width: 104px; height: 104px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .facts { padding: 6px 22px; }
  .page { padding: 130px 0 80px; }
  .word { padding: 26px; }
  .person { flex-direction: column; align-items: flex-start; }
  .footer { padding: 64px 0 28px; }
  .footer__cols { gap: 36px; }
  .footer__col { min-width: 0; width: 100%; }
  .footer__col a { min-height: 40px; display: flex; align-items: center; }
  .lockup .brand__a { height: 60px; }
  .lockup .brand__word { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  * { transition-duration: .01ms !important; }
}

.footer__legal { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 40px; color: #cfc7b6; }
.footer__legal a:hover { color: #5fc4c8; }

@media (max-width: 960px) {
  .products, .svcs, .road { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product__body { padding: 22px; }
  .svc { padding: 26px; }
  .road { padding: 24px; margin-top: 48px; }
  .doc h2 { margin-top: 36px; }
}

/* small mono labels keep their Latin order (01 / products) inside Arabic pages, aligned to the reading start */
.label, .slide__no { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .label, html[dir="rtl"] .slide__no { text-align: right; }

/* a third, full-width product row (the Mastar management system) */
.product__top { display: flex; flex-wrap: wrap; gap: 8px; }
.product--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.product--wide .shot { flex: 0 0 44%; }
.product--wide .product__body { justify-content: center; padding: 34px 40px; }
@media (max-width: 960px) {
  .product--wide { flex-direction: column; }
  .product--wide .shot { flex: none; }
  .product--wide .product__body { padding: 26px 28px 30px; }
}
@media (max-width: 600px) { .product--wide .product__body { padding: 22px; } }

/* the Mastar project: phone preview + facts */
.phones { flex: 0 0 46%; display: block; background: var(--limestone); }
.phones img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 8px 18px -10px rgba(40, 30, 10, .5); }
.product--wide .product__t { font-size: 1.6rem; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .02em; color: var(--ink-2); }
@media (max-width: 960px) { .phones { flex: none; } }

/* Arabic labels: no letter-spacing and no monospace (both break the joined letters) */
html[dir="rtl"] .facts dt, html[dir="rtl"] .lead__role, html[dir="rtl"] .person__role, html[dir="rtl"] .word__k,
html[dir="rtl"] .info__k, html[dir="rtl"] .footer__col h2, html[dir="rtl"] .doc__updated, html[dir="rtl"] .specs li {
  font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: .86rem;
}

/* the Almuazaf Android app, shown as a phone on top of the web screenshot */
.shot { position: relative; }
.shot .shot__phone { position: absolute; inset-inline-end: 4%; bottom: 7%; width: 19%; height: auto; aspect-ratio: auto; object-fit: initial; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
@media (max-width: 600px) { .shot .shot__phone { width: 24%; bottom: 5%; } }
.shot { overflow: hidden; }

/* the Maps card: the web screenshot keeps its panel on the right, so the phone sits on the right in both languages */
.shot .shot__phone--right { inset-inline-end: auto; left: auto; right: 4%; bottom: 9%; }

/* the slide word is sized from the tablet itself (not the screen), so the longest word + cursor always fits inside the inner frame */
.tablet { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .slide__word { font-size: clamp(2rem, 10.2cqi, 5.2rem); }
}
/* the three nails: the drawing area now covers all three completely, and the size follows the tablet */
.tablet__nails { width: clamp(60px, 16cqi, 92px); height: auto; }
/* on a narrow tablet (small phones) the description needs the whole height: the decorative nails step aside */
@container (max-width: 420px) {
  .tablet__nails { display: none; }
}

/* engineering + engagement pages */
.page__lead { margin-top: 18px; max-width: 40em; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.8; }
.more { margin-top: 32px; }
.eng { display: grid; gap: 24px; max-width: 980px; }
.stack { padding: 34px; border-radius: 26px; background: var(--ivory-2); border: 1px solid var(--line); }
.stack__t { margin-top: 14px; font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.stack__d { margin-top: 8px; color: var(--ink-2); }
.stack dl { margin: 22px 0 0; }
.stack dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 6px 28px; padding: 16px 0; border-top: 1px solid var(--line); }
.stack dt { padding-top: 3px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.stack dd { margin: 0; color: var(--ink); line-height: 1.8; }
.stack dd.tech { font-family: var(--f-mono); font-size: .92rem; line-height: 1.7; }
.stack dd a { color: var(--teal); font-weight: 500; }
html[dir="rtl"] .stack dt { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: .86rem; }
.note { margin-top: 28px; max-width: 980px; padding: 22px 26px; border-radius: 20px; background: var(--limestone); border-inline-start: 3px solid var(--bronze); color: var(--ink-2); }
.page__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.steps { margin-top: 0; }
.doc--wide { max-width: 760px; margin-top: 64px; }
@media (max-width: 700px) {
  .stack { padding: 22px; }
  .stack dl > div { grid-template-columns: 1fr; }
  .doc--wide { margin-top: 44px; }
}

/* six header links: keep the call-to-action on one line and tighten the gaps on mid-size screens */
.nav__cta { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav__inner { gap: 14px; }
  .nav__links a { padding: 0 9px; font-size: .9rem; }
}

/* "forward" arrows: the drawn arrow points left, so it is flipped for English and left as drawn for Arabic; hover keeps that direction */
html[dir="rtl"] .icon--flip { transform: none; }
html[dir="ltr"] .link:hover .icon--flip { transform: scaleX(-1) translateX(-3px); }
html[dir="rtl"] .link:hover .icon--flip { transform: translateX(-3px); }

/* the Mastar management dashboard preview (a real capture, no names or addresses) */
.dash { margin: 22px 0 6px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1220; }
.dash img { display: block; width: 100%; height: auto; }
.dash figcaption { padding: 10px 14px; font-size: .82rem; color: var(--ink-3); background: var(--ivory-2); }

/* phone header: the language button and the menu button stay pinned to the right edge, in both languages */
@media (max-width: 960px) {
  .nav__actions { margin-inline-start: auto; }
  .lang { width: 92px; }
}
