/* =============================================================================
   SANAYAD — sanayadtech.com, v5 (short copy, no tags or numbering, inline film)
   Brand Identity v2.0 (October 2026). Palette: Light 60 / Dark 30 / Orange 10.
   Orange marks the AI, the detection frame and the pixel squares, plus one
   highlight per page. Blue and Green appear only inside product interfaces.
   Type: Nunito 400/600/800 (Latin), Alexandria 700 (Arabic headings),
   IBM Plex Sans Arabic 400/600 (Arabic text), JetBrains Mono (figures, labels).
   ========================================================================== */

:root {
  /* Brand */
  --orange: #D97757;
  --dark: #141413;
  --light: #FAF9F5;
  --mid-gray: #B0AEA5;
  --light-gray: #E8E6DC;
  --blue: #6A9BCC;
  --green: #788C5D;

  /* Light surfaces */
  --paper: #FAF9F5;
  --paper-2: #F2F0E9;
  --plate: #FFFFFF;
  --ink: #141413;
  --ink-2: #3D3C37;
  --muted: #6B6A63;
  --line: #E8E6DC;
  --line-2: #D8D6CB;

  /* Dark surfaces */
  --d-bg: #141413;
  --d-plate: #1B1B19;
  --d-plate-2: #232320;
  --d-line: #2E2E2B;
  --d-ink: #FAF9F5;
  --d-ink-2: #D9D7CF;
  --d-muted: #B0AEA5;

  /* Type */
  --f-lat: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --f-ar-head: 'Alexandria', 'Nunito', system-ui, sans-serif;
  --f-ar-body: 'IBM Plex Sans Arabic', 'Nunito', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --f-head: var(--f-lat);
  --f-body: var(--f-lat);

  --fs-display: clamp(2.75rem, 1.2rem + 5.6vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 4.2vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 10vw, 152px);
  --hdr: 84px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}
html[lang="ar"] { --f-head: var(--f-ar-head); --f-body: var(--f-ar-body); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6; font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.85; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 800; color: inherit; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; letter-spacing: 0 !important; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--dark); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -80px; inset-inline-start: 16px; z-index: 100; background: var(--dark); color: var(--light); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .label { font-family: var(--f-ar-body); font-size: 0.875rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); flex: none; }
.label--plain::before { display: none; }
.dark .label { color: var(--d-muted); }
.h-display { font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.032em; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.028em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }
html[lang="ar"] .h-display { line-height: 1.22; }
html[lang="ar"] .h1 { line-height: 1.25; }
html[lang="ar"] .h2 { line-height: 1.3; }
html[lang="ar"] .h3 { line-height: 1.5; }
.hl { color: var(--orange); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.dark .lead { color: var(--d-ink-2); }
.muted { color: var(--muted); }
.dark .muted { color: var(--d-muted); }
.small { font-size: var(--fs-small); }
.note { font-size: 0.8125rem; color: var(--muted); }
.dark .note { color: var(--d-muted); }

/* ---------- Buttons and links ---------- */
.btn { --bg: var(--dark); --fg: var(--light); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg); font-family: var(--f-head); font-weight: 800; font-size: 1rem; line-height: 1; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .14s var(--ease); border: 1.5px solid var(--bg); }
html[lang="ar"] .btn { font-weight: 700; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
@media (hover: hover) { .btn:hover { --bg: #2E2E2B; } .btn:hover .arr { transform: translateX(3px); } html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); } }
.btn--light { --bg: var(--light); --fg: var(--dark); }
@media (hover: hover) { .btn--light:hover { --bg: #FFFFFF; } }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--ink); background: transparent; } }
.dark .btn--ghost, .btn--ghost-d { background: transparent; color: var(--d-ink); border-color: #44433F; }
@media (hover: hover) { .dark .btn--ghost:hover, .btn--ghost-d:hover { border-color: var(--d-ink); } }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-family: var(--f-head); }
html[lang="ar"] .link { font-weight: 700; }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
html[dir="rtl"] .link .arr { transform: scaleX(-1); }
@media (hover: hover) { .link:hover svg.arr { transform: translateX(4px); } html[dir="rtl"] .link:hover svg.arr { transform: scaleX(-1) translateX(4px); } }
.ulink { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
@media (hover: hover) { .ulink:hover { text-decoration-color: currentColor; } }

/* ---------- Detection frame (brand device, once per page) ---------- */
.dframe { position: relative; }
.dframe > .dfc { position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--orange); pointer-events: none; }
.dframe > .dfc:nth-of-type(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.dframe > .dfc:nth-of-type(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.dframe > .dfc:nth-of-type(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.dframe > .dfc:nth-of-type(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* =============================================================================
   Header and navigation
   ========================================================================== */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); color: var(--ink); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.hdr::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .3s ease; }
.hdr.is-solid { background: rgba(250, 249, 245, 0.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.hdr.is-open, .hdr.is-menu { background: var(--paper); }
.hdr.is-solid::after, .hdr.is-open::after, .hdr.is-menu::after { opacity: 1; }
.hdr__bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.hdr__logo { flex: none; display: block; padding-block: 8px; }
/* Logo with tagline: 200 px is the brand's minimum width for this lockup. */
.hdr__logo img { width: 200px; height: auto; }
.hdr__logo .on-dark { display: none; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.hdr__item { position: static; }
.hdr__link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 0.96875rem; transition: background-color .2s ease; }
.hdr__link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.hdr__link[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) { .hdr__link:hover { background: rgba(20, 20, 19, 0.06); } }
.hdr__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.hdr__lang { height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; font-family: var(--f-ar-body); }
html[lang="ar"] .hdr__lang { font-family: var(--f-lat); }
@media (hover: hover) { .hdr__lang:hover { background: rgba(20, 20, 19, 0.06); } }
.hdr__burger { display: none; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; }
.hdr__burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background-color .2s ease; }
.hdr__burger span::before, .hdr__burger span::after { content: ""; position: absolute; inset-inline-start: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.hdr__burger span::before { top: -6px; } .hdr__burger span::after { top: 6px; }
.hdr.is-menu .hdr__burger span { background: transparent; }
.hdr.is-menu .hdr__burger span::before { transform: translateY(6px) rotate(45deg); }
.hdr.is-menu .hdr__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Header over a dark hero */
.hdr--over:not(.is-solid):not(.is-open):not(.is-menu) { color: var(--d-ink); }
.hdr--over:not(.is-solid):not(.is-open):not(.is-menu) .hdr__logo .on-light { display: none; }
.hdr--over:not(.is-solid):not(.is-open):not(.is-menu) .hdr__logo .on-dark { display: block; }
.hdr--over:not(.is-solid):not(.is-open):not(.is-menu) .btn { --bg: var(--light); --fg: var(--dark); }
@media (hover: hover) { .hdr--over:not(.is-solid):not(.is-open) .hdr__link:hover, .hdr--over:not(.is-solid):not(.is-open) .hdr__lang:hover { background: rgba(250, 249, 245, 0.1); } }

/* Mega panels */
.mega { position: absolute; inset: var(--hdr) 0 auto 0; background: var(--plate); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s ease, transform .3s var(--ease), visibility 0s linear .3s; color: var(--ink); }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .3s var(--ease), visibility 0s; }
.mega__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 36px 40px; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; align-content: start; }
.mega__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__a { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; border-radius: var(--r); transition: background-color .2s ease; }
.mega__a i { width: 10px; height: 10px; border-radius: 2.5px; background: var(--line-2); margin-top: 7px; transition: background-color .2s ease; }
.mega__a b { font-family: var(--f-head); font-weight: 800; font-size: 1rem; }
html[lang="ar"] .mega__a b { font-weight: 700; }
.mega__a span { grid-column: 2; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
@media (hover: hover) { .mega__a:hover { background: var(--paper); } .mega__a:hover i { background: var(--orange); } }
.mega__feature { background: var(--dark); color: var(--d-ink); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; min-height: 220px; }
.mega__feature p { color: var(--d-muted); font-size: 0.9375rem; }
.mega__feature b { font-family: var(--f-head); font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.mega__all { margin-top: 12px; padding-inline: 16px; }

/* Mobile menu */
.mnav { position: fixed; inset: var(--hdr) 0 0 0; z-index: 49; background: var(--paper); overflow-y: auto; padding: 8px var(--gutter) 40px; display: none; }
.mnav.is-open { display: block; }
.mnav__group { border-bottom: 1px solid var(--line); }
.mnav__btn, .mnav__a { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-family: var(--f-head); font-weight: 800; font-size: 1.375rem; text-align: start; }
html[lang="ar"] .mnav__btn, html[lang="ar"] .mnav__a { font-weight: 700; }
.mnav__btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.mnav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav__panel { display: none; padding: 0 0 16px; }
.mnav__panel.is-open { display: grid; gap: 2px; }
.mnav__panel a { padding: 10px 0; color: var(--ink-2); font-weight: 600; }
.mnav__end { display: grid; gap: 12px; margin-top: 28px; }
.mnav__end .btn { width: 100%; }

@media (max-width: 1080px) {
  .hdr__nav, .hdr__end .btn, .hdr__end .hdr__lang { display: none; }
  .hdr__burger { display: inline-flex; }
  .mega { display: none; }
}
@media (min-width: 1081px) { .mnav { display: none !important; } }

/* =============================================================================
   Sections
   ========================================================================== */
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(64px, 7vw, 104px); }
.sec--paper2 { background: var(--paper-2); }
.dark { background: var(--d-bg); color: var(--d-ink); }
.sec__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.sec__head .label { margin-bottom: 20px; }
.sec__head .lead { justify-self: start; }
.sec__head--stack, .sec__head--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
@media (max-width: 900px) { .sec__head { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================================
   Hero (home) — live detection field
   ========================================================================== */
.hero { position: relative; background: var(--d-bg); color: var(--d-ink); min-height: min(100svh, 980px); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__body { flex: 1; display: flex; align-items: center; padding-top: calc(var(--hdr) + clamp(32px, 6vh, 72px)); padding-bottom: clamp(40px, 6vh, 72px); }
.hero__copy { max-width: 780px; }
.hero__copy .label { margin-bottom: 28px; color: var(--d-ink-2); }
.hero h1 { margin-bottom: 28px; }
.hero .lead { color: var(--d-ink-2); max-width: 56ch; margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__play { display: inline-flex; align-items: center; gap: 12px; }
.hero__play .pi { width: 30px; height: 30px; border-radius: 50%; background: var(--d-ink); color: var(--dark); display: grid; place-items: center; }
.hero__play .pi svg { width: 12px; height: 12px; margin-inline-start: 2px; }
.hero__foot { border-top: 1px solid var(--d-line); }
.marquee { overflow: hidden; padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marquee 60s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-muted); white-space: nowrap; }
html[lang="ar"] .marquee__track span { font-family: var(--f-ar-body); font-size: 0.9375rem; letter-spacing: 0; text-transform: none; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: #3A3935; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__body { padding-top: calc(var(--hdr) + 56px); align-items: flex-start; }
  .hero__canvas { opacity: 0.55; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* Page hero (inner pages) */
.phero { padding-top: calc(var(--hdr) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(56px, 7vw, 104px); position: relative; overflow: hidden; }
.phero.dark { background: var(--d-bg); }
.phero__crumbs { display: flex; gap: 8px; font-size: 0.875rem; color: var(--muted); margin-bottom: 28px; }
.phero.dark .phero__crumbs { color: var(--d-muted); }
.phero__crumbs a { font-weight: 600; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.phero h1 { max-width: 16ch; }
.phero .lead { margin-top: 0; }
.phero__pattern { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; pointer-events: none; opacity: 0.9; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: minmax(0, 1fr); } .phero__pattern { display: none; } }

/* Local section nav (sticky) */
.subnav { position: sticky; top: var(--hdr); z-index: 30; background: rgba(250, 249, 245, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.subnav__in { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.subnav a.is-active { background: var(--dark); color: var(--light); }
@media (hover: hover) { .subnav a:not(.is-active):hover { background: rgba(20, 20, 19, 0.06); } }

/* =============================================================================
   Home: intro + metrics
   ========================================================================== */
.intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; }
.intro__text { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.45vw, 2.5rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
html[lang="ar"] .intro__text { letter-spacing: 0; line-height: 1.6; font-weight: 700; }
.intro__text span { color: var(--muted); }
.intro__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-2); }
.metric { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
html[dir="rtl"] .metric { padding: 28px 0 0 24px; }
.metric + .metric { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.metric b { font-family: var(--f-lat); font-weight: 800; font-size: clamp(2.25rem, 1.3rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; color: var(--ink); direction: ltr; unicode-bidi: isolate; text-align: start; white-space: nowrap; }
.sec--tight .metrics { margin-top: 0; }
.metric span { color: var(--ink-2); font-size: var(--fs-small); max-width: 22ch; }
.metrics + .note { margin-top: 20px; }
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* =============================================================================
   What we do: pinned, scroll-driven sequence (desktop). site.js adds .cs-on on
   wide screens and sets --prog (section progress) and --lp (each panel's own
   progress). Without it (phones, no script) the panels simply stack.
   ========================================================================== */
.cs { position: relative; background: var(--paper-2); }
.cs__pin { padding-block: var(--sec); }
.cs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.cs__side .h2 { margin-bottom: 40px; }
.cs__list { position: relative; display: none; }
.cs__list ol { display: grid; gap: 4px; }
.cs__item { display: block; width: 100%; text-align: start; padding: 14px 22px 14px 30px; border-radius: 12px; color: var(--muted); transition: color .4s ease; }
html[dir="rtl"] .cs__item { padding: 14px 30px 14px 22px; }
.cs__item b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; transition: color .4s ease; }
html[lang="ar"] .cs__item b { font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.cs__item .cs__line { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .45s ease; }
.cs__item .cs__line > span { overflow: hidden; color: var(--ink-2); font-size: 1rem; line-height: 1.5; padding-top: 0; }
.cs__item.is-active { color: var(--ink); }
.cs__item.is-active .cs__line { grid-template-rows: 1fr; opacity: 1; }
.cs__item.is-active .cs__line > span { padding-top: 8px; }
@media (hover: hover) { .cs__item:not(.is-active):hover { color: var(--ink-2); } }
.cs__track { position: absolute; inset-block: 10px; inset-inline-start: 0; width: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.cs__track i { display: block; width: 100%; height: calc(var(--prog, 0) * 100%); background: var(--orange); border-radius: 2px; }
.cs__frame { position: absolute; top: 0; left: 0; width: var(--fw, 0); height: var(--fh, 0); transform: translate3d(var(--fx, 0), var(--fy, 0), 0); transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1), width .7s cubic-bezier(0.16, 1, 0.3, 1), height .7s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.cs__frame > .dfc { width: 16px; height: 16px; border-width: 2.5px; }
.cs__stage { display: grid; gap: 20px; }
.cs__panel { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.cs__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.cs__foot .ui-caption { margin-top: 0; }
.cs__foot .link { display: none; }
.cs.cs-on .cs__panel { background: transparent; border: 0; border-radius: 0; overflow: visible; grid-template-rows: 1fr; }
.cs.cs-on .cs__panel .caps__copy { display: none; }
.cs.cs-on .cs__panel .caps__stage { border-top: 0; background: transparent; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.cs.cs-on .cs__foot .link { display: inline-flex; }

/* Pinned mode */
.cs.cs-on { height: calc(100vh + var(--n, 5) * 72vh); }
.cs.cs-on .cs__pin { position: sticky; top: 0; height: 100vh; padding-block: calc(var(--hdr) + 24px) 32px; display: flex; align-items: center; overflow: hidden; }
.cs.cs-on .cs__pin > .wrap { width: 100%; }
.cs.cs-on .cs__list { display: block; }
.cs.cs-on .cs__stage { gap: 0; }
.cs.cs-on .cs__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translate3d(0, 48px, 0) scale(0.98); transition: opacity .55s ease, transform .9s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear .55s; }
.cs.cs-on .cs__panel.is-past { transform: translate3d(0, -48px, 0) scale(0.98); }
.cs.cs-on .cs__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease .1s, transform .9s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
/* Scroll cue: tells the visitor the section continues as they scroll; fades out near the end. */
.cs__hint { display: none; }
.cs.cs-on .cs__hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; color: var(--muted); transition: opacity .5s ease, transform .5s var(--ease); pointer-events: none; }
.cs.cs-on.cs-end .cs__hint { opacity: 0; transform: translate(-50%, 8px); }
.cs__mouse { width: 22px; height: 34px; border: 2px solid var(--ink-2); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.cs__mouse i { width: 4px; height: 7px; border-radius: 2px; background: var(--orange); animation: wheel 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 71%, 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cs__mouse i { animation: none; } }
@media (max-height: 820px) { .cs.cs-on .cs__stage { zoom: 0.86; } .cs.cs-on .cs__side .h2 { margin-bottom: 24px; } .cs.cs-on .cs__hint { bottom: 12px; } }
@media (max-height: 700px) { .cs.cs-on .cs__stage { zoom: 0.74; } }

/* The example screens build up with the panel's own progress (--lp, 0 → 1). */
.js .cs-on .cs__panel .ui-funnel .bar i,
.js .cs-on .cs__panel .ui-prog .track i,
.js .cs-on .cs__panel .ui-conf i { transform-origin: left; transform: scaleX(clamp(0.03, calc(var(--lp, 1) * 1.7 - 0.1), 1)); transition: transform .3s linear; }
/* In Arabic the bars start on the right, so they grow from the right. (.js sits on <html> itself.) */
html.js[dir="rtl"] .cs-on .cs__panel .ui-funnel .bar i,
html.js[dir="rtl"] .cs-on .cs__panel .ui-prog .track i,
html.js[dir="rtl"] .cs-on .cs__panel .ui-conf i { transform-origin: right; }
.js .cs-on .cs__panel .ui-log li,
.js .cs-on .cs__panel .ui-rows > div,
.js .cs-on .cs__panel .ui-fields > div { opacity: clamp(0.08, calc(var(--lp, 1) * 6.5 - var(--i, 0)), 1); transform: translate3d(0, calc((1 - clamp(0, calc(var(--lp, 1) * 6.5 - var(--i, 0)), 1)) * 10px), 0); transition: opacity .3s linear, transform .3s linear; }
.js .cs-on .cs__panel .ui-hub__node { opacity: clamp(0.15, calc(var(--lp, 1) * 4), 1); transition: opacity .3s linear; }

@media (max-width: 1000px) {
  .cs__grid { grid-template-columns: minmax(0, 1fr); }
  .cs__side .h2 { margin-bottom: 8px; }
}
.caps__copy { padding: clamp(28px, 3vw, 40px); display: grid; gap: 12px; justify-items: start; }
.caps__copy p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; max-width: 46ch; }
.caps__copy .link { margin-top: 8px; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--orange); }
.dark .ticks li { color: var(--d-ink-2); }
.caps__stage { background: var(--paper-2); padding: clamp(20px, 2.6vw, 36px); border-top: 1px solid var(--line); }

/* =============================================================================
   Product interface fragments (illustrative). Own conventions: 1px lines,
   small radii, Blue/Green for data, Inter-like density via Nunito 600.
   ========================================================================== */
.ui { background: var(--plate); border: 1px solid #E3E1D8; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink); overflow: hidden; box-shadow: 0 1px 0 rgba(20, 20, 19, 0.03), 0 18px 40px -28px rgba(20, 20, 19, 0.35); }
.ui__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ECEAE2; }
.ui__title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13.5px; }
.ui__title img { width: 18px; height: 18px; }
.ui__pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF3EA; color: #4F6338; white-space: nowrap; }
.ui__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ui__pill--run { background: #FBEEE9; color: #A8492C; }
.ui__pill--run::before { background: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
.ui__pill--blue { background: #EBF2F9; color: #3D6C99; }
.ui__pill--blue::before { background: var(--blue); }
@keyframes pulse { 50% { opacity: 0.35; } }
.ui__body { padding: 16px; }
.ui__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid #ECEAE2; color: var(--muted); font-size: 12px; }
.ui .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ui-caption { margin-top: 12px; font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ui-caption::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--line-2); }

/* Integration hub */
.ui-hub__map { position: relative; height: 260px; }
.ui-hub__map svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui-hub__map svg.lines path { stroke: #D9D7CC; stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; }
.ui-hub__map svg.lines path.live { stroke: var(--blue); stroke-dasharray: 4 5; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.ui-hub__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 18px; background: var(--dark); display: grid; place-items: center; box-shadow: 0 10px 30px -12px rgba(20, 20, 19, 0.6); }
.ui-hub__core img { width: 38px; height: 38px; }
.ui-hub__node { position: absolute; transform: translate(-50%, -50%); background: var(--plate); border: 1px solid #E3E1D8; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.ui-hub__node i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ui-rows { display: grid; gap: 0; margin-top: 8px; }
.ui-rows div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 12px; padding: 9px 0; border-top: 1px solid #F0EEE7; align-items: center; }
.ui-rows div span:nth-child(2) { color: var(--muted); }
.ui-rows div span:last-child { color: var(--muted); text-align: end; font-size: 12px; }

/* Agent run log */
.ui-log { display: grid; gap: 0; }
.ui-log li { display: grid; grid-template-columns: 64px 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #F0EEE7; align-items: start; }
.ui-log li:first-child { border-top: 0; }
.ui-log .t { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); padding-top: 2px; direction: ltr; unicode-bidi: isolate; }
.ui-log .s { width: 18px; height: 18px; border-radius: 50%; background: #EEF3EA; display: grid; place-items: center; margin-top: 1px; }
.ui-log .s svg { width: 10px; height: 10px; color: #4F6338; }
.ui-log .s.wait { background: #FBEEE9; }
.ui-log .s.wait::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
.ui-log b { display: block; font-weight: 700; }
.ui-log span.d { color: var(--muted); font-size: 12.5px; }

/* Document extraction */
.ui-doc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; }
.ui-doc__page { background: #FBFAF7; border: 1px solid #ECEAE2; border-radius: 8px; padding: 16px; font-size: 11px; line-height: 1.5; color: var(--ink-2); position: relative; }
.ui-doc__page h5 { margin: 0 0 8px; font-size: 12px; font-family: var(--f-head); letter-spacing: 0.08em; }
.ui-doc__page .row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #E6E3DA; }
.ui-doc__page .total { position: relative; margin-top: 10px; padding: 8px 6px; display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; }
.ui-doc__page .total .dfc { width: 10px; height: 10px; border-width: 2px; }
.ui-fields { display: grid; gap: 0; }
.ui-fields div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 58px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #F0EEE7; }
.ui-fields div:first-child { border-top: 0; }
.ui-fields span:first-child { color: var(--muted); font-size: 12px; }
.ui-fields b { font-weight: 700; }
.ui-conf { height: 5px; border-radius: 3px; background: #ECEAE2; overflow: hidden; }
.ui-conf i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.ui-doc__out { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #EEF3EA; color: #4F6338; font-weight: 600; font-size: 12.5px; }

/* Funnel */
.ui-funnel { display: grid; gap: 10px; }
.ui-funnel div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.ui-funnel span { font-size: 12.5px; color: var(--ink-2); }
.ui-funnel .bar { height: 26px; border-radius: 6px; background: #EBF2F9; position: relative; overflow: hidden; }
.ui-funnel .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--blue); border-radius: 6px; transform-origin: left; }
html[dir="rtl"] .ui-funnel .bar i { transform-origin: right; }
.ui-funnel .bar i.g { background: var(--green); }
.ui-funnel b { font-family: var(--f-mono); font-weight: 400; font-size: 12.5px; text-align: end; direction: ltr; unicode-bidi: isolate; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ui-kpis div { background: #F6F5F0; border-radius: 8px; padding: 10px 12px; }
.ui-kpis span { display: block; font-size: 11.5px; color: var(--muted); }
.ui-kpis b { font-family: var(--f-mono); font-weight: 400; font-size: 18px; direction: ltr; unicode-bidi: isolate; display: block; text-align: start; }

/* Training cohort */
.ui-prog { display: grid; gap: 12px; }
.ui-prog div { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 12px; align-items: center; }
.ui-prog span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ui-prog b { font-family: var(--f-mono); font-weight: 400; font-size: 12px; text-align: end; color: var(--muted); }
.ui-prog .track { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: #ECEAE2; overflow: hidden; }
.ui-prog .track i { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.ui-avatars { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0EEE7; font-size: 12.5px; color: var(--muted); }
.ui-avatars .stack { display: flex; }
.ui-avatars .stack i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--plate); margin-inline-start: -7px; background: #DCD9CE; }
.ui-avatars .stack i:first-child { margin-inline-start: 0; }
.ui-avatars .stack i:nth-child(2) { background: #C9D9E9; } .ui-avatars .stack i:nth-child(3) { background: #D3DCC6; } .ui-avatars .stack i:nth-child(4) { background: #E9D2C8; }
@media (max-width: 640px) {
  .ui-doc { grid-template-columns: minmax(0, 1fr); }
  .ui-funnel div { grid-template-columns: 84px minmax(0, 1fr) 64px; }
  .ui-rows div { grid-template-columns: minmax(0, 1fr) auto; }
  .ui-rows div span:nth-child(2) { display: none; }
  .ui-hub__map { height: 230px; }
}

/* =============================================================================
   Approach (dark): four phases
   ========================================================================== */
.phases { --pl: var(--line-2); --pi: var(--ink); --pt: var(--ink-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--pl); }
.dark .phases { --pl: var(--d-line); --pi: var(--d-ink); --pt: var(--d-ink-2); }
.phase { padding: 32px 28px 8px 0; display: grid; gap: 12px; align-content: start; position: relative; }
html[dir="rtl"] .phase { padding: 32px 0 8px 28px; }
.phase + .phase { padding-inline-start: 28px; border-inline-start: 1px solid var(--pl); }
.phase::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 2px; background: var(--orange); transition: width 1.1s var(--ease); }
.phase.is-in::before { width: 48px; }
.phase h3 { color: var(--pi); }
.phase p { color: var(--pt); }
@media (max-width: 1000px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .phase:nth-child(n+3) { border-top: 1px solid var(--pl); margin-top: 24px; }
}
@media (max-width: 600px) {
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phase + .phase { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--pl); margin-top: 8px; }
}

/* =============================================================================
   Industries
   ========================================================================== */
.inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ind { position: relative; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; padding-inline-end: 72px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; justify-content: flex-end; transition: border-color .25s ease, transform .35s var(--ease), box-shadow .35s var(--ease); }
.ind .n { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.ind h3 { max-width: 16ch; }
.ind p { color: var(--ink-2); font-size: 0.96875rem; }
.ind ul { margin-top: auto; display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.ind li { font-size: 0.875rem; color: var(--muted); display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; }
.ind li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 1.5px; background: var(--line-2); transition: background-color .25s ease; }
.ind .go { position: absolute; top: 24px; inset-inline-end: 24px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.ind .go svg { width: 14px; height: 14px; }
html[dir="rtl"] .ind .go svg { transform: scaleX(-1); }
@media (hover: hover) {
  .ind:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(20, 20, 19, 0.35); }
  .ind:hover li::before { background: var(--orange); }
  .ind:hover .go { background: var(--dark); color: var(--light); border-color: var(--dark); }
}
@media (max-width: 1000px) { .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .inds { grid-template-columns: minmax(0, 1fr); } .ind { min-height: 0; } }

/* =============================================================================
   Solutions list
   ========================================================================== */
.sols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.sol { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.dark .sol { border-color: var(--d-line); }
.sol h3 { font-size: 1.25rem; }
.sol p { color: var(--ink-2); font-size: 0.96875rem; }
.dark .sol p { color: var(--d-ink-2); }
@media (max-width: 800px) { .sols { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================================
   Region map
   ========================================================================== */
.region { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; }
.map { min-width: 0; }
.region__list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line-2); }
.region__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-family: var(--f-head); }
.region__list li span { font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.map { position: relative; }
.map img { width: 100%; height: auto; }
.map__pin { position: absolute; transform: translate(-50%, -50%); }
.map__pin.hq { width: 34px; height: 34px; display: grid; place-items: center; }
.map__pin.hq i { width: 12px; height: 12px; border-radius: 3px; background: var(--orange); }
.map__pin.hq .dfc { width: 9px; height: 9px; border-width: 2px; }
.map__pin.hq em { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; background: var(--dark); color: var(--light); font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; }
.map__pin.hq::after { content: ""; position: absolute; inset: -8px; border-radius: 10px; border: 1.5px solid var(--orange); opacity: 0; animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.map__lbl { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); background: rgba(250, 249, 245, 0.85); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.sec--paper2 .map__lbl { background: rgba(242, 240, 233, 0.88); }
@media (max-width: 900px) { .region { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .map__lbl { font-size: 0.6875rem; padding: 1px 5px; } .map__pin.hq em { font-size: 0.6875rem; } }

/* =============================================================================
   Principles
   ========================================================================== */
.princ { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pr { background: var(--d-plate); border: 1px solid var(--d-line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.pr .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--d-plate-2); display: grid; place-items: center; margin-bottom: 8px; }
.pr .ic svg { width: 20px; height: 20px; color: var(--d-ink); }
.pr h3 { font-size: 1.1875rem; color: var(--d-ink); }
.pr p { color: var(--d-ink-2); font-size: 0.9375rem; }
.sec--light-pr .pr { background: var(--plate); border-color: var(--line); }
.sec--light-pr .pr .ic { background: var(--paper-2); }
.sec--light-pr .pr .ic svg, .sec--light-pr .pr h3 { color: var(--ink); }
.sec--light-pr .pr p { color: var(--ink-2); }
@media (max-width: 1000px) { .princ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .princ { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================================
   Film
   ========================================================================== */
.film { position: relative; display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--dark); aspect-ratio: 16 / 9; }
.film__v { width: 100%; height: 100%; object-fit: cover; }
.film__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(20, 20, 19, 0.18); }
.film__bar i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.film__toggle { position: absolute; bottom: clamp(12px, 2vw, 24px); inset-inline-end: clamp(12px, 2vw, 24px); width: 48px; height: 48px; border-radius: 50%; background: rgba(250, 249, 245, 0.92); color: var(--dark); display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s ease; }
.film__toggle svg { width: 16px; height: 16px; }
.film__toggle .i-play svg { margin-inline-start: 2px; }
html[dir="rtl"] .film__toggle .i-play svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 2px; }
.film__toggle .i-pause, .film.is-playing .film__toggle .i-play { display: none; }
.film.is-playing .film__toggle .i-pause { display: grid; }
@media (hover: hover) { .film__toggle:hover { background: #FFFFFF; transform: scale(1.06); } }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s ease; }
.film__btn { position: absolute; inset: auto auto clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px); display: grid; }
html[dir="rtl"] .film__btn { inset: auto clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) auto; }
.film__btn span { display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px 14px 14px; border-radius: 999px; background: var(--light); color: var(--dark); font-family: var(--f-head); font-weight: 800; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); transition: transform .3s var(--ease); }
html[dir="rtl"] .film__btn span { padding: 14px 14px 14px 24px; }
.film__btn i { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--light); display: grid; place-items: center; }
.film__btn i svg { width: 14px; height: 14px; margin-inline-start: 3px; }
@media (hover: hover) { .film:hover img { transform: scale(1.02); } .film:hover .film__btn span { transform: scale(1.04); } }
.modal { width: min(1200px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: var(--r-lg); background: #000; overflow: hidden; }
.modal::backdrop { background: rgba(10, 10, 9, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(250, 249, 245, 0.92); color: var(--dark); display: grid; place-items: center; }
.modal__close svg { width: 16px; height: 16px; }

/* =============================================================================
   CTA band
   ========================================================================== */
.cta { text-align: center; display: grid; justify-items: center; gap: 28px; }
.cta .dframe { padding: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 64px); }
.cta h2 { max-width: 18ch; }
.cta p { color: var(--d-ink-2); max-width: 52ch; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta--light p { color: var(--ink-2); }

/* =============================================================================
   Inner pages: services / industries detail
   ========================================================================== */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; padding-block: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc__copy { display: grid; gap: 18px; }
.svc > div:last-child { position: sticky; top: calc(var(--hdr) + 84px); }
.nw { white-space: nowrap; }
.svc__copy .n { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.svc__copy p { color: var(--ink-2); }
.svc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.svc__cols h4 { font-size: 0.9375rem; margin-bottom: 12px; }
@media (max-width: 1000px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc > div:last-child { position: static; } }
@media (max-width: 600px) { .svc__cols { grid-template-columns: minmax(0, 1fr); } }

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 12px; align-content: start; }
.model p { color: var(--ink-2); font-size: 0.96875rem; }
.model .fit { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.model .fit b { display: block; color: var(--ink); font-family: var(--f-head); }
@media (max-width: 900px) { .models { grid-template-columns: minmax(0, 1fr); } }

.indd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; padding-block: clamp(64px, 7vw, 104px); border-top: 1px solid var(--line); }
.indd:first-child { border-top: 0; }
.indd .n { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); display: block; margin-bottom: 16px; }
.indd__lead { font-size: var(--fs-lead); color: var(--ink-2); margin-top: 16px; }
.indd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.indd__box { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.indd__box h3 { font-size: 1rem; }
.indd__box p { color: var(--ink-2); }
.indd__box--dark { background: var(--dark); color: var(--d-ink); border-color: var(--dark); grid-column: 1 / -1; }
.indd__box--dark p { color: var(--d-ink-2); }
@media (max-width: 1000px) { .indd { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .indd__grid { grid-template-columns: minmax(0, 1fr); } }

/* Company */
.quote { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem); line-height: 1.15; letter-spacing: -0.025em; max-width: 24ch; }
html[lang="ar"] .quote { font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.fact { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.fact h3 { font-size: 1.125rem; }
.fact p { color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value { background: var(--d-plate); border: 1px solid var(--d-line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 12px; align-content: start; min-height: 240px; }
.value h3 { font-size: 1.5rem; color: var(--d-ink); }
.value p { color: var(--d-ink-2); }
@media (max-width: 900px) { .values { grid-template-columns: minmax(0, 1fr); } .value { min-height: 0; } }
.idea { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idea__card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.idea__art { background: var(--paper); padding: 28px; border-bottom: 1px solid var(--line); }
.idea__art img { width: 100%; height: auto; }
.idea__txt { padding: 24px 28px 28px; display: grid; gap: 10px; align-content: start; }
.idea__txt p { color: var(--ink-2); font-size: 0.96875rem; }
@media (max-width: 900px) { .idea { grid-template-columns: minmax(0, 1fr); } }
.leader { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.leader__mono { aspect-ratio: 1; border-radius: var(--r); background: var(--dark); display: grid; place-items: center; }
.leader__mono img { width: 46%; }
.leader h3 { font-size: 1.75rem; }
.leader .role { color: var(--muted); margin-top: 4px; }
.leader p.bio { color: var(--ink-2); margin-top: 18px; max-width: 60ch; }
.leader__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
@media (max-width: 760px) { .leader { grid-template-columns: minmax(0, 1fr); } .leader__mono { max-width: 180px; } }
.legal-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.legal-card div { padding: 20px 20px 0 0; display: grid; gap: 6px; align-content: start; }
html[dir="rtl"] .legal-card div { padding: 20px 0 0 20px; }
.legal-card span { font-size: 0.8125rem; color: var(--muted); }
.legal-card b { font-weight: 600; }
@media (max-width: 900px) { .legal-card { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }

/* =============================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: start; }
.form { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.fld { display: grid; gap: 8px; }
.fld label { font-weight: 600; font-size: 0.9375rem; }
.fld label .opt { font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; -webkit-appearance: none; }
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
html[dir="rtl"] .fld select { background-position: left 16px center; }
.fld textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--ink); background: var(--plate); box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.22); }
.fld.has-err input, .fld.has-err select, .fld.has-err textarea { border-color: #B5532F; background: #FDF6F3; }
.fld .err { display: none; font-size: 0.8125rem; color: #A8492C; }
.fld.has-err .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.form__foot .note { max-width: 44ch; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: 0.9375rem; display: none; }
.form__status.is-err { display: block; background: #FDF1EC; color: #8C3A20; }
.form__done { grid-column: 1 / -1; display: none; text-align: center; padding: 40px 12px; gap: 14px; justify-items: center; }
.form.is-done > :not(.form__done) { display: none; }
.form.is-done .form__done { display: grid; }
.form__done .tick { width: 56px; height: 56px; border-radius: 16px; background: #EEF3EA; display: grid; place-items: center; }
.form__done .tick svg { width: 26px; height: 26px; color: #4F6338; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: none; }
.btn.is-busy .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.side { display: grid; gap: 16px; }
.side__card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.side__card.dark { background: var(--dark); border-color: var(--dark); }
.side__row { display: grid; gap: 2px; }
.side__row span { font-size: 0.8125rem; color: var(--muted); }
.dark .side__row span { color: var(--d-muted); }
.side__row a, .side__row b { font-weight: 600; font-size: 1.0625rem; }
.steps { display: grid; gap: 16px; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.steps li::before { counter-increment: st; content: counter(st); width: 28px; height: 28px; border-radius: 8px; background: var(--d-plate-2); color: var(--d-ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.8125rem; }
.steps b { display: block; font-family: var(--f-head); }
.steps span { color: var(--d-ink-2); font-size: 0.9375rem; }
@media (max-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } .form__foot .btn { width: 100%; } }

/* =============================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--d-bg); color: var(--d-ink); padding-top: clamp(72px, 8vw, 112px); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--d-line); }
.ftr__brand img { height: 30px; width: auto; }
.ftr__brand p { margin-top: 22px; color: var(--d-ink-2); max-width: 32ch; font-size: 1.0625rem; }
.ftr__brand .btn { margin-top: 28px; }
.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr__cols h4 { font-size: 0.9375rem; color: var(--d-ink); margin-bottom: 18px; }
.ftr__cols span { color: var(--d-ink-2); font-size: 0.9375rem; }
.ftr__cols ul { display: grid; gap: 10px; }
.ftr__cols a { color: var(--d-ink-2); font-size: 0.9375rem; transition: color .2s ease; overflow-wrap: anywhere; }
.ftr__cols > div { min-width: 0; }
@media (hover: hover) { .ftr__cols a:hover { color: var(--d-ink); } }
.ftr__legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; padding-block: 24px 32px; font-size: 0.875rem; color: var(--d-muted); }
.ftr__legal p { max-width: 90ch; }
.ftr__legal .ent { color: var(--d-ink-2); font-weight: 600; margin-bottom: 6px; }
.ftr__legal .ent span { font-family: var(--f-ar-body); font-weight: 500; margin-inline-start: 10px; color: var(--d-muted); }
.ftr__meta { display: flex; gap: 20px; align-items: flex-start; white-space: nowrap; }
.ftr__meta a { color: var(--d-ink-2); }
@media (max-width: 1000px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 700px) { .ftr__legal { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================================
   404
   ========================================================================== */
.nf { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-top: var(--hdr); }
.nf .num { font-family: var(--f-mono); font-size: clamp(5rem, 14vw, 10rem); line-height: 1; letter-spacing: -0.05em; }

/* =============================================================================
   Motion. The static page is complete without any of this.
   ========================================================================== */
/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Dark sections widen into place as they arrive (--p goes 0 → 1, set by site.js). */
.curtain { clip-path: inset(0 calc((1 - var(--p, 1)) * 3vw) round calc((1 - var(--p, 1)) * 36px)); will-change: clip-path; }
.hero__body { will-change: transform, opacity; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-rv] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--d, 0) * 110ms); }
  .js [data-rv].is-in { opacity: 1; transform: none; }
  .js .hero [data-in] { opacity: 0; transform: translateY(20px); animation: in 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
  @keyframes in { to { opacity: 1; transform: none; } }
  .js .ui-funnel .bar i { transform: scaleX(0); transition: transform 1.2s var(--ease); }
  .js .is-in .ui-funnel .bar i, .js .cs__panel .ui-funnel .bar i { transform: scaleX(1); }

}
@media (prefers-reduced-motion: reduce) {
  .curtain { clip-path: none; }
  .cs.cs-on .cs__panel, .cs__frame, .cs__item .cs__line { transition: none; }
  .marquee__track { animation: none; }
  .ui-hub__map svg.lines path.live, .ui__pill--run::before, .ui-log .s.wait::after, .map__pin.hq::after { animation: none; }
}
