/* =====================================================================
   Jusoor X — site design system (dark, technology)
   One font family for Arabic + Latin (IBM Plex Sans Arabic), a restrained
   type scale, and every colour/size as a token. Class names are the ones the
   Blade views and App\Support\ContentLayout emit.
   ===================================================================== */
:root {
  /* Absher palette (absher.sa :root, read 2026-09-24): primary #00663d, secondary #232425,
     text #555, borders #e3e3e3, 16px radius, shadow rgba(28,39,49,.05). */
  --bg: #ffffff;
  --bg-2: #f7f8f8;
  --bg-3: #eef5f1;
  --surface: #ffffff;
  --surface-2: #f7f8f8;
  --border: #e3e3e3;
  --border-2: #d2d6d4;
  --text: #232425;
  --muted: #555555;
  --faint: #767676;
  --gold: #00663d;
  --gold-2: #00522f;
  --cyan: #9b773a;
  --blue: #0055aa;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(28, 39, 49, .05), 0 10px 28px -14px rgba(28, 39, 49, .14);
  --shadow-hover: 0 2px 4px rgba(28, 39, 49, .05), 0 22px 44px -22px rgba(28, 39, 49, .26);
  --grad: linear-gradient(90deg, #00663d, #0a8a57);
  --radius: 16px;
  --radius-sm: 11px;
  --font: "Tajawal", "DIN Next LT Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-xs: .8rem;
  --fs-sm: .92rem;
  --fs-base: 1rem;
  --fs-lead: 1.08rem;
  --fs-h3: 1.08rem;
  --fs-h2: clamp(1.4rem, 2.1vw, 1.85rem);
  --fs-h1: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-page: clamp(1.6rem, 2.6vw, 2.25rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: var(--fs-base); line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: #000; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -.02em; }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--gold); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.arr { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px) saturate(140%); border-block-end: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .06em; font-size: .95rem; }
.brand img { height: 30px; width: auto; }
.brand b { color: var(--gold); }
.links { display: flex; gap: 22px; margin-inline-start: 14px; font-size: var(--fs-sm); }
.links a { position: relative; color: var(--muted); transition: color .2s; padding-block: 4px; }
.links a:hover { color: var(--text); }
.links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang { font-size: var(--fs-xs); padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--muted); transition: color .2s, border-color .2s; }
.lang:hover { color: var(--text); border-color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.btn-saffron { background: var(--gold); color: var(--on-accent); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-saffron:hover { background: var(--gold-2); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--gold) 90%, transparent); }
.btn-ink { background: var(--gold); color: #fff; padding: 8px 16px; font-size: var(--fs-xs); }
.btn-ink:hover { background: var(--gold-2); }
.btn-line { border: 1px solid var(--border-2); color: var(--text); background: var(--surface); }
.btn-line:hover { border-color: var(--text); background: var(--surface-2); }
.btn-line.light { border-color: var(--border-2); }

/* ---------- shared labels & reveal ---------- */
.eyebrow, .k, .stats-t { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; color: var(--cyan); letter-spacing: .02em; }
[dir="ltr"] .eyebrow, [dir="ltr"] .k, [dir="ltr"] .stats-t { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--cyan); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; font-weight: 400; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.r { opacity: 0; transform: translateY(14px); animation: up .7s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 100ms + 80ms); }
@keyframes up { to { opacity: 1; transform: none; } }
.js-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js-on .reveal.in { opacity: 1; transform: none; }

/* background texture shared by heroes */
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 25%, transparent 75%); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px); background: radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%), radial-gradient(700px 420px at 5% 110%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 60%), var(--bg); }
[dir="rtl"] .hero { background: radial-gradient(900px 480px at 15% -10%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%), radial-gradient(700px 420px at 95% 110%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 60%), var(--bg); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.25; margin-block: 16px 18px; }
.hero h1 span { display: block; }
.hero h1 em.accent, h1 .accent { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* bridge illustration */
.bridge { position: relative; aspect-ratio: 520 / 420; max-width: 520px; width: 100%; margin-inline: auto; }
.bridge svg { width: 100%; height: 100%; overflow: visible; }
.blue line { stroke: var(--border-2); stroke-width: 1; }
.arch { fill: none; stroke: url(#g); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 2.2s cubic-bezier(.6, .1, .2, 1) forwards; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 45%, transparent)); }
.a1 { animation-delay: .4s; } .a2 { animation-delay: .7s; }
.a3 { stroke: var(--faint); stroke-width: 1.2; stroke-dasharray: 5 7; stroke-dashoffset: 0; opacity: 0; animation: fade 1s 1.5s forwards; filter: none; }
.cable { stroke: var(--border-2); stroke-width: 1.2; opacity: 0; animation: fade .6s forwards; animation-delay: calc(1.3s + var(--i) * .15s); }
.hub { fill: var(--gold); opacity: 0; animation: fade .6s 1.9s forwards, pulse 2.8s 2.5s infinite; transform-origin: 260px 95px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.4); } }
.node { position: absolute; top: 49%; translate: -50% -100%; padding: 6px 12px; background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 9px; font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: 0; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(1.6s + var(--i) * .15s); box-shadow: var(--shadow); }
.n0 { left: 18.3%; } .n1 { left: 39.4%; top: 37%; border-color: color-mix(in srgb, var(--cyan) 60%, transparent); color: var(--cyan); }
.n2 { left: 60.6%; } .n3 { left: 81.7%; top: 37%; border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold); }
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }

/* circuit traces behind heroes */
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.circuit .traces path { fill: none; stroke: color-mix(in srgb, var(--gold) 26%, transparent); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trace 3s cubic-bezier(.6, .1, .2, 1) forwards; }
.circuit .traces path:nth-child(2) { animation-delay: .3s; } .circuit .traces path:nth-child(3) { animation-delay: .6s; }
.circuit .traces path:nth-child(4) { animation-delay: .9s; } .circuit .traces path:nth-child(5) { animation-delay: 1.2s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.circuit .pads circle { fill: var(--bg); stroke: color-mix(in srgb, var(--gold) 45%, transparent); stroke-width: 1.4; }
.circuit .packets circle { fill: var(--gold); filter: drop-shadow(0 0 5px var(--gold)); }
.hero .circuit { opacity: .45; }
/* hero background video (Riyadh skyline, Pexels 9109489) — sits under grid, circuit and copy */
.hero--video { background: var(--bg); }
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(to left, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 25%, transparent) 100%),
  linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
[dir="ltr"] .hero-scrim { background:
  linear-gradient(to right, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 25%, transparent) 100%),
  linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
.hero--video .grid-bg { opacity: .18; }

/* ---------- stats / trust ---------- */
.stats { background: var(--bg-2); border-block: 1px solid var(--border); padding-block: 36px; }
.stats-t { color: var(--gold); margin-bottom: 18px; }
.stats-g { display: grid; grid-template-columns: repeat(4, 1fr); }
.st { padding-inline: 22px; border-inline-start: 1px solid var(--border); }
.st:first-child { border: 0; padding-inline-start: 0; }
.st b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: start; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .st b { text-align: right; }
.st span { color: var(--muted); font-size: var(--fs-sm); }
.trust { text-align: center; background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--bg); }
.trust-in { max-width: 720px; }
.trust-n { font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-l { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; margin-top: 12px; }
.trust-s { color: var(--muted); margin-top: 10px; }

/* ---------- generic sections ---------- */
.sec { position: relative; padding-block: clamp(64px, 8vw, 104px); }
.head { max-width: 720px; margin-bottom: 40px; }
.k { margin-bottom: 12px; }
h2 { font-size: var(--fs-h2); }
.sub { color: var(--muted); margin-top: 12px; }
.services, .method, .related { background: var(--bg-2); border-block: 1px solid var(--border); }

/* cards shared */
.card, .f-card, .list-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card:hover, .f-card:hover, .list-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-hover); }
.f-card::before, .list-card::before, .card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gold) 12%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.f-card:hover::before, .list-card:hover::before, .card:hover::before { opacity: 1; }
.f-card > *, .list-card > *, .card > * { position: relative; }

/* home: systems bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; min-height: 230px; }
.card h3 { font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.card.big { grid-row: span 2; justify-content: flex-end; background: radial-gradient(420px 300px at 85% 0%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%), linear-gradient(180deg, var(--bg-3), var(--bg-2)); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
[dir="rtl"] .card.big { background: radial-gradient(420px 300px at 15% 0%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%), linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.card.big h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--cyan) 12%, transparent); color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent); }
.card.big .tag { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.more { margin-top: auto; font-weight: 600; font-size: var(--fs-sm); color: var(--gold); }
.card:hover .arr { transform: translateX(3px); }
[dir="rtl"] .card:hover .arr { transform: scaleX(-1) translateX(3px); }
.idx { position: absolute !important; inset-inline-end: 20px; top: 18px; font-family: var(--mono); font-size: .75rem; color: var(--faint); }

/* icon badge */
.f-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, transparent), color-mix(in srgb, var(--gold) 5%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .35s var(--ease), box-shadow .35s; }
.f-ico.sm { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 10px; }
.f-ico svg { width: 22px; height: 22px; }
.f-ico.sm svg { width: 19px; height: 19px; }
.f-ico svg * { stroke-dasharray: 90; stroke-dashoffset: 0; }
.card .f-ico { margin-bottom: 2px; }
.f-card:hover .f-ico, .card:hover .f-ico, .list-card:hover .f-ico, .srv li:hover .f-ico { transform: translateY(-2px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--gold) 70%, transparent); }
.f-card:hover .f-ico svg *, .card:hover .f-ico svg *, .list-card:hover .f-ico svg *, .srv li:hover .f-ico svg * { animation: draw-ico .9s cubic-bezier(.6, .1, .2, 1) both; }
@keyframes draw-ico { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

/* home: services list */
.srv { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.srv li { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--border); }
[dir="rtl"] .srv li { padding: 26px 0 28px 24px; }
.srv h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.srv p { color: var(--muted); font-size: var(--fs-sm); }

/* home: method steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 21px; height: 1px; background: repeating-linear-gradient(90deg, var(--border-2) 0 6px, transparent 6px 12px); }
.step { position: relative; padding-inline-end: 22px; }
.num { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); font-family: var(--mono); font-size: .85rem; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--bg-2); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* bottom call to action + footer */
.cta { position: relative; overflow: hidden; padding-block: 72px; background: radial-gradient(700px 300px at 20% 0%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 70%), radial-gradient(600px 300px at 90% 100%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--bg-2); border-top: 1px solid var(--border); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.cta p { color: var(--muted); margin-top: 6px; }
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* short "call me back" form beside the CTA — the old site's biggest lead source */
.cta-in:has(.quick-form) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); grid-template-rows: auto 1fr; align-items: start; gap: 22px 48px; }
.cta-in:has(.quick-form) > .quick-form { grid-column: 2; grid-row: 1 / span 2; }
.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quick-form h3 { grid-column: 1 / -1; font-size: var(--fs-h3); }
.quick-form .full { grid-column: 1 / -1; }
.quick-form textarea { resize: vertical; min-height: 64px; }
.quick-form .btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
@media (max-width: 860px) {
  .cta-in:has(.quick-form) { grid-template-columns: minmax(0, 1fr); }
  .cta-in:has(.quick-form) > .quick-form { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) { .quick-form { grid-template-columns: 1fr; padding: 18px; } }
.mail { color: var(--gold); font-family: var(--mono); font-size: var(--fs-sm); }
.foot { background: var(--bg); color: var(--faint); font-size: var(--fs-xs); border-top: 1px solid var(--border); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; }

/* floating contact — fixed to the physical LEFT corner in both languages */
.float-contact { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fc-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 26px -10px rgba(28, 39, 49, .45); transition: transform .2s; }
.fc-btn:hover { transform: scale(1.08); }
.fc-wa { background: #25d366; }
.fc-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.fc-call { background: var(--bg-3); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.fc-tip { position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap; background: var(--bg-3); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-xs); padding: 5px 11px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.fc-btn:hover .fc-tip, .fc-btn:focus-visible .fc-tip { opacity: 1; translate: 4px -50%; }

/* =====================================================================
   Inner pages
   ===================================================================== */
.phero, .page-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 76px); background: radial-gradient(800px 380px at 90% -20%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 65%), var(--bg); border-block-end: 1px solid var(--border); }
[dir="rtl"] .phero, [dir="rtl"] .page-hero { background: radial-gradient(800px 380px at 10% -20%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 65%), var(--bg); }
.page-hero { margin-bottom: 40px; }
.phero-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -160px; bottom: -300px; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-50px, -40px) scale(1.08); } }
.phero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-h1 { font-size: var(--fs-page); line-height: 1.3; margin-block: 10px 14px; max-width: 26ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--faint); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }

/* system console */
.console { position: relative; background: #050b13; color: #cfe3dc; border-radius: 16px; border: 1px solid #1c2a38; box-shadow: 0 30px 60px -34px rgba(28, 39, 49, .45); overflow: hidden; font-size: .86rem; }
.console::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--gold) 80%, var(--cyan) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 5s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --ang: 360deg; } }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid #1c2a38; }
.c-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.c-dot:nth-child(2) { background: #febc2e; } .c-dot:nth-child(3) { background: #28c840; }
.console-file { font-family: var(--mono); font-size: .7rem; color: var(--faint); margin-inline-start: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-live { margin-inline-start: auto; font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; color: #3ddc97; display: flex; align-items: center; gap: 6px; }
.console-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } }
.console-body { padding: 15px 17px 6px; display: grid; gap: 8px; min-height: 196px; }
.c-line { display: flex; align-items: center; gap: 9px; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: up .45s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * .5s); }
.c-cmd { font-family: var(--mono); font-size: .74rem; color: #8fb3c4; overflow: hidden; white-space: nowrap; }
.c-prompt { color: var(--gold); }
.c-ok { color: #3ddc97; font-size: .8rem; }
.c-mod { flex: 1; }
.c-bar { flex: 0 0 60px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.c-bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: fill .9s ease-out forwards; animation-delay: calc(.6s + var(--i) * .5s); }
@keyframes fill { to { width: 100%; } }
.c-done { color: var(--gold); font-weight: 600; }
.c-caret { display: inline-block; width: 7px; height: 15px; background: var(--gold); margin-inline-start: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-graph { display: flex; align-items: flex-end; gap: 5px; height: 52px; padding: 0 17px 15px; }
.console-graph span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 85%, transparent), color-mix(in srgb, var(--cyan) 45%, transparent)); transform-origin: bottom; animation: bars 2.6s ease-in-out infinite alternate; animation-delay: calc(var(--b) * -.21s); opacity: .8; }
@keyframes bars { 0% { transform: scaleY(.45); } 100% { transform: scaleY(1); } }

/* sticky "on this page" bar */
.sec-nav { position: sticky; top: 68px; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-block-end: 1px solid var(--border); }
.sec-nav-in { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-block: 9px; }
.sec-nav-in::-webkit-scrollbar { display: none; }
.sec-nav-t { font-size: var(--fs-xs); color: var(--faint); white-space: nowrap; margin-inline-end: 8px; }
.sec-nav a { white-space: nowrap; font-size: .82rem; padding: 5px 12px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.sec-nav a:hover { color: var(--text); background: var(--surface-2); }
.sec-nav a.on { background: var(--gold); color: var(--on-accent); }

/* video showcase (products) */
.showcase { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 76px); background: var(--bg-2); border-block-end: 1px solid var(--border); }
.showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 50% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%); pointer-events: none; }
.showcase .wrap { position: relative; }
.showcase-head { margin-bottom: 24px; }
.showcase-head .eyebrow { color: var(--gold); }
.showcase-head .eyebrow::before { background: var(--gold); }
.showcase-head h2 { margin-top: 8px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.showcase-item.featured { grid-column: 1 / -1; }
.showcase-item.featured .video-frame { border-radius: 18px; box-shadow: 0 30px 60px -34px rgba(28, 39, 49, .4), 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); }

/* content sections from ContentLayout */
.blk { padding-block: clamp(52px, 7vw, 88px); }
.blk-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.blk-in { width: min(1180px, 100% - 40px); margin-inline: auto; }
.blk-h { font-size: var(--fs-h2); max-width: 32ch; margin-bottom: 16px; position: relative; padding-top: 16px; }
.blk-h::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--grad); }
.blk-intro, .blk-outro { max-width: 72ch; color: #3f4142; line-height: 1.9; }
.blk-intro > * + *, .blk-outro > * + * { margin-top: .85em; }
.blk-outro { margin-top: 28px; }
.blk a:not(.btn) { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.blk a:not(.btn):hover { color: var(--gold-2); }
.blk a[href^="https://wa.me"] { display: inline-flex; background: var(--gold); color: var(--on-accent); text-decoration: none; padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: var(--fs-sm); margin-inline-end: 8px; margin-top: 6px; transition: transform .2s; }
.blk a[href^="https://wa.me"]:hover { transform: translateY(-2px); color: var(--on-accent); }
.blk strong, .blk b { color: var(--text); font-weight: 600; }
.blk table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; margin-top: 16px; }
.blk th, .blk td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
.blk th { background: var(--surface-2); }
.cards-grid { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-card { padding: 24px 22px; }
.f-card h3, .step-card h3 { font-size: var(--fs-h3); line-height: 1.45; margin-bottom: 6px; }
.f-card p, .step-card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.f-card p + p { margin-top: .5em; }
.f-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding-inline: 8px; border-radius: 9px; background: var(--surface-2); color: var(--gold); font-family: var(--mono); font-size: .78rem; margin-bottom: 12px; }
.stat-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; direction: ltr; unicode-bidi: isolate; text-align: start; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .stat-card h3 { text-align: right; }
.steps-grid { display: grid; gap: 16px; margin-top: 34px; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps-grid::before { content: ""; position: absolute; top: 23px; inset-inline: 36px; height: 1px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--gold) 60%, transparent) 0 6px, transparent 6px 12px); }
.step-card { position: relative; padding: 0 4px; }
.step-card .f-num { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); font-size: .95rem; font-weight: 600; box-shadow: 0 0 0 7px var(--bg); position: relative; z-index: 1; }
.blk-alt .step-card .f-num { box-shadow: 0 0 0 7px var(--bg-2); background: var(--bg-2); }
.check-list { list-style: none; display: grid; gap: 9px; margin-top: 10px; padding: 0 !important; }
.check-list li { position: relative; padding-inline-start: 28px; line-height: 1.7; color: #3f4142; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--cyan) 14%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); }
.check-list li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.38em + 4px); width: 5px; height: 8px; border: solid var(--cyan); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
ol.check-list { counter-reset: c; }
ol.check-list li::before { counter-increment: c; content: counter(c); display: grid; place-items: center; font-size: .7rem; font-family: var(--mono); color: var(--cyan); }
ol.check-list li::after { display: none; }
.f-card .check-list li { font-size: var(--fs-sm); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; }
.chip-list li { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.faq { display: grid; gap: 10px; margin-top: 26px; max-width: 880px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .25s, background .25s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: var(--surface-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-2); background: linear-gradient(var(--text), var(--text)) center / 10px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center / 1.5px 10px no-repeat; transition: transform .3s, background-color .3s, border-color .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--gold); }
.faq-item > :not(summary) { padding: 0 20px 18px; color: var(--muted); line-height: 1.85; }
.blk-cta { text-align: center; background: radial-gradient(600px 280px at 50% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--bg-3); border-block: 1px solid var(--border); }
.blk-cta .blk-h { margin-inline: auto; }
.blk-cta .blk-h::before { inset-inline-start: 50%; translate: -50% 0; }
[dir="rtl"] .blk-cta .blk-h::before { translate: 50% 0; }
.blk-cta .blk-intro { margin-inline: auto; }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-block: 24px; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--border); }
.video-frame iframe, .video-frame video, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; }
.video-play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6)); }
.video-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-accent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 25%, transparent); transition: transform .2s; }
.video-play:hover .video-btn { transform: scale(1.08); }
.video figcaption { font-size: var(--fs-sm); font-weight: 500; margin-top: 10px; color: var(--muted); }

/* related / listings */
.related .head { margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: var(--fs-sm); color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.chips a:hover { border-color: var(--gold); color: var(--text); background: var(--surface-2); }
.list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.list-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.list-card h3 { font-size: 1.02rem; line-height: 1.45; }
.list-card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }
.list-card .more { margin-top: auto; }
.group-h { font-size: 1.2rem; margin: 40px 0 16px; display: flex; align-items: center; gap: 12px; }
.group-h::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* forms */
.form-wrap { padding-bottom: 64px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 4vw, 32px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .submit-row { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: var(--fs-sm); }
.field label span { color: #c62828; }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: #c62828; }
.err { color: #c62828; font-size: .84rem; }
.alert { background: rgba(255, 107, 107, .1); color: #8e1c1c; border: 1px solid rgba(198, 40, 40, .3); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fine { color: var(--faint); font-size: .82rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* legacy article styles (blog index cards reuse .bento/.card) */
.prose { line-height: 1.9; padding-bottom: 40px; color: #3f4142; }
.prose > * + * { margin-top: 1em; }
.wa-float { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .links { gap: 16px; }
}
@media (max-width: 960px) {
  .links { display: none; }
  .hero-in, .phero-in { grid-template-columns: 1fr; }
  .bridge { max-width: 460px; }
  .console { max-width: 520px; }
  .bento, .cards-grid, .list-grid, .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.big { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .srv { grid-template-columns: 1fr 1fr; }
  .steps, .steps-grid, .steps-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .steps::before, .steps-grid::before { display: none; }
}
@media (max-width: 600px) {
  :root { --fs-base: .96rem; }
  .nav-end .btn-ink { display: none; }
  .stats-g { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .st:nth-child(3) { border: 0; padding-inline-start: 0; }
  .bento, .cards-grid, .cards-grid.cols-2, .list-grid, .showcase-grid, .srv, .steps, .steps-grid, .steps-grid.cols-2, .steps-grid.cols-3 { grid-template-columns: 1fr; }
  .card.big { grid-column: auto; }
  .srv li, [dir="rtl"] .srv li { padding-inline: 0; }
  .node { font-size: .66rem; padding: 4px 8px; }
  .lead-form { grid-template-columns: 1fr; }
  .float-contact { left: 14px; bottom: 14px; }
  .fc-btn { width: 48px; height: 48px; }
  .fc-tip { display: none; }
  .circuit { opacity: .25; }
  .hero-scrim, [dir="ltr"] .hero-scrim { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 88%, transparent) 60%, var(--bg)); }
  .console-body { min-height: 0; }
  .page-h1 { max-width: none; }
  .blk-h { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .js-on .reveal { opacity: 1; transform: none; }
  .arch { stroke-dashoffset: 0; }
  .circuit .packets { display: none; }
  .hero-video { display: none; }
  .hero-media { background: url(../video/hero-riyadh.jpg) center / cover; }
}

/* mobile menu */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.menu-btn span { width: 17px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .links { position: fixed; inset-inline: 0; top: 68px; margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 20px 22px; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px); border-block-end: 1px solid var(--border); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; font-size: 1rem; }
  .links.open { opacity: 1; transform: none; visibility: visible; }
  .links a { padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
  .links a::after { display: none; }
  html.menu-open { overflow: hidden; }
}

/* =====================================================================
   Phase 2 — projects, search, about, contact (Absher palette tokens)
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.phero-compact { padding-block: clamp(36px, 5vw, 60px); }
.narrow-in > * { max-width: 860px; }
.cards-grid:has(> .stat-card:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* header search + footer links */
.search-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); transition: color .2s, border-color .2s; }
.search-link:hover { color: var(--gold); border-color: var(--gold); }
.search-link svg { width: 18px; height: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.foot-links a { color: var(--muted); font-size: var(--fs-sm); }
.foot-links a:hover { color: var(--gold); }

/* filter tabs (projects) */
.filter-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 32px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { font: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.filter-tab span { font-size: .72rem; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--border); color: var(--muted); text-align: center; }
.filter-tab:hover { color: var(--text); }
.filter-tab.on { background: var(--surface); color: var(--gold); box-shadow: var(--shadow); }
.filter-tab.on span { background: var(--gold); color: #fff; }

/* project cards */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proj-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.proj-shot { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.proj-card:hover .proj-shot img { transform: scale(1.03); }
.proj-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proj-product { font-size: .78rem; font-weight: 700; color: var(--gold); }
.proj-h { font-size: 1.12rem; line-height: 1.5; }
.proj-client { color: var(--muted); font-size: var(--fs-sm); }
.proj-count { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; color: var(--muted); }
.proj-count b { font-size: 1.9rem; color: var(--gold); font-weight: 700; }
.proj-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 4px 6px; }
.proj-facts > span { padding: 10px 12px; border-radius: 12px; background: var(--bg-3); }
.proj-facts b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gold); line-height: 1.2; text-align: start; }
[dir="rtl"] .proj-facts b { text-align: right; }
.proj-facts small { font-size: .78rem; color: var(--muted); }
.proj-card .more { margin-top: auto; }
.empty-note { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 32px; border: 1px dashed var(--border-2); border-radius: var(--radius); }

/* case-study results strip */
.facts-strip { background: var(--gold); color: #fff; padding-block: 28px; }
.facts-client { font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); margin-bottom: 16px; }
.facts-client b { color: #fff; font-weight: 700; }
.facts-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.facts-g > div { padding-inline: 20px; border-inline-start: 1px solid rgba(255, 255, 255, .22); }
.facts-g > div:first-child { border: 0; padding-inline-start: 0; }
.facts-g dt { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.15; text-align: start; }
[dir="rtl"] .facts-g dt { text-align: right; }
.facts-g dd { font-size: var(--fs-sm); color: rgba(255, 255, 255, .88); }

/* search */
.search-form { position: relative; display: flex; gap: 10px; margin-top: 18px; max-width: 720px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 13px 16px; padding-inline-start: 46px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.search-ico { position: absolute; inset-inline-start: 15px; top: 50%; translate: 0 -50%; color: var(--faint); display: grid; }
.search-ico svg { width: 20px; height: 20px; }
.search-count { font-weight: 700; color: var(--text); margin-bottom: 14px; }
.search-results { list-style: none; display: grid; gap: 12px; padding: 0; }
.search-results a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.search-results a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.search-results h2 { font-size: 1.05rem; line-height: 1.5; color: var(--gold); }
.search-results p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.search-url { font-size: .75rem; color: var(--faint); text-align: start; }

/* about + contact */
.about-split, .contact-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-split { margin-top: 28px; }
.co-card { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 22px; }
.co-card > div { padding-block: 14px; border-bottom: 1px solid var(--border); }
.co-card > div:last-child { border-bottom: 0; }
.co-card dt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--faint); }
.co-card dd { font-weight: 700; color: var(--text); margin-top: 2px; text-align: start; }
.co-card dd a { color: var(--gold); }
.dt-ico { display: grid; color: var(--gold); }
.dt-ico svg { width: 16px; height: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.contact-card.primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.contact-card.primary .f-ico { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.contact-card.primary .contact-k, .contact-card.primary .more { color: #fff; }
.contact-k { font-size: var(--fs-sm); color: var(--muted); }
.contact-v { font-size: 1.2rem; font-weight: 800; text-align: start; }
[dir="rtl"] .contact-v { text-align: right; }
.contact-card .more { margin-top: 10px; }
.contact-form-cta { padding: 28px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid color-mix(in srgb, var(--gold) 18%, var(--border)); }
.contact-form-cta h2 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-form-cta p { color: var(--muted); margin-bottom: 18px; }

@media (max-width: 960px) {
  .proj-grid { grid-template-columns: 1fr; }
  .facts-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .facts-g > div:nth-child(3) { border: 0; padding-inline-start: 0; }
  .about-split, .contact-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards-grid:has(> .stat-card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .filter-tabs { width: 100%; flex-wrap: nowrap; }
  .proj-body { padding: 18px; }
}

/* card-shaped links inside content blocks are not inline text links */
.blk a.f-card, .blk a.proj-card, .blk a.contact-card, .blk .search-results a, .blk .chips a { text-decoration: none; color: inherit; }
.blk a.f-card:hover, .blk a.proj-card:hover, .blk a.contact-card:hover { color: inherit; }
.blk a.contact-card.primary, .blk a.contact-card.primary:hover { color: #fff; }
.link-card { display: flex; flex-direction: column; }
.link-card .more { margin-top: auto; padding-top: 10px; }

/* the hidden attribute must win over component display rules (filters rely on it) */
[hidden] { display: none !important; }

/* ---------- product launch kit (pages.meta: logo · hero_video · brochure) — CAREOS 2026-10-01 ---------- */
.phero-logo { display: block; height: clamp(52px, 6vw, 72px); width: auto; margin-bottom: 14px; }
.phero--promo .phero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero-promo { margin: 0; }
.hero-promo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b1b2b; box-shadow: 0 30px 60px -30px rgba(28, 39, 49, .45), 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent); }
.hero-promo-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1b2b; }
.hero-promo figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }
.btn-pdf small { font-weight: 400; font-size: .78em; color: var(--muted); }
.video--portrait .video-frame { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.showcase-item.is-portrait { align-self: start; }
.brochure-card { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; align-self: center; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.brochure-cover img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(28, 39, 49, .5); transition: transform .25s var(--ease); }
.brochure-cover:hover img { transform: translateY(-3px); }
.brochure-txt h3 { margin: 0 0 8px; }
.brochure-txt p { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 16px; }
.brochure-txt .btn { white-space: normal; }
.brochure-txt .brochure-meta { margin: 12px 0 0; font-size: var(--fs-xs); }
@media (max-width: 960px) {
  .phero--promo .phero-in { grid-template-columns: 1fr; }
  .brochure-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .brochure-card { grid-template-columns: 1fr; padding: 16px; }
  .video--portrait .video-frame { max-width: 300px; }
  .btn-pdf { white-space: normal; }
}
/* product cards embedded in a CMS page via the [products] line (e.g. /our-work) */
.blk-intro:has(> .pp-embed), .blk-outro:has(> .pp-embed) { max-width: none; }
.pp.pp-embed { background: transparent; margin-top: 22px; }
.pp-embed .pp-all { margin-top: 22px; text-align: center; }
.blk .pp-embed a:not(.btn) { text-decoration: none; }
.blk .pp-embed .pp-feat h3 a { color: var(--pp-ink); }
.blk .pp-embed .pp-feat h3 a:hover, .blk .pp-embed a.pp-link { color: var(--pp-gold); }

/* JUSOORTECH 2026-10-01: «JUSOOR TECH» wordmark stays on one line; the legal footer line clears the floating call/WhatsApp buttons on phones */
.brand span { white-space: nowrap; }
@media (max-width: 600px) {
  .foot-in { padding-bottom: 132px; }
}
