/* Home page (src/render/home.mjs): Direction H2, the FINAL owner-approved direction (16 November 2026; reference on the
 * design/direction-h2 branch). White page, black type, black and white pill CTAs; the story card is the only place with
 * pastel glows; lavender is the page's one solid accent (the active tab's progress fill). No champagne, gold, plum,
 * slate or blush. Colours come from tokens only (scripts/check-brand.mjs); the body stays light in both themes through
 * the light-theme captures (--qm-l-*). --q-accent (lavender) arrives with the design system; until then the card falls
 * back to a neutral wash.
 *
 * Motion: transform, opacity and clip-path only; no layout-property animation; CLS 0. The HTML is the final frame and
 * is complete without script (screen 1 of the phone shows, every section is visible at any scroll position). Keyframes
 * run only with html.js (theme.js, in <head>) and no reduced-motion preference. The H1 (LCP) is never transparent: it
 * only rises. home-motion.js adds the story scenes, auto-advance, spotlight, parallax, scroll recede and the magnetic
 * pill; pointer effects are off on touch, reduced motion and Save-Data. */

.site-home {
  --hs-ink: var(--qm-l-black);
  --hs-white: var(--qm-l-white);
  --hs-grey: color-mix(in srgb, var(--qm-l-black) 64%, var(--qm-l-white));
  --hs-mute: color-mix(in srgb, var(--qm-l-black) 64%, var(--qm-l-white)); /* AA on white and #F6F2FA (42% was 2.7–3.0:1) */
  --hs-line: color-mix(in srgb, var(--qm-l-black) 8%, var(--qm-l-white));
  --hs-page: var(--q-page-tint, var(--qm-l-white)); /* the page ground; cards stay --hs-white */
  --hs-alt: transparent; /* sections sit on the page aura (ui.css) */
  --hs-lav: var(--q-accent, var(--q-sky));
  --hs-sky: var(--q-sky);
  --hs-peach: var(--q-peach);
  --hs-cream: color-mix(in srgb, var(--q-butter) 18%, var(--q-peach) 22%);
  --hs-shadow: color-mix(in srgb, var(--qm-l-black) 10%, transparent);
  --hs-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hs-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hs-space: clamp(3.5rem, 6vw, 4.5rem);
}

/* The page is white in both themes; page.mjs's shared sections (clients, FAQ) follow through site.css's variables. */
.site-home main {
  background: transparent;
  color: var(--hs-ink);
  --ink: var(--hs-ink);
  --muted: var(--hs-grey);
  --ground: var(--hs-page);
  --accent: var(--hs-ink);
  --accent-ink: var(--hs-ink);
  --rule: 1px solid var(--hs-line);
  --rule-ink: 1px solid var(--hs-line);
}
:where(.site-home main) a { color: inherit; }
.site-home main :focus-visible { outline: 2px solid var(--hs-ink); outline-offset: 3px; }
/* page.mjs's shared sections carry .reveal-on-scroll (animations.js hides them until they scroll in). On the home
   nothing is hidden ahead of time, so they always show as rendered. */
.reveal-ready .site-home .reveal-on-scroll { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ pills */
.hs-ctas { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.hs-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.625rem; overflow: hidden;
  min-block-size: 2.75rem; padding-inline: 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: transform 0.35s var(--hs-bounce), box-shadow 0.3s ease;
}
.site-home main .hs-btn.is-black { background: var(--hs-ink); color: var(--hs-white); }
.site-home main .hs-btn.is-white { background: var(--hs-white); color: var(--hs-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hs-ink) 14%, transparent); }
.site-home main .hs-btn.is-ghost { color: var(--hs-white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hs-white) 40%, transparent); }
.hs-btn:is(:hover, :focus-visible) { box-shadow: 0 12px 24px var(--hs-shadow); }
.site-home main .hs-btn.is-white:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hs-ink) 14%, transparent), 0 12px 24px var(--hs-shadow); }
.hs-arrow { transition: transform 0.35s var(--hs-bounce); }
.hs-btn:is(:hover, :focus-visible) .hs-arrow { transform: translateX(5px); }
[dir="rtl"] .hs-btn:is(:hover, :focus-visible) .hs-arrow { transform: translateX(-5px); }
/* The shine sweeps across on hover and focus. */
.hs-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--hs-white) 45%, transparent) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.8s var(--hs-out); pointer-events: none; }
.hs-btn:is(:hover, :focus-visible)::after { transform: translateX(120%); }

/* ------------------------------------------------------------------ intro row */
.hs-hero { padding-block: clamp(1rem, 2vw, 1.5rem) clamp(2.5rem, 5vw, 3.5rem); overflow-x: clip; }
.hs-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem; padding-block: 1.25rem; }
.hs-hero h1 { margin: 0; color: var(--hs-ink); font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; }
.hs-hero h1 .qx-accent { display: block; font-family: var(--q-font-pivot); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--hs-ink); }
/* Arabic: no Latin serif or faux italic; the second line is set by weight and colour. */
.lang-ar .hs-hero h1 { letter-spacing: 0; line-height: 1.2; font-family: var(--q-font-arabic); }
.lang-ar .hs-hero h1 .qx-accent { font-family: inherit; font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--hs-grey); }
.hs-side { max-inline-size: 22.5rem; }
/* Two lines are reserved, so a web-font swap that rewraps the lede never moves what follows (CLS). */
.hs-side p { min-block-size: 3.1em; margin: 0; color: var(--hs-grey); font-size: 1rem; line-height: 1.55; }
.hs-side .hs-ctas { margin-block-start: 1.25rem; }

/* ------------------------------------------------------------------ the story card */
.hs-stage { perspective: 1400px; }
.hs-frame { position: relative; padding: 8px; border-radius: 34px; background: var(--hs-ink); box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--hs-lav) 70%, transparent); transform-origin: 50% 0; }
.hs-frame::before { content: ""; position: absolute; inset-inline: 30%; inset-block-start: 0; block-size: 2px; background: linear-gradient(90deg, transparent, var(--hs-lav), transparent); }
.hs-card {
  position: relative; overflow: hidden; isolation: isolate; block-size: clamp(26rem, 56vw, 33rem); border-radius: 28px;
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--hs-lav) 85%, var(--hs-ink) 8%) 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 60%, var(--hs-peach) 0%, transparent 65%),
    radial-gradient(50% 60% at 70% 0%, color-mix(in srgb, var(--hs-lav) 45%, var(--hs-white)) 0%, transparent 70%),
    linear-gradient(120deg, color-mix(in srgb, var(--hs-lav) 75%, var(--hs-white)) 0%, color-mix(in srgb, var(--hs-lav) 35%, var(--hs-white)) 40%, color-mix(in srgb, var(--hs-peach) 70%, var(--hs-white)) 75%, color-mix(in srgb, var(--hs-cream) 60%, var(--hs-white)) 100%);
}
.hs-word {
  position: absolute; inset-inline: 0; inset-block-start: 6%; margin: 0; text-align: center; white-space: nowrap; user-select: none;
  font-size: clamp(5rem, 14vw, 12rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hs-white) 95%, transparent), color-mix(in srgb, var(--hs-lav) 60%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}
.hs-orbs { position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * 0.3), calc(var(--py, 0) * 0.3), 0); }
.hs-orbs i { position: absolute; left: 50%; top: 56%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--hs-white) 55%, transparent); transform: translate(-50%, -50%); }
.hs-orbs i:nth-child(1) { inline-size: 20rem; block-size: 20rem; }
.hs-orbs i:nth-child(2) { inline-size: 33rem; block-size: 33rem; }
.hs-orbs i:nth-child(3) { inline-size: 48rem; block-size: 48rem; opacity: 0.6; }

/* Glossy icons on the orbits: each sits at its angle (--a) on its ring (--r); the motion spins the ring and
   counter-spins the icon so it stays upright. */
.hs-icons { position: absolute; inset: 0; }
.hs-orbit { position: absolute; left: 50%; top: 56%; inline-size: 0; block-size: 0; transform: rotate(var(--a)); }
.hs-orbit > .hs-ico { position: absolute; left: var(--r); top: 0; transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); }
.hs-orbit-1 { --a: 26deg; --r: 16.5rem; --t: 70s; }
.hs-orbit-2 { --a: 118deg; --r: 16.5rem; --t: 70s; }
.hs-orbit-3 { --a: 206deg; --r: 16.5rem; --t: 70s; }
.hs-orbit-4 { --a: 293deg; --r: 16.5rem; --t: 70s; }
.hs-orbit-5 { --a: 33deg; --r: 24rem; --t: 110s; }
.hs-orbit-6 { --a: 157deg; --r: 24rem; --t: 110s; }
.hs-orbit-7 { --a: 262deg; --r: 24rem; --t: 110s; }
.hs-orbit-8 { --a: 280deg; --r: 10rem; --t: 90s; }
.hs-ico { position: relative; display: grid; place-items: center; overflow: hidden; inline-size: 3.25rem; block-size: 3.25rem; border-radius: 16px; transition: scale 0.45s var(--hs-bounce); }
.hs-ico.is-round { border-radius: 50%; }
.hs-ico svg { inline-size: 1.5rem; block-size: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-ico svg.is-fill { fill: currentColor; stroke: none; }
.hs-ico .hs-ico-q { stroke: currentColor; }
.hs-ico.is-lav { background: radial-gradient(120% 120% at 30% 20%, var(--hs-white), color-mix(in srgb, var(--hs-lav) 55%, var(--hs-white)) 55%, var(--hs-lav)); color: color-mix(in srgb, var(--hs-lav) 30%, var(--hs-ink)); box-shadow: 0 18px 30px color-mix(in srgb, var(--hs-lav) 70%, transparent); }
.hs-ico.is-peach { background: radial-gradient(120% 120% at 30% 20%, var(--hs-white), color-mix(in srgb, var(--hs-peach) 55%, var(--hs-white)) 55%, var(--hs-peach)); color: var(--q-peach-deep); box-shadow: 0 18px 30px color-mix(in srgb, var(--q-peach-deep) 35%, transparent); }
.hs-ico.is-sky { background: radial-gradient(120% 120% at 30% 20%, var(--hs-white), color-mix(in srgb, var(--hs-sky) 55%, var(--hs-white)) 55%, var(--hs-sky)); color: var(--q-sky-deep); box-shadow: 0 18px 30px color-mix(in srgb, var(--q-sky-deep) 35%, transparent); }
.hs-ico.is-ink { background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--hs-white) 28%, var(--hs-ink)), var(--hs-ink) 60%); color: var(--hs-white); box-shadow: 0 18px 30px var(--hs-shadow); }
/* The glossy highlight on every icon. */
.hs-ico::before { content: ""; position: absolute; left: 10%; top: 6%; inline-size: 60%; block-size: 40%; border-radius: 50%; background: linear-gradient(180deg, color-mix(in srgb, var(--hs-white) 85%, transparent), transparent); pointer-events: none; }

/* The Q, drawn with the brand kit's path; visible only during the intro. */
.hs-qdraw { position: absolute; left: 50%; top: 50%; z-index: 5; inline-size: 11.5rem; block-size: 11.5rem; margin: -5.75rem 0 0 -5.75rem; opacity: 0; pointer-events: none; }
.hs-qdraw path { fill: none; stroke: var(--hs-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }

/* The phone. */
.hs-phone {
  position: absolute; left: 50%; bottom: -3.75rem; inline-size: min(16.25rem, 52vw); block-size: min(32.5rem, 104vw); margin-inline-start: calc(min(16.25rem, 52vw) / -2);
  padding: 12px; border-radius: 46px; background: var(--hs-ink); box-shadow: 0 50px 80px -20px color-mix(in srgb, var(--hs-lav) 60%, var(--hs-ink) 20%);
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotateX(var(--tilt, 0deg)) rotate(-4deg);
}
.hs-screen { position: relative; block-size: 100%; overflow: hidden; border-radius: 36px; background: linear-gradient(180deg, var(--hs-white), color-mix(in srgb, var(--hs-lav) 10%, var(--hs-white))); }
.hs-notch { position: absolute; left: 50%; top: 10px; z-index: 3; inline-size: 6rem; block-size: 1.625rem; margin-inline-start: -3rem; border-radius: 20px; background: var(--hs-ink); }
[dir="rtl"] .hs-notch { margin-inline-start: 0; margin-inline-end: -3rem; }
.hs-scr { position: absolute; inset: 0; padding: 3.25rem 1.125rem 1.125rem; clip-path: circle(0% at 90% 0%); }
.hs-scr.is-on { z-index: 1; clip-path: circle(150% at 90% 0%); }
.hs-kicker { margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-mute); }
.hs-title { margin: 0.5rem 0 0.75rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.lang-ar :is(.hs-kicker, .hs-title) { letter-spacing: 0; text-transform: none; }
.hs-ring { position: relative; inline-size: 8rem; block-size: 8rem; margin: 0.375rem auto 0.75rem; }
.hs-ring svg { inline-size: 100%; block-size: 100%; transform: rotate(-90deg); }
.hs-ring circle { fill: none; stroke-width: 12; }
.hs-ring-bg { stroke: color-mix(in srgb, var(--hs-lav) 25%, var(--hs-white)); }
.hs-ring-fg { stroke: var(--hs-ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 32; }
.hs-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; }
.hs-rows, .hs-appr { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.hs-rows li, .hs-appr li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; border-radius: 12px; background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.75rem; }
.hs-spark { position: absolute; inset-inline-end: -4px; top: -6px; inline-size: 12px; block-size: 12px; fill: var(--hs-lav); opacity: 0; }
.hs-search { display: flex; align-items: center; gap: 0.5rem; min-block-size: 2.25rem; margin: 0 0 0.625rem; padding: 0.5rem 0.75rem; border-radius: 999px; background: var(--hs-white); box-shadow: inset 0 0 0 1.5px var(--hs-ink); font-size: 0.75rem; }
.hs-search svg { inline-size: 14px; block-size: 14px; flex: none; fill: none; stroke: var(--hs-ink); stroke-width: 2.4; }
.hs-caret { inline-size: 1px; block-size: 14px; background: var(--hs-ink); }
.hs-res { position: relative; list-style: none; block-size: 9.375rem; margin: 0; padding: 0; }
.hs-res li { position: absolute; inset-inline: 0; top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0.5rem 0.75rem; border-radius: 12px; background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.75rem; transition: transform 0.8s var(--hs-bounce); }
.hs-res li.at-1 { transform: translateY(0); } .hs-res li.at-2 { transform: translateY(3.125rem); } .hs-res li.at-3 { transform: translateY(6.25rem); }
.hs-res li.is-me { z-index: 1; box-shadow: inset 0 0 0 1px var(--hs-ink), 0 8px 18px var(--hs-shadow); font-weight: 700; }
.hs-res em { font-style: normal; font-weight: 700; font-size: 0.6875rem; }
.hs-res i { flex-basis: 100%; block-size: 5px; margin-block-start: 0.375rem; border-radius: 3px; background: var(--hs-line); }
.hs-ai { margin: 0.625rem 0 0; padding: 0.625rem 0.75rem; border-radius: 12px; background: var(--hs-ink); color: var(--hs-white); font-size: 0.6875rem; }
.hs-bars { display: flex; align-items: flex-end; gap: 0.5rem; block-size: 8.125rem; padding: 0.75rem; border-radius: 14px; background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line); }
.hs-bars i { flex: 1; block-size: 100%; border-radius: 6px 6px 2px 2px; background: var(--hs-line); transform-origin: 50% 100%; }
.hs-bars i:nth-child(1) { transform: scaleY(0.35); } .hs-bars i:nth-child(2) { transform: scaleY(0.55); } .hs-bars i:nth-child(3) { transform: scaleY(0.92); background: var(--hs-ink); } .hs-bars i:nth-child(4) { transform: scaleY(0.48); } .hs-bars i:nth-child(5) { transform: scaleY(0.66); }
.hs-leads { display: flex; align-items: center; gap: 0.375rem; margin: 0.625rem 0 0; font-size: 0.75rem; }
.hs-leads span { inline-size: 1.75rem; block-size: 1.75rem; margin-inline-start: -0.625rem; border-radius: 50%; border: 2px solid var(--hs-white); background: linear-gradient(135deg, var(--hs-line), color-mix(in srgb, var(--hs-ink) 18%, var(--hs-white))); }
.hs-leads span:first-child { margin-inline-start: 0; }
.hs-leads em { margin-inline-start: 0.5rem; font-style: normal; color: var(--hs-grey); }
.hs-chat { display: grid; gap: 0.5rem; }
.hs-chat p { justify-self: start; max-inline-size: 82%; margin: 0; padding: 0.5625rem 0.75rem; border-radius: 14px 14px 14px 4px; background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.75rem; }
.hs-chat p.is-me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--hs-ink); color: var(--hs-white); box-shadow: none; }
.hs-chat .hs-typing { display: flex; gap: 4px; padding: 0.6875rem 0.75rem; }
.hs-typing i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: color-mix(in srgb, var(--hs-white) 70%, var(--hs-ink)); }
.hs-appr em { flex: none; padding: 0.25rem 0.5rem; border-radius: 999px; background: var(--hs-ink); color: var(--hs-white); font-size: 0.625rem; font-style: normal; }
.hs-appr em.is-draft, .hs-appr em.is-done { background: var(--hs-white); color: var(--hs-ink); box-shadow: inset 0 0 0 1px var(--hs-ink); }

/* Spotlight (moves with the pointer) and a light grain. */
.hs-spot { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(20rem circle at var(--sx, 50%) var(--sy, 40%), color-mix(in srgb, var(--hs-white) 55%, transparent), transparent 60%); }
.hs-grain { position: absolute; inset: -50%; opacity: 0.07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* The story tabs and the tick ruler. */
.hs-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin-block-start: 1rem; }
.hs-tab {
  position: relative; overflow: hidden; padding: 0.75rem 0.875rem; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--hs-white); color: var(--hs-ink); font: inherit; font-weight: 600; font-size: 0.875rem;
  box-shadow: inset 0 0 0 1px var(--hs-line), 0 6px 16px color-mix(in srgb, var(--hs-ink) 5%, transparent);
  transition: transform 0.35s var(--hs-bounce), background-color 0.3s ease, color 0.3s ease;
}
.hs-tab:is(:hover, :focus-visible) { transform: translateY(-2px); }
.hs-tab.is-on { background: var(--hs-ink); color: var(--hs-white); }
.hs-tab:focus-visible { outline: 2px solid var(--hs-ink); outline-offset: 3px; }
/* The page's one lavender touch: the active tab's progress fill. */
.hs-fill { position: absolute; inset-inline: 0; bottom: 0; block-size: 3px; background: var(--hs-lav); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .hs-fill { transform-origin: 100% 50%; }
.hs-tab.is-on .hs-fill { transform: scaleX(1); }
.hs-ticks { display: flex; justify-content: space-between; block-size: 14px; margin: 0.75rem 2px 0; }
.hs-ticks i { inline-size: 1px; block-size: 10px; background: var(--hs-line); align-self: flex-end; }
.hs-ticks i:nth-child(5n+1) { block-size: 14px; background: var(--hs-mute); }
.hs-ticks i.is-lit { block-size: 14px; background: var(--hs-ink); }
.hs-note { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--hs-mute); }
@media (max-width: 899px) {
  .hs-intro { flex-direction: column; align-items: flex-start; }
  .hs-tabs { grid-template-columns: repeat(5, minmax(7.5rem, 1fr)); overflow-x: auto; padding-block-end: 4px; scrollbar-width: none; }
  .hs-card { block-size: 25rem; }
  .hs-orbs { display: none; }
  .hs-ico { inline-size: 2.75rem; block-size: 2.75rem; border-radius: 14px; }
  .hs-ico svg { inline-size: 1.25rem; block-size: 1.25rem; }
  .hs-orbit-1, .hs-orbit-2, .hs-orbit-3, .hs-orbit-4 { --r: 9.5rem; }
  .hs-orbit-5, .hs-orbit-6, .hs-orbit-7 { --r: 13rem; }
  .hs-orbit-8 { --r: 7rem; }
  .hs-qdraw { inline-size: 8.75rem; block-size: 8.75rem; margin: -4.375rem 0 0 -4.375rem; }
  .hs-phone { inline-size: 12.5rem; block-size: 25rem; bottom: -3.5rem; margin-inline-start: -6.25rem; padding: 8px; border-radius: 32px; }
  .hs-screen { border-radius: 26px; }
  .hs-scr { padding: 2.75rem 0.875rem 0.875rem; }
  .hs-title { font-size: 1.0625rem; }
  .hs-ring { inline-size: 6.875rem; block-size: 6.875rem; }
  .hs-ring b { font-size: 2rem; }
  .hs-word { font-size: 4.75rem; inset-block-start: 8%; }
}

/* ------------------------------------------------------------------ body sections (white / soft grey alternating) */
.site-home :is(.h-section, .section) { padding-block: var(--hs-space); border: 0; background: transparent; color: var(--hs-ink); }
.site-home :is(#home-services, #home-who, #customers) { background: var(--hs-alt); }
.h-head { margin-block-end: clamp(1.75rem, 3.5vw, 2.25rem); }
.hs-label { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hs-mute); }
.lang-ar .hs-label { letter-spacing: 0; text-transform: none; font-size: 0.875rem; }
.site-home .h-head h2, .site-home .section > .wrap > h2 {
  margin: 0; max-inline-size: 20ch; color: var(--hs-ink); font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
}
.site-home .section > .wrap > h2 { margin-block-end: clamp(1.75rem, 3.5vw, 2.25rem); }
.site-home main :is(.h-head h2, .section h2) .pivot { display: block; font-family: var(--q-font-pivot); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--hs-ink); }
.lang-ar.site-home main :is(.h-head h2, .section h2) .pivot { font-family: inherit; font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--hs-grey); }
.lang-ar :is(.h-head h2, .section > .wrap > h2) { letter-spacing: 0; line-height: 1.2; }
.h-sub, .h-note { color: var(--hs-grey); }
.h-more { margin: 2.5rem 0 0; }
/* Links: the underline grows on hover and focus. */
.h-link { display: inline-flex; gap: 0.5rem; padding-block-end: 0.25rem; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--hs-out); }
[dir="rtl"] .h-link { background-position: 100% 100%; }
.h-link:is(:hover, :focus-visible) { background-size: 100% 1px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 2rem; }

/* White rounded cards with a soft shadow that lift on hover and focus. */
.hs-three, .h-tiles, .h-power-grid, .h-who-grid, .h-crm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hs-three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.h-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.h-power-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.h-who-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.h-crm-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
:is(.hs-c3, .h-tile, .h-power, .h-who-link, .h-crm-block) {
  position: relative; display: block; block-size: 100%; box-sizing: border-box; padding: 1.375rem 1.375rem 2.75rem; border-radius: 22px;
  background: var(--hs-white); color: var(--hs-ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--hs-line), 0 10px 30px color-mix(in srgb, var(--hs-ink) 5%, transparent);
  transition: transform 0.6s var(--hs-bounce), box-shadow 0.3s ease;
}
:is(.hs-c3, .h-crm-block) { padding-block-end: 1.375rem; }
:is(.hs-c3, .h-tile, .h-who-link, .h-power):is(:hover, :focus-within) { transform: translateY(-6px) rotate(-0.4deg); box-shadow: inset 0 0 0 1px var(--hs-line), 0 26px 50px var(--hs-shadow); }
.hs-n, .h-tile-n { font-size: 0.75rem; font-weight: 600; color: var(--hs-mute); }
.hs-big { display: block; margin-block-start: 0.5rem; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
:is(.hs-c3, .h-tile, .h-power, .h-who-card, .h-crm-block) h3 { margin: 0.75rem 0 0.375rem; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
:is(.hs-c3, .h-tile, .h-power, .h-who-card) p, .h-crm-block > p { margin: 0; color: var(--hs-grey); font-size: 0.9375rem; line-height: 1.55; }
.h-tile-go, .h-who-go { position: absolute; inset-block-end: 1.25rem; inset-inline-end: 1.5rem; color: var(--hs-mute); transition: transform 0.35s var(--hs-bounce); }
:is(.h-tile, .h-who-link):is(:hover, :focus-visible) :is(.h-tile-go, .h-who-go) { transform: translateX(5px); color: var(--hs-ink); }
[dir="rtl"] :is(.h-tile, .h-who-link):is(:hover, :focus-visible) :is(.h-tile-go, .h-who-go) { transform: translateX(-5px); }
.h-power .hx-icon { inline-size: 1.5rem; block-size: 1.5rem; color: var(--hs-ink); }
.h-power-link { text-decoration: none; }
.h-power-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.h-who-link h3, .h-crm-block h3 { margin-block-start: 0; }
.h-crm-block ul { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.h-crm-block li { display: flex; align-items: center; gap: 0.6rem; color: var(--hs-grey); }
.h-crm-block li::before { content: ""; flex: none; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--hs-ink); }
.site-home .logo-marquee { border-block: 1px solid var(--hs-line); }

/* ------------------------------------------------------------------ the closer: ONE rounded black band */
.site-home .hs-closer { padding-block: var(--hs-space); background: transparent; }
.hs-band { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; border-radius: 32px; background: linear-gradient(180deg, var(--hs-ink), color-mix(in srgb, var(--hs-white) 12%, var(--hs-ink))); color: var(--hs-white); text-align: center; }
.hs-band h2 { margin: 0 auto; max-inline-size: 20ch; color: var(--hs-white); font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.lang-ar .hs-band h2 { letter-spacing: 0; line-height: 1.25; }
.site-home main .hs-band h2 .pivot { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.hs-band .h-sub, .hs-band .h-note { color: color-mix(in srgb, var(--hs-white) 70%, var(--hs-ink)); }
.hs-band .hs-ctas { justify-content: center; margin-block-start: 1.75rem; }
.hs-mag { transform: translate3d(var(--mx, 0), var(--my, 0), 0); transition: transform 0.25s var(--hs-out), box-shadow 0.3s ease; }

/* ------------------------------------------------------------------ motion layer (23 Nov 2026)
 * A line into the client portal, the hero particle field (canvas, home-fx.js), a services marquee, the portal
 * walkthrough, services as full-width rows and the custom cursor. Neutral greys outside the story card (pastels stay in
 * the card); transforms, opacity and clip-path only. Everything reads without script. */
.hs-portal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; padding-block-start: 1rem; border-block-start: 1px dashed var(--hs-line); font-size: 0.875rem; color: var(--hs-grey); }
.hs-portal a { color: var(--hs-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hs-live { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--hs-ink); }
.hs-field { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }

.hs-marq { direction: ltr; margin-block-start: clamp(2.5rem, 5vw, 3.5rem); padding-block: 0.875rem; overflow: hidden; border-block: 1px solid var(--hs-line); }
.hs-marq-track { display: flex; inline-size: max-content; will-change: transform; }
.hs-marq-run { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); padding-inline-end: clamp(1.25rem, 3vw, 2.5rem); color: var(--hs-ink); font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.15; white-space: nowrap; }
.hs-marq-run span:nth-child(4n+3) { font-family: var(--q-font-pivot); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lang-ar .hs-marq-run { letter-spacing: 0; font-family: var(--q-font-arabic); }
.lang-ar .hs-marq-run span:nth-child(4n+3) { font-family: inherit; font-style: normal; font-weight: 500; color: var(--hs-grey); }
.hs-star { flex: none; inline-size: 0.42em; block-size: 0.42em; fill: var(--hs-ink); }

/* The portal behind the work. */
.hp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.hp-steps { position: relative; display: grid; list-style: none; margin: 0; padding: 0; }
.hp-rail { position: absolute; inset-inline-start: 19px; inset-block: 2rem; inline-size: 1px; background: var(--hs-line); }
.hp-rail i { position: absolute; inset: 0; background: var(--hs-ink); transform: scaleY(var(--p, 0)); transform-origin: 50% 0; transition: transform 0.7s var(--hs-out); }
.hp-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.125rem; inline-size: 100%; padding: clamp(1.25rem, 9vh, 4.5rem) 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; opacity: 0.45; transition: opacity 0.5s ease; }
.hp-steps li:first-child .hp-step { padding-block-start: 0.5rem; }
.hp-step.is-on { opacity: 1; }
.hp-n { position: relative; z-index: 1; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.75rem; font-weight: 600; transition: transform 0.5s var(--hs-bounce), background-color 0.4s ease, color 0.4s ease; }
.hp-step.is-on .hp-n { background: var(--hs-ink); color: var(--hs-white); transform: scale(1.08); }
.hp-copy { display: grid; gap: 0.5rem; min-inline-size: 0; }
.hp-title { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.hp-body-t { max-inline-size: 38ch; color: var(--hs-grey); line-height: 1.55; }
.lang-ar .hp-title { letter-spacing: 0; line-height: 1.35; }
.hp-right { position: sticky; inset-block-start: 5.5rem; }
.hp-win { overflow: hidden; border-radius: 24px; background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line), 0 40px 80px -30px var(--hs-shadow), 0 10px 30px color-mix(in srgb, var(--hs-ink) 5%, transparent); }
.hp-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-block-end: 1px solid var(--hs-line); }
.hp-bar > i { flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hs-mute); }
.hp-url { min-inline-size: 0; margin-inline: auto; padding: 0.3rem 0.875rem; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--hs-ink) 3%, var(--hs-white)); box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-grey); font-family: var(--q-font-mono); font-size: 0.6875rem; white-space: nowrap; text-overflow: ellipsis; }
.hp-body { display: grid; grid-template-columns: 10rem minmax(0, 1fr); block-size: 25rem; }
.hp-side { display: flex; flex-direction: column; gap: 2px; padding: 0.875rem 0.625rem; border-inline-end: 1px solid var(--hs-line); font-size: 0.8125rem; }
.hp-ws { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; padding: 0.375rem 0.5rem; font-weight: 700; }
.hp-q { flex: none; inline-size: 22px; block-size: 22px; padding: 3px; border-radius: 5px; background: var(--hs-ink); color: var(--hs-white); }
.hp-it { padding: 0.5rem 0.625rem; border-radius: 10px; color: var(--hs-grey); transition: background-color 0.4s ease, color 0.4s ease; }
.hp-it.is-on { background: var(--hs-ink); color: var(--hs-white); }
.hp-main { position: relative; overflow: hidden; }
.hp-panel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--hs-out), transform 0.7s var(--hs-out), visibility 0s linear 0.5s; }
.hp-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--hs-out), transform 0.7s var(--hs-out); }
.hp-ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hp-h { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.hp-tag, .hp-plan em, .hp-aq em { padding: 0.25rem 0.625rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-grey); font-size: 0.6875rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.hp-score { display: flex; align-items: center; gap: 1rem; padding: 0.875rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--hs-ink) 3%, var(--hs-white)); box-shadow: inset 0 0 0 1px var(--hs-line); }
.hp-score b { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; }
.hp-score p { margin: 0; color: var(--hs-grey); font-size: 0.8125rem; }
.hp-sig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.hp-sig li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 0.5rem; padding: 0.625rem 0.75rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.78rem; }
.hp-sig b { font-variant-numeric: tabular-nums; }
.hp-sig i { position: relative; grid-column: 1 / -1; block-size: 5px; overflow: hidden; border-radius: 4px; background: var(--hs-line); }
.hp-sig i::after { content: ""; position: absolute; inset: 0; background: var(--hs-ink); transform: scaleX(var(--v, 0)); transform-origin: 0 50%; transition: transform 1.1s var(--hs-out); }
[dir="rtl"] .hp-sig i::after { transform-origin: 100% 50%; }
.hp-sig i.w0::after { --v: 0; }
.hp-sig i.w10::after { --v: 0.1; }
.hp-sig i.w20::after { --v: 0.2; }
.hp-sig i.w30::after { --v: 0.3; }
.hp-sig i.w40::after { --v: 0.4; }
.hp-sig i.w50::after { --v: 0.5; }
.hp-sig i.w60::after { --v: 0.6; }
.hp-sig i.w70::after { --v: 0.7; }
.hp-sig i.w80::after { --v: 0.8; }
.hp-sig i.w90::after { --v: 0.9; }
.hp-sig i.w100::after { --v: 1; }
.hp-panel:not(.is-on) .hp-sig i::after { transform: scaleX(0); }
.hp-plan, .hp-aq, .hp-kpi { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.hp-plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.6875rem 0.875rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.8125rem; }
.hp-ck { display: grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--hs-mute); transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.hp-ck svg { inline-size: 12px; block-size: 12px; fill: none; stroke: var(--hs-white); stroke-width: 2; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.4s ease 0.15s; }
.hp-plan li.is-done .hp-ck { background: var(--hs-ink); box-shadow: none; }
.hp-plan li.is-done .hp-ck svg { stroke-dashoffset: 0; }
.hp-plan li.is-done .hp-t { color: var(--hs-grey); text-decoration: line-through; }
.hp-plan em.is-ink, .hp-aq li.is-ok em { background: var(--hs-ink); color: var(--hs-white); box-shadow: none; }
.hp-aq { gap: 0.625rem; }
.hp-aq li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0.875rem; align-items: center; padding: 0.75rem; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hs-line); font-size: 0.84rem; transition: box-shadow 0.4s ease; }
.hp-aq li.is-ok { box-shadow: inset 0 0 0 1px var(--hs-ink); }
.hp-aq small { display: block; color: var(--hs-grey); font-size: 0.75rem; }
.hp-th { inline-size: 2.75rem; block-size: 2.75rem; border-radius: 10px; background: linear-gradient(135deg, var(--hs-line), color-mix(in srgb, var(--hs-ink) 18%, var(--hs-white))); }
.hp-aq em { min-inline-size: 5.5rem; text-align: center; color: var(--hs-ink); box-shadow: inset 0 0 0 1px var(--hs-ink); transition: background-color 0.4s ease, color 0.4s ease; }
.hp-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-kpi li { display: grid; gap: 0.125rem; padding: 0.75rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hs-line); }
.hp-kpi small, .hp-chart small { color: var(--hs-grey); font-size: 0.75rem; }
.hp-kpi b { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.hp-chart { display: flex; flex: 1; flex-direction: column; gap: 0.375rem; min-block-size: 0; padding: 0.75rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hs-line); }
.hp-chart svg { flex: 1; inline-size: 100%; min-block-size: 5rem; }
.hp-gl { fill: none; stroke: var(--hs-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hp-area { fill: color-mix(in srgb, var(--hs-ink) 6%, transparent); }
.hp-line { fill: none; stroke: var(--hs-ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--hs-out); }
.hp-panel:not(.is-on) .hp-line { stroke-dashoffset: 100; }
.hp-end { fill: var(--hs-ink); }
.hp-right .hs-note { margin-block-start: 0.75rem; }
.hp-ctas { margin-block-start: 1.25rem; }
@media (max-width: 899px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-right { position: relative; inset-block-start: auto; order: -1; }
  .hp-rail, .hp-side { display: none; }
  .hp-step { padding-block: 1rem; }
  .hp-steps li:first-child .hp-step { padding-block-start: 1rem; }
  .hp-step:not(.is-on) { opacity: 0.6; }
  .hp-body { grid-template-columns: minmax(0, 1fr); block-size: 24rem; }
}
@media (max-width: 479px) {
  .hp-sig { grid-template-columns: minmax(0, 1fr); }
  .hp-sig li:nth-child(n+5), .hp-kpi li:nth-child(3) { display: none; }
  .hp-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-panel { padding: 1rem; }
  .hp-aq li { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
  .hp-th { inline-size: 2.25rem; block-size: 2.25rem; }
}

/* Services as full-width rows: the row fills with ink from below on hover and focus. */
.h-services .h-tiles { grid-template-columns: minmax(0, 1fr); gap: 0; border-block-start: 1px solid var(--hs-line); }
.h-services .h-tile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem; overflow: hidden; isolation: isolate; border-radius: 0; background: transparent; box-shadow: none; border-block-end: 1px solid var(--hs-line); transition: color 0.5s var(--hs-out); }
.h-services .h-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hs-ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.55s var(--hs-out); }
.h-services .h-tile:is(:hover, :focus-visible) { color: var(--hs-white); transform: none; box-shadow: none; }
.h-services .h-tile:is(:hover, :focus-visible)::before { transform: scaleY(1); transform-origin: 50% 0; }
.h-services .h-tile-n { display: none; }
.h-services .h-tile h3 { margin: 0; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem); letter-spacing: -0.035em; line-height: 1.1; transition: transform 0.5s var(--hs-out); }
.lang-ar .h-services .h-tile h3 { letter-spacing: 0; line-height: 1.3; }
.h-services .h-tile:is(:hover, :focus-visible) h3 { transform: translateX(0.75rem); }
[dir="rtl"] .h-services .h-tile:is(:hover, :focus-visible) h3 { transform: translateX(-0.75rem); }
.h-services .h-tile p { transition: color 0.5s ease; }
.h-services .h-tile:is(:hover, :focus-visible) p { color: color-mix(in srgb, var(--hs-white) 78%, var(--hs-ink)); }
.h-services .h-tile-go { position: static; display: grid; place-items: center; inline-size: 2.25rem; block-size: 2.25rem; border-radius: 50%; background: var(--hs-ink); color: var(--hs-white); transition: transform 0.5s var(--hs-bounce), background-color 0.4s ease, color 0.4s ease; }
.h-services .h-tile:is(:hover, :focus-visible) .h-tile-go { background: var(--hs-white); color: var(--hs-ink); transform: rotate(-45deg); }
[dir="rtl"] .h-services .h-tile:is(:hover, :focus-visible) .h-tile-go { transform: rotate(45deg); }
@media (max-width: 699px) {
  .h-services .h-tile { grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; }
  .h-services .h-tile p { grid-column: 1; grid-row: 2; }
  .h-services .h-tile-go { grid-column: 2; grid-row: 1 / 3; }
}

/* The custom cursor (home-fx.js adds it on fine pointers only; never under reduced motion or Save-Data). One 92px ring
   scaled by script: small by default, filled over links, a labelled ink disc over [data-cursor], a lens over the story. */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, select, [contenteditable]) { cursor: auto !important; }
.qx-cursor { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.qx-c-dot, .qx-c-ring, .qx-ripple { position: fixed; left: 0; top: 0; border-radius: 50%; }
.qx-c-dot { inline-size: 6px; block-size: 6px; margin: -3px 0 0 -3px; background: var(--hs-white); mix-blend-mode: difference; will-change: transform; }
.qx-c-ring { display: grid; place-items: center; inline-size: 92px; block-size: 92px; margin: -46px 0 0 -46px; box-shadow: inset 0 0 0 3.5px var(--hs-white); mix-blend-mode: difference; will-change: transform; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.qx-c-ring.is-link { box-shadow: inset 0 0 0 5px var(--hs-white); }
.qx-c-ring.is-label { background: var(--hs-white); box-shadow: inset 0 0 0 1px var(--hs-line), 0 14px 30px var(--hs-shadow); mix-blend-mode: normal; }
.qx-c-ring.is-field { box-shadow: inset 0 0 0 1.5px var(--hs-white); mix-blend-mode: normal; }
.qx-c-dot.is-field { background: var(--hs-ink); mix-blend-mode: normal; }
.qx-c-label { color: var(--hs-ink); font-size: 0.8125rem; font-weight: 600; opacity: 0; transition: opacity 0.25s ease; }
.qx-c-ring.is-label .qx-c-label { opacity: 1; }
.qx-ripple { inline-size: 16px; block-size: 16px; margin: -8px 0 0 -8px; box-shadow: inset 0 0 0 1.5px var(--hs-white); mix-blend-mode: difference; opacity: 0; }
@keyframes hs-ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(6); } }

/* ------------------------------------------------------------------ free website check (23 Nov 2026)
 * The /audit free score, straight under the hero: heading on the left, the address field and the black pill on the
 * right. audit-flow.js runs the check (POST /api/audit/basic-scan) and fills the result card, which then takes the full
 * width: score ring, grade and note, the six areas as bars, up to three findings and "Get the full report". */
.site-home #free-score { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-home #free-score > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.site-home #free-score > .wrap > * { grid-column: 1 !important; min-inline-size: 0; }
.site-home #free-score > .wrap > .panel { grid-column: 2 !important; grid-row: 1 / span 3; }
.site-home #free-score [hidden] { display: none !important; }
.site-home #free-score > .wrap > h2 { margin-block-end: 1rem; }
.site-home #free-score .lede { max-inline-size: 34ch; margin: 0; color: var(--hs-grey); font-size: 1.0625rem; line-height: 1.55; }
.site-home #free-score .note { margin: 1rem 0 0; color: var(--hs-grey); font-size: 0.875rem; }
.site-home #free-score .panel { margin: 0; padding: clamp(1rem, 2vw, 1.375rem); border: 0; border-radius: 22px; background: var(--hs-white); color: var(--hs-ink); box-shadow: inset 0 0 0 1px var(--hs-line), 0 24px 60px -24px var(--hs-shadow); }
.site-home #free-score-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.625rem 0.75rem; align-items: end; max-inline-size: none; transition: box-shadow 0.3s ease; }
.site-home #free-score-form:focus-within { box-shadow: inset 0 0 0 1.5px var(--hs-ink), 0 24px 60px -24px var(--hs-shadow); }
.site-home #free-score-form > label, .site-home #free-score-form > .form-status { grid-column: 1 / -1; margin: 0; }
.site-home #free-score-form > label { font-size: 0.875rem; font-weight: 600; color: var(--hs-ink); }
.site-home #free-score-form > .form-status { color: var(--hs-grey); font-size: 0.875rem; }
.site-home #free-score-form > .form-status:empty { display: none; }
.site-home #free-score-form > input { min-inline-size: 0; min-block-size: 2.875rem; margin: 0; padding-inline: 1.125rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--hs-ink) 4%, var(--hs-white)); color: var(--hs-ink); box-shadow: inset 0 0 0 1px var(--hs-line); font: inherit; font-size: 1rem; }
.site-home #free-score-form > input:focus-visible { outline: 2px solid var(--hs-ink); outline-offset: 2px; }
.site-home #free-score .cta { display: inline-flex; align-items: center; justify-content: center; min-block-size: 2.875rem; margin: 0; padding-inline: 1.25rem; border: 0; border-radius: 999px; background: var(--hs-ink); color: var(--hs-white); font: inherit; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; cursor: pointer; transition: transform 0.35s var(--hs-bounce), box-shadow 0.3s ease; }
.site-home #free-score .cta:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 12px 24px var(--hs-shadow); }
.site-home #free-score .cta-ghost { display: inline-flex; align-items: center; min-block-size: 2.875rem; padding-inline: 1.25rem; border-radius: 999px; color: var(--hs-ink); box-shadow: inset 0 0 0 1px var(--hs-line); font-weight: 600; text-decoration: none; }
.site-home #free-score .actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-block-start: 1rem; }
.site-home #free-score.has-free-score > .wrap > .panel { grid-column: 1 / -1 !important; grid-row: auto; margin-block-start: 1.5rem; }
@property --hs-score { syntax: "<number>"; inherits: true; initial-value: 0; }
.site-home .free-score-result:not([hidden]) {
  --hs-score: var(--score, 0);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "score grade next" "score note next" "factors factors factors" "findings findings findings";
  gap: 0.25rem clamp(1rem, 2.5vw, 2rem); align-items: center;
}
.site-home .free-score-result .free-score-score {
  grid-area: score; display: grid; place-items: center; align-content: center; inline-size: 6.25rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--hs-white) 80%, transparent 81% 100%), conic-gradient(var(--hs-ink) calc(var(--hs-score) * 1%), var(--hs-line) 0);
}
.site-home .free-score-result .free-score-score .num { font-size: 2.125rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.site-home .free-score-result .free-score-score .of { font-size: 0.6875rem; color: var(--hs-grey); }
.site-home .free-score-result .free-score-grade { grid-area: grade; align-self: end; margin: 0; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.03em; }
.site-home .free-score-result .free-score-disclaimer { grid-area: note; align-self: start; max-inline-size: 46rem; margin: 0; color: var(--hs-grey); font-size: 0.875rem; line-height: 1.5; }
.site-home .free-score-result > .cta { grid-area: next; justify-self: end; }
.site-home .free-score-result .free-score-factors { grid-area: factors; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem clamp(1rem, 2.5vw, 2rem); list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-block-start: 1px solid var(--hs-line); }
.site-home .free-score-result .factor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.375rem 0.75rem; padding-block: 0.5rem; }
.site-home .free-score-result .factor-label { font-size: 0.875rem; }
.site-home .free-score-result .factor-score { font-size: 0.9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.site-home .free-score-result .factor-row.is-unmeasured .factor-score { font-size: 0.8125rem; font-weight: 500; color: var(--hs-grey); }
.site-home .free-score-result .factor-bar { grid-column: 1 / -1; display: block; block-size: 0.375rem; overflow: hidden; border-radius: 999px; background: var(--hs-line); }
.site-home .free-score-result .factor-bar::before { content: ""; display: block; block-size: 100%; inline-size: 100%; border-radius: inherit; background: var(--hs-ink); transform: scaleX(calc(var(--v, 0) / 100)); transform-origin: 0 50%; }
[dir="rtl"] .site-home .free-score-result .factor-bar::before { transform-origin: 100% 50%; }
.site-home .free-score-result .factor-row.is-unmeasured .factor-bar { background: transparent; box-shadow: inset 0 0 0 1px var(--hs-line); }
.site-home .free-score-result .free-score-findings { grid-area: findings; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.site-home .free-score-result .free-score-findings:empty { display: none; }
.site-home .free-score-result .finding-row { display: grid; gap: 0.25rem; padding: 0.875rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--hs-ink) 4%, var(--hs-white)); }
.site-home .free-score-result .finding-title { font-size: 0.9375rem; line-height: 1.35; }
.site-home .free-score-result .finding-detail { color: var(--hs-grey); font-size: 0.8125rem; line-height: 1.45; }
.site-home .free-score-unreachable p { margin: 0.25rem 0 0; color: var(--hs-grey); }
.lang-ar.site-home #free-score :is(h2, h3, .free-score-grade) { letter-spacing: 0; }
.site-home #free-score :is(#free-score-form > label, .factor-label, .free-score-score .of) { font-family: inherit; letter-spacing: 0; text-transform: none; }
.lang-ar.site-home #free-score :is(#free-score-form > label, .factor-label, .factor-score, .free-score-score, .free-score-grade, .finding-row, .free-score-disclaimer, .free-score-unreachable) { font-family: var(--q-font-arabic); }
.site-home .free-score-result .free-score-score { border: 0; box-shadow: none; }
.site-home .free-score-result :is(.free-score-findings, .finding-row, .factor-row) { border: 0; }
.site-home .free-score-unreachable h3 { font-family: inherit; font-size: 1.375rem !important; font-weight: 700 !important; letter-spacing: -0.02em !important; text-transform: none; margin-block-end: 0.5rem !important; }
.lang-ar.site-home .free-score-unreachable h3 { letter-spacing: 0 !important; }
@media (max-width: 899px) {
  .site-home #free-score > .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .site-home #free-score > .wrap > .panel { grid-column: 1 !important; grid-row: auto; }
  .site-home .free-score-result .free-score-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .site-home #free-score-form { grid-template-columns: minmax(0, 1fr); }
  .site-home .free-score-result:not([hidden]) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "score grade" "score note" "factors factors" "findings findings" "next next"; }
  .site-home .free-score-result .free-score-score { inline-size: 5.5rem; }
  .site-home .free-score-result .free-score-score .num { font-size: 1.75rem; }
  .site-home .free-score-result > .cta { justify-self: stretch; margin-block-start: 1rem; }
  .site-home .free-score-result .free-score-factors { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ the intro (html.js, motion allowed)
 * The H1 lines rise (never transparent: it is the LCP); the lede and CTAs fade up; the Q draws itself and hands over;
 * the QUIXO word blurs in; the phone lands; icons pop onto their orbits and orbit slowly, bob and catch a light sweep;
 * the glow line breathes. Screen 1's rows slide in. All end on the rendered frame. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hs-hero h1 { animation: hs-rise 1s var(--hs-out) both; }
  html.js .hs-hero h1 .qx-accent { animation: hs-rise 1s var(--hs-out) 0.12s both; }
  html.js .hs-side { animation: hs-fade 0.9s var(--hs-out) 0.5s both; }
  html.js .hs-frame::before { animation: hs-glowline 3s ease-in-out infinite; }
  html.js .hs-qdraw { animation: hs-qshow 2.6s var(--hs-out) 0.1s both; }
  html.js .hs-qdraw path { animation: hs-draw 1.3s var(--hs-out) 0.2s both; }
  html.js .hs-word { animation: hs-wordin 1.6s var(--hs-out) 1.1s both; }
  html.js .hs-phone { animation: hs-phonein 1.1s var(--hs-bounce) 1.9s both; }
  html.js .hs-ico { animation: hs-iconin 0.8s var(--hs-bounce) both; }
  html.js .hs-orbit-1 .hs-ico { animation-delay: 2.3s; } html.js .hs-orbit-2 .hs-ico { animation-delay: 2.4s; }
  html.js .hs-orbit-3 .hs-ico { animation-delay: 2.5s; } html.js .hs-orbit-4 .hs-ico { animation-delay: 2.6s; }
  html.js .hs-orbit-5 .hs-ico { animation-delay: 2.7s; } html.js .hs-orbit-6 .hs-ico { animation-delay: 2.8s; }
  html.js .hs-orbit-7 .hs-ico { animation-delay: 2.9s; } html.js .hs-orbit-8 .hs-ico { animation-delay: 3s; }
  html.js .hs-orbit { animation: hs-spin var(--t) linear infinite; }
  html.js .hs-orbit > .hs-ico { animation: hs-iconin 0.8s var(--hs-bounce) both, hs-counter var(--t) linear infinite; }
  html.js .hs-ico svg { animation: hs-bob 3s ease-in-out infinite; }
  html.js .hs-ico::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 42%, color-mix(in srgb, var(--hs-white) 70%, transparent) 50%, transparent 58%); animation: hs-sweep 4s ease-in-out infinite; pointer-events: none; }
  html.js .hs-ico:hover { scale: 1.3; }
  html.js .hs-caret { animation: hs-blink 1s steps(1) infinite; }
  html.js .hs-scr { transition: clip-path 0.8s var(--hs-out); }
  html.js .hs-tab.is-on .hs-fill { animation: hs-fill var(--hs-dur, 3.6s) linear both; }
  html.js .hs-scr.is-on .hs-rows li, html.js .hs-scr.is-on .hs-appr li { animation: hs-slide 0.6s var(--hs-out) both; }
  html.js .hs-scr.is-on :is(.hs-rows, .hs-appr) li:nth-child(2) { animation-delay: 0.15s; }
  html.js .hs-scr.is-on :is(.hs-rows, .hs-appr) li:nth-child(3) { animation-delay: 0.3s; }
  html.js .hs-scr.is-on .hs-spark { animation: hs-spark 0.9s ease-out 0.6s both; }
  html.js .hs-scr.is-on .hs-bars i { animation: hs-grow 0.9s var(--hs-bounce) both; }
  html.js .hs-scr.is-on .hs-bars i:nth-child(2) { animation-delay: 0.08s; } html.js .hs-scr.is-on .hs-bars i:nth-child(3) { animation-delay: 0.16s; }
  html.js .hs-scr.is-on .hs-bars i:nth-child(4) { animation-delay: 0.24s; } html.js .hs-scr.is-on .hs-bars i:nth-child(5) { animation-delay: 0.32s; }
  html.js .hs-scr.is-on .hs-leads span { animation: hs-pop 0.5s var(--hs-bounce) both; }
  html.js .hs-scr.is-on .hs-leads span:nth-child(1) { animation-delay: 0.45s; } html.js .hs-scr.is-on .hs-leads span:nth-child(2) { animation-delay: 0.6s; }
  html.js .hs-scr.is-on .hs-leads span:nth-child(3) { animation-delay: 0.75s; } html.js .hs-scr.is-on .hs-leads span:nth-child(4) { animation-delay: 0.9s; }
  html.js .hs-scr.is-on .hs-ring-fg { animation: hs-ring 1.6s var(--hs-out) both; }
  html.js .hs-typing i { animation: hs-bob 1s ease-in-out infinite; }
  html.js .hs-typing i:nth-child(2) { animation-delay: 0.15s; } html.js .hs-typing i:nth-child(3) { animation-delay: 0.3s; }
  html.js .hs-chat p.is-in { animation: hs-pop 0.45s var(--hs-bounce) both; }
  html.js .hs-card.is-paused :is(.hs-orbit, .hs-ico, .hs-ico svg, .hs-ico::after) { animation-play-state: paused; }
  html.js .qx-ripple { animation: hs-ripple 0.7s var(--hs-out) forwards; }
  html.js .hs-live { animation: hs-ping 2.4s ease-out infinite; }
  html.js .site-home .free-score-result.is-in { animation: hs-fade 0.6s var(--hs-out) both; }
  html.js .site-home .free-score-result.is-in .free-score-score { transition: --hs-score 1.2s var(--hs-out); }
  html.js .site-home .free-score-result.is-in .factor-bar::before { animation: hs-barin 1.1s var(--hs-out) both; }
}
@keyframes hs-barin { from { transform: scaleX(0); } }
@keyframes hs-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hs-ink) 35%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes hs-rise { from { transform: translateY(28px); } }
@keyframes hs-fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes hs-glowline { 50% { transform: scaleX(1.6); opacity: 0.7; } }
@keyframes hs-qshow { 0%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.35) translateY(120px); } }
@keyframes hs-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes hs-wordin { from { opacity: 0; filter: blur(24px); } }
@keyframes hs-phonein { from { opacity: 0; transform: translateY(140px) rotate(6deg) scale(0.9); } }
@keyframes hs-iconin { from { opacity: 0; scale: 0.2; } }
@keyframes hs-spin { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes hs-counter { from { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); } to { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes hs-bob { 50% { transform: translateY(-4px); } }
@keyframes hs-sweep { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes hs-blink { 50% { opacity: 0; } }
@keyframes hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hs-slide { from { opacity: 0; transform: translateX(18px); } }
@keyframes hs-spark { 0% { opacity: 0; transform: scale(0.2) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: 0; transform: scale(0.6) rotate(90deg); } }
@keyframes hs-grow { from { transform: scaleY(0.05); } }
@keyframes hs-pop { from { opacity: 0; transform: scale(0.3); } }
@keyframes hs-ring { from { stroke-dashoffset: 100; } }

@media (prefers-reduced-motion: reduce) {
  .site-home *, .site-home *::before, .site-home *::after { animation: none !important; transition: none !important; }
  .hs-qdraw { display: none; }
}

/* No made-up score: the Audit screens are empty (ring track, real factor names, a prompt) until audit-flow.js fills them
   from the visitor's own free-check result. */
.hs-live { display: contents; }
.hs-ring.is-empty .hs-ring-fg { visibility: hidden; animation: none; }
.hs-prompt { margin: 0 0 0.625rem; text-align: center; font-size: 0.8125rem; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.hs-live [hidden], .hp-panel [hidden] { display: none; }
.hp-sig li.is-unmeasured b { color: var(--hs-grey); }
