/* ==========================================================================
   Khaled Hossam — main stylesheet
   1. Tokens  2. Base  3. Layout  4. Components  5. Header  6. Footer
   7. Home    8. Templates  9. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root{
  --ink:#0B1B33;
  --hero-1:#061a3a; --hero-2:#0a2a5c;
  --primary:#2563EB;
  --accent:#F5A524;
  --success:#12B886;
  --bg:#F7F9FC; --surface:#FFFFFF; --border:#E3E8F0;
  --text:#0F172A; --muted:#5B6B82;
  --radius-card:14px; --radius-btn:10px;
  --container:min(1440px, 100% - 2*clamp(20px,4vw,64px));

  /* derived */
  --content:min(1240px, 100% - 2*clamp(16px,4vw,64px));
  --ink-muted:#C5D0E0;
  --ink-border:#26385A;
  --secondary:#E8EFFD;
  --secondary-text:#1E3A70;
  --hero-glow:#2a5fe0;
  --shadow-soft:0 16px 45px rgb(11 27 51 / .09);
  --shadow-float:0 14px 32px rgb(37 99 235 / .22);
  --hero-shadow:0 18px 40px rgb(6 26 58 / .4);
  --header-h:76px;
  --section-y:96px;
  --font:'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
}
@media (max-width:767px){ :root{ --section-y:56px; --header-h:68px; } }

/* 2. Base ------------------------------------------------------------------ */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px); }
body{ margin:0; background:var(--bg); color:var(--text); font-family:var(--font); font-size:18px; line-height:1.9; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4{ margin:0; font-weight:700; line-height:1.3; color:var(--ink); text-wrap:balance; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; }
ul[class],ol[class]{ list-style:none; }
img,svg,video{ display:block; max-width:100%; }
img{ height:auto; }
a{ color:inherit; text-decoration:none; transition:color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
button,input,textarea,select{ font:inherit; color:inherit; }
button{ cursor:pointer; }
bdi{ unicode-bidi:isolate; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:4px; }
main{ display:block; overflow-x:clip; }
main:focus{ outline:none; }
.icon{ width:1.25em; height:1.25em; flex-shrink:0; }
.sr-only{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{ position:fixed; top:-100px; inset-inline-start:16px; z-index:200; padding:10px 18px; border-radius:var(--radius-btn); background:var(--accent); color:var(--ink); font-weight:700; }
.skip-link:focus{ top:12px; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap-wide{ width:var(--container); margin-inline:auto; }
.wrap{ width:var(--content); margin-inline:auto; }
.section{ padding-block:var(--section-y); }
.section.is-surface{ background:var(--surface); }
.section.is-bg{ background:var(--bg); }

/* 4. Components ------------------------------------------------------------ */
.btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:10px 22px; border:1px solid transparent; border-radius:var(--radius-btn); font-weight:700; font-size:16px; line-height:1.3; white-space:nowrap; overflow:hidden; transition:transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn .icon{ width:20px; height:20px; }
.btn-lg{ min-height:56px; padding-inline:28px; font-size:17px; }
.btn-primary{ background:var(--primary); color:#fff; box-shadow:var(--shadow-float); }
.btn-primary:hover{ background:#1d4fd0; }
.btn-accent{ background:var(--accent); color:var(--ink); box-shadow:0 14px 32px rgb(245 165 36 / .28); }
.btn-accent:hover{ background:#f0a01c; }
.btn-ink-outline{ border-color:rgb(255 255 255 / .32); background:transparent; color:#fff; }
.btn-ink-outline:hover{ background:rgb(255 255 255 / .08); border-color:rgb(255 255 255 / .55); }
.btn-outline{ border-color:var(--border); background:var(--surface); color:var(--text); }
.btn-outline:hover{ border-color:var(--primary); }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:36px; }
.btn-shine::after{ content:""; position:absolute; inset-block:0; left:-45%; width:28%; transform:skewX(-22deg); background:linear-gradient(90deg, transparent, rgb(255 255 255 / .48), transparent); pointer-events:none; }

.text-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--primary); }
.text-link .icon{ width:16px; height:16px; transition:transform .2s ease; }
.text-link:hover .icon{ transform:translateX(-4px); }

.section-heading{ margin-bottom:48px; max-width:768px; }
.section-heading.is-center{ margin-inline:auto; text-align:center; }
.section-heading .eyebrow{ display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; font-size:14px; font-weight:700; color:var(--accent); }
.section-heading .eyebrow span{ display:block; width:32px; height:2px; background:var(--accent); }
.section-heading h2{ font-size:clamp(30px, 3.4vw, 48px); line-height:1.25; }
.section-intro{ margin-top:20px; max-width:672px; font-size:18px; line-height:1.8; color:var(--muted); }
.section-heading.is-center .section-intro{ margin-inline:auto; }
.section-foot{ margin-top:36px; text-align:center; }

.icon-tile{ display:grid; place-items:center; width:48px; height:48px; border-radius:var(--radius-btn); background:var(--secondary); color:var(--primary); flex-shrink:0; transition:color .22s ease, background-color .22s ease; }
.icon-tile .icon{ width:24px; height:24px; }
.icon-tile.is-sm{ width:44px; height:44px; }
.icon-tile.is-sm .icon{ width:22px; height:22px; }

.card{ position:relative; padding:24px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.card-grid{ display:grid; gap:20px; grid-template-columns:repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card-media{ display:block; margin:-24px -24px 20px; overflow:hidden; border-radius:var(--radius-card) var(--radius-card) 0 0; }
.card-title{ font-size:20px; }
.card-text{ margin-top:8px; font-size:15px; line-height:1.8; color:var(--muted); }
.card .text-link{ margin-top:16px; }
.interactive-card{ transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease; }

.chip{ display:inline-block; padding:4px 12px; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:13px; font-weight:700; line-height:1.6; color:var(--secondary-text); }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }

.form-grid{ display:grid; gap:16px; grid-template-columns:repeat(4, minmax(0,1fr)); align-items:end; }
.form-field{ display:grid; gap:8px; }
.form-field span{ font-size:14px; font-weight:500; }
.form-input{ width:100%; min-height:52px; padding:10px 14px; border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); color:var(--text); outline:none; }
.form-input:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgb(37 99 235 / .15); }
textarea.form-input{ min-height:120px; resize:vertical; }
.form-note{ grid-column:1 / -1; font-size:15px; font-weight:700; }
.form-note.is-ok{ color:var(--success); }
.form-note.is-error{ color:#c2410c; }
.hp-field{ position:absolute!important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:1023px){ .form-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } .form-grid .btn{ width:100%; } }

.page-hero{ position:relative; overflow:hidden; padding-block:calc(var(--header-h) + 64px) 96px; border-bottom:1px solid var(--border); background:var(--surface); }
.hero-pattern{ position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(circle at 1px 1px, rgb(37 99 235 / .18) 1px, transparent 0); background-size:28px 28px; -webkit-mask-image:radial-gradient(ellipse 88% 90% at 50% 45%, #000 35%, transparent 100%); mask-image:radial-gradient(ellipse 88% 90% at 50% 45%, #000 35%, transparent 100%); }
.page-hero-inner{ position:relative; }
.page-hero-inner > *{ max-width:896px; }
.page-hero h1{ font-size:clamp(34px, 4.4vw, 60px); line-height:1.2; }
.page-hero-text{ margin-top:24px; max-width:768px; font-size:clamp(18px, 1.5vw, 20px); line-height:1.9; color:var(--muted); }
.eyebrow-plain{ margin-bottom:16px; font-weight:700; color:var(--primary); }
.result-line{ margin-top:24px; padding-inline-start:16px; border-inline-start:4px solid var(--success); font-weight:700; color:var(--ink); }
@media (max-width:767px){ .page-hero{ padding-block:calc(var(--header-h) + 40px) 56px; } }

/* FAQ */
.faq-list{ display:grid; gap:12px; max-width:896px; margin-inline:auto; }
.faq-item{ border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.faq-item summary{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 20px; font-weight:700; color:var(--ink); cursor:pointer; list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .icon{ width:20px; height:20px; color:var(--primary); transition:transform .25s ease; }
.faq-item[open] summary .icon{ transform:rotate(180deg); }
.faq-body{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .28s ease; }
.faq-item[open] .faq-body{ grid-template-rows:1fr; }
.faq-inner{ overflow:hidden; }
.faq-inner p{ margin:0 20px 20px; padding-top:16px; border-top:1px solid var(--border); color:var(--muted); }

/* CTA band */
.cta-band{ padding-block:80px; color:#fff; background:linear-gradient(120deg, var(--ink), #10305e); background-size:180% 180%; }
.cta-band .cta-head{ max-width:768px; margin-bottom:40px; }
.cta-band .cta-eyebrow{ margin-bottom:12px; font-size:14px; font-weight:700; color:var(--accent); }
.cta-band h2{ color:#fff; font-size:clamp(30px, 3.4vw, 48px); }
.cta-band .cta-text{ margin-top:16px; color:var(--ink-muted); }
.cta-card{ padding:28px; border-radius:var(--radius-card); background:var(--surface); color:var(--text); box-shadow:var(--shadow-soft); }
@media (max-width:767px){ .cta-band{ padding-block:56px; } .cta-card{ padding:20px; } }

/* 5. Header ---------------------------------------------------------------- */
.site-header{ position:sticky; top:0; z-index:50; border-bottom:1px solid rgb(11 27 51 / .12); color:var(--text); background:rgb(255 255 255 / .62); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 8px 25px rgb(11 27 51 / .07); transition:background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; }
.site-header[data-header-theme="dark"]{ background:rgb(6 26 58 / .58); border-color:rgb(255 255 255 / .16); color:#fff; box-shadow:0 8px 25px rgb(11 27 51 / .22); }
.site-header[data-home-header="true"]{ margin-bottom:calc(-1 * var(--header-h) - 1px); }
.site-header[data-home-header="true"][data-at-top="true"]{ background:transparent; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; border-color:rgb(255 255 255 / .12); color:#fff; }
.admin-bar .site-header{ top:32px; }
@media (max-width:782px){ .admin-bar .site-header{ top:46px; } }
.header-row{ display:flex; align-items:center; gap:12px; min-height:var(--header-h); transition:min-height .2s ease; }
.site-header.is-compact .header-row{ min-height:calc(var(--header-h) - 8px); }
.site-logo{ font-size:26px; font-weight:700; line-height:1; color:currentColor; white-space:nowrap; }
.logo-first{ color:var(--primary); }
.site-logo{ display:inline-flex; flex-direction:column; align-items:flex-start; gap:5px; }
.logo-tagline{ font-family:Arial, var(--font); font-size:10.5px; font-weight:500; line-height:1; letter-spacing:.06em; opacity:.72; white-space:nowrap; }
.site-header[data-header-theme="dark"] .logo-first{ color:#4f86ff; }
.nav-toggle{ display:none; }
.lang-switch{ display:inline-flex; align-items:center; min-height:44px; padding-inline:10px; font-size:15px; font-weight:600; color:inherit; text-decoration:none; opacity:.85; }
.lang-switch:hover,.lang-switch:focus-visible{ opacity:1; text-decoration:underline; text-underline-offset:4px; }
.en-preview-banner{ padding:8px 16px; background:#fff4d6; color:#5c4300; font-size:14px; text-align:center; }
.site-nav{ display:flex; align-items:center; gap:4px; margin-inline-start:auto; }
.site-nav .menu{ display:flex; align-items:center; gap:4px; }
.site-nav .menu > li > a,.site-nav summary{ display:flex; align-items:center; gap:4px; padding:8px 12px; font-size:16px; font-weight:500; color:currentColor; cursor:pointer; list-style:none; }
.site-nav summary::-webkit-details-marker{ display:none; }
.site-nav .menu > li > a:hover,.site-nav summary:hover,.site-nav .is-current > a{ color:var(--primary); }
.site-header[data-header-theme="dark"] .site-nav .menu > li > a:hover,.site-header[data-header-theme="dark"] .site-nav summary:hover,.site-header[data-header-theme="dark"] .site-nav .is-current > a{ color:#8db2ff; }
.site-nav .chev{ width:16px; height:16px; transition:transform .2s ease; }
.site-nav details[open] .chev{ transform:rotate(180deg); }
.site-nav .has-sub{ position:relative; }
.site-nav .sub-menu{ display:grid; gap:2px; min-width:260px; padding:8px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); color:var(--text); box-shadow:var(--shadow-soft); }
.site-nav .sub-menu a{ display:block; padding:8px 12px; border-radius:var(--radius-btn); font-size:15px; }
.site-nav .sub-menu li:first-child a{ font-weight:700; color:var(--primary); }
.site-nav .sub-menu a:hover{ background:var(--bg); color:var(--primary); }
.header-cta{ min-height:46px; margin-inline-start:8px; padding-inline:20px; font-size:16px; }
@media (min-width:1024px){
  .site-nav .sub-menu{ position:absolute; top:calc(100% + 6px); inset-inline-start:0; }
}
@media (min-width:1024px) and (max-width:1199px){
  .site-nav .menu > li > a,.site-nav summary{ padding-inline:8px; font-size:15px; }
  .header-cta{ padding-inline:14px; font-size:15px; }
}
@media (max-width:1023px){
  .header-row{ flex-wrap:wrap; }
  .nav-toggle{ display:grid; place-items:center; width:44px; height:44px; margin-inline-start:auto; padding:0; border:0; border-radius:var(--radius-btn); background:transparent; color:currentColor; }
  .nav-toggle .icon{ width:24px; height:24px; }
  .nav-toggle .icon-close,.nav-toggle[aria-expanded="true"] .icon-open{ display:none; }
  .nav-toggle[aria-expanded="true"] .icon-close{ display:block; }
  .site-nav{ display:none; flex-direction:column; align-items:stretch; width:100%; margin:0; padding:12px 0 16px; border-top:1px solid rgb(127 140 160 / .25); }
  .site-nav.is-open{ display:flex; }
  .site-nav .menu{ flex-direction:column; align-items:stretch; }
  .site-nav .sub-menu{ margin-top:4px; box-shadow:none; }
  .header-cta{ margin:10px 0 0; }
  .site-header.nav-open{ background:rgb(6 26 58 / .96); color:#fff; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
  .site-header.nav-open[data-header-theme="light"]{ background:rgb(255 255 255 / .97); color:var(--text); }
  .site-logo{ font-size:24px; }
}

/* 6. Footer ---------------------------------------------------------------- */
.site-footer{ background:var(--ink); color:#fff; }
.footer-grid{ display:grid; gap:40px; padding-block:56px; grid-template-columns:2fr 1fr 1fr 1fr; }
.footer-logo{ font-size:24px; font-weight:700; }
.footer-about p{ margin-top:16px; max-width:448px; font-size:15px; line-height:2; color:var(--ink-muted); }
.footer-title{ font-size:18px; color:#fff; }
.footer-links{ display:grid; gap:12px; margin-top:16px; font-size:15px; color:var(--ink-muted); }
.footer-links a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid var(--ink-border); padding-block:20px; font-size:14px; color:var(--ink-muted); }
@media (max-width:1023px){ .footer-grid{ grid-template-columns:1fr 1fr; } .footer-about{ grid-column:1 / -1; } }
@media (max-width:540px){ .footer-grid{ grid-template-columns:1fr; } }

/* WhatsApp */
.whatsapp-wrap{ position:fixed; bottom:20px; inset-inline-start:20px; z-index:40; display:flex; flex-direction:row-reverse; align-items:center; gap:12px; }
.whatsapp-button{ position:relative; display:grid; place-items:center; width:56px; height:56px; border-radius:999px; background:var(--success); color:#fff; box-shadow:0 14px 32px rgb(18 184 134 / .35); }
.whatsapp-button .icon{ width:28px; height:28px; }
.whatsapp-button:hover{ transform:translateY(-4px); }
.whatsapp-tip{ padding:6px 12px; border-radius:var(--radius-btn); background:var(--ink); color:#fff; font-size:13px; font-weight:700; white-space:nowrap; box-shadow:var(--shadow-soft); opacity:0; pointer-events:none; transform:translateX(6px); transition:opacity .18s ease, transform .18s ease; }
.whatsapp-wrap:hover .whatsapp-tip,.whatsapp-wrap:focus-within .whatsapp-tip{ opacity:1; transform:translateX(0); }
@media (max-width:640px){ .whatsapp-tip{ display:none; } .whatsapp-wrap{ bottom:16px; inset-inline-start:16px; } .whatsapp-button{ width:52px; height:52px; } }

/* @home-start */
/* 7. Home ------------------------------------------------------------------ */

/* 7.1 Hero */
.hero{ position:relative; isolation:isolate; overflow:hidden; color:#fff; background:radial-gradient(ellipse at 25% 49%, rgb(42 95 224 / .42), transparent 49%), linear-gradient(115deg, var(--hero-2), var(--hero-1)); }
.hero::after{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at center, transparent 40%, rgb(6 26 58 / .65)); }
.hero-dots{ position:absolute; inset:0; z-index:-1; background-image:radial-gradient(rgb(255 255 255 / .1) 1px, transparent 1px); background-size:24px 24px; -webkit-mask-image:radial-gradient(ellipse at 28% 50%, #000, transparent 70%); mask-image:radial-gradient(ellipse at 28% 50%, #000, transparent 70%); }
/* Glow colour (front page field «لون الدايرة»): design tokens only. */
.hero{ --glow-hi:#a8ccff; --glow-mid:var(--primary); --glow-lo:#1b49c4; }
.hero[data-glow="accent"]{ --glow-hi:#ffe0a0; --glow-mid:var(--accent); --glow-lo:#c26f00; }
.hero[data-glow="success"]{ --glow-hi:#a3f5dc; --glow-mid:var(--success); --glow-lo:#0a8a66; }
/* Thin diagonal light lines across the background. */
.hero-rays{ position:absolute; inset:0; z-index:-1; width:100%; height:100%; pointer-events:none; }
.hero-rays path{ fill:none; stroke:rgb(255 255 255 / .08); stroke-width:1; }
.hero-layout{ --hero-pb:clamp(72px, 10vh, 120px); --hero-h:clamp(640px, 92vh, 860px); display:grid; grid-template-columns:46fr 54fr; gap:clamp(24px, 3vw, 56px); align-items:center; min-height:var(--hero-h); padding-block:calc(var(--header-h) + clamp(32px, 6vh, 72px)) var(--hero-pb); }
.hero-copy{ position:relative; z-index:2; min-width:0; container-type:inline-size; }
.hero-badge{ display:inline-flex; align-items:center; gap:10px; padding:9px 18px; border:1px solid rgb(37 99 235 / .65); border-radius:999px; font-size:14.5px; font-weight:500; line-height:1.5; }
.hero-badge > span{ width:7px; height:7px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.hero-title{ margin-top:24px; color:#fff; font-size:clamp(30px, min(4.6vw, 8.6cqi), 72px); font-weight:700; line-height:1.22; text-wrap:initial; }
.hero-line{ display:block; white-space:nowrap; }
.hero-title strong{ position:relative; display:inline-block; color:var(--accent); font-weight:inherit; }
.hero-title strong svg{ position:absolute; bottom:-.16em; left:0; width:100%; height:.24em; overflow:visible; }
.hero-title strong path{ fill:none; stroke:currentColor; stroke-width:4; stroke-linecap:round; }
.hero-text{ margin-top:24px; max-width:56ch; font-size:clamp(17px, 1.35vw, 21px); line-height:1.9; color:var(--ink-muted); }
.hero-direct{ display:flex; align-items:flex-start; gap:10px; margin-top:16px; max-width:56ch; font-size:clamp(15px, 1.1vw, 17px); font-weight:500; line-height:1.8; color:#fff; }
.hero-direct .icon{ width:22px; height:22px; margin-top:3px; color:var(--accent); }
.hero-actions{ display:flex; gap:16px; margin-top:32px; }
.hero-actions .btn{ min-height:60px; padding-inline:28px; font-size:18px; }
.hero-checks{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 20px; margin-top:36px; padding-block:20px; border-block:1px solid rgb(255 255 255 / .15); font-size:clamp(14px, 1.15vw, 16px); font-weight:500; }
.hero-checks li{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
.hero-checks .icon{ width:22px; height:22px; color:var(--success); }
.hero-proof{ display:flex; margin-top:36px; padding-block:18px; border-block:1px solid rgb(255 255 255 / .15); font-size:clamp(13px, 1vw, 15px); line-height:1.65; color:var(--ink-muted); }
.hero-proof li{ flex:1 1 0; min-width:0; padding-inline:18px; border-inline-start:1px solid rgb(255 255 255 / .15); }
.hero-proof li:first-child{ padding-inline-start:0; border-inline-start:0; }
.hero-proof li:last-child{ padding-inline-end:0; }
.proof-num{ display:block; margin-bottom:2px; font-size:clamp(20px, 1.8vw, 26px); font-weight:700; line-height:1.3; color:#fff; font-variant-numeric:tabular-nums; }

.hero-visual{ position:relative; align-self:end; min-width:0; margin-bottom:calc(-1 * var(--hero-pb)); }
.hero-stage{ position:relative; direction:ltr; width:min(100%, 740px, var(--hero-h) - var(--header-h) - 120px); aspect-ratio:1; margin-inline:auto; container-type:inline-size; }
/* Glow disc, orbits and dots: one square box over the stage (100 units = its width), behind the portrait. */
.hero-fx{ position:absolute; left:0; top:0; z-index:0; width:100%; aspect-ratio:1; pointer-events:none; container-type:inline-size; }
.hero-glow{ position:absolute; left:53%; top:43%; width:74%; aspect-ratio:1; border-radius:50%; transform:translate(-50%, -50%); background:radial-gradient(circle at 50% 34%, var(--glow-hi) 0%, var(--glow-mid) 46%, var(--glow-lo) 82%, color-mix(in srgb, var(--glow-lo) 80%, #061a3a) 100%); box-shadow:0 0 4cqw 1.2cqw color-mix(in srgb, var(--glow-mid) 60%, transparent), 0 0 18cqw 8cqw color-mix(in srgb, var(--glow-mid) 28%, transparent); }
.hero-orbit{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.hero-orbit ellipse{ fill:none; stroke:rgb(255 255 255 / .13); stroke-width:1; }
/* The same orbits in front of the portrait, cut below the face: only the lower arcs show (over the chest). */
.hero-orbit-front{ position:absolute; left:0; top:0; z-index:2; width:100%; aspect-ratio:1; pointer-events:none; clip-path:inset(var(--orbit-front-top, 63%) -20% -20% -20%); }
.hero-orbit-front ellipse{ stroke:rgb(255 255 255 / .16); }
/* A dot per orbit: two nested oscillations (x, then y a quarter period later) trace the ellipse, so the dot stays round. */
.orbit-path{ position:absolute; left:calc(var(--cx) * 1%); top:calc(var(--cy) * 1%); width:0; height:0; transform:rotate(var(--tilt)); }
.orbit-x{ display:block; width:calc(var(--rx) * 1cqw); height:0; transform:translateX(100%); }
.orbit-y{ display:block; width:0; height:calc(var(--ry) * 1cqw); }
.orbit-dot{ display:block; width:max(6px, 1.1cqw); height:max(6px, 1.1cqw); margin:calc(max(6px, 1.1cqw) / -2); border-radius:50%; background:var(--accent); box-shadow:0 0 1.4cqw var(--accent); }
.hero-portrait{ position:absolute; z-index:2; left:14%; bottom:-8%; width:72%; height:100%; transform-origin:center bottom; }
.hero-portrait img{ width:100%; height:100%; object-fit:contain; object-position:var(--portrait-x, 50%) var(--portrait-y, 100%); transform:translateY(var(--portrait-offset, 0%)) scale(var(--portrait-scale, 1)); transform-origin:center bottom; -webkit-mask-image:linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, #000 88%, transparent 100%); mask-image:linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, #000 88%, transparent 100%); -webkit-mask-composite:source-in; mask-composite:intersect; }
.hero-pills{ display:none; }

/* Floating cards: positions come from inline --x --y --w --r --z. */
.hc{ position:absolute; left:var(--x); top:var(--y); width:var(--w); z-index:var(--z, 3); }
.hc[data-color="blue"]{ --layer-color:var(--primary); }
.hc[data-color="teal"]{ --layer-color:var(--success); }
.hc[data-color="amber"]{ --layer-color:var(--accent); }
/* Dark glass cards (owner rule 2-م): navy glass, 1px light border, white text, bold numbers. */
.hc-inner{ padding:2.6cqw; border:1px solid rgb(255 255 255 / .1); border-radius:12px; background:rgb(8 24 56 / .56); -webkit-backdrop-filter:blur(12px) saturate(1.2); backdrop-filter:blur(12px) saturate(1.2); color:#fff; font-family:Arial, var(--font); line-height:1.4; transform:rotate(var(--r)); box-shadow:0 1.6cqw 4cqw rgb(0 0 0 / .32), inset 0 1px 0 rgb(255 255 255 / .06); }
/* Depth: cards behind the portrait are a little smaller, fainter and softly blurred. */
.hc.hc--back,.hc.hc--back.hero-enter{ transform:scale(.9); }
.hc--back .hc-inner{ opacity:.6; filter:blur(.7px); }
.hc-title{ display:flex; align-items:center; gap:1.2cqw; font-weight:700; font-size:2.6cqw; color:#fff; white-space:nowrap; }
.hc-ok{ display:inline-grid; place-items:center; width:3.4cqw; height:3.4cqw; border-radius:50%; background:var(--success); flex-shrink:0; }
.hc-ok svg{ width:70%; fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; }
.hc-row{ display:flex; align-items:center; gap:2cqw; }
.hc-skeleton{ display:grid; gap:.9cqw; margin-top:1.4cqw; }
.hc-skeleton i{ display:block; height:.8cqw; border-radius:9px; background:rgb(255 255 255 / .14); }
.hc-skeleton i:nth-child(2){ width:75%; }
.hc-skeleton i:nth-child(3){ width:55%; }
.hc-gsearch{ display:flex; align-items:center; gap:2cqw; }
.hc-wordmark{ font:700 3.6cqw/1 Arial, sans-serif; }
.hc-wordmark b:nth-child(1),.hc-wordmark b:nth-child(4){ color:#4285F4; }
.hc-wordmark b:nth-child(2),.hc-wordmark b:nth-child(6){ color:#EA4335; }
.hc-wordmark b:nth-child(3){ color:#FBBC05; }
.hc-wordmark b:nth-child(5){ color:#34A853; }
.hc-gfield{ flex:1; min-width:0; display:flex; align-items:center; justify-content:space-between; gap:1cqw; padding:1.2cqw 2cqw; border:1px solid rgb(255 255 255 / .16); border-radius:999px; background:rgb(255 255 255 / .05); color:#fff; font:400 max(12px, 1.9cqw)/1.4 var(--font); white-space:nowrap; }
.hc-gfield > span{ overflow:hidden; text-overflow:ellipsis; }
.hc-gfield .icon{ width:2.6cqw; height:2.6cqw; color:#8db2ff; }
.hc-gtabs{ display:flex; gap:2.4cqw; margin-top:2cqw; padding-bottom:1.2cqw; border-bottom:1px solid rgb(255 255 255 / .12); font-size:max(11px, 1.5cqw); color:rgb(255 255 255 / .55); }
.hc-gtabs span:first-child{ color:#8db2ff; font-weight:700; }
.hc-gresult{ width:32cqw; max-width:100%; margin-top:2cqw; }
.hc-gsite{ display:flex; align-items:center; gap:1.2cqw; font-size:max(12px, 1.6cqw); }
.hc-gsite small{ display:block; color:rgb(255 255 255 / .55); font-size:1.3cqw; }
.hc-avatar{ display:grid; place-items:center; width:4cqw; height:4cqw; border-radius:50%; background:var(--primary); color:#fff; font-size:1.5cqw; font-weight:700; flex-shrink:0; }
.hc-gtitle{ margin-top:1.4cqw; color:#8db2ff; font:500 max(12px, 2.1cqw)/1.5 var(--font); }
.hc-gsnippet{ margin-top:.6cqw; color:rgb(255 255 255 / .62); font:400 max(11px, 1.6cqw)/1.7 var(--font); }
.hc[data-type="g-tile"] .hc-inner{ display:grid; place-items:center; aspect-ratio:1; padding:0; }
.hc-gtile-mark{ font:800 6cqw/1 Arial, sans-serif; background:conic-gradient(from -45deg, #EA4335 0 25%, #FBBC05 0 37%, #34A853 0 62%, #4285F4 0 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hc-gauges{ display:flex; justify-content:space-between; margin-top:2cqw; text-align:center; }
.hc-gauges small{ display:block; margin-top:.8cqw; font-size:1.6cqw; color:rgb(255 255 255 / .6); }
.hc-ring{ display:grid; place-items:center; width:8cqw; height:8cqw; border:.8cqw solid var(--success); border-radius:50%; font-weight:800; font-size:2.4cqw; color:#fff; }
.hc-trend{ width:3cqw; height:3cqw; color:var(--success); }
.hc[data-type="growth"] .hc-inner{ position:relative; padding-inline:1.8cqw; }
.hc[data-type="growth"] .hc-title{ gap:.8cqw; font-size:2.3cqw; }
.hc-pill{ position:absolute; top:-2.4cqw; right:2cqw; display:flex; align-items:center; gap:1cqw; padding:1cqw 2cqw; border:1px solid rgb(255 255 255 / .12); border-radius:999px; background:rgb(8 24 56 / .9); box-shadow:var(--hero-shadow); font-size:1.8cqw; font-weight:700; color:#8db2ff; white-space:nowrap; }
.hc-pill i{ width:1.4cqw; height:1.4cqw; border-radius:50%; background:var(--accent); }
.hc-chart{ width:100%; height:auto; margin-top:13px; overflow:visible; color:#6ea8ff; }
.hc-chart-line{ fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; }
.hc-chart-area{ fill:currentColor; opacity:.18; }
.hc-big-icon{ width:5cqw; height:5cqw; color:var(--accent); }
.hc[data-type="leads"] .hc-inner{ position:relative; border-color:rgb(245 165 36 / .32); }
.hc-curve{ position:absolute; right:2cqw; top:-6cqw; width:3.5cqw; fill:none; stroke:var(--accent); stroke-width:2.4; stroke-linecap:round; }
.hc-vis{ width:6cqw; flex-shrink:0; }
.hc-vis rect{ fill:#6ea8ff; }
.hc-vis path{ fill:none; stroke:#6ea8ff; stroke-width:2.4; stroke-linecap:round; }
.hc[data-type="visibility"]{ width:max-content; min-width:var(--w); }
.hc[data-type="visibility"] .hc-title{ font-size:2.2cqw; }
/* Chips: small dark pills, label + accent badge (like «Creative Media KSA» in the reference). */
.hc[data-type="chip"] .hc-inner{ padding:1cqw 1.1cqw 1cqw 1.6cqw; border-radius:999px; }
.hc[data-type="chip"] .hc-row{ gap:1.2cqw; }
.hc[data-type="chip"] .hc-title{ flex:1; font-size:2.1cqw; }
.hc-chip-icon{ display:grid; place-items:center; width:2.8cqw; height:2.8cqw; color:rgb(255 255 255 / .7); flex-shrink:0; }
.hc-chip-icon .icon{ width:100%; height:100%; }
.hc[data-type="chip"] .hc-ok{ width:auto; height:auto; padding:.55cqw 1.2cqw; border-radius:999px; background:var(--accent); }
.hc[data-type="chip"] .hc-ok svg{ width:2cqw; height:2cqw; stroke:var(--ink); stroke-width:2.8; }
.hc-g{ font:700 2.4cqw/1 Arial, sans-serif; }

@media (min-width:1024px) and (max-width:1199px){
  .hero-actions{ gap:10px; }
  .hero-actions .btn{ padding-inline:16px; font-size:16px; }
}
@media (min-width:1024px) and (max-width:1279px){
  .hc-inner{ padding:2.4cqw; }
}

/* Tablet 768–1023: stacked, portrait max 560, only cwv + growth at the outer edges. */
@media (max-width:1023px){
  .hero-layout{ grid-template-columns:1fr; min-height:0; gap:40px; --hero-pb:72px; }
  .hero-copy{ width:100%; max-width:680px; margin-inline:auto; }
  .hero-line{ white-space:normal; }
  .hero-title{ font-size:clamp(32px, 6vw, 48px); }
  .hero-checks{ justify-content:flex-start; }
  .hero-visual{ width:100%; margin-bottom:0; }
  .hero-stage{ width:min(100%, 640px); }
  .hero-portrait{ left:calc((100% - min(87.5%, 560px)) / 2); width:min(87.5%, 560px); bottom:-12%; }
  .hc:not([data-type="cwv"]):not([data-type="growth"]),.hc.hc-hide-tablet{ display:none; }
  .hc[data-type="cwv"]{ left:auto; right:-2%; top:4%; width:33%; }
  .hc[data-type="growth"]{ left:-2%; top:36%; width:33%; }
  .hc-inner{ padding:2.4cqw; }
  .hc-title{ font-size:3cqw; }
  .hero-pills{ display:flex; justify-content:center; gap:10px; margin:20px auto 0; padding:0 0 4px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .hero-pills::-webkit-scrollbar{ display:none; }
  .hero-pills li{ display:inline-flex; align-items:center; gap:8px; flex-shrink:0; padding:6px 6px 6px 14px; border:1px solid rgb(255 255 255 / .1); border-radius:999px; background:rgb(8 24 56 / .56); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); font-size:14px; font-weight:700; white-space:nowrap; scroll-snap-align:start; }
  .hero-pills .hc-ok{ width:auto; height:auto; padding:4px 9px; border-radius:999px; background:var(--accent); }
  .hero-pills .hc-ok svg{ width:12px; height:12px; stroke:var(--ink); stroke-width:2.8; }
}

/* Mobile < 768: text first, then the portrait alone, then a row of pills. */
@media (max-width:767px){
  .hero-layout{ gap:28px; padding-block:calc(var(--header-h) + 28px) 72px; }
  .hero-badge{ font-size:12px; padding:7px 14px; }
  .hero-title{ margin-top:20px; font-size:clamp(28px, 8.4vw, 36px); line-height:1.4; }
  .hero-text{ margin-top:18px; font-size:16px; line-height:1.95; }
  .hero-direct{ margin-top:14px; font-size:15px; }
  .hero-actions{ flex-direction:column; gap:12px; margin-top:28px; }
  .hero-actions .btn{ width:100%; min-height:56px; font-size:17px; }
  .hero-checks{ gap:10px 18px; margin-top:28px; padding-block:16px; font-size:14px; }
  .hero-proof{ margin-top:28px; padding-block:14px; font-size:12.5px; line-height:1.55; }
  .hero-proof li{ padding-inline:10px; }
  .proof-num{ font-size:19px; }
  .hero-checks .icon{ width:20px; height:20px; }
  .hero-stage{ width:100%; max-width:480px; aspect-ratio:auto; container-type:normal; }
  .hero-fx{ top:-2%; }
  .hc{ display:none!important; }
  .hero-portrait{ position:relative; left:auto; bottom:auto; width:100%; height:auto; transform:none; }
  .hero-portrait{ aspect-ratio:660 / 810; }
  .hero-portrait img{ height:100%; object-fit:cover; object-position:50% 100%; -webkit-mask-image:linear-gradient(to bottom, #000 82%, transparent 100%); mask-image:linear-gradient(to bottom, #000 82%, transparent 100%); }
  .hero-pills{ justify-content:flex-start; margin-top:12px; margin-inline:calc(-1 * clamp(20px, 4vw, 64px)); padding-inline:clamp(20px, 4vw, 64px); scroll-padding-inline:clamp(20px, 4vw, 64px); }
  .hero-pills li{ padding:7px 12px; font-size:13px; }
}
@media (min-width:500px) and (max-width:767px){ .hero-pills{ justify-content:center; } }

/* 7.2 Stats strip: dark glass like the hero cards (owner message 5). Same navy, blur, border and shadow as
   .hc-inner; the navy is more opaque (84% instead of 56%) because the strip's lower half sits on the light page,
   where 56% gives the 70% white labels only ~3:1 (AA needs 4.5:1). About half of it overlaps the hero, never
   more than the hero's bottom padding minus 16px, so it covers no hero text. It does not move after load. */
.stats{ position:relative; z-index:20; --stats-overlap:min(76px, calc(clamp(72px, 10vh, 120px) - 16px)); }
.stats.is-overlap{ margin-top:calc(-1 * var(--stats-overlap)); }
.stats-card{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); overflow:hidden; border:1px solid rgb(255 255 255 / .1); border-radius:var(--radius-card); background:rgb(8 24 56 / .84); -webkit-backdrop-filter:blur(12px) saturate(1.2); backdrop-filter:blur(12px) saturate(1.2); box-shadow:var(--hero-shadow), inset 0 1px 0 rgb(255 255 255 / .06); color:#fff; }
.stat{ display:grid; grid-template-columns:auto minmax(0,1fr); align-content:start; align-items:center; gap:8px 12px; padding:26px 24px 24px; }
.stat + .stat{ border-inline-start:1px solid rgb(255 255 255 / .1); }
.stat-icon{ display:grid; place-items:center; color:var(--accent); }
.stat-icon .icon{ width:26px; height:26px; }
.stat-num{ display:flex; align-items:baseline; gap:.28em; min-width:0; font-size:clamp(28px, 2.4vw, 36px); font-weight:700; line-height:1.15; color:var(--accent); font-variant-numeric:tabular-nums; }
.stat-fig{ display:inline-grid; }
.stat-fig > span{ grid-area:1 / 1; }
.stat-ghost{ visibility:hidden; } /* keeps the final width while the count runs: no shift */
.stat-unit{ font-size:.6em; }
.stat-label{ grid-column:1 / -1; font-size:15px; line-height:1.65; color:rgb(255 255 255 / .72); }
@media (max-width:1023px){ .stats{ --stats-overlap:56px; } } /* the pill row sits 72px above the hero's bottom */
@media (max-width:899px) and (min-width:768px){
  .stats-card{ grid-template-columns:1fr 1fr; }
  .stat:nth-child(odd){ border-inline-start:0; }
  .stat:nth-child(n+3){ border-top:1px solid rgb(255 255 255 / .1); }
}
@media (max-width:767px){
  .stats-card{ grid-template-columns:1fr; }
  .stat{ grid-template-columns:auto auto minmax(0,1fr); gap:0 10px; padding:14px 18px; }
  .stat + .stat{ border-inline-start:0; border-top:1px solid rgb(255 255 255 / .1); }
  .stat-icon .icon{ width:22px; height:22px; }
  .stat-num{ font-size:24px; }
  .stat-label{ grid-column:auto; font-size:14px; line-height:1.5; }
}

/* 7.3 Services */
.journey-scroll{ margin:0 calc(-1 * clamp(16px, 4vw, 64px)) 40px; padding:4px clamp(16px, 4vw, 64px) 12px; overflow-x:auto; scrollbar-width:thin; }
.journey{ position:relative; display:flex; justify-content:space-between; min-width:720px; }
.journey::before,.journey::after{ content:""; position:absolute; top:23px; inset-inline:64px; border-top:2px dashed var(--border); }
.journey::after{ border-top-color:var(--primary); transform-origin:right center; }
.journey-node{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; width:128px; text-align:center; scroll-snap-align:center; }
.journey-node span{ display:grid; place-items:center; width:48px; height:48px; border:2px solid var(--border); border-radius:50%; background:var(--surface); color:var(--primary); transition:color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease; }
.journey-node span .icon{ width:20px; height:20px; }
.journey-node strong{ margin-top:8px; font-size:15px; font-weight:700; color:var(--ink); }
.journey-node.is-lit span{ background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-3px); }
@media (max-width:767px){ .journey-scroll{ scroll-snap-type:x mandatory; } }

.bento{ display:grid; gap:20px; grid-template-columns:repeat(6, minmax(0,1fr)); }
.service-tile{ position:relative; grid-column:span 2; overflow:hidden; padding:24px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); }
.service-tile.is-large{ grid-column:span 3; min-height:320px; }
.service-tile.is-large .service-tile-body{ position:relative; z-index:1; max-width:58%; }
.service-tile h3{ margin-top:20px; font-size:clamp(20px, 1.8vw, 24px); }
.service-tile p{ margin-top:8px; font-size:15px; line-height:1.8; color:var(--muted); }
.tile-points{ display:grid; gap:8px; margin-top:16px; font-size:15px; font-weight:500; color:var(--ink); }
.tile-points li{ display:flex; align-items:center; gap:8px; }
.tile-points .icon{ width:16px; height:16px; color:var(--success); }
.service-tile .text-link{ margin-top:20px; }
.tile-illus{ position:absolute; bottom:20px; inset-inline-end:20px; width:38%; color:var(--primary); transition:transform .3s ease; }
.stretched::after{ content:""; position:absolute; inset:0; z-index:1; }
@media (max-width:1023px){
  .bento{ grid-template-columns:1fr 1fr; }
  .service-tile,.service-tile.is-large{ grid-column:span 1; min-height:0; }
  .service-tile.is-large{ grid-column:1 / -1; }
}
@media (max-width:640px){
  .bento{ grid-template-columns:1fr; }
  .service-tile.is-large .service-tile-body{ max-width:none; }
  .tile-illus{ position:static; width:46%; margin-top:16px; }
}

/* 7.4 Work rows */
.work-rows{ display:grid; gap:80px; }
.work-row{ display:grid; grid-template-columns:58fr 42fr; align-items:center; gap:64px; padding-bottom:80px; border-bottom:1px solid var(--border); }
.work-row:last-child{ padding-bottom:0; border-bottom:0; }
.work-row.is-flipped .work-row-media{ order:2; }
.work-row.is-flipped{ grid-template-columns:42fr 58fr; }
.work-row-media,.work-row-text{ min-width:0; }
.work-meta{ display:flex; align-items:center; gap:12px; }
.work-index{ font-size:14px; font-weight:700; color:var(--accent); }
.work-rule{ width:40px; height:1px; background:var(--accent); }
.work-industry{ font-size:13px; font-weight:700; color:var(--primary); }
.work-row h3{ margin-top:16px; font-size:clamp(28px, 2.6vw, 36px); line-height:1.25; }
.work-row h3 a:hover{ color:var(--primary); }
.work-desc{ margin-top:16px; font-size:17px; line-height:1.9; color:var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.work-row .chips{ margin-top:20px; }
.work-row .text-link{ margin-top:24px; }
.work-foot{ margin-top:48px; }
.browser-frame{ overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); box-shadow:var(--shadow-soft); }
.browser-frame.is-featured{ box-shadow:var(--shadow-float); transition:transform .26s ease, box-shadow .26s ease; }
.browser-bar{ display:flex; align-items:center; gap:6px; height:36px; padding-inline:12px; border-bottom:1px solid var(--border); }
.browser-bar i{ width:8px; height:8px; border-radius:50%; background:var(--accent); }
.browser-bar i:nth-child(2){ background:var(--success); }
.browser-bar i:nth-child(3){ background:var(--primary); }
.browser-bar span{ margin-inline-start:12px; overflow:hidden; font-size:11px; color:var(--muted); white-space:nowrap; text-overflow:ellipsis; }
.browser-shot{ aspect-ratio:16 / 10; overflow:hidden; }
.browser-shot img,.browser-shot a{ display:block; width:100%; height:100%; object-fit:cover; object-position:top; }
@media (max-width:767px){
  .work-rows{ gap:56px; }
  .work-row,.work-row.is-flipped{ grid-template-columns:1fr; gap:24px; padding-bottom:0; border-bottom:0; }
  .work-row.is-flipped .work-row-media{ order:0; }
  .work-desc{ -webkit-line-clamp:unset; display:block; }
}

/* 7.5 GEO strip */
.geo-strip{ padding-block:20px; border-block:1px solid var(--border); background:var(--surface); }
.geo-strip-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px 24px; }
.geo-line{ font-weight:700; line-height:1.8; color:var(--ink); }
.geo-line strong{ color:var(--accent); font-variant-numeric:tabular-nums; }
.geo-links{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; flex-shrink:0; }
.text-link.is-muted{ color:var(--secondary-text); }
@media (max-width:767px){ .geo-strip-inner{ flex-direction:column; align-items:flex-start; } }

/* 7.6 Methodology */
.method{ position:relative; display:grid; gap:20px; grid-template-columns:repeat(var(--steps, 4), minmax(0,1fr)); }
.method::before,.method::after{ content:""; position:absolute; top:52px; inset-inline:12%; height:1px; background:var(--border); }
.method::after{ height:2px; background:var(--primary); transform-origin:right center; }
.method-step{ position:relative; z-index:1; padding:24px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); }
.method-icon{ display:grid; place-items:center; width:56px; height:56px; border:4px solid var(--surface); border-radius:50%; background:var(--primary); color:#fff; box-sizing:content-box; margin:-4px; }
.method-icon .icon{ width:24px; height:24px; }
.method-step h3{ margin-top:20px; font-size:21px; }
.check-list{ display:grid; gap:8px; margin-top:16px; font-size:15px; line-height:1.8; color:var(--muted); }
.check-list li{ display:flex; gap:8px; }
.check-list .icon{ width:16px; height:16px; margin-top:6px; color:var(--success); }
@media (max-width:1023px){ .method{ grid-template-columns:1fr 1fr; } .method::before,.method::after{ display:none; } }
@media (max-width:540px){ .method{ grid-template-columns:1fr; } }

/* 7.7 Industries */
.industry-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--border); }
.industry-card{ position:relative; min-height:288px; padding:32px; background:var(--surface); }
.industry-card.interactive-card:hover{ transform:none; box-shadow:none; }
.industry-top{ display:flex; align-items:center; justify-content:space-between; }
.industry-num{ font-size:14px; font-weight:700; color:var(--primary); }
.industry-card h3{ margin-top:56px; font-size:clamp(22px, 2vw, 26px); }
.industry-card p{ margin-top:12px; line-height:1.9; color:var(--muted); }
@media (max-width:1023px){ .industry-grid{ grid-template-columns:1fr; } .industry-card{ min-height:0; padding:24px; } .industry-card h3{ margin-top:28px; } }

/* 7.8 Team */
.team-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.team-card{ position:relative; overflow:hidden; padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.team-card::before{ content:""; position:absolute; top:0; inset-inline-start:0; width:0; height:3px; background:var(--accent); transition:width .25s ease; }
.team-card:hover::before{ width:100%; }
.team-card.is-lead{ grid-column:1 / -1; display:grid; grid-template-columns:auto 1fr; column-gap:16px; align-items:center; border-color:#f3d8a6; background:#fffaf0; }
.team-card.is-lead .icon-tile{ grid-row:span 2; }
.team-card.is-lead h3{ margin-top:0; }
.team-card.is-lead p{ margin-top:4px; }
.team-card.is-lead::before{ width:100%; }
.team-card.is-lead .icon-tile{ background:var(--accent); color:var(--ink); }
.team-card h3{ margin-top:20px; font-size:18px; }
.team-card p{ margin-top:8px; font-size:15px; line-height:1.8; color:var(--muted); }
@media (max-width:1023px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:420px){ .team-card{ padding:16px; } .team-card h3{ font-size:16px; } }

/* 7.9 Tools marquee */
.tools{ overflow:hidden; padding-block:28px; border-block:1px solid var(--ink-border); background:var(--ink); color:#fff; }
.tools-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.tools-head .icon{ width:20px; height:20px; color:var(--accent); }
.marquee{ overflow:hidden; }
.marquee-track{ display:flex; gap:12px; width:max-content; padding-inline:12px; }
.marquee-track li{ padding:8px 20px; border:1px solid var(--ink-border); border-radius:999px; background:rgb(38 56 90 / .3); font-size:14px; font-weight:500; color:var(--ink-muted); white-space:nowrap; }

/* 7.10 Guides teaser */
.guide-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.guide-card{ position:relative; padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); }
.guide-card h3{ margin-top:20px; font-size:19px; }
.guide-card p{ margin-top:8px; font-size:15px; line-height:1.8; color:var(--muted); }
.guide-card .text-link{ margin-top:12px; }
@media (max-width:1023px){ .guide-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .guide-grid{ grid-template-columns:1fr; } }

/* 7.11 Audit card */
.audit{ display:grid; grid-template-columns:.75fr 1.25fr; align-items:center; gap:40px; }
.audit .section-heading{ margin-bottom:0; }
.audit-card{ padding:28px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft); }
.audit-card-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.audit-card-head h3{ font-size:21px; }
.audit-card-head p{ font-size:13px; color:var(--muted); }
.audit-card-head > .icon{ width:32px; height:32px; color:var(--primary); }
.audit-card li{ display:flex; align-items:center; gap:12px; padding-block:14px; border-bottom:1px solid var(--border); font-weight:500; color:var(--ink); }
.audit-card li:last-child{ border-bottom:0; }
.audit-card li .icon{ width:20px; height:20px; color:var(--muted); }
.audit-card li em{ margin-inline-start:auto; padding:2px 12px; border-radius:999px; background:var(--secondary); font-size:12px; font-style:normal; font-weight:700; color:var(--primary); }
@media (max-width:1023px){ .audit{ grid-template-columns:1fr; } .audit-card{ padding:20px; } }
/* @home-end */

/* @templates-start */
/* 8. Templates ------------------------------------------------------------- */
.grid-3{ display:grid; gap:16px; grid-template-columns:repeat(3, minmax(0,1fr)); }
.split{ display:grid; gap:40px; grid-template-columns:1fr 1fr; align-items:start; }
.split .section-heading{ margin-bottom:24px; }
@media (max-width:1023px){ .grid-3{ grid-template-columns:1fr 1fr; } .split{ grid-template-columns:1fr; gap:8px; } }
@media (max-width:640px){ .grid-3{ grid-template-columns:1fr; } }
.card-title.is-lg{ font-size:clamp(20px, 1.8vw, 24px); margin-top:20px; }
.card .icon-tile + .card-title{ margin-top:20px; }
.h2-sm{ font-size:clamp(26px, 2.4vw, 32px); margin-top:8px; }
.muted-text{ margin-top:16px; color:var(--muted); }
.mt-20{ margin-top:20px; }
.icon-tile.is-amber{ color:#c27c08; background:#fdf1dc; }
.icon .is-success,.icon.is-success{ color:var(--success); }
.problem-card h3{ margin-top:16px; font-size:17px; font-weight:500; line-height:1.8; }

/* Breadcrumbs */
.breadcrumbs{ margin-bottom:20px; font-size:14px; color:var(--muted); }
.breadcrumbs ol{ display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:0; padding:0; }
.breadcrumbs li:not(:last-child)::after{ content:"›"; margin-inline-start:6px; color:var(--border); }
.breadcrumbs a:hover{ color:var(--primary); }
.breadcrumbs [aria-current]{ color:var(--ink); }

/* Service */
.deliverables{ display:grid; gap:12px; }
.deliverables li{ display:flex; gap:12px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); }
.deliverables .icon{ width:20px; height:20px; margin-top:6px; color:var(--success); }
.steps{ display:grid; gap:20px; grid-template-columns:repeat(4, minmax(0,1fr)); }
.step{ position:relative; padding:24px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.step .icon-tile{ margin-bottom:32px; }
.step-num{ position:absolute; top:16px; inset-inline-end:20px; font-size:36px; font-weight:700; line-height:1; color:var(--border); }
.step h3{ font-size:20px; }
.step p{ margin-top:8px; font-size:15px; color:var(--muted); }
@media (max-width:1023px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .steps{ grid-template-columns:1fr; } }
.related-case{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
@media (max-width:1023px){ .related-case{ grid-template-columns:1fr; } }
.tools-row{ padding-block:32px; border-block:1px solid var(--border); background:var(--bg); }
.tools-row .wrap{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.tools-row .icon{ color:var(--primary); }
.tools-row strong{ color:var(--ink); }
.chip.is-link:hover{ border-color:var(--primary); color:var(--primary); }

/* Case cards + visuals */
.work-grid{ display:grid; gap:20px; grid-template-columns:1fr 1fr; }
@media (max-width:767px){ .work-grid{ grid-template-columns:1fr; } }
.case-card{ position:relative; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.case-card-body{ padding:24px; }
.case-card h3{ margin-top:8px; font-size:21px; }
.case-card p{ margin-top:12px; font-size:15px; line-height:1.8; color:var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.case-card .chips{ margin-top:16px; }
.case-card .text-link{ margin-top:20px; }
.case-visual{ position:relative; overflow:hidden; padding:12px; background:var(--secondary); transition:transform .24s ease; }
.case-stack{ position:relative; aspect-ratio:16 / 10; }
.case-stack-item{ position:absolute; width:85%; inset-inline-start:calc(var(--i) * 7%); top:calc(var(--i) * 6%); z-index:calc(var(--n) - var(--i)); }
.case-stack-item:only-child{ width:100%; position:relative; inset:auto; }
.case-stack:has(> .case-stack-item:only-child){ aspect-ratio:auto; }
.case-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; aspect-ratio:16 / 10; border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); text-align:center; }
.case-empty strong{ font-size:36px; color:var(--ink); }
.case-empty span{ margin-top:12px; padding-top:12px; border-top:1px solid var(--accent); font-size:14px; color:var(--muted); }
.case-ribbon{ position:absolute; top:24px; inset-inline-end:-40px; z-index:5; padding:4px 48px; background:var(--accent); color:var(--ink); font-size:11px; font-weight:700; transform:rotate(45deg); }
[dir="rtl"] .case-ribbon{ transform:rotate(-45deg); }
.case-hero-visual{ position:relative; z-index:2; margin-top:-32px; margin-bottom:8px; }
.case-hero-visual .case-stack-item:only-child{ max-width:1040px; margin-inline:auto; }
.page-hero.has-visual{ padding-bottom:80px; }
.check-list.is-lg{ font-size:17px; color:var(--text); }
.check-list.is-lg .icon{ width:20px; height:20px; margin-top:6px; }
.case-services-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }

/* Gallery + phone frame */
.gallery-sites{ display:grid; gap:56px; }
.gallery-domain{ margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--border); font-size:18px; }
.gallery-grid{ display:grid; gap:24px; grid-template-columns:repeat(3, minmax(0,1fr)); align-items:start; }
@media (max-width:1023px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .gallery-grid{ grid-template-columns:1fr; } }
.gallery-item figcaption,.result-item figcaption{ margin-top:12px; font-size:14px; color:var(--muted); }
.gallery-item a{ cursor:zoom-in; }
.phone-frame{ width:55%; max-width:224px; margin-inline:auto; padding:4px; border:6px solid var(--ink); border-radius:26px; background:var(--ink); box-shadow:var(--shadow-soft); }
.phone-notch{ display:block; width:40px; height:4px; margin:0 auto 4px; border-radius:999px; background:#cbd5e1; }
.phone-screen{ overflow:hidden; border-radius:14px; aspect-ratio:390 / 844; }
.phone-screen img,.phone-screen a{ display:block; width:100%; height:100%; object-fit:cover; object-position:top; }
.results-grid{ display:grid; gap:24px; grid-template-columns:1fr 1fr; align-items:start; }
@media (max-width:767px){ .results-grid{ grid-template-columns:1fr; } }
.result-item a{ display:block; padding:12px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); cursor:zoom-in; }
.geo-card-wrap{ margin-block:40px; }
.geo-card{ display:grid; gap:32px; align-items:center; padding:32px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft); }
.geo-card.has-image{ grid-template-columns:1fr .9fr; }
.geo-card-eyebrow{ font-size:14px; font-weight:700; color:var(--accent); }
.geo-card-title{ margin-top:12px; font-size:clamp(24px, 2.6vw, 36px); font-weight:700; line-height:1.4; color:var(--ink); }
.geo-card-title strong{ color:var(--primary); }
.geo-card-detail{ margin-top:20px; color:var(--muted); }
.geo-card-source{ margin-top:6px; font-size:14px; color:var(--muted); }
.geo-card .geo-links{ margin-top:24px; }
@media (max-width:1023px){ .geo-card.has-image{ grid-template-columns:1fr; } .geo-card{ padding:20px; } }

/* Lightbox */
.lightbox{ position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:16px; background:rgb(11 27 51 / .9); }
.lightbox-inner{ position:relative; display:flex; flex-direction:column; max-width:95vw; max-height:90vh; padding:16px; border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-float); }
.lightbox-inner img{ min-height:0; max-height:77vh; width:auto; max-width:100%; object-fit:contain; }
.lightbox-inner p{ padding-top:12px; font-size:14px; color:var(--muted); }
.lightbox-close{ position:absolute; top:12px; inset-inline-end:12px; z-index:2; display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); font-size:18px; }

/* Filters */
.filter-bar{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:32px; }
.filter-chip{ display:inline-block; padding:6px 14px; border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); font-size:14px; font-weight:500; }
.filter-chip:hover{ border-color:var(--primary); color:var(--primary); }
.filter-chip[aria-pressed="true"]{ border-color:var(--primary); background:var(--primary); color:#fff; }
.empty-note{ padding:32px; border:1px dashed var(--border); border-radius:var(--radius-card); text-align:center; color:var(--muted); }

/* Guides */
.guide-hub{ display:grid; gap:56px; }
.guide-hub-grid{ display:grid; gap:16px; grid-template-columns:repeat(5, minmax(0,1fr)); }
@media (max-width:1279px){ .guide-hub-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:767px){ .guide-hub-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .guide-hub-grid{ grid-template-columns:1fr; } }
.guide-hub .section-heading{ margin-bottom:20px; }
.guide-hub .section-heading h2{ font-size:clamp(24px, 2.2vw, 30px); }
.guide-num{ font-size:12px; font-weight:700; color:var(--primary); }
.guide-num + .card-title{ margin-top:12px; font-size:18px; }
.guide-index{ display:grid; gap:48px; }
.guide-index-title{ margin-bottom:20px; font-size:24px; }
.guide-index-grid{ display:grid; gap:12px; grid-template-columns:repeat(3, minmax(0,1fr)); }
@media (max-width:1023px){ .guide-index-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .guide-index-grid{ grid-template-columns:1fr; } }
.guide-index-link{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); font-weight:500; }
.guide-index-link .icon{ width:16px; height:16px; flex-shrink:0; color:var(--primary); }
.guide-index-link:hover{ border-color:var(--primary); color:var(--primary); }
.service-callout{ display:flex; align-items:center; justify-content:space-between; gap:32px; padding:28px; border:1px solid var(--primary); border-radius:var(--radius-card); background:var(--surface); }
@media (max-width:767px){ .service-callout{ flex-direction:column; align-items:flex-start; } }

/* Blog */
.blog-top{ margin-bottom:24px; }
.post-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.tag{ padding:2px 12px; border:1px solid var(--border); border-radius:999px; font-size:12px; }
.tag.is-cluster{ border-color:transparent; background:var(--secondary); color:var(--secondary-text); }
.post-card .card-title{ font-size:19px; }
.pagination{ margin-top:40px; }
.nav-links{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.nav-links .page-numbers{ display:grid; place-items:center; min-width:44px; height:44px; padding-inline:12px; border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); }
.nav-links .page-numbers.current{ border-color:var(--primary); background:var(--primary); color:#fff; }
.pillar-notice{ display:flex; gap:12px; align-items:flex-start; margin:28px 0; padding:16px 20px; border:1px solid #cfdcfb; border-inline-start:4px solid var(--primary); border-radius:var(--radius-card); background:#f1f5fe; font-size:16px; }
.pillar-notice .icon{ width:22px; height:22px; margin-top:4px; color:var(--primary); }
.pillar-notice p{ margin:0!important; }
.pillar-notice a{ font-weight:700; color:var(--primary); }

/* Article */
.reading-progress{ position:fixed; inset-inline:0; top:0; z-index:70; height:3px; background:var(--accent); transform:scaleX(0); transform-origin:right center; }
.admin-bar .reading-progress{ top:32px; }
.article-head{ padding-block:calc(var(--header-h) + 40px) 48px; border-bottom:1px solid var(--border); background:var(--surface); }
.article-head h1{ max-width:896px; font-size:clamp(32px, 4vw, 56px); line-height:1.25; }
.author-box{ display:flex; align-items:center; gap:12px; margin-top:24px; }
.author-photo{ width:56px; height:56px; border-radius:50%; object-fit:cover; object-position:top; background:var(--secondary); }
.author-name{ font-weight:700; color:var(--ink); }
.author-name a:hover{ color:var(--primary); }
.author-date{ font-size:14px; color:var(--muted); }
.article-layout{ display:grid; gap:40px; grid-template-columns:260px minmax(0, 760px); justify-content:center; align-items:start; }
.article-layout.no-toc{ grid-template-columns:minmax(0, 760px); }
.toc-wrap{ position:sticky; top:calc(var(--header-h) + 16px); }
.toc{ padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.toc summary{ display:flex; align-items:center; gap:8px; font-weight:700; color:var(--ink); cursor:pointer; list-style:none; }
.toc summary::-webkit-details-marker{ display:none; }
.toc summary .icon{ color:var(--primary); }
.toc ol{ display:grid; gap:8px; margin-top:16px; padding:0; list-style:none; font-size:14px; color:var(--muted); }
.toc .toc-l3{ padding-inline-start:12px; font-size:13px; }
.toc a{ display:block; transition:color .18s ease, padding .18s ease; }
.toc a:hover,.toc a.is-active{ color:var(--primary); }
.toc a.is-active{ padding-inline-start:8px; border-inline-start:2px solid var(--accent); font-weight:700; }
@media (max-width:1023px){ .article-layout{ grid-template-columns:minmax(0,1fr); } .toc-wrap{ position:static; } }

.article-copy{ max-width:760px; }
.article-copy > * + *{ margin-top:1.1rem; }
.article-copy h2{ margin-top:3rem; margin-bottom:1rem; font-size:28px; scroll-margin-top:calc(var(--header-h) + 24px); }
.article-copy h3{ margin-top:2rem; margin-bottom:.75rem; font-size:22px; scroll-margin-top:calc(var(--header-h) + 24px); }
.article-copy ul,.article-copy ol{ padding-inline-start:1.4rem; }
.article-copy li + li{ margin-top:.4rem; }
.article-copy p a,.article-copy li a{ color:var(--primary); text-decoration:none; background-image:linear-gradient(var(--primary), var(--primary)); background-size:100% 1px; background-position:100% 100%; background-repeat:no-repeat; }
.article-copy img{ border-radius:var(--radius-card); }
.article-copy pre{ overflow-x:auto; padding:20px; border-radius:var(--radius-card); background:var(--ink); color:#e2e8f0; font-size:14px; direction:ltr; text-align:left; }
.article-copy blockquote{ margin-inline:0; padding:16px 20px; border-inline-start:4px solid var(--accent); background:var(--surface); }
.article-copy table{ width:100%; border-collapse:collapse; font-size:15px; }
.article-copy th,.article-copy td{ padding:12px; border:1px solid var(--border); text-align:start; }
.article-copy .is-style-kh-compare table{ background:var(--surface); }
.article-copy .is-style-kh-compare thead{ background:var(--secondary); }
.article-copy .is-style-kh-compare th{ color:var(--ink); }
.article-copy .is-style-kh-compare tr:nth-child(even) td{ background:var(--bg); }
.wp-block-table{ overflow-x:auto; }
.is-style-kh-summary,.is-style-kh-warning,.is-style-kh-example{ margin-block:28px!important; padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); color:var(--muted); }
.is-style-kh-summary::before,.is-style-kh-warning::before,.is-style-kh-example::before{ display:block; margin-bottom:8px; font-weight:700; color:var(--ink); }
.is-style-kh-summary::before{ content:"خلاصة سريعة"; color:#0d8a65; }
.is-style-kh-warning::before{ content:"تحذير"; color:#b26f00; }
.is-style-kh-example::before{ content:"مثال عملي"; color:var(--primary); }
.is-style-kh-summary{ border-inline-start:4px solid var(--success); }
.is-style-kh-warning{ border-inline-start:4px solid var(--accent); }
.is-style-kh-example{ border-inline-start:4px solid var(--primary); }
.wp-block-table thead{ border-bottom:0; }
.inline-cta{ margin-block:40px!important; padding:24px; border:1px solid var(--primary); border-radius:var(--radius-card); background:var(--surface); }
.inline-cta-eyebrow{ font-weight:700; color:var(--primary); }
.inline-cta-title{ margin-top:4px!important; font-size:24px; font-weight:700; color:var(--ink); }
.inline-cta .btn{ margin-top:16px; }
.next-steps{ display:grid; gap:16px; grid-template-columns:repeat(3, minmax(0,1fr)); }
@media (max-width:767px){ .next-steps{ grid-template-columns:1fr; } }
.next-step{ display:grid; gap:4px; padding:24px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.next-step:hover{ border-color:var(--primary); }
.next-step-label{ font-size:13px; font-weight:700; color:var(--primary); }
.next-step-title{ font-size:19px; font-weight:700; color:var(--ink); }
.next-step .icon{ width:18px; height:18px; color:var(--primary); }
/* Pages */
.mt-32{ margin-top:32px; }
.about-grid{ display:grid; gap:40px; grid-template-columns:1.1fr .9fr; align-items:start; }
.about-photo{ max-width:384px; margin-bottom:32px; overflow:hidden; border-radius:var(--radius-card); background:linear-gradient(180deg, var(--secondary), var(--bg)); }
.about-photo img{ width:100%; }
.about-box{ padding:32px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.about-box.is-bg{ background:var(--bg); }
.about-box h2{ font-size:24px; margin-bottom:24px; }
@media (max-width:1023px){ .about-grid{ grid-template-columns:1fr; } .about-box{ padding:24px; } }
.contact-grid{ display:grid; gap:32px; grid-template-columns:1.3fr .7fr; align-items:start; }
.contact-form-box{ padding:32px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); }
.contact-form-box h2{ margin-bottom:24px; font-size:24px; }
.contact-form-box .form-grid{ grid-template-columns:1fr 1fr; }
.contact-form-box .form-field-wide{ grid-column:1 / -1; }
.contact-form-box > .form-note{ margin-bottom:16px; }
.contact-notes{ margin-top:24px; }
.contact-aside{ padding:28px; border-radius:var(--radius-card); background:var(--ink); color:#fff; }
.contact-aside h2{ color:#fff; font-size:24px; }
.contact-aside p{ margin-top:12px; color:var(--ink-muted); }
.contact-aside ul{ display:grid; gap:14px; margin-top:24px; padding:0; list-style:none; font-size:15px; }
.contact-aside a{ display:inline-flex; align-items:center; gap:10px; }
.contact-aside a:hover{ color:var(--accent); }
.contact-aside .icon{ width:20px; height:20px; color:var(--accent); }
@media (max-width:1023px){ .contact-grid{ grid-template-columns:1fr; } .contact-form-box{ padding:20px; } }
@media (max-width:640px){ .contact-form-box .form-grid{ grid-template-columns:1fr; } }
.btn-whatsapp{ width:100%; margin-top:20px; background:var(--success); color:#fff; box-shadow:0 14px 32px rgb(18 184 134 / .3); }
.btn-whatsapp:hover{ background:#0fa577; }
.contact-aside .btn-whatsapp .icon{ color:#fff; }
.form-grid.is-project{ grid-template-columns:1fr 1fr; }
.form-field small{ font-weight:400; color:var(--muted); }
select.form-input{ appearance:auto; }
@media (max-width:640px){ .form-grid.is-project{ grid-template-columns:1fr; } }
.cta-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.cta-band .cta-head{ margin-bottom:28px; }
.audit-alt{ margin-top:18px; font-size:15px; color:var(--muted); }
.audit-alt a{ font-weight:700; color:var(--primary); }
.audit-alt a:hover{ text-decoration:underline; }
.article-audit{ margin-top:32px; padding:18px 20px; border:1px dashed var(--border); border-radius:var(--radius-card); background:var(--bg); font-size:16px; }
@media (max-width:640px){ .cta-actions .btn{ width:100%; } }
.results-block{ border-top:1px solid var(--border); }
.choose-list{ display:grid; gap:12px; max-width:896px; margin-inline:auto; }
.choose-list li{ display:flex; gap:12px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); }
.choose-list .icon{ margin-top:4px; color:var(--success); }
/* @templates-end */

/* 9. Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference){
  [data-reveal]{ opacity:0; transform:translateY(16px); transition:opacity .56s ease, transform .56s ease; transition-delay:var(--reveal-delay, 0ms); }
  [data-reveal][data-reveal-side="right"]{ transform:translateX(28px); }
  [data-reveal][data-reveal-side="left"]{ transform:translateX(-28px); }
  [data-reveal].is-visible{ opacity:1; transform:none; }
  .no-js [data-reveal]{ opacity:1; transform:none; }
  .btn-shine:hover{ transform:translateY(-2px); }
  .btn-shine:hover::after{ animation:shine .65s ease; }
  .interactive-card:hover{ transform:translateY(-4px); border-color:var(--primary); box-shadow:var(--shadow-soft); }
  .interactive-card:hover .icon-tile{ background:var(--primary); color:#fff; }
  .cta-band{ animation:cta-shift 12s ease-in-out infinite; }
  .hero-enter{ opacity:0; transform:translateY(16px); animation:hero-enter .65s ease forwards; animation-delay:var(--enter-delay, 0ms); }
  .hc.hero-enter{ transform:none; animation-name:hero-fade; }
  .hc-inner{ animation:hero-float 6s ease-in-out infinite; animation-delay:var(--float-delay, 0s); }
  .orbit-x{ animation:orbit-x calc(var(--period) / 2) ease-in-out infinite alternate; }
  .orbit-y{ animation:orbit-y calc(var(--period) / 2) ease-in-out infinite alternate; animation-delay:calc(var(--period) / -4); }
  .hero.is-paused .orbit-x,.hero.is-paused .orbit-y,.hero.is-paused .hc-inner{ animation-play-state:paused; }
  .hero--static .orbit-x,.hero--static .orbit-y,.hero--static .hc-inner{ animation:none; }
  .hc-chart-line{ stroke-dasharray:260; stroke-dashoffset:260; animation:draw 1.6s .6s ease forwards; }
  .hc-chart-area{ animation:fade-in 1.5s ease both; }
  .draw-underline{ stroke-dasharray:240; stroke-dashoffset:240; animation:draw .8s .7s ease forwards; }
  .journey::after,.method::after{ transform:scaleX(0); transition:transform 1.1s ease .15s; }
  .journey.is-visible::after,.method.is-visible::after{ transform:scaleX(1); }
  .marquee-track{ animation:marquee 30s linear infinite; }
  .marquee:hover .marquee-track,.marquee:focus-within .marquee-track{ animation-play-state:paused; }
  .service-tile:hover .tile-illus{ transform:translateY(-3px) scale(1.02); }
  .work-row:hover .browser-frame.is-featured{ transform:translateY(-4px); box-shadow:0 22px 44px rgb(37 99 235 / .26); }
  @keyframes hero-enter{ to{ opacity:1; transform:none; } }
  @keyframes hero-fade{ to{ opacity:1; } }
  /* translate % = the box's own size (rx / ry), so these keyframes need no variables. */
  @keyframes orbit-x{ from{ transform:translateX(100%); } to{ transform:translateX(-100%); } }
  @keyframes orbit-y{ from{ transform:translateY(-100%); } to{ transform:translateY(100%); } }
  @keyframes hero-float{ 0%,100%{ transform:rotate(var(--r)) translateY(0); } 50%{ transform:rotate(var(--r)) translateY(-8px); } }
  @keyframes draw{ to{ stroke-dashoffset:0; } }
  @keyframes fade-in{ from{ opacity:0; } }
  @keyframes marquee{ to{ transform:translateX(-50%); } }
  .whatsapp-button::after{ content:""; position:absolute; inset:-7px; border:2px solid rgb(18 184 134 / .45); border-radius:999px; animation:whatsapp-pulse 3.8s ease-out infinite; }
  @keyframes shine{ from{ left:-45%; } to{ left:120%; } }
  @keyframes cta-shift{ 0%,100%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } }
  @keyframes whatsapp-pulse{ 0%,68%{ opacity:0; transform:scale(.85); } 72%{ opacity:1; } 100%{ opacity:0; transform:scale(1.28); } }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

/* 10. LTR (English, /en/) ---------------------------------------------------
   Layout uses logical properties, so most of it mirrors by itself. This block holds the English font and
   everything that is physically drawn for right-to-left: arrows, hover nudges, draw-in origins, the hero
   glow and orbits, and the hero cards (mirrored on desktop so the text side stays as clear as in Arabic;
   the portrait itself is never flipped). Part of the critical CSS (it follows "9. Motion"). */
html[lang="en"]{ --font:'IBM Plex Sans', 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif; }
html[lang="en"] body{ line-height:1.7; }
html[lang="en"] :is(h1,h2,h3,h4){ line-height:1.22; letter-spacing:-.01em; }
html[lang="en"] .hero-title{ letter-spacing:-.015em; }
/* Arabic needs 1.8–2 for its ascenders and dots; Latin reads better tighter. */
html[lang="en"] :is(.hero-text, .page-hero-text, .section-intro, .card-text, .work-desc, .industry-card p, .footer-about p, .hero-direct, .service-tile p, .geo-line, .check-list, .team-card p, .guide-card p, .case-card p){ line-height:1.65; }
html[lang="en"] .problem-card h3{ line-height:1.4; }
html[lang="en"] .stat-label,html[lang="en"] .hero-proof{ line-height:1.5; }
[dir="ltr"] .icon-arrow-left{ transform:scaleX(-1); }
[dir="ltr"] .text-link:hover .icon{ transform:translateX(4px); }
[dir="ltr"] .text-link:hover .icon-arrow-left{ transform:translateX(4px) scaleX(-1); }
[dir="ltr"] .whatsapp-tip{ transform:translateX(-6px); }
[dir="ltr"] .whatsapp-wrap:hover .whatsapp-tip,[dir="ltr"] .whatsapp-wrap:focus-within .whatsapp-tip{ transform:translateX(0); }
[dir="ltr"] .journey::after,[dir="ltr"] .method::after,[dir="ltr"] .reading-progress{ transform-origin:left center; }
[dir="ltr"] .hero{ background:radial-gradient(ellipse at 75% 49%, rgb(42 95 224 / .42), transparent 49%), linear-gradient(245deg, var(--hero-2), var(--hero-1)); }
[dir="ltr"] .hero-dots{ -webkit-mask-image:radial-gradient(ellipse at 72% 50%, #000, transparent 70%); mask-image:radial-gradient(ellipse at 72% 50%, #000, transparent 70%); }
[dir="ltr"] .hero-fx,[dir="ltr"] .hero-orbit-front,[dir="ltr"] .hero-rays{ transform:scaleX(-1); }
/* The portrait is never flipped, so the glow stays centred on the head (53% inside the mirrored layer = 47%). */
[dir="ltr"] .hero-glow{ left:47%; }
@media (min-width:1024px){ [dir="ltr"] .hc{ left:auto; right:var(--x); } }
@media (prefers-reduced-motion: no-preference){
  [dir="ltr"] [data-reveal][data-reveal-side="right"]{ transform:translateX(-28px); }
  [dir="ltr"] [data-reveal][data-reveal-side="left"]{ transform:translateX(28px); }
  [dir="ltr"] [data-reveal].is-visible{ transform:none; }
}
