/* ============================================================
   نَسج ستوديو · Temporary intro site
   Brand tokens distilled from the official brand-guidelines.html
   ============================================================ */

/* Arabic-safe tracking — never apply negative letter-spacing to Arabic */
:where(.ar, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
       [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6) { letter-spacing: 0 !important; }

:root {
  --ink:      #11151C;
  --ink-2:    #1A1F29;
  --slate:    #2A2E37;
  --saffron:  #CC9A4D;
  --saffron-d:#A87B36;
  --camel:    #8B7355;
  --wheat:    #D9C9A8;
  --linen:    #F5EFE6;
  --paper:    #FAF6EE;
  --olive:    #5B6E4F;

  --rule:     rgba(17,21,28,.12);
  --rule-d:   rgba(245,239,230,.14);

  --ar: "Tajawal", system-ui, sans-serif;
  --la: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(22px, 6vw, 96px);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--ar);
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.la   { font-family: var(--la); direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
a { color: inherit; }

::selection { background: rgba(204,154,77,.30); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

/* ===== Shared section heads ===== */
.block { padding: clamp(72px,9vw,120px) var(--pad-x); position: relative; }
.block.paper { background: var(--paper); }
.block + .block, .block.paper { border-top: 1px solid var(--rule); }
.block > * { max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--saffron-d); margin-bottom: 28px;
}
.eyebrow .num { font-weight: 500; }
.eyebrow .rule { flex: 1; height: 1px; background: currentColor; opacity: .35; max-width: 120px; }

.block-head { margin-bottom: 56px; }
.block-head h2.ar { font-family: var(--ar); font-weight: 700; font-size: clamp(34px,5vw,64px); line-height: 1.2; margin: 0; }
.block-head h2.la { font-family: var(--la); font-weight: 300; font-size: clamp(20px,3vw,34px); line-height: 1.1; margin: 6px 0 0; letter-spacing: -.02em; opacity: .5; }
.lead { font-size: clamp(18px,2.2vw,22px); line-height: 1.6; max-width: 760px; margin: 22px 0 0; opacity: .82; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px var(--pad-x);
  background: rgba(245,239,230,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; color: var(--ink); flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-ar { font-family: var(--ar); font-weight: 800; font-size: 22px; }
.brand-sub { font-size: 9px; letter-spacing: .25em; opacity: .55; margin-top: 4px; }

.nav { display: flex; gap: 30px; }
.nav a {
  text-decoration: none; font-family: var(--ar); font-weight: 500; font-size: 17px;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav a .la { font-family: var(--la); font-weight: 300; font-size: 11px; opacity: .5; margin-inline-start: 6px; }
.nav a::after {
  content: ""; position: absolute; bottom: -2px; inset-inline: 0; height: 1.5px;
  background: var(--saffron); transform: scaleX(0); transform-origin: inline-end; transition: transform .28s ease;
}
.nav a:hover { color: var(--saffron-d); }
.nav a:hover::after { transform: scaleX(1); transform-origin: inline-start; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  font-family: var(--ar); font-weight: 700; font-size: 15px;
  background: var(--ink); color: var(--linen); transition: transform .2s, background .2s;
}
.pill:hover { transform: translateY(-1px); }
.pill-wa { background: var(--saffron); color: var(--ink); }
.pill .wa-glyph { width: 18px; height: 18px; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  background: none; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--linen);
  min-height: calc(100vh - 70px);
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(48px,8vh,90px) var(--pad-x) 32px;
}
.hero-weave { position: absolute; inset: -18% 0; width: 100%; height: 136%; opacity: .10; pointer-events: none;
  transform: translateY(var(--py, 0)); will-change: transform; }

/* Oversized faint brand mark — parallax depth layer behind the wordmark */
.hero-ghost { position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-end: -6%;
  width: min(58vw, 720px); height: auto; transform: translateY(-50%) translateY(var(--py, 0));
  opacity: .05; pointer-events: none; will-change: transform; }

/* Slow saffron light sweep across the hero */
.hero-sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 50% at 18% 0%, rgba(204,154,77,.22), transparent 70%);
  animation: sweep 14s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translate3d(-6%, -4%, 0) scale(1); opacity: .35; }
  to { transform: translate3d(10%, 6%, 0) scale(1.15); opacity: .6; } }

.hero-inner { max-width: var(--maxw); margin-inline: auto; align-self: center; position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin-bottom: clamp(34px,6vh,60px); }
.hero-title { font-family: var(--ar); font-weight: 800; font-size: clamp(68px,14vw,200px); line-height: 1.12; margin: 0; padding-block: .02em; }
.hero-title .studio { color: var(--saffron); font-weight: 400; }
.hero-latin { font-family: var(--la); font-weight: 200; font-size: clamp(26px,4vw,52px); letter-spacing: -.01em; opacity: .75; margin-top: 6px; }
.hero-latin .accent { color: var(--saffron); }

.hero-voice { font-family: var(--ar); font-weight: 500; font-size: clamp(19px,2.4vw,28px); line-height: 1.55; max-width: 720px; margin: 40px 0 0; }
.hero-voice.la { font-family: var(--la); font-weight: 300; font-size: clamp(14px,1.6vw,18px); opacity: .6; margin-top: 10px; font-style: italic; }

.hero-keys { font-family: var(--ar); font-weight: 400; font-size: clamp(13px,1.5vw,16px);
  opacity: .55; margin: 22px 0 0; max-width: 720px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero value strip (replaces the old editorial foot) */
.hero-marks {
  display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center;
  list-style: none; margin: 0; padding: 22px 0 0; position: relative; z-index: 2;
  border-top: 1px solid var(--rule-d);
  font-family: var(--ar); font-weight: 500; font-size: clamp(13px,1.5vw,15px); opacity: .85;
}
.hero-marks li { display: inline-flex; align-items: center; gap: 10px; }
.hero-marks li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--saffron); box-shadow: 0 0 0 4px rgba(204,154,77,.15);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 12px; text-decoration: none;
  font-family: var(--ar); font-weight: 700; font-size: 17px; line-height: 1;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn .btn-label { display: inline-block; white-space: nowrap; }
.btn .la { font-family: var(--la); font-weight: 400; opacity: .55; font-size: 13px; }
.btn .btn-arrow { width: 18px; height: 18px; transition: transform .25s ease; }
[dir="rtl"] .btn .btn-arrow { transform: scaleX(1); } /* arrow already points to inline-start (right→left) */

.btn-gold {
  background: var(--saffron); color: var(--ink);
  box-shadow: 0 8px 26px -12px rgba(204,154,77,.85);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(204,154,77,.95); }
.btn-gold:hover .btn-arrow { transform: translateX(-4px); }
.btn-gold .wa-glyph { width: 20px; height: 20px; }

.btn-ghost { background: transparent; color: var(--linen); border-color: var(--rule-d); }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron); transform: translateY(-2px); }

/* Inline gold text link */
.link-gold { color: var(--saffron-d); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-gold:hover { color: var(--saffron); }

/* ===== Essence ===== */
.essence {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(48px,7vw,80px) var(--pad-x);
}
.essence-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron-d);
  writing-mode: vertical-rl; transform: rotate(180deg); }
.essence-q { font-family: var(--ar); font-weight: 500; font-size: clamp(30px,4.4vw,54px); line-height: 1.25; quotes: "«" "»"; display: block; }
.essence-q::before { content: open-quote; } .essence-q::after { content: close-quote; }
.essence-la { display: block; font-family: var(--la); font-weight: 300; font-size: clamp(16px,2vw,22px); opacity: .5; margin-top: 14px; font-style: italic; }

/* ===== Services cards ===== */
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cards--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card { background: var(--paper); padding: 40px 34px; display: flex; flex-direction: column; transition: background .3s; }
.card:hover { background: var(--linen); }
.card-n { font-size: 11px; letter-spacing: .22em; color: var(--saffron-d); text-transform: uppercase; }
.card-icon { width: 48px; height: 48px; color: var(--ink); margin: 26px 0 22px; }
.card-title { font-family: var(--ar); font-weight: 700; font-size: clamp(22px,2.6vw,30px); margin: 0 0 4px; line-height: 1.3; }
.card-title .la { display: block; font-family: var(--la); font-weight: 300; font-size: 15px; opacity: .5; margin-top: 4px; }
.card p { font-size: 16px; line-height: 1.65; opacity: .8; margin: 14px 0 0; }

/* ===== Values ===== */
.values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 8px; }
.values--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v { background: var(--linen); padding: 38px 34px; }
.block.paper .v { background: var(--paper); }
.v-n { font-size: 11px; letter-spacing: .22em; color: var(--saffron-d); text-transform: uppercase; }
.v-title { font-family: var(--ar); font-weight: 700; font-size: clamp(26px,3vw,34px); margin: 14px 0 4px; }
.v-title .la { display: block; font-family: var(--la); font-weight: 300; font-size: 16px; opacity: .5; }
.v p { font-size: 16px; line-height: 1.65; opacity: .8; margin: 14px 0 0; }

/* ===== Contact ===== */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--linen);
  padding: clamp(72px,10vw,130px) var(--pad-x); border-top: 1px solid var(--rule-d); }
.contact-weave { position: absolute; inset: -20% 0; width: 100%; height: 140%; opacity: .08; pointer-events: none;
  transform: translateY(var(--py, 0)); will-change: transform; }
.contact-inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; }
.contact .eyebrow { color: var(--saffron); }
.contact-title { font-family: var(--ar); font-weight: 800; font-size: clamp(40px,6vw,84px); line-height: 1.05; margin: 0; }
.contact-title .la { display: block; font-family: var(--la); font-weight: 200; font-size: clamp(20px,2.6vw,32px); opacity: .5; margin-top: 8px; }
.contact-lead { font-size: clamp(17px,2vw,21px); line-height: 1.6; max-width: 560px; margin: 26px 0 0; opacity: .8; }
.contact-actions { margin: 38px 0 50px; }

.contact-lines { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.contact-line { background: rgba(245,239,230,.04); border: 1px solid var(--rule-d); border-radius: 16px;
  padding: 22px; text-decoration: none; display: flex; align-items: center; gap: 15px;
  transition: border-color .25s, background .25s, transform .25s; }
a.contact-line:hover { border-color: var(--saffron); background: rgba(204,154,77,.07); transform: translateY(-3px); }
.cl-k { font-size: 11px; letter-spacing: .08em; color: var(--saffron); }
.cl-v { font-size: 18px; font-weight: 500; }
a.contact-line .cl-v { font-family: var(--mono); letter-spacing: .02em; font-size: 16px; }

/* ===== Colophon ===== */
.colophon { padding: 56px var(--pad-x); background: var(--ink-2); color: var(--linen);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.col-left, .col-right { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .5; }
.col-right { text-align: end; direction: ltr; }
.col-mid { display: flex; align-items: center; gap: 12px; justify-content: center; font-family: var(--ar); font-weight: 700; font-size: 22px; }
.col-mark { width: 40px; height: 40px; }

/* ===== Floating WhatsApp FAB ===== */
.fab {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--saffron); color: var(--ink);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(17,21,28,.5);
  transition: transform .2s, box-shadow .2s;
}
.fab svg { width: 32px; height: 32px; }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--saffron); z-index: -1; animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(1.7); opacity: 0; } }
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px -8px rgba(17,21,28,.6); }
.fab-tip {
  position: absolute; inset-inline-start: 72px; white-space: nowrap;
  background: var(--ink); color: var(--linen); font-family: var(--ar); font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateX(-6px) scaleX(.9);
  transform-origin: inline-start; transition: opacity .25s, transform .25s; pointer-events: none;
}
[dir="rtl"] .fab-tip { transform: translateX(6px) scaleX(.9); }
.fab:hover .fab-tip { opacity: 1; transform: translateX(0) scaleX(1); }

/* ===== Scroll reveal ===== */
/* Only hide reveals once JS confirms it can bring them back (html.js).
   Without JS the content stays fully visible. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.21,.47,.32,.98), transform .7s cubic-bezier(.21,.47,.32,.98); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Sectors ===== */
.sectors { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sector { position: relative; background: var(--linen); padding: 30px 28px; text-decoration: none; color: inherit;
  display: block; transition: background .3s, transform .3s; overflow: hidden; }
.block.paper .sector { background: var(--paper); }
.sector::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 3px;
  background: var(--saffron); transform: scaleY(0); transform-origin: bottom; transition: transform .3s ease; }
.sector:hover { background: var(--paper); }
.block.paper .sector:hover { background: var(--linen); }
.sector:hover::before { transform: scaleY(1); }
.s-n { font-size: 12px; letter-spacing: .2em; color: var(--saffron-d); opacity: .7; }
.s-title { font-family: var(--ar); font-weight: 700; font-size: clamp(19px,2.2vw,24px); margin: 12px 0 0; line-height: 1.35; }
.s-title .la { display: block; font-family: var(--la); font-weight: 300; font-size: 13px; opacity: .45; margin-top: 3px; }
.sector p { font-size: 15px; line-height: 1.6; opacity: .78; margin: 10px 0 0; }
.sectors-foot { text-align: center; font-size: clamp(16px,2vw,19px); margin: 36px 0 0; opacity: .9; }

/* ===== Process steps ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; inset-block-start: 24px; inset-inline: 6%; height: 2px;
  background-image: linear-gradient(90deg, var(--rule) 50%, transparent 50%); background-size: 12px 2px; opacity: .8; z-index: 0; }
.step { position: relative; z-index: 1; }
.step-n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--linen); font-size: 15px; font-weight: 500; margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--linen); }
.block.paper .step-n { box-shadow: 0 0 0 6px var(--paper); }
.step-title { font-family: var(--ar); font-weight: 700; font-size: clamp(22px,2.6vw,28px); margin: 0; }
/* Desktop: center each step (circle + text) within its column so the 4 points
   sit balanced inside the container, connected by the line. */
@media (min-width: 601px) { .step { text-align: center; } .step-n { margin-inline: auto; } }
.step-title .la { display: block; font-family: var(--la); font-weight: 300; font-size: 13px; color: var(--saffron-d); opacity: .8; margin-top: 4px; }
.step p { font-size: 15px; line-height: 1.6; opacity: .78; margin: 10px 0 0; }

/* ===== Work / concept mockups ===== */
.works-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }

/* ===== Our work (real projects) ===== */
.work { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--paper);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.work:hover { transform: translateY(-6px); box-shadow: 0 32px 56px -34px rgba(17,21,28,.5); border-color: var(--saffron); }
.work-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--linen); border-bottom: 1px solid var(--rule); }
.work-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.work-bar i:first-child { background: #d98b7a; } .work-bar i:nth-child(2) { background: var(--wheat); } .work-bar i:nth-child(3) { background: #9bb08a; }
.work-bar span { margin-inline-start: auto; font-family: var(--mono); font-size: 11px; opacity: .6; direction: ltr; }
.work-cover { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.work-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s ease; }
.work:hover .work-shot { transform: scale(1.04); }
.work-name { display: grid; place-items: center; height: 100%; font-family: var(--ar); font-weight: 800; font-size: clamp(22px,3.2vw,32px); color: #F5EFE6; letter-spacing: 0; text-align: center; }
.work--alaqar .work-cover { background: linear-gradient(135deg, #5B6E4F, #36422f); }
.work--biz .work-cover { background: linear-gradient(135deg, #2A2E37, #11151C); }
.work--ai .work-cover { background: linear-gradient(135deg, #CC9A4D, #8B7355); }
.work--mediex .work-cover { background: linear-gradient(135deg, #6f9089, #415b55); }
.work-meta { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-meta h3 { font-family: var(--ar); font-weight: 700; font-size: clamp(19px,2.2vw,23px); margin: 0; line-height: 1.35; }
.work-domain { display: block; font-family: var(--mono); font-size: 12px; color: var(--saffron-d); opacity: .85; margin-top: 4px; direction: ltr; }
.work-meta p { font-size: 15px; line-height: 1.6; opacity: .8; margin: 0; }
.work-visit { margin-top: auto; padding-top: 12px; color: var(--saffron-d); font-weight: 700; font-size: 15px; }
.work:hover .work-visit { color: var(--saffron); }
.mock { margin: 0; }
.mock-tag { display: inline-block; font-size: 11px; letter-spacing: .12em; color: var(--saffron-d); margin-bottom: 12px; }
.mock-frame { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 24px 50px -34px rgba(17,21,28,.55); transition: transform .35s ease, box-shadow .35s ease; }
.mock:hover .mock-frame { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(17,21,28,.6); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--linen); border-bottom: 1px solid var(--rule); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.mock-bar i:first-child { background: #d98b7a; } .mock-bar i:nth-child(2) { background: var(--wheat); } .mock-bar i:nth-child(3) { background: #9bb08a; }
.mock-bar span { margin-inline-start: auto; font-family: var(--mono); font-size: 10px; opacity: .5; direction: ltr; }
.mock-bar.dark { background: var(--ink-2); border-color: var(--rule-d); } .mock-bar.dark span { opacity: .6; color: var(--linen); }
.mock-screen { aspect-ratio: 4/3; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.mock-screen.dark { background: var(--ink); }
.mock-hero { height: 42%; border-radius: 8px; background: linear-gradient(135deg, var(--wheat), var(--camel)); }
.mock-hero.gold { background: linear-gradient(135deg, var(--saffron), var(--saffron-d)); }
.mock--clean .mock-hero { background: linear-gradient(135deg, #cfe0d4, var(--olive)); }
.mock-row { display: flex; gap: 10px; }
.mock-row span { flex: 1; height: 34px; border-radius: 6px; background: var(--linen); border: 1px solid var(--rule); }
.mock-row span.g { background: rgba(245,239,230,.08); border-color: var(--rule-d); }
.mock-line { height: 10px; border-radius: 4px; background: var(--rule); }
.mock-line.light { background: rgba(245,239,230,.18); }
.mock-line.w70 { width: 70%; } .mock-line.w60 { width: 60%; } .mock-line.w40 { width: 40%; } .mock-line.w35 { width: 35%; }
.mock-split { display: flex; gap: 12px; height: 52%; }
.mock-block { width: 45%; border-radius: 8px; background: linear-gradient(135deg, #cfe0d4, var(--olive)); }
.mock-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.mock-text b { height: 14px; width: 70%; border-radius: 4px; background: var(--camel); display: block; }
.mock-text i { height: 9px; border-radius: 4px; background: var(--rule); display: block; }
.mock figcaption { font-size: 15px; line-height: 1.6; opacity: .8; margin-top: 14px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 860px; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--ar); font-weight: 700; font-size: clamp(18px,2.2vw,22px); transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-family: var(--mono); font-weight: 400; font-size: 26px; color: var(--saffron-d);
  transition: transform .3s ease; line-height: 1; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--saffron-d); }
.qa p { margin: 0 4px 24px; font-size: 16px; line-height: 1.7; opacity: .82; max-width: 720px; }

/* ===== Iconography + micro-interactions =====
   Line icons inherit currentColor; they warm to saffron on hover for a
   quiet, crafted motion layer. */
.s-icon, .v-icon { display: block; color: var(--saffron-d);
  transition: color .3s ease, transform .3s ease; }
.s-icon { width: 30px; height: 30px; margin-bottom: 16px; }
.v-icon { width: 36px; height: 36px; margin-bottom: 20px; }

/* Sector card: icon-led, number as a faint corner watermark */
.sector { padding-block-start: 30px; }
.sector .s-n { position: absolute; inset-block-start: 22px; inset-inline-end: 26px; opacity: .32; }
.sector:hover .s-icon { color: var(--saffron); transform: translateY(-3px); }

/* Value card: icon-led, number as a faint corner watermark */
.v { position: relative; }
.v .v-n { position: absolute; inset-block-start: 30px; inset-inline-end: 34px; opacity: .3; }
.v:hover .v-icon { color: var(--saffron); transform: translateY(-3px); }

/* Service card icon warms on hover */
.card-icon { transition: color .3s ease, transform .3s ease; }
.card:hover .card-icon { color: var(--saffron-d); transform: translateY(-3px); }

/* Contact box: icon + stacked label/value */
.cl-icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; box-sizing: border-box;
  background: rgba(204,154,77,.12); color: var(--saffron); flex: none;
  transition: transform .25s ease, background .25s ease; }
.cl-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
a.contact-line:hover .cl-icon { transform: scale(1.08); background: rgba(204,154,77,.22); }

/* Staggered reveal cascade across grid children (column-by-column) */
.cards > .reveal:nth-child(2n),
.values > .reveal:nth-child(2n) { transition-delay: .08s; }
.sectors > .reveal:nth-child(3n+2) { transition-delay: .07s; }
.sectors > .reveal:nth-child(3n) { transition-delay: .14s; }
.works-grid > .reveal:nth-child(2),
.steps > .reveal:nth-child(2) { transition-delay: .08s; }
.works-grid > .reveal:nth-child(3),
.steps > .reveal:nth-child(3) { transition-delay: .16s; }
.steps > .reveal:nth-child(4) { transition-delay: .24s; }

/* Capabilities grid */
.caps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cap { background: var(--linen); padding: 28px 24px; }
.block.paper .cap { background: var(--paper); }
.cap-icon { display: block; width: 32px; height: 32px; color: var(--saffron-d); margin-bottom: 16px;
  transition: color .3s ease, transform .3s ease; }
.cap:hover .cap-icon { color: var(--saffron); transform: translateY(-3px); }
.cap h3 { font-family: var(--ar); font-weight: 700; font-size: clamp(17px,2vw,21px); margin: 0 0 6px; line-height: 1.35; }
.cap p { font-size: 14.5px; line-height: 1.6; opacity: .76; margin: 0; }
.caps > .reveal:nth-child(4n+2) { transition-delay: .05s; }
.caps > .reveal:nth-child(4n+3) { transition-delay: .1s; }
.caps > .reveal:nth-child(4n) { transition-delay: .15s; }

/* Grid children must be allowed to shrink and wrap, so no long token can push
   a track wider than its share and spill the grid off-page. */
.step, .card, .v, .sector, .cap { min-width: 0; }
.step p, .card p, .v p, .sector p, .cap p,
.step-title, .card-title, .v-title, .s-title, .cap h3 { overflow-wrap: break-word; }

/* Hero mark breathes — adds slow depth behind the wordmark (opacity only, so
   it never fights the parallax transform). */
.hero-ghost { animation: ghostBreathe 9s ease-in-out infinite alternate; }
@keyframes ghostBreathe { from { opacity: .045; } to { opacity: .09; } }

/* ===== Language switch ===== */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rule); text-decoration: none;
  font-family: var(--la); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); transition: border-color .2s, color .2s, background .2s; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--saffron); color: var(--saffron-d); }

/* ===== English page (LTR): headings are primary, set in the Latin face =====
   In the bilingual original, h2.la was the muted secondary line. On the
   standalone English page it is the ONLY heading, so promote it to primary. */
[dir="ltr"] .block-head h2.la {
  font-family: var(--la); font-weight: 800; font-size: clamp(34px,5vw,64px);
  line-height: 1.1; letter-spacing: -.02em; opacity: 1; margin: 0;
}
[dir="ltr"] body { font-family: var(--la); }
[dir="ltr"] .hero-title,
[dir="ltr"] .contact-title,
[dir="ltr"] .essence-q,
[dir="ltr"] .card-title,
[dir="ltr"] .v-title,
[dir="ltr"] .s-title,
[dir="ltr"] .step-title,
[dir="ltr"] .cap h3,
[dir="ltr"] .work-name,
[dir="ltr"] .work-meta h3 { font-family: var(--la); }
[dir="ltr"] .essence-q { font-weight: 600; quotes: "\201C" "\201D"; }
/* language switch keeps the Arabic face so "العربية" renders correctly */
.lang-switch { font-family: var(--ar); }

/* ===== Arabic-pure label treatment (RTL page only) =====
   On the Arabic page the typographic "Latin label" device (uppercase, wide
   tracking, monospace) doesn't suit Arabic — render these in the Arabic face,
   no uppercasing, zero tracking. The English page (dir=ltr) keeps the mono look. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .essence-label,
[dir="rtl"] .card-n,
[dir="rtl"] .v-n,
[dir="rtl"] .s-n,
[dir="rtl"] .step-n,
[dir="rtl"] .cl-k,
[dir="rtl"] .mock-tag,
[dir="rtl"] .brand-sub,
[dir="rtl"] .col-left,
[dir="rtl"] .col-right {
  font-family: var(--ar); text-transform: none; letter-spacing: 0;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .hero-eyebrow { font-size: 13px; font-weight: 500; }
[dir="rtl"] .card-n, [dir="rtl"] .v-n, [dir="rtl"] .s-n { font-size: 15px; font-weight: 700; }
[dir="rtl"] .cl-k, [dir="rtl"] .brand-sub, [dir="rtl"] .mock-tag,
[dir="rtl"] .col-left, [dir="rtl"] .col-right { font-size: 12px; }
[dir="rtl"] .col-right { direction: rtl; text-align: end; }

/* ===== Responsive ===== */
/* Tablet: keep two-up grids so wide screens aren't a single long stack */
@media (max-width: 900px) {
  .cards, .sectors, .works-grid, .caps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 20px; }
  .steps::before { display: none; }
  .essence { grid-template-columns: 1fr; gap: 20px; }
  .essence-label { writing-mode: horizontal-tb; transform: none; }
  .colophon { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .col-right { text-align: center; }

  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--pad-x) 20px; transform: translateY(-130%); transition: transform .35s ease; z-index: 40;
  }
  .nav.open { transform: translateY(0); box-shadow: 0 24px 40px -24px rgba(17,21,28,.4); }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .pill-wa span { display: none; }
  .header-actions .pill-wa { padding: 10px; }
}

/* Phone: single column everywhere */
@media (max-width: 600px) {
  .cards, .cards--4, .values, .values--4, .sectors, .works-grid, .caps, .contact-lines { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-marks { justify-content: center; text-align: center; gap: 12px 22px; }
  .brand-sub { display: none; }
  /* tighter outer rhythm on phones */
  .block { padding-block: 54px; }
  .contact { padding-block: 58px; }
  .essence { padding-block: 42px; }
  .block-head { margin-bottom: 30px; }
  /* tighter inner padding for cards/cells on phones */
  .card { padding: 26px 22px; }
  .card-icon { margin: 16px 0 14px; }
  .v { padding: 26px 22px; }
  .sector { padding: 24px 22px; padding-block-start: 24px; }
  .cap { padding: 22px 20px; }
  .contact-line { padding: 20px 22px; }
  .v-icon { margin-bottom: 12px; }
  /* process steps become a compact vertical timeline on phones */
  .steps { gap: 26px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; position: relative; }
  .step-n { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-bottom: 0; }
  .step-title { grid-column: 2; grid-row: 1; align-self: start; margin: 0; }
  .step p { grid-column: 2; grid-row: 2; margin: 4px 0 0; }
  .step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 23px;
    top: 54px; bottom: -28px; width: 2px;
    background-image: linear-gradient(var(--rule) 50%, transparent 50%); background-size: 2px 7px; }
}

/* ============================================================
   CINEMATIC LAYER
   ============================================================ */

/* ----- Smooth scroll (Lenis) plumbing ----- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ----- Preloader ----- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--linen);
  display: grid; place-items: center;
  transition: transform 1s cubic-bezier(.76,0,.24,1), opacity .6s ease .4s;
}
.preloader.done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.pre-inner { display: grid; justify-items: center; gap: 22px; }
.pre-mark { width: 96px; height: 96px; }
.pre-thread {
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw 1.6s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.pre-dot { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: pop .5s cubic-bezier(.34,1.56,.64,1) 1.4s forwards; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.pre-word {
  font-family: var(--ar); font-weight: 800; font-size: 30px; letter-spacing: 0;
  opacity: 0; transform: translateY(10px); animation: fadeUp .7s ease 1.7s forwards;
}
.pre-rule { width: 0; height: 1px; background: var(--saffron); animation: grow 1.9s ease forwards; }
.pre-rule span { display: none; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes grow { 0% { width: 0; } 100% { width: 180px; } }

/* lock scroll while preloading */
html.preloading, html.preloading body { overflow: hidden; height: 100%; }

/* ----- Film grain ----- */
.grain {
  position: fixed; inset: -150%; z-index: 95; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-5%,2%); }
  80% { transform: translate(4%,4%); } 100% { transform: translate(0,0); }
}

/* ----- Scroll progress bar ----- */
.scroll-progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 80; pointer-events: none; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--camel)); }

/* ----- Line-by-line text reveal ----- */
.reveal-lines .line-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .22em; margin-block: -.22em; }
html.js .reveal-lines .word { display: inline-block; transform: translateY(135%); transition: transform .9s cubic-bezier(.22,1,.36,.98); }
html.js .reveal-lines.play .word { transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sweep, .grain { animation: none; }
  .grain { opacity: .03; }
  .hero-ghost, .hero-weave { transform: translateY(-50%) !important; }
  .hero-weave { transform: none !important; }
  .fab::before { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html.js .reveal-lines .word { transform: none; transition: none; }
  .preloader { display: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
