/* ==========================================================================
   Tisira — site.css
   One stylesheet. Tokens on :root, light by default, dark via prefers-color-scheme.
   Logical properties throughout, so dir="rtl" mirrors the layout on its own.
   ========================================================================== */

/* --------------------------------------------------------------- fonts (self-hosted, SIL OFL 1.1)
   Files live in /fonts/ (src/fonts/, copied by build.mjs); the paths are relative to /assets/css/.
   Sora and Reem Kufi are variable (one file covers every weight); Tajawal is static (400/500/700).
   unicode-range means a file is only downloaded when a page shows a character from it.
   Sora is wide and Tajawal sets small, so size-adjust evens them out (Sora 94%, Tajawal 108%): the type scale
   below stays the one the layout was drawn for, and a line of Arabic sits level with a line of English. */

/* Sora: Latin text */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 400 800; font-display: swap; size-adjust: 94%;
  src: url("../../fonts/sora-v17-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 400 800; font-display: swap; size-adjust: 94%;
  src: url("../../fonts/sora-v17-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tajawal: Arabic text (and the Latin words inside Arabic text) */
@font-face {
  font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 108%;
  src: url("../../fonts/tajawal-v12-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 108%;
  src: url("../../fonts/tajawal-v12-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 108%;
  src: url("../../fonts/tajawal-v12-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 108%;
  src: url("../../fonts/tajawal-v12-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 108%;
  src: url("../../fonts/tajawal-v12-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 108%;
  src: url("../../fonts/tajawal-v12-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reem Kufi: logo-style display headlines and big titles, both scripts */
@font-face {
  font-family: "Reem Kufi"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../../fonts/reem-kufi-v28-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Reem Kufi"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../../fonts/reem-kufi-v28-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Sans Tifinagh: the signature only */
@font-face {
  font-family: "Noto Sans Tifinagh"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../fonts/noto-sans-tifinagh-v21-tifinagh.woff2") format("woff2");
  unicode-range: U+02C7, U+0301-0302, U+0304, U+0306-0307, U+0309, U+0323, U+0331, U+200C-200D, U+202E, U+25CC, U+2D30-2D7F;
}

:root {
  /* brand */
  --basalt: #262420;
  --flour: #F4F2ED;
  --olive: #4F5B36;
  --millstone: #8A857B;
  --saffron: #E5662F;
  --saffron-deep: #B4471A;

  /* roles (light) */
  --ground: #F4F2ED;
  --ground-2: #ECE8DF;
  --card: #FAF8F4;
  --ink: #262420;
  --body: #46423B;
  --muted: #625D54;
  --raw: #8A857B;
  --rule: rgba(38, 36, 32, .13);
  --rule-2: rgba(38, 36, 32, .26);
  --link: #4F5B36;
  --accent: #B4471A;           /* accent text on light: Saffron Deep */
  --focus: #B4471A;            /* focus ring: Saffron Deep, 4.87:1 on Flour (Saffron is 2.99:1) */
  --field-edge: #8A857B;       /* form field borders: Millstone, 3.46:1 on the card */
  --btn-bg: #262420;
  --btn-ink: #F4F2ED;
  --btn-hover: #4F5B36;
  --btn-hover-ink: #F4F2ED;
  --olive-ground: #4F5B36;
  --band: #262420;
  --on-band: #F4F2ED;
  --frame-bar: #E9E5DD;
  --frame-bar-ink: #5F5A52;
  --frame-edge: rgba(38, 36, 32, .10);
  --shadow: 0 1px 0 rgba(38, 36, 32, .04), 0 28px 56px -32px rgba(38, 36, 32, .45);
  --shadow-frame: 0 2px 4px rgba(38, 36, 32, .05), 0 30px 60px -28px rgba(38, 36, 32, .5);

  --stage-olive: #DDE0CF;
  --stage-sand: #EBE1CF;
  --stage-ink: #2E2C27;
  --stage-rose: #EBDFD5;
  --stage-stone: #E2DED3;

  /* type */
  --f-display: "Reem Kufi", "Tajawal", ui-sans-serif, system-ui, sans-serif;
  --f-text: "Sora", "Tajawal", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "Tajawal", "Sora", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --s-d1: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);
  --s-d2: clamp(2rem, 1.35rem + 2.5vw, 3.5rem);
  --s-d3: clamp(1.35rem, 1.12rem + .85vw, 1.85rem);
  --s-lead: clamp(1.08rem, 1rem + .35vw, 1.28rem);

  /* space + shape */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1260px;
  --header-h: 72px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #262420;
    --ground-2: #2D2B27;
    --card: #2F2D29;
    --ink: #F4F2ED;
    --body: #D6D1C7;
    --muted: #ABA59A;
    --raw: #8A857B;
    --rule: rgba(244, 242, 237, .12);
    --rule-2: rgba(244, 242, 237, .24);
    --link: #C9D0A4;
    --accent: #F07A45;         /* saffron, lifted for small text on dark */
    --focus: #E5662F;          /* 4.63:1 on Basalt */
    --field-edge: rgba(244, 242, 237, .45);
    --btn-bg: #F4F2ED;
    --btn-ink: #262420;
    --btn-hover: #FFFFFF;
    --btn-hover-ink: #262420;
    --olive-ground: #48532F;
    --band: #1B1A17;
    --frame-bar: #3A3833;
    --frame-bar-ink: #CDC7BC;
    --frame-edge: rgba(244, 242, 237, .08);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    --shadow-frame: 0 30px 60px -28px rgba(0, 0, 0, .75);
    --stage-olive: #353A2B;
    --stage-sand: #3A342A;
    --stage-ink: #1E1D1A;
    --stage-rose: #3A322C;
    --stage-stone: #34312B;
  }
}

/* --------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  position: relative; isolation: isolate;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--f-ar); font-weight: 500; line-height: 1.8; }   /* Tajawal 400 reads thin at text size */
[lang="ar"] { font-family: var(--f-ar); }
.d1 [lang="ar"], .d2 [lang="ar"], .d3 [lang="ar"] { font-family: inherit; }
.tfng { font-family: "Noto Sans Tifinagh", "Ebrima", sans-serif; }

/* a quiet grain over everything: flour dust */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .14 0 0 0 0 .12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  /* a light noise tile instead of blend + invert, which forced a full-page composite on every scroll frame */
  body::before {
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

img, svg { display: block; max-width: 100%; }
.sym__turn { transform: rotate(var(--r, 0deg)); transform-box: view-box; transform-origin: 256px 238px; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--saffron); color: var(--basalt); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.nobr { white-space: nowrap; unicode-bidi: isolate; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(1440px + 2 * var(--gutter)); }

/* --------------------------------------------------------------- type */

.d1, .d2, .d3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
.d1 { font-size: var(--s-d1); line-height: 1.0; letter-spacing: -.022em; }
.d2 { font-size: var(--s-d2); line-height: 1.06; letter-spacing: -.016em; }
.d3 { font-size: var(--s-d3); line-height: 1.15; letter-spacing: -.008em; }
.d1:lang(ar) { line-height: 1.22; letter-spacing: 0; font-size: calc(var(--s-d1) * .9); }
.d2:lang(ar) { line-height: 1.3; letter-spacing: 0; font-size: calc(var(--s-d2) * .94); }
.d3:lang(ar) { line-height: 1.4; letter-spacing: 0; }
html[lang="ar"] :is(.d1, .d2, .d3, .why__title, .route__place, .site-footer__tag, .cs-row__h, .bigstats__v, .cs-next__name,
  .chain__title, .tl__when, .tl__title, .langs__native, .form__ready-t, .meaning__say-ar, .meaning__campaign, .proof__say-v),
html[lang="ar"] .menu__list a, .nf__block[lang="ar"] .d2, .site-footer__tag[lang="ar"], .chooser__ar { word-spacing: .14em; }
.lead { font-size: var(--s-lead); line-height: 1.6; color: var(--body); text-wrap: pretty; }
.lead:lang(ar) { line-height: 1.9; }

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.i-arrow { transition: transform .3s var(--ease); }
.i-arrow:dir(rtl), .i-ext:dir(rtl) { transform: scaleX(-1); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font: 600 .78rem/1.3 var(--f-text);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--link);
}
.eyebrow__num { font-family: var(--f-display); font-size: 1rem; letter-spacing: 0; color: var(--accent); }
.hero__eyebrow .nobr { unicode-bidi: normal; }
.eyebrow__rule { width: 28px; height: 1px; background: currentColor; opacity: .5; flex: none; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); flex: none; }

/* Arabic never gets tracking or capitals */
.eyebrow:lang(ar), .case__index:lang(ar), .step__time:lang(ar), .site-footer__h:lang(ar),
.contact__h:lang(ar), .story__label:lang(ar), .cs-next__lbl:lang(ar), .cs-stats__h:lang(ar),
.meaning__say-l:lang(ar), .menu__n:lang(ar), .proof__say-l:lang(ar) {
  letter-spacing: 0; text-transform: none; font-family: var(--f-ar);
}
.site-footer__h:lang(ar), .contact__h:lang(ar), .story__label:lang(ar), .cs-next__lbl:lang(ar),
.cs-stats__h:lang(ar), .step__time:lang(ar), .case__index:lang(ar), .proof__say-l:lang(ar) { font-size: .9rem; }
.eyebrow:lang(ar) { font-size: .95rem; }

/* --------------------------------------------------------------- buttons + links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--f-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:lang(ar) { font-family: var(--f-ar); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--solid { background: var(--btn-bg); color: var(--btn-ink); }
.btn--solid:hover { background: var(--btn-hover); color: var(--btn-hover-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--saffron { background: var(--saffron); color: var(--basalt); }
.btn--saffron:hover { background: var(--flour); color: var(--basalt); }
.btn:hover .i-arrow, .link-arrow:hover .i-arrow, a:hover > .i-arrow { transform: translateX(4px); }
.btn:hover .i-arrow:dir(rtl), .link-arrow:hover .i-arrow:dir(rtl), a:hover > .i-arrow:dir(rtl) { transform: scaleX(-1) translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--link); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s ease;
}
.link-arrow:hover { text-decoration-color: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule-2);
  font-size: .85rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); flex: none; }
.pill--dark::before { background: var(--saffron); }
.pill--note { margin: 0; gap: 8px; color: var(--muted); }
.pill--note::before { display: none; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-2); font-size: .9rem; color: var(--body); }
.tags--lg { margin: 0; }
.tags--lg li { font-size: 1rem; padding: 8px 16px; color: var(--ink); }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-block-end-color: var(--rule); }
.site-header.is-open { background: var(--ground); }
.site-header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; color: var(--ink); line-height: 0; margin-inline-end: auto; border-radius: 6px; }
.lockup { height: 44px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; padding: 10px 14px;
  color: var(--body); text-decoration: none; font-weight: 500; font-size: .97rem;
  border-radius: 999px; transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--saffron); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform .35s var(--ease);
}
.nav a:dir(rtl)::after { --origin: right; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.site-header__end { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .2s ease;
}
.lang-switch:hover { border-color: var(--ink); }
.lang-switch [lang="en"], .btn [lang="en"] { font-family: var(--f-text); }
/* English marked as such on Arabic pages is set in Sora (zero specificity: any component font, e.g. the Kufi display, still wins) */
:where(html[lang="ar"]) :where([lang="en"]) { font-family: var(--f-text); }
/* stand-alone Latin data on Arabic pages (email, phone) is set in Sora; Latin words inside Arabic sentences stay in Tajawal */
html[lang="ar"] :is(.channels__v, .cta-band__ch, .menu__contact a, .site-footer a)[dir="ltr"],
html[lang="ar"] .cta-band__ch [dir="ltr"] { font-family: var(--f-text); }

.burger {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--rule-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.burger__lines { position: absolute; inset: 0; display: grid; place-items: center; }
.burger__lines i {
  position: absolute; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease);
}
.burger__lines i:first-child { transform: translateY(-3.5px); }
.burger__lines i:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ground); overflow-y: auto; overscroll-behavior: contain;
  padding-block: 24px 40px;
}
.menu[hidden] { display: none; }
.menu__in { display: flex; flex-direction: column; gap: 32px; min-height: 100%; }
.menu__list { list-style: none; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding-block: 14px;
  border-block-end: 1px solid var(--rule);
  font: 600 clamp(1.9rem, 7.5vw, 2.8rem)/1.15 var(--f-display); color: var(--ink); text-decoration: none;
}
.menu__list a[aria-current="page"] { color: var(--accent); }
.menu__n { font: 500 .8rem var(--f-text); color: var(--muted); letter-spacing: .1em; min-width: 2ch; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.menu__contact { width: 100%; display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.menu__contact a { color: var(--body); text-decoration: none; align-self: flex-start; }
.menu.is-open .menu__list li { animation: menu-in .5s var(--ease) both; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: .04s; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: .08s; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: .12s; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: .16s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------- sections */

.section { position: relative; padding-block: clamp(80px, 9vw, 148px); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.ground-2 { background: var(--ground-2); --accent: #A63F15; }   /* Saffron Deep is 4.45:1 here; this is 5.14:1 */
@media (prefers-color-scheme: dark) { .ground-2 { --accent: #F07A45; } }
.section--flush-top { padding-block-start: 0; }
.ground-olive,
.case--dark, .cta-band, .site-footer, .diagram, .tone-ink {
  --ink: #F4F2ED;
  --body: rgba(244, 242, 237, .86);
  --muted: rgba(244, 242, 237, .8);
  --rule: rgba(244, 242, 237, .16);
  --rule-2: rgba(244, 242, 237, .3);
  --link: #F4F2ED;
  --btn-bg: #F4F2ED;
  --btn-ink: #262420;
  --btn-hover: #FFFFFF;
  --btn-hover-ink: #262420;
  --focus: #E5662F;
  --field-edge: rgba(244, 242, 237, .45);
}
.ground-olive { background: var(--olive-ground); color: var(--ink); --accent: #F4F2ED; --focus: #F4F2ED; }
.case--dark, .cta-band, .site-footer, .diagram { --accent: #F07A45; --muted: #B9B3A8; }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px 64px; align-items: end;
  margin-block-end: clamp(40px, 5vw, 76px);
}
.sec-head__intro { margin: 0; color: var(--body); font-size: 1.12rem; max-width: 46ch; text-wrap: pretty; }

/* --------------------------------------------------------------- hero */

.hero { position: relative; overflow: clip; padding-block: clamp(16px, 3vh, 40px) 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 560px) minmax(0, 700px) minmax(var(--gutter), 1fr);
  align-items: center;
}
.hero__copy { grid-column: 2; padding-inline-end: clamp(16px, 3vw, 48px); position: relative; z-index: 1; }
.hero__title { margin: 0 0 26px; font-size: clamp(2.6rem, 1.3rem + 4.3vw, 5.4rem); }
.hero__title span { display: block; }
.hero__title:lang(ar) { font-size: clamp(2.3rem, 1.2rem + 3.3vw, 4.05rem); }
.hero__raw { color: var(--raw); }
.hero__lead { margin: 0 0 34px; max-width: 32rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__stage { grid-column: 3 / 4; position: relative; height: min(72svh, 680px); min-height: 440px; }
.hero__quern { position: absolute; inset: 0; }
.hero__eyebrow, .hero__raw, .hero__out, .hero__lead, .hero__ctas { animation: rise 1s var(--ease) both; }
.hero__raw { animation-delay: .06s; }
.hero__out { animation-delay: .14s; }
.hero__lead { animation-delay: .24s; }
.hero__ctas { animation-delay: .32s; }
/* transform only: the headline and lead are visible from the first paint (they are the LCP element) */
@keyframes rise { from { transform: translateY(18px); } }

.quern-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.quern-fallback .sym { width: min(54%, 340px); height: auto; color: var(--ink); }
.quern-fallback__word { margin: 0; font: 600 clamp(2rem, 4vw, 3.4rem)/1.2 var(--f-display); color: var(--accent); }

.proof {
  list-style: none;
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 24px 32px; align-items: center;
  margin-block-start: clamp(20px, 3vh, 40px); padding-block: 24px;
  border-block-start: 1px solid var(--rule);
}
.proof__sig { display: flex; align-items: center; gap: 18px; color: var(--ink); }
.proof__sig .sig { height: 30px; color: var(--ink); flex: none; }
.proof__say { display: flex; flex-direction: column; gap: 2px; }
.proof__say-l { font: 600 .74rem/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.proof__say-v { font: 600 1.25rem/1.25 var(--f-display); color: var(--ink); }
.proof li:not(.proof__sig) { display: flex; align-items: center; gap: 14px; }
.proof__v { font: 600 clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem)/1 var(--f-display); color: var(--ink); }
.proof__l { color: var(--muted); font-size: .95rem; line-height: 1.35; max-width: 17ch; }
.proof__l:lang(ar), .stat__l:lang(ar) { line-height: 1.55; }

/* --------------------------------------------------------------- services */

.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px; padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--card);
  transition: border-color .3s ease, transform .5s var(--ease);
}
.svc:hover { border-color: var(--rule-2); }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; margin-block-end: 22px; }
.svc-ico {
  width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .8s var(--ease);
}
.svc-ico .f { fill: currentColor; stroke: none; }
.svc-ico .s { fill: var(--saffron); stroke: none; }
.svc:hover .svc-ico { transform: rotate(-24deg); }
.svc:hover .svc-ico:dir(rtl) { transform: rotate(24deg); }
.svc__n { font: 500 .9rem var(--f-display); color: var(--muted); }
.svc__title { margin: 0; }
.svc__text { margin: 0; color: var(--body); max-width: 52ch; }
.svc__ex {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin-block-start: auto; padding-block-start: 18px; border-block-start: 1px solid var(--rule);
}
.svc__ex li {
  padding: 5px 11px; border-radius: 999px; font-size: .84rem; line-height: 1.35;
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--body);
}
.svc--feature {
  grid-column: span 2;
  background: var(--olive-ground); border-color: transparent;
  --ink: #F4F2ED; --body: rgba(244, 242, 237, .88); --muted: rgba(244, 242, 237, .8); --rule: rgba(244, 242, 237, .2);
  color: var(--ink);
}
.svc--feature .svc__title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
@media (min-width: 901px) {
  .svc--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto 1fr auto auto; column-gap: 48px; }
  .svc--feature .svc__top { grid-column: 1 / -1; grid-row: 1; }
  .svc--feature .svc__title { grid-column: 1; grid-row: 3; }
  .svc--feature .svc__text { grid-column: 1; grid-row: 4; margin-top: 14px; }
  .svc--feature .svc__ex { grid-column: 2; grid-row: 3 / span 2; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; align-self: end; }
  .svc--feature .svc__ex li { background: none; border-radius: 0; padding: 13px 0; border-block-end: 1px solid var(--rule); font-size: .95rem; color: var(--ink); }
  .svc--feature .svc__ex li:first-child { border-block-start: 1px solid var(--rule); }
}
.svc--feature::after {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; inset-inline-end: -170px; top: -170px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(244, 242, 237, .08) 26px 27px);
}

/* --------------------------------------------------------------- stages + device frames */

.stage {
  --ink-dots: color-mix(in srgb, var(--basalt) 16%, transparent);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 11; border-radius: var(--r-lg);
  background: var(--stage, var(--stage-stone));
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, var(--ink-dots) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 95% at var(--mx, 0%) 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 95% at var(--mx, 0%) 0%, #000 0%, transparent 72%);
}
.stage:dir(rtl) { --mx: 100%; }
.tone-olive { --stage: var(--stage-olive); }
.tone-sand { --stage: var(--stage-sand); }
.tone-ink { --stage: var(--stage-ink); }
.tone-rose { --stage: var(--stage-rose); }
.tone-stone { --stage: var(--stage-stone); }
.tone-ink.stage { --ink-dots: rgba(244, 242, 237, .14); }
@media (prefers-color-scheme: dark) { .stage { --ink-dots: rgba(244, 242, 237, .1); } }

.frame-browser {
  margin: 0; overflow: hidden; border-radius: 12px;
  background: var(--frame-bar); border: 1px solid var(--frame-edge);
  box-shadow: var(--shadow-frame);
  transition: transform .8s var(--ease);
}
.frame-browser__bar {
  display: flex; align-items: center; gap: 10px;
  height: clamp(22px, 2.4vw, 34px); padding-inline: clamp(8px, 1vw, 14px);
  color: var(--frame-bar-ink);
}
.frame-browser__dots { display: flex; gap: clamp(4px, .45vw, 7px); flex: none; }
.frame-browser__dots i { width: clamp(6px, .6vw, 9px); aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: .32; }
.frame-browser__url {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 1 auto; min-width: 0; max-width: 62%; margin-inline: auto;
  height: 62%; padding-inline: 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--frame-bar-ink) 13%, transparent);
  font: 500 clamp(8px, .72vw, 12px)/1 var(--f-text); white-space: nowrap;
  transform: translateX(-12px);
}
.frame-browser__url span { overflow: hidden; text-overflow: ellipsis; }
.frame-browser__url .i { width: 1.1em; height: 1.1em; stroke-width: 2; }
.frame-browser img { width: 100%; }

.frame-phone {
  margin: 0; padding: 3.4%;
  background: #1A1916; border-radius: 15% / 7%;
  box-shadow: 0 32px 60px -26px rgba(20, 19, 17, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .09);
  transition: transform .8s var(--ease);
}
.frame-phone img { width: 100%; border-radius: 11.5% / 5.4%; }
.frame-phone--solo { max-width: 270px; }
.frame-plain { margin: 0; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-frame); border: 1px solid var(--frame-edge); }

.stage .frame-browser { position: absolute; top: 10%; inset-inline-start: 8%; width: 104%; }
.stage:not(.has-phone) .frame-browser { width: 98%; }
.stage .frame-phone { position: absolute; bottom: -15%; inset-inline-end: 7%; width: 25%; }
.stage--lg { aspect-ratio: 16 / 9; }
.stage--lg .frame-browser { top: 9%; inset-inline-start: 7%; width: 80%; }
.stage--lg:not(.has-phone) .frame-browser { width: 86%; inset-inline-start: 7%; }
.stage--lg .frame-phone { inset-inline-end: 6%; width: 18.5%; bottom: -17%; }
.stage--sm { aspect-ratio: 4 / 3; }
.stage--sm .frame-browser { top: 12%; width: 108%; }
.stage--sm .frame-phone { width: 28%; bottom: -24%; }
.stage--diagram { display: grid; place-items: center; }
.stage--diagram .compass, .stage--diagram .kpi { width: min(70%, 420px); height: auto; }
.kpi .kr { fill: none; stroke: rgba(244, 242, 237, .14); stroke-width: 10; stroke-linecap: round; }
.kpi .ka { fill: none; stroke: #F4F2ED; stroke-width: 10; stroke-linecap: round; }
.kpi .kd { fill: var(--stage-ink); stroke: #F4F2ED; stroke-width: 2; }
.kpi .kt { stroke-width: 4; stroke-linecap: round; }
.kpi .kb { fill: rgba(244, 242, 237, .12); }
.kpi .kl { fill: none; stroke: #F4F2ED; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.kpi .core { fill: #F4F2ED; }
.kpi .eye { fill: var(--stage-ink); }
.diagram .kpi .kd, .diagram .kpi .eye { fill: var(--band); }

/* compass (Pusula) */
.compass .rg { fill: none; stroke: rgba(244, 242, 237, .22); stroke-width: 1; }
.compass .rg--dash { stroke-dasharray: 2 6; }
.compass .tk { stroke: rgba(244, 242, 237, .26); stroke-width: 1; }
.compass .tk--major { stroke: rgba(244, 242, 237, .65); stroke-width: 1.6; }
.compass .sp { stroke: rgba(244, 242, 237, .22); stroke-width: 1; stroke-dasharray: 1 5; }
.compass .core { fill: #F4F2ED; }
.compass .eye { fill: var(--stage-ink); }
.compass .nd { fill: #F4F2ED; }
.compass .nd--doc circle { fill: var(--stage-ink); stroke: #F4F2ED; stroke-width: 2; }
.compass .nd--doc line { stroke: #F4F2ED; stroke-width: 2; stroke-linecap: round; }
.compass .needle { transform-box: view-box; transform-origin: 200px 200px; }

/* --------------------------------------------------------------- work teaser (home) */

.cases { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 136px); }
.case {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: center;
}
.case--flip .case__media { order: 2; }
.case__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.case__index {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font: 600 .76rem/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.case__index > span:first-child { font: 600 1.05rem/1 var(--f-display); letter-spacing: 0; color: var(--accent); }
.case__kind { padding-inline-start: 14px; border-inline-start: 1px solid var(--rule-2); }
.case__title { margin: 0; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); line-height: 1.02; }
.case__title a { color: inherit; text-decoration: none; }
.case__note { margin: -8px 0 0; color: var(--muted); font-size: .95rem; }
.case__line { margin: 0; font-size: 1.15rem; color: var(--body); max-width: 36ch; text-wrap: pretty; }
.case__meta { width: 100%; display: grid; gap: 10px; margin: 4px 0 0; padding-block-start: 18px; border-block-start: 1px solid var(--rule); }
.case__meta > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.case__meta dt { color: var(--muted); font-size: .86rem; }
.case__meta dd { margin: 0; }
.case__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 2px 0 0; }
.case__stats li { display: flex; flex-direction: column; gap: 4px; }
.stat__v { font: 600 1.9rem/1 var(--f-display); color: var(--ink); }
.stat__l { font-size: .85rem; color: var(--muted); max-width: 15ch; line-height: 1.35; }
.case__privacy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .9rem; }
.case__cta { margin-block-start: 6px; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-lg); }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 8px; }
.case:hover .frame-browser, .wcard:hover .frame-browser { transform: translateY(-6px); }
.case:hover .frame-phone, .wcard:hover .frame-phone { transform: translateY(-14px); }
.case:hover .case__cta .i-arrow, .wcard:hover .link-arrow .i-arrow { transform: translateX(4px); }
.case:hover .case__cta .i-arrow:dir(rtl), .wcard:hover .link-arrow .i-arrow:dir(rtl) { transform: scaleX(-1) translateX(4px); }
.case--dark {
  background: var(--band); color: var(--ink);
  border-radius: calc(var(--r-lg) + 8px); padding: clamp(18px, 2.4vw, 36px);
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}
.case--dark .stage { aspect-ratio: 5 / 4; }
.work-teaser__more { margin: clamp(56px, 6vw, 88px) 0 0; display: flex; justify-content: center; }

/* --------------------------------------------------------------- process */

.process { overflow: clip; }
.process__art {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(54vw, 720px); inset-inline-end: -14vw; top: -12vw; color: rgba(244, 242, 237, .07);
}
.process .wrap { position: relative; z-index: 1; }
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 40px; height: 1px; background: var(--rule-2); }
.step { position: relative; padding-inline-end: clamp(16px, 2.6vw, 44px); }
.step__mark {
  position: relative; z-index: 1; width: 80px; height: 80px; margin-block-end: 26px;
  display: grid; place-items: center; background: var(--olive-ground);
}
.step__sym { width: 66px; height: auto; color: #F4F2ED; }
.step__sym .sym__turn { transition: transform 1.2s var(--ease); }
.step:hover .step__sym .sym__turn { transform: rotate(calc(var(--r) - 90deg)); }
.step:hover .step__sym:dir(rtl) .sym__turn { transform: rotate(calc(var(--r) + 90deg)); }
.step__time {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.step__title { margin: 0 0 10px; }
.step__text { margin: 0; color: var(--body); }

/* --------------------------------------------------------------- story */

.story { overflow: clip; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.story__art { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.grooves { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grooves .g { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.grooves .g--dash { stroke-dasharray: 3 9; transform-box: view-box; transform-origin: 300px 300px; animation: turn 90s linear infinite; }
.grooves .g--fill { fill: var(--ink); stroke: none; }
.story__sym { position: absolute; left: 27%; top: 27.2%; width: 46%; color: var(--ink); }
.story__sym .sym { width: 100%; height: auto; }
.story__body h2, .product__body h2 { margin-block-end: 24px; }
.story__body .lead { margin: 0 0 30px; }
.story__label {
  margin: 0 0 16px; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.route { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 32px; }
.route::before {
  content: ""; position: absolute; top: 7px; height: 1px;
  inset-inline-start: 7px; inset-inline-end: calc(33.333% - 7px);
  background: repeating-linear-gradient(90deg, var(--rule-2) 0 6px, transparent 6px 11px);
}
.route li { position: relative; padding-inline-end: 12px; }
.route__dot {
  position: relative; z-index: 1; display: block; width: 15px; height: 15px; margin-block-end: 14px;
  border-radius: 50%; border: 1.5px solid var(--ink); background: var(--ground-2);
}
.route li:last-child .route__dot { background: var(--saffron); border-color: var(--saffron); }
.route__place { display: block; font: 600 1.15rem/1.25 var(--f-display); color: var(--ink); }
.route__note { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.story__founders { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0 0 30px; padding-block-start: 22px; border-block-start: 1px solid var(--rule); }
.story__founders li { display: flex; flex-direction: column; }
.story__fname { font-weight: 600; color: var(--ink); }
.story__frole { color: var(--muted); font-size: .92rem; }

/* --------------------------------------------------------------- product */

.product__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.product__body .lead { margin: 0 0 24px; }
.product__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* --------------------------------------------------------------- CTA band + footer */

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: var(--ink);
  padding-block: clamp(88px, 11vw, 168px);
}
.cta-band__art {
  position: absolute; z-index: -1; top: 50%; inset-inline-end: -9vw;
  width: clamp(340px, 46vw, 720px); transform: translateY(-50%);
  color: rgba(244, 242, 237, .03);
}
.cta-band__art .sym { width: 100%; height: auto; overflow: visible; }
.cta-band__art .sym path { fill: none; stroke: rgba(244, 242, 237, .16); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cta-band__art .sym path[fill="#E5662F"] { fill: var(--saffron); stroke: none; }
.cta-band__art .sym path:not([fill="#E5662F"]) { fill: rgba(244, 242, 237, .035); }
.cta-band__sig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block-end: 30px; color: var(--muted); }
.sig { height: 26px; width: auto; color: var(--link); }
.cta-band .sig { color: var(--ink); }
.cta-band__line { font-size: .98rem; }
.cta-band__title { max-width: 13ch; margin: 0 0 22px; }
.cta-band__text { margin: 0 0 42px; max-width: 44ch; font-size: var(--s-lead); color: var(--body); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.cta-band__ch { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.cta-band__ch .i { width: 1.5em; height: 1.5em; color: var(--muted); }
.cta-band__ch:hover > span:not(.sr) { text-decoration: underline; text-underline-offset: 5px; }
.cta-band__lbl { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }

.site-footer { background: var(--band); color: var(--ink); padding-block: 0 32px; }
.cta-band + .site-footer .wrap { border-block-start: 1px solid var(--rule); }
.site-footer > .wrap { padding-block-start: 56px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block-end: 40px; }
.logo--footer { margin: 0; color: var(--ink); }
.logo--footer .lockup { height: 40px; }
.site-footer__tag { margin: 0; font: 600 1.25rem var(--f-display); color: var(--ink); }
.site-footer__tag[lang="ar"] { font-family: var(--f-display); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; border-block: 1px solid var(--rule); }
.site-footer__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer__h { margin: 0 0 16px; font: 600 .76rem/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block-start: 24px; color: var(--muted); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__top-link { display: inline-flex; align-items: center; gap: 6px; }
.motion-toggle {
  margin-inline-start: auto; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-2);
  background: transparent; color: var(--ink); font: 500 .85rem/1.2 var(--f-text); cursor: pointer;
}
.motion-toggle:lang(ar) { font-family: var(--f-ar); }
.motion-toggle:hover { border-color: var(--ink); }

/* --------------------------------------------------------------- inner page heroes */

.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(28px, 4vw, 56px); }
.page-hero__title { max-width: 15ch; margin: 0 0 26px; }
.page-hero__lead { max-width: 54ch; margin: 0; }
.work-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.pindex ol { list-style: none; border-block-start: 1px solid var(--rule-2); }
.pindex a {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline;
  padding-block: 13px; border-block-end: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.pindex__n { grid-row: span 2; font: 600 .95rem var(--f-display); color: var(--accent); }
.pindex__name { font: 600 1.15rem/1.25 var(--f-display); transition: color .2s ease; }
.pindex__kind { grid-column: 2; color: var(--muted); font-size: .88rem; }
.pindex__st { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--body); white-space: nowrap; }
.pindex__st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.pindex__st.is-dark::before { background: var(--saffron); }
.pindex a:hover .pindex__name { color: var(--accent); }
html[lang="ar"] .pindex__name { word-spacing: .14em; }

/* --------------------------------------------------------------- work index */

.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(24px, 3vw, 48px); }
.wcard { position: relative; display: flex; flex-direction: column; gap: 26px; }
.wcard:nth-child(even) { margin-block-start: clamp(0px, 9vw, 140px); }
.wcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wcard__title { margin: 0; font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.7rem); }
.wcard__title a { color: inherit; text-decoration: none; }
.wcard__line { margin: 0; color: var(--body); font-size: 1.08rem; max-width: 44ch; }
.wcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; color: var(--muted); font-size: .92rem; }
.wcard--dark .stage { box-shadow: inset 0 0 0 1px var(--rule); }

.craft__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 72px; align-items: start; }
.craft__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.craft__list li { display: flex; align-items: flex-start; gap: 14px; padding-block: 18px; border-block-start: 1px solid var(--rule-2); font-size: 1.05rem; color: var(--ink); }
.craft__g, .features__g { width: 18px; height: 18px; flex: none; margin-top: .3em; color: var(--accent); }

/* --------------------------------------------------------------- case study */

.cs-hero { padding-block: clamp(28px, 3.5vw, 48px) 0; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs .i-arrow { transform: scaleX(-1); }
.crumbs .i-arrow:dir(rtl) { transform: none; }
.crumbs a:hover .i-arrow { transform: scaleX(-1) translateX(4px); }
.crumbs a:hover .i-arrow:dir(rtl) { transform: translateX(4px); }
.cs-hero__grid {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 36px clamp(40px, 6vw, 96px); align-items: end;
  margin-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px);
}
.cs-hero__title { margin: 14px 0 10px; font-size: clamp(3rem, 1.5rem + 6.2vw, 7.2rem); line-height: .96; }
.cs-hero__title:lang(ar) { line-height: 1.2; }
.cs-hero__note { margin: 0 0 18px; color: var(--muted); }
.cs-hero__lead { margin: 0 0 30px; max-width: 46ch; }
.cs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin: 0; border-block-start: 1px solid var(--rule-2); }
.facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding-block: 13px; border-block-end: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: .86rem; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); }
.facts dd ul { list-style: none; display: grid; gap: 4px; }
.facts dd .facts__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.facts__tags li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-2); font-size: .85rem; font-weight: 500; }

.cs-story .cs-row:first-child { border-block-start: 0; padding-block-start: 0; }
.cs-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(32px, 6vw, 96px);
  padding-block: clamp(32px, 4vw, 56px); border-block-start: 1px solid var(--rule-2);
}
.cs-row__h { margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); font: 600 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.2 var(--f-display); color: var(--ink); }
.cs-row__p { margin: 0; max-width: 62ch; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.65; color: var(--body); text-wrap: pretty; }
.cs-row__p:lang(ar) { line-height: 1.95; }
.features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.features li { display: flex; align-items: flex-start; gap: 14px; padding-block: 15px; border-block-end: 1px solid var(--rule); color: var(--ink); }

.cs-stats__h { margin: 0 0 32px; font: 600 .78rem/1.3 var(--f-text); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.bigstats { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px 40px; }
.bigstats--2 { --cols: 2; max-width: 820px; }
.bigstats--3 { --cols: 3; }
.bigstats--4 { --cols: 4; }
.bigstats--5, .bigstats--6 { --cols: 3; }
.bigstats li { display: flex; flex-direction: column; gap: 12px; padding-block-start: 20px; border-block-start: 1px solid var(--rule-2); }
.bigstats__v { font: 600 clamp(2.8rem, 1.6rem + 3.6vw, 5rem)/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.bigstats__v.is-text { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); white-space: nowrap; }
.bigstats__v:lang(ar) { letter-spacing: 0; }
.bigstats__l { color: var(--muted); max-width: 24ch; }
.cs-stats__note { margin: 30px 0 0; color: var(--muted); font-size: .9rem; }
.cs-stack .cs-row:first-child { border-block-start: 0; padding-block-start: 0; }
.extras { list-style: none; display: grid; gap: 8px; font-size: 1.1rem; color: var(--ink); }

.cs-gallery__title { margin: 0 0 32px; padding-top: 32px; border-top: 1px solid var(--rule-2); }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plate {
  position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px) 22px;
  border-radius: var(--r-lg); background: var(--ground-2);
}
.plate--full { grid-column: 1 / -1; }
.plate__media { flex: 1; display: grid; place-items: center; min-width: 0; }
.plate__media > figure { width: 100%; }
.plate--tall .plate__media > figure { width: auto; }
.plate--tall .frame-plain img { max-height: 620px; width: auto; }
.plate__cap { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 62ch; }
.plate__tag {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1;
  padding: 3px 10px; border-radius: 999px; background: var(--ground); color: var(--muted);
  font-size: .74rem; font-weight: 600; line-height: 1.5;
}
.plate__tag:lang(ar) { font-size: .82rem; }
.zoom { display: block; width: 100%; min-width: 0; color: inherit; border-radius: 12px; cursor: zoom-in; }   /* min-width: a long address in the frame bar must not widen the plate */
.plate--tall .zoom, .phones .zoom { width: auto; }
.zoom:hover .frame-browser, .zoom:hover .frame-plain { transform: translateY(-4px); }
.zoom:hover .frame-phone { transform: translateY(-6px); }
.frame-plain { transition: transform .6s var(--ease); }
.plate--phones { padding-block-start: clamp(28px, 4vw, 56px); }
.phones { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 236px)); justify-content: center; gap: clamp(20px, 3.5vw, 56px); width: 100%; }
.phones li { position: relative; display: flex; flex-direction: column; gap: 16px; }
.phones .plate__tag { top: -10px; inset-inline-end: -8px; }

.cs-next { border-block-start: 1px solid var(--rule-2); }
.cs-next__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-next a { display: flex; flex-direction: column; gap: 10px; padding-block: clamp(40px, 6vw, 92px); color: var(--ink); text-decoration: none; }
.cs-next__next { align-items: flex-end; text-align: end; padding-inline-start: 24px; border-inline-start: 1px solid var(--rule); }
.cs-next__prev { padding-inline-end: 24px; }
.cs-next__lbl { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-next__name { display: inline-flex; align-items: center; gap: .3em; font: 600 clamp(1.6rem, 1rem + 1.6vw, 2.6rem)/1.1 var(--f-display); color: var(--ink); transition: color .2s ease; }
.cs-next__name .i-arrow { width: .62em; height: .62em; stroke-width: 1.4; }
.cs-next__back .i-arrow { transform: scaleX(-1); }
.cs-next__back .i-arrow:dir(rtl) { transform: none; }
.cs-next__prev:hover .cs-next__name, .cs-next__next:hover .cs-next__name { color: var(--accent); }
.cs-next__kind { color: var(--muted); }

/* Pusula diagram */
.diagram { background: var(--band); color: var(--ink); }
.diagram__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.compass--lg { width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.legend { list-style: none; margin: 30px 0 0; }
.legend li { display: flex; align-items: flex-start; gap: 16px; padding-block: 14px; border-block-start: 1px solid var(--rule); color: var(--body); }
.legend li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.legend strong { font-weight: 600; color: var(--ink); }
.legend li > span:last-child > span { color: var(--muted); font-size: .92rem; }
.lg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.lg--core { border-radius: 50%; background: radial-gradient(circle, var(--band) 0 3.4px, #F4F2ED 3.9px); }
.lg--node { width: 14px; height: 14px; margin: 6px 4px 0; border-radius: 50%; background: #F4F2ED; }
.lg--doc { width: 17px; height: 17px; margin: 5px 3px 0; border-radius: 50%; border: 2px solid #F4F2ED; background: linear-gradient(135deg, transparent 43%, #F4F2ED 43% 57%, transparent 57%); }
.lg--needle { width: 9px; height: 22px; margin-inline: 6px 7px; border-radius: 5px; background: var(--saffron); }
.lg--dot { width: 6px; height: 6px; margin: 10px 8px 0; border-radius: 50%; background: var(--muted); }
.chain-wrap { margin-block-start: clamp(48px, 6vw, 88px); padding-block-start: 32px; border-block-start: 1px solid var(--rule); }
.chain__title { margin: 0 0 6px; font: 600 1.4rem/1.3 var(--f-display); color: var(--ink); }
.chain__sub { margin: 0 0 30px; color: var(--muted); max-width: 62ch; }
.chain { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.chain li {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--rule-2); border-radius: 14px; background: rgba(244, 242, 237, .03);
}
.chain li + li::before { content: ""; position: absolute; inset-inline-start: -41px; top: 50%; width: 40px; height: 1px; background: rgba(244, 242, 237, .45); }
.chain li + li::after { content: ""; position: absolute; inset-inline-start: -5px; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.chain__label { font-size: .85rem; color: var(--muted); }
.chain__fp { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.chain__fp i { flex: 1; height: var(--h); border-radius: 1px; background: #F4F2ED; opacity: .78; }
.chain__fp--prev i { opacity: .28; }
.diagram__privacy { display: flex; align-items: center; gap: 8px; margin: 36px 0 0; color: var(--muted); font-size: .9rem; }
.lg--ring { width: 18px; height: 18px; margin: 3px 2px 0; border-radius: 50%; border: 4px solid #F4F2ED; border-inline-end-color: rgba(244, 242, 237, .2); }
.lg--tick { width: 4px; margin-inline: 9px; }
.lg--trend { width: 22px; height: 12px; margin-top: 6px; border-block-end: 2px solid #F4F2ED; border-radius: 0 0 0 12px; transform: skewY(-14deg); }
.lg--trend:dir(rtl) { transform: skewY(14deg) scaleX(-1); }

/* --------------------------------------------------------------- about */

.about-hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: center; }
.about-hero__art { display: grid; place-items: center; }
.about-hero__sym { width: 100%; max-width: 340px; height: auto; color: var(--ink); }
.about-hero__sym .sym__turn, .nf__sym .sym__turn { animation: turn-ccw 48s linear infinite; }
.about-hero__sym:dir(rtl) .sym__turn { animation-name: turn-cw; }
@keyframes turn-ccw { from { transform: rotate(var(--r, 0deg)); } to { transform: rotate(calc(var(--r, 0deg) - 360deg)); } }
@keyframes turn-cw { from { transform: rotate(var(--r, 0deg)); } to { transform: rotate(calc(var(--r, 0deg) + 360deg)); } }
@keyframes turn { to { transform: rotate(360deg); } }

.meaning__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.meaning__glyph { margin: 0; }
.meaning__pair { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 36px); }
.meaning__s { width: clamp(110px, 17vw, 230px); height: auto; color: var(--ink); }
.meaning__sym { width: clamp(100px, 15vw, 210px); height: auto; color: var(--ink); }
.meaning__eq .i { width: 30px; height: 30px; color: var(--muted); stroke-width: 1.4; }
.meaning__glyph figcaption { margin-top: 26px; text-align: center; color: var(--muted); font-size: .95rem; }
.meaning__say {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  width: fit-content; max-width: 100%; margin: 0 0 28px; padding: 12px 20px;
  border: 1px solid var(--rule-2); border-radius: var(--r);
}
.meaning__say-l { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meaning__say-v { font: 600 1.3rem/1.2 var(--f-display); color: var(--ink); }
.meaning__say .sig { height: 20px; }
.meaning__say-ar { font: 600 1.2rem/1.3 var(--f-display) !important; color: var(--ink); }
.meaning__say-alt { color: var(--muted); font-size: .9rem; }
.meaning__campaign { width: fit-content; margin: -12px 0 22px; font: 600 1.15rem/1.4 var(--f-display) !important; color: var(--accent); }
.meaning__body > p:last-child { margin: 0; color: var(--body); }
.meaning__body h2 { margin-block-end: 26px; }
.meaning__body h2 + .meaning__campaign { margin-top: -14px; }

.founders__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.founder {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: start;
  padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card);
}
.founder__stone { width: 132px; aspect-ratio: 452 / 476; }
.stone { width: 100%; height: auto; overflow: visible; }
.stone__ink { fill: var(--ink); }
.stone__ghost { fill: none; stroke: var(--rule-2); stroke-width: 6; stroke-dasharray: 4 14; stroke-linecap: round; }
.founder__stone--upper .sym__turn { transition: transform 1.2s var(--ease); }
.founder:hover .founder__stone--upper .sym__turn { transform: rotate(-36deg); }
.founder:hover .founder__stone--upper .sym__turn:dir(rtl) { transform: rotate(36deg); }
.founder__name { margin: 4px 0 6px; }
.founder__role { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.founder__from { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.founder__bio { margin: 0; color: var(--body); }

.timeline { list-style: none; max-width: 980px; }
.tl { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) 40px minmax(0, 8fr); gap: 0 24px; padding-block-end: 44px; }
.tl::after { content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 1px; margin-block: 36px -8px; background: var(--rule-2); }
.tl:last-child::after { display: none; }
.tl__when { grid-column: 1; grid-row: 1; margin: 0; text-align: end; font: 600 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.3 var(--f-display); color: var(--ink); }
.tl__mark { grid-column: 2; grid-row: 1; justify-self: center; align-self: start; position: relative; width: 24px; height: 24px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--ink); }
.tl__mark::before { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.tl--now .tl__mark { background: var(--saffron); border-color: var(--saffron); }
.tl--now .tl__mark::before { background: var(--basalt); }
.tl__body { grid-column: 3; grid-row: 1; }
.tl__title { margin: 0 0 8px; font: 600 1.35rem/1.3 var(--f-display); color: var(--ink); }
.tl__body p { margin: 0; color: var(--body); max-width: 56ch; }

.langs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block-start: 1px solid var(--rule-2); }
.langs li { display: flex; flex-direction: column; gap: 8px; padding: 30px 20px; border-inline-end: 1px solid var(--rule); }
.langs li:first-child { padding-inline-start: 0; }
.langs li:last-child { border-inline-end: 0; }
.langs__native[lang] { font: 600 clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem)/1.15 var(--f-display); color: var(--ink); }
.langs__name { color: var(--muted); font-size: .92rem; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.principles li { display: flex; flex-direction: column; gap: 12px; min-height: 270px; padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--card); }
.principles__n { font: 600 .95rem var(--f-display); color: var(--accent); }
.principles__t { margin: 22px 0 0; font-size: 1.35rem; }
.principles li p { margin: 0; color: var(--body); font-size: .97rem; }

/* --------------------------------------------------------------- contact */

.contact { padding-block: clamp(44px, 6vw, 96px) clamp(72px, 9vw, 140px); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro card" "direct card"; grid-template-rows: auto 1fr;
  gap: 0 clamp(40px, 6vw, 96px); align-items: start;
}
.contact__intro { grid-area: intro; }
.contact__direct { grid-area: direct; }
.contact__card { grid-area: card; }
.contact__title { margin: 0 0 22px; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); }
.contact__intro .lead { margin: 0; }
.contact__h { margin: 44px 0 14px; font: 600 .76rem/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.channels { list-style: none; border-block-start: 1px solid var(--rule); }
.channels li { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-block-end: 1px solid var(--rule); }
.channels__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--rule-2); color: var(--ink); }
.channels__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.channels__l { font-size: .82rem; color: var(--muted); }
.channels__v { align-self: flex-start; font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; user-select: text; white-space: nowrap; }
a.channels__v:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rule-2);
  background: transparent; color: var(--body); font: 500 .85rem/1 var(--f-text); cursor: pointer;
}
.copy:lang(ar) { font-family: var(--f-ar); }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.is-done { border-color: var(--olive); color: var(--link); }
.contact__follow { margin-top: 28px; }
.contact__follow .contact__h { margin-top: 0; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

/* social links: icon-only rounds in the footer, icon + name chips on the contact page */
.soc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .soc-list { display: flex; gap: 8px; }
.soc {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--rule-2);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.soc .soc-ico { width: 20px; height: 20px; }
.soc-ico .f { fill: currentColor; stroke: none; }
.soc-ico .fs { fill: currentColor; }
.soc-ico--fine { stroke-width: 1.55; }
.soc:hover { border-color: var(--ink); }
.site-footer .soc:hover { background: var(--ink); color: var(--band); text-decoration: none; }
.soc--labelled { height: 40px; padding: 0 15px 0 11px; font-weight: 600; font-size: .92rem; }
.soc--labelled .soc-ico { width: 18px; height: 18px; }
.soc__l { font-family: var(--f-text); }

.contact__card { padding: clamp(24px, 3.5vw, 48px); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--field-edge); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field ::placeholder { color: var(--muted); opacity: .85; }
.field [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form:dir(rtl) input[type="email"] { text-align: right; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: 18px; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.field__err { margin: 0; color: var(--accent); font-size: .88rem; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__how { flex: 1 1 240px; display: flex; gap: 10px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.form__how .i { margin-top: 2px; }
.form__privacy { margin: 0; color: var(--muted); font-size: .85rem; }
.form__status { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--ink); }
.form__status:empty { display: none; }
.form__status.is-error { background: color-mix(in srgb, var(--saffron-deep) 12%, transparent); }
.form__status a { color: inherit; font-weight: 600; }
.form__ready { padding: 24px; border-radius: var(--r); background: var(--ground-2); border: 1px solid var(--rule); }
.form__ready:focus { outline: none; }
.form__ready.is-fallback { border-color: color-mix(in srgb, var(--saffron-deep) 45%, transparent); }
.form__ready-t { margin: 0 0 8px; font: 600 1.4rem/1.3 var(--f-display); color: var(--ink); text-wrap: balance; }
.form__ready p { margin: 0; color: var(--body); }
.form__ready-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* --------------------------------------------------------------- lightbox (case-study galleries) */

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 19, 17, .94); color: #F4F2ED;
}
.lightbox::backdrop { background: rgba(20, 19, 17, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 4vw, 72px); overflow: auto; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__cap { margin: 0; padding: 14px 16px 22px; text-align: center; color: rgba(244, 242, 237, .8); font-size: .92rem; }
.lightbox__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(244, 242, 237, .3); background: transparent; color: #F4F2ED; cursor: pointer;
}
.lightbox__btn:hover { border-color: #F4F2ED; }
.lightbox__btn:focus-visible { outline: 3px solid #E5662F; outline-offset: 3px; }
.lightbox__btn .i { width: 20px; height: 20px; }
.lightbox [data-lb-prev] .i:dir(ltr) { transform: scaleX(-1); }
.lightbox [data-lb-next] .i:dir(rtl) { transform: scaleX(-1); }

/* --------------------------------------------------------------- root chooser + 404 */

.chooser, .nf { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; text-align: center; }
.chooser__logo .lockup { height: 64px; width: auto; color: var(--ink); }
.chooser__line { display: flex; flex-direction: column; gap: 6px; margin: 30px 0 34px; font: 600 1.4rem/1.3 var(--f-display); color: var(--ink); }
.chooser__line [lang="ar"] { font-family: var(--f-display); }
.chooser__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chooser__ns { margin-top: 20px; color: var(--muted); }
.nf { gap: 36px; }
.nf__logo { color: var(--ink); }
.nf__logo .lockup { height: 40px; }
.nf__art { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); font: 600 clamp(6rem, 18vw, 12rem)/1 var(--f-display); color: var(--ink); }
.nf__sym { width: clamp(5.4rem, 15vw, 10rem); height: auto; color: var(--ink); }
.nf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; max-width: 980px; }
.nf__block { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nf__block .lead { margin: 0; }

/* --------------------------------------------------------------- reveal (fail-safe) */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.rv-on .rv:not(.is-in) { opacity: 0; transform: translate3d(0, 26px, 0); }
  .rv { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .compass .needle { animation: needle 7s ease-in-out infinite alternate; }
  @keyframes needle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .about-hero__sym .sym__turn, .grooves .g--dash, .nf__sym .sym__turn { animation: none !important; }
  .hero__eyebrow, .hero__raw, .hero__out, .hero__lead, .hero__ctas { animation: none !important; }
}
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof__sig { grid-column: 1 / -1; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .langs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .langs li:nth-child(3n) { border-inline-end: 0; }
  .langs li:nth-child(3n + 1) { padding-inline-start: 0; }
  .langs li:nth-child(n + 4) { border-block-start: 1px solid var(--rule); }
}

@media (max-width: 1020px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: inline-grid; }
  .no-js .site-header__in { flex-wrap: wrap; height: auto; padding-block: 12px; }
  .no-js .nav { display: block; order: 3; width: 100%; }
  .no-js .nav ul { flex-wrap: wrap; }
  .no-js .burger { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .lockup { height: 30px; }
  .hero__grid { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); }
  .hero__copy { grid-column: 2; padding-inline-end: 0; padding-block-start: 12px; }
  .hero__stage { grid-column: 1 / -1; height: clamp(380px, 58svh, 520px); min-height: 0; margin-block-start: 8px; }
  .sec-head, .case, .case--dark, .story__grid, .product__grid, .cs-hero__grid, .meaning__grid,
  .contact__grid, .diagram__grid, .craft__grid, .about-hero__grid, .cs-row, .work-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .case--flip .case__media { order: 0; }
  .cs-row__h { position: static; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::before { inset-inline-start: 40px; inset-inline-end: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 22px; padding-inline-end: 0; padding-block-end: 36px; }
  .step__mark { grid-row: 1 / span 3; margin: 0; }
  .step__time { justify-self: start; }
  .story__art { max-width: 380px; }
  .about-hero__art { order: -1; justify-items: start; }
  .about-hero__sym { max-width: 120px; }
  .wgrid { grid-template-columns: minmax(0, 1fr); }
  .wcard:nth-child(even) { margin-block-start: 0; }
  .cs-next a { padding-block: 32px; }
  .cs-next__name { font-size: clamp(1.3rem, 1rem + 2vw, 1.8rem); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .chain li::before, .chain li::after { display: none; }
  .meaning__glyph { order: 2; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "direct" "card"; grid-template-rows: auto; gap: 36px; }
  .contact__direct .contact__h { margin-top: 0; }
  .bigstats--4, .bigstats--5, .bigstats--6 { --cols: 2; }
  .story__art { max-width: 320px; }
}

@media (max-width: 640px) {
  .section { padding-block: clamp(64px, 16vw, 96px); }
  .section--flush-top { padding-block-start: 0; }
  /* phone hero: the stone and the first word it grinds both sit above the fold */
  .hero__stage { height: clamp(300px, 42svh, 380px); margin-block-start: 0; }
  .hero__eyebrow { letter-spacing: .05em; font-size: .66rem; }
  .hero__ctas { column-gap: 20px; }
  .btn--lg { padding: 0 24px; }
  .hero__eyebrow:lang(ar) { font-size: .72rem; letter-spacing: 0; }
  .hero__lead { margin-bottom: 24px; font-size: 1.02rem; }
  .hero__title { margin-bottom: 18px; }
  .bigstats li:has(.is-text) { grid-column: 1 / -1; }
  .founder__stone { width: 96px; }
  .site-footer__cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 20px; }
  .proof li:not(.proof__line) { gap: 16px; }
  .proof__v { min-width: 1.4em; }
  .svc-grid, .principles, .features, .craft__list, .plates, .founders__grid, .form__row { grid-template-columns: minmax(0, 1fr); }
  .svc--feature { grid-column: auto; }
  .svc { min-height: 0; }
  .stage { aspect-ratio: 4 / 3.2; }
  .stage .frame-browser { width: 112%; top: 12%; }
  .stage .frame-phone { width: 31%; inset-inline-end: 6%; bottom: -14%; }
  .stage--lg { aspect-ratio: 4 / 3.3; }
  .stage--lg .frame-browser { width: 104%; }
  .stage--lg .frame-phone { width: 30%; }
  .case__meta > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .route::before { inset-inline-start: 7px; inset-inline-end: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--rule-2) 0 6px, transparent 6px 11px); }
  .route li { display: grid; grid-template-columns: 15px minmax(0, 1fr); column-gap: 16px; padding: 0; }
  .route__dot { grid-row: 1 / span 2; margin: 4px 0 0; }
  .founder { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tl { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; }
  .tl::after { grid-column: 1; grid-row: 1 / span 2; margin-block: 32px -12px; }
  .tl__when { grid-column: 2; text-align: start; }
  .tl__mark { grid-column: 1; }
  .tl__body { grid-column: 2; grid-row: 2; }
  .langs { grid-template-columns: minmax(0, 1fr); }
  .langs li, .langs li:first-child { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 18px 0; border-inline-end: 0; border-block-end: 1px solid var(--rule); }
  .langs li:nth-child(n + 4) { border-block-start: 0; }
  .plate { padding: 18px 18px 18px; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .phones .plate__tag { inset-inline-end: -4px; }
  .site-footer__cols { gap: 28px 20px; }
  .nf__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cta-band__art { top: auto; bottom: -34%; transform: none; inset-inline-end: -46vw; width: 86vw; opacity: .8; }
  .motion-toggle { margin-inline-start: 0; }
  .bigstats { --cols: 2; gap: 24px 20px; }
  .story__art { max-width: 280px; }
  .copy { padding: 10px; }
  .copy__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .facts > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .channels__v { font-size: 1.05rem; }
}

@media print {
  .site-header, .menu, .cta-band, .hero__stage, body::before, .motion-toggle { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
