/* ==========================================================================
   Clevrops: site.css
   Two grounds (porcelain light, graphite dark), one emerald accent in two
   lightnesses. Geist for Latin, IBM Plex Sans Arabic for Arabic.
   ========================================================================== */

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 4.4vw, 56px);
  --maxw: 1240px;
  --section: clamp(96px, 12vw, 176px);
  --hdr-h: 60px;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  /* light ground (default) */
  --canvas: #F5F6F4;
  --surface: #FFFFFF;
  --surface-2: #ECEEEB;
  --ink: #18181B;
  --ink-soft: #5A5E62;
  --ink-faint: #8C9094;
  --line: rgba(24, 24, 27, 0.09);
  --line-strong: rgba(24, 24, 27, 0.16);
  --accent: #087A57;
  --accent-ink: #FFFFFF;
  --glow: 8 122 87;
  --shadow: 18 24 22;
  --e1: 0 1px 2px rgb(var(--shadow) / 0.06), 0 2px 8px rgb(var(--shadow) / 0.04);
  --e2: 0 2px 4px rgb(var(--shadow) / 0.05), 0 12px 32px -8px rgb(var(--shadow) / 0.14);
  --e3: 0 4px 8px rgb(var(--shadow) / 0.06), 0 32px 64px -16px rgb(var(--shadow) / 0.24);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  color-scheme: light;
}

[lang="ar"] { --font: "IBM Plex Sans Arabic", "Geist", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif; }

/* Grounds: tokens AND color restated together (inherited color resolves early). */
[data-ground="light"] {
  --canvas: #F5F6F4; --surface: #FFFFFF; --surface-2: #ECEEEB;
  --ink: #18181B; --ink-soft: #5A5E62; --ink-faint: #8C9094;
  --line: rgba(24, 24, 27, 0.09); --line-strong: rgba(24, 24, 27, 0.16);
  --accent: #087A57; --accent-ink: #FFFFFF; --glow: 8 122 87; --shadow: 18 24 22;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: var(--canvas); color: var(--ink);
}
[data-ground="dark"] {
  --canvas: #0A0B0C; --surface: #131416; --surface-2: #1B1D1F;
  --ink: #F3F4F2; --ink-soft: #A3A8A5; --ink-faint: #6E7370;
  --line: rgba(243, 244, 242, 0.09); --line-strong: rgba(243, 244, 242, 0.18);
  --accent: #3DDBA0; --accent-ink: #07130E; --glow: 61 219 160; --shadow: 0 0 0;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  background: var(--canvas); color: var(--ink);
  color-scheme: dark;
}
[data-ground="white"] { background: var(--surface); color: var(--ink); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #0A0B0C;
  color: var(--ink);
  overflow-x: clip;
}
[lang="ar"] body { line-height: 1.8; font-feature-settings: normal; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: rgb(var(--glow) / 0.28); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
input, textarea, select { caret-color: var(--accent); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

html { scrollbar-color: #3a3d3f #0A0B0C; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0A0B0C; }
::-webkit-scrollbar-thumb { background: #3a3d3f; border-radius: 99px; border: 3px solid #0A0B0C; }

.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: #F3F4F2; color: #18181B; font-weight: 600; font-size: 14px;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgb(var(--glow) / 0.16); }
.h1 { font-size: clamp(44px, 7.4vw, 100px); line-height: 1; letter-spacing: -0.045em; }
.h2 { font-size: clamp(34px, 4.9vw, 64px); line-height: 1.04; letter-spacing: -0.038em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
[data-ground="dark"] .lead, [data-ground="dark"] p { letter-spacing: 0.005em; }
[lang="ar"] .h1, [lang="ar"] .h2, [lang="ar"] .h3, [lang="ar"] .eyebrow,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0 !important; }
[lang="ar"] .h1 { line-height: 1.22; font-size: clamp(40px, 6.6vw, 88px); }
[lang="ar"] .h2 { line-height: 1.3; font-size: clamp(30px, 4.4vw, 56px); }
[lang="ar"] .h3 { line-height: 1.45; }
.muted { color: var(--ink-soft); }
.nums { font-variant-numeric: tabular-nums; }
bdi { unicode-bidi: isolate; }

/* ---------- icons ---------- */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 18px; height: 18px; }
[dir="rtl"] .ico--flip { transform: scaleX(-1); }
.ico-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--accent); background: rgb(var(--glow) / 0.09); box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.18);
}

/* ==========================================================================
   Buttons: Apple-grade pills with a light that follows the pointer
   ========================================================================== */
.btn {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding-inline: 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.28s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.38), transparent 62%);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.22s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 36px; padding-inline: 16px; font-size: 13.5px; gap: 6px; }
.btn--lg { height: 56px; padding-inline: 30px; font-size: 17px; }
[lang="ar"] .btn { letter-spacing: 0; font-weight: 500; }

.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgb(var(--shadow) / 0.12), 0 8px 20px -10px rgb(var(--glow) / 0.7);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost::before { background: radial-gradient(160px circle at var(--mx) var(--my), rgb(var(--glow) / 0.16), transparent 64%); }
.btn--ink { background: var(--ink); color: var(--canvas); box-shadow: var(--e1); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { opacity: 1; }
  .btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 4px rgb(var(--shadow) / 0.1), 0 14px 34px -10px rgb(var(--glow) / 0.75), 0 0 0 5px rgb(var(--glow) / 0.1);
  }
  .btn--ghost:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.55), 0 12px 30px -14px rgb(var(--glow) / 0.55); }
  .btn--ink:hover { transform: translateY(-1px); box-shadow: var(--e2); }
  .btn:hover .ico--go { transform: translateX(3px); }
  [dir="rtl"] .btn:hover .ico--go { transform: scaleX(-1) translateX(3px); }
  .btn:active { transform: scale(0.97); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.lnk {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease);
}
.lnk .ico { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.lnk:hover { text-decoration-color: currentColor; }
.lnk:hover .ico { transform: translateX(3px); }
[dir="rtl"] .lnk:hover .ico { transform: scaleX(-1) translateX(3px); }

.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.text-link:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   Glow + 3D surfaces
   ========================================================================== */
.glass {
  position: relative; isolation: isolate;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--edge), 0 0 0 1px var(--line), var(--e1);
  transition: box-shadow 0.35s var(--ease);
}
[data-ground="dark"] .glass { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)); }
[data-glow] { --gx: -999px; --gy: -999px; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(280px circle at var(--gx) var(--gy), rgb(var(--glow) / 0.85), rgb(var(--glow) / 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
[data-glow]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgb(var(--glow) / 0.08), transparent 62%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  [data-glow]:hover::before, [data-glow]:hover::after { opacity: 1; }
  .glass[data-glow]:hover { box-shadow: var(--edge), 0 0 0 1px var(--line), var(--e3); }
}
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt] .z1 { transform: translateZ(18px); }
[data-tilt] .z2 { transform: translateZ(36px); }

/* reveal on entry: uses `translate` so it composes with tilt transforms */
html.js [data-in] { opacity: 0; translate: 0 18px; transition: opacity 0.75s var(--ease), translate 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-in].is-in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr-h);
  color: var(--ink); background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease), transform 0.4s var(--ease);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
html.scrolled .hdr::before, html.menu-open .hdr::before { opacity: 1; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__logo { display: flex; align-items: center; height: 100%; padding-block: 6px; flex: none; }
.hdr__logo img { height: 27px; width: auto; }
.logo-on-dark { display: none; }
[data-ground="dark"] .logo-on-light, [data-ground="dark"].logo-on-light { display: none; }
[data-ground="dark"] .logo-on-dark { display: block; }
.hdr__nav { margin-inline-start: auto; }
.hdr__nav ul { display: flex; gap: 2px; }
.hdr__nav a {
  display: block; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-soft);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.hdr__nav a:hover { color: var(--ink); background: rgb(var(--glow) / 0.07); }
.hdr__nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.hdr__end { display: flex; align-items: center; gap: 10px; }
.hdr__lang {
  display: inline-flex; align-items: center; height: 36px; padding-inline: 12px; border-radius: 999px;
  font-size: 14px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hdr__lang:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hdr__lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 15px; }
.hdr__burger { display: none; width: 44px; height: 44px; border-radius: 999px; position: relative; }
.hdr__burger span:not(.sr) { position: absolute; inset-inline-start: 13px; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.hdr__burger span:nth-child(1) { top: 18px; }
.hdr__burger span:nth-child(2) { top: 25px; }
html.menu-open .hdr__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
html.menu-open .hdr__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 101; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: var(--accent); opacity: 0.85; }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

@media (max-width: 1180px) {
  .hdr__nav a { padding-inline: 9px; font-size: 13.5px; }
  .hdr__in { gap: 18px; }
}
@media (max-width: 1060px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__end { margin-inline-start: auto; }
  .hdr__burger { display: block; }
  :root { --hdr-h: 56px; }
  .hdr__logo img { height: 25px; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--hdr-h) + 20px) var(--gutter) 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
html.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
html.menu-open { overflow: hidden; }
.menu__links a {
  display: block; padding: 10px 0; font-size: clamp(28px, 8vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2;
  border-bottom: 1px solid var(--line);
  opacity: 0; translate: 0 10px; transition: opacity 0.4s var(--ease), translate 0.5s var(--ease), color 0.2s;
  transition-delay: calc(var(--i, 0) * 40ms);
}
[lang="ar"] .menu__links a { letter-spacing: 0; }
.menu__links a[aria-current="page"] { color: var(--accent); }
html.menu-open .menu__links a { opacity: 1; translate: 0 0; }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.menu__foot .btn { width: 100%; }

/* ==========================================================================
   Pinned acts (generic)
   ========================================================================== */
.pin { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
html.js.motion .pin > .stage { position: sticky; top: 0; }
html:not(.motion) .problem .stage { height: auto; min-height: 100svh; padding-block: calc(var(--hdr-h) + 48px) var(--section); }

/* ==========================================================================
   Hero + orbit
   ========================================================================== */
.hero { --p: 0; }
.hero .stage { min-height: 560px; display: grid; place-items: center; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit--back { z-index: 1; }
.orbit--front { z-index: 4; }
.hero__haze {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 62%, rgb(61 219 160 / 0.11), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, rgb(61 219 160 / 0.08), transparent 60%),
    radial-gradient(70% 50% at 50% 0%, rgba(255,255,255,0.04), transparent 70%);
  transform: translateY(calc(var(--p) * 40px));
}
.hero__floor {
  position: absolute; inset-inline: -40%; bottom: -12%; height: 70%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(243, 244, 242, 0.22) 1px, transparent 1.4px);
  background-size: 34px 34px;
  transform-origin: 50% 100%;
  transform: perspective(700px) rotateX(64deg) translateY(calc(var(--p) * 120px));
  -webkit-mask: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 40%, transparent 90%);
  mask: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 40%, transparent 90%);
}
.hero__copy {
  position: relative; z-index: 3; text-align: center; padding-inline: var(--gutter); padding-top: var(--hdr-h);
  max-width: 1080px;
  transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * 0.07));
  opacity: calc(1 - var(--p) * 1.05);
}
.hero__title { font-size: clamp(46px, 8.2vw, 116px); line-height: 0.98; letter-spacing: -0.05em; }
[lang="ar"] .hero__title { font-size: clamp(42px, 7vw, 96px); line-height: 1.2; }
.hero__sub { margin: 26px auto 0; max-width: 40ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-soft); opacity: calc(1 - var(--p) * 1.5); }
.hero__ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 16px 8px 12px; padding-inline: 12px 16px; border-radius: 999px;
  font-size: 14px; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--glow) / 0.18); animation: dot 2.4s infinite; }
html.js .hero__eyebrow, html.js .hero__title, html.js .hero__sub, html.js .hero__ctas { animation: rise 1.1s var(--ease) both; }
html.js .hero__title { animation-delay: 0.06s; }
html.js .hero__sub { animation-delay: 0.12s; }
html.js .hero__ctas { animation-delay: 0.22s; }
@keyframes dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* ==========================================================================
   Problem: words light under the hand
   ========================================================================== */
.problem .stage { display: grid; align-items: center; }
.problem__text {
  font-size: clamp(28px, 4.2vw, 58px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 600; max-width: 22ch;
  max-width: 1080px;
}
[lang="ar"] .problem__text { letter-spacing: 0; line-height: 1.55; font-size: clamp(26px, 3.6vw, 50px); }
.problem__text .w { opacity: var(--o, 1); transition: opacity 0.12s linear; }
html.js.motion .problem__text .w { --o: 0.16; }
.problem__end {
  margin-top: clamp(28px, 4vw, 48px); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent);
}
[lang="ar"] .problem__end { letter-spacing: 0; }
html.js.motion .problem__end { opacity: clamp(0, calc((var(--p) - 0.78) * 7), 1); translate: 0 calc((1 - clamp(0, calc((var(--p) - 0.78) * 7), 1)) * 14px); }

/* ==========================================================================
   Turn: a light disc opens out of the dark
   ========================================================================== */
.turn { background: #0A0B0C; position: relative; }
.turn__disc {
  --r: 150%;
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: var(--canvas);
  clip-path: circle(var(--r) at 50% 50%);
}
.turn__in { max-width: 980px; }
.turn__in .lead { margin: 28px auto 0; max-width: 54ch; }
html.js.motion .turn__in { opacity: clamp(0, calc((var(--tp, 1) - 0.45) * 3), 1); translate: 0 calc((1 - clamp(0, calc((var(--tp, 1) - 0.45) * 3), 1)) * 24px); }

/* ==========================================================================
   Savings calculator (the peak)
   ========================================================================== */
.calc__head { max-width: 760px; }
.calc__head .lead { margin-top: 18px; }
.calc__box { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 20px; align-items: stretch; }
.calc__inputs { padding: clamp(26px, 3.2vw, 44px); display: grid; gap: clamp(26px, 3.4vw, 40px); align-content: center; }
.slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.slider__top label { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.slider output { flex: none; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent); }
.cur { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cur__label { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.cur__opts { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.cur__opt { position: relative; }
.cur__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cur__opt span { display: block; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.cur__opt input:checked + span { background: var(--surface); color: var(--accent); box-shadow: var(--e1), 0 0 0 1px var(--line); }
.cur__opt input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent); }
html:not(.js) .cur { display: none; }
.slider input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--surface-2) var(--fill));
  box-shadow: inset 0 0 0 1px var(--line);
}
[dir="rtl"] .slider input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--accent) var(--fill), var(--surface-2) var(--fill)); }
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-2); }
.slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px rgb(var(--shadow) / 0.18), 0 0 0 0 rgb(var(--glow) / 0.2);
  transition: box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.slider input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px rgb(var(--shadow) / 0.18); }
.slider input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgb(var(--glow) / 0.6), 0 4px 12px rgb(var(--shadow) / 0.2), 0 0 0 7px rgb(var(--glow) / 0.14); }
.slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.slider input[type="range"]:focus-visible { outline: none; }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px rgb(var(--glow) / 0.2); }
.slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px rgb(var(--glow) / 0.2); }

.calc__out {
  --canvas: #0A0B0C; --surface: #131416; --surface-2: #1B1D1F; --ink: #F3F4F2; --ink-soft: #A3A8A5; --ink-faint: #7C817E;
  --line: rgba(243, 244, 242, 0.09); --line-strong: rgba(243, 244, 242, 0.18); --accent: #3DDBA0; --accent-ink: #07130E; --glow: 61 219 160;
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 3.2vw, 44px); border-radius: var(--r-lg); background: var(--canvas); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--e3);
  display: grid; gap: clamp(24px, 3vw, 34px); align-content: start;
}
.calc__out::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgb(61 219 160 / 0.14), transparent 70%);
}
[dir="rtl"] .calc__out::before { background: radial-gradient(60% 50% at 15% 0%, rgb(61 219 160 / 0.14), transparent 70%); }
.calc__label { font-size: 14px; color: var(--ink-soft); }
.calc__big { margin-top: 6px; font-size: clamp(52px, 6.4vw, 92px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--accent); }
.calc__big bdi { display: inline-block; }
.calc__sub { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.calc__sub [data-o="month"] { color: var(--ink); font-weight: 500; }
.calc__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.calc__stats div { background: var(--canvas); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.calc__stats dt { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.calc__stats dd { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
[dir="rtl"] .calc__stats dd { text-align: right; }
.team__scale { color: var(--ink-faint); }
.team__bars { margin-top: 14px; height: 84px; display: flex; align-items: flex-end; gap: 4px; }
.bar { position: relative; flex: 1 1 0; max-width: 22px; height: 100%; border-radius: 5px; overflow: hidden; background: rgba(243, 244, 242, 0.06); animation: bar-in 0.5s var(--ease) both; }
.bar i { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform 0.45s var(--ease); }
.bar__m { background: rgba(243, 244, 242, 0.22); transform: scaleY(var(--m)); }
.bar__b { background: var(--accent); transform: scaleY(var(--b)); }
@keyframes bar-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.team__legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-soft); }
.team__legend span { display: inline-flex; align-items: center; gap: 8px; }
.team__legend i { width: 10px; height: 10px; border-radius: 3px; }
.k-b { background: var(--accent); }
.k-m { background: rgba(243, 244, 242, 0.22); }
.k-o { background: rgba(243, 244, 242, 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.calc__cta { display: grid; gap: 14px; justify-items: start; padding-top: 6px; border-top: 1px solid var(--line); padding-top: clamp(22px, 2.6vw, 30px); }
.calc__note { font-size: 13px; color: var(--ink-faint); max-width: 56ch; }
.form__est { margin-top: 22px; padding: 14px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; background: rgb(var(--glow) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.22); }
@media (max-width: 960px) {
  .calc__box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc__stats { grid-template-columns: 1fr; }
  .calc__stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 18px; }
  .calc__stats dd { font-size: 24px; }
  .team__bars { height: 64px; gap: 3px; }
  .calc__cta .btn { width: 100%; }
}

/* ==========================================================================
   Services rail
   ========================================================================== */
.svc { --p: 0; }
.svc .stage { display: flex; align-items: center; }
.svc { --lead-w: min(420px, 80vw); }
.svc__rail { display: flex; gap: 20px; padding-inline: calc(var(--gutter) + var(--lead-w) + 44px) var(--gutter); align-items: stretch; will-change: transform; }
.svc__lead { position: absolute; inset-inline-start: var(--gutter); top: 50%; translate: 0 -50%; width: var(--lead-w); z-index: 1; display: flex; flex-direction: column; justify-content: center; will-change: transform; }
.svc__lead .lead { margin-top: 20px; }
.svc__lead .lnk { margin-top: 24px; }
.svc-card {
  flex: 0 0 340px; min-height: 420px; padding: 30px; display: flex; flex-direction: column;
}
.svc-card h3 { margin-top: 34px; font-size: 23px; line-height: 1.22; letter-spacing: -0.022em; }
[lang="ar"] .svc-card h3 { letter-spacing: 0; line-height: 1.5; font-size: 21px; }
.svc-card p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.svc-card .lnk { margin-top: auto; padding-top: 26px; font-size: 15px; }
.svc-card .lnk::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.svc-card--end { background: var(--ink); color: var(--canvas); justify-content: center; gap: 16px; box-shadow: var(--e2); }
.svc-card--end h3 { margin-top: 0; }
.svc-card--end p { color: color-mix(in srgb, var(--canvas) 72%, transparent); margin-top: 0; }
.svc-card--end .btn { margin-top: 12px; align-self: flex-start; --accent: #3DDBA0; --accent-ink: #07130E; --glow: 61 219 160; }
html.js.motion .svc-card:not(.svc-card--end) { opacity: clamp(0.35, calc(1 - var(--d, 0) * 1.2), 1); }

/* native horizontal scroller when not pinned */
html:not(.motion) .svc .stage, .svc.is-native .stage { height: auto; padding-block: var(--section); overflow: visible; display: block; }
html:not(.motion) .svc__rail, .svc.is-native .svc__rail {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 24px; padding-top: 8px; transform: none !important;
  scrollbar-width: thin;
}
html:not(.motion) .svc__rail > *, .svc.is-native .svc__rail > * { scroll-snap-align: start; }
html:not(.motion) .svc__rail, .svc.is-native .svc__rail { padding-inline: var(--gutter); margin-top: 36px; }
html:not(.motion) .svc__lead, .svc.is-native .svc__lead { position: static; translate: none; transform: none !important; width: auto; max-width: 640px; margin-inline: var(--gutter); }
@media (max-width: 760px) {
  .svc-card { flex-basis: 82vw; min-height: 380px; padding: 26px; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process__head { display: grid; gap: 20px; max-width: 760px; }
.steps { position: relative; margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__line { position: absolute; top: 27px; inset-inline: 28px calc(25% - 28px + 28px); height: 1px; background: var(--line-strong); }
.steps__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--lp, 1)); }
[dir="rtl"] .steps__line span { transform-origin: 100% 50%; }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; font-weight: 600; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step.is-lit .step__num { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px rgb(var(--glow) / 0.12), 0 10px 30px -10px rgb(var(--glow) / 0.8); }
.step h3 { margin-top: 28px; font-size: 21px; letter-spacing: -0.015em; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; max-width: 30ch; }
.process__note { margin-top: clamp(48px, 6vw, 72px); display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px; font-size: 15px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.process__note .ico { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__line { top: 28px; bottom: 28px; inset-inline-start: 27.5px; inset-inline-end: auto; width: 1px; height: auto; }
  .steps__line span { transform-origin: 50% 0; transform: scaleY(var(--lp, 1)); }
  [dir="rtl"] .steps__line span { transform-origin: 50% 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step h3 { margin-top: 12px; }
  .step p { grid-column: 2; }
}

/* ==========================================================================
   Why: bento
   ========================================================================== */
.bento { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; perspective: 1400px; }
.tile { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; min-height: 260px; overflow: hidden; }
.tile h3 { margin-top: auto; padding-top: 40px; font-size: 24px; letter-spacing: -0.022em; }
[lang="ar"] .tile h3 { letter-spacing: 0; }
.tile p { margin-top: 10px; color: var(--ink-soft); max-width: 46ch; }
.tile--a { grid-column: span 4; min-height: 340px; }
.tile--b { grid-column: span 2; min-height: 340px; }
.tile--c, .tile--d, .tile--e { grid-column: span 2; }
.tile--a h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.032em; }
.tile__art { position: absolute; inset-inline-end: -60px; top: -60px; width: 340px; height: 340px; pointer-events: none; color: var(--accent); opacity: 0.9; }
[dir="rtl"] .tile__art { transform: scaleX(-1); }
.tile__art circle { fill: none; stroke: currentColor; }
.tile__art circle:last-child { fill: currentColor; }
.tile--d { background: #0A0B0C; color: #F3F4F2; box-shadow: var(--e2); --ink-soft: #A3A8A5; --glow: 61 219 160; --accent: #3DDBA0; }
.tile--d .ico-badge { color: #3DDBA0; background: rgb(61 219 160 / 0.1); box-shadow: inset 0 0 0 1px rgb(61 219 160 / 0.22); }
.approve-chip { position: absolute; inset-inline-end: 22px; top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; padding-inline: 8px 12px; border-radius: 999px; font-size: 12.5px; background: rgb(61 219 160 / 0.12); color: #3DDBA0; box-shadow: inset 0 0 0 1px rgb(61 219 160 / 0.25); }
.approve-chip .ico { width: 14px; height: 14px; stroke-width: 2.4; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--a { grid-column: span 2; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 1; }
  .tile--e { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 1; min-height: 0; }
  .tile h3 { padding-top: 28px; }
}

/* ==========================================================================
   Industries rows
   ========================================================================== */
.inds { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.ind {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.6fr) 40px; gap: 24px; align-items: center;
  padding: 28px 20px; margin-inline: -20px; border-radius: 20px;
  transition: background-color 0.3s var(--ease);
}
.ind::after { content: ""; position: absolute; inset-inline: 20px; bottom: 0; height: 1px; background: var(--line); }
.ind h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.25; }
[lang="ar"] .ind h3 { letter-spacing: 0; line-height: 1.5; }
.ind p { color: var(--ink-soft); font-size: 15.5px; }
.ind .chips { margin-top: 10px; }
.ind .chip { background: var(--surface); }
.ind__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease); }
.ind__go .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .ind:hover { background: var(--surface); }
  .ind:hover .ind__go { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px rgb(var(--glow) / 0.8); transform: translateX(4px); }
  [dir="rtl"] .ind:hover .ind__go { transform: translateX(-4px); }
}
@media (max-width: 820px) {
  .ind { grid-template-columns: 48px 1fr 32px; gap: 14px 16px; padding: 22px 16px; margin-inline: -16px; }
  .ind > div:nth-of-type(2) { grid-column: 2 / -1; }
  .ind .ico-badge { width: 44px; height: 44px; }
  .ind__go { width: 32px; height: 32px; grid-row: 1; grid-column: 3; }
}

/* ==========================================================================
   Proof
   ========================================================================== */
.quotes { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; perspective: 1400px; }
.quote { padding: 32px; min-height: 300px; display: flex; flex-direction: column; }
.quote__mark { width: 36px; height: 36px; color: var(--accent); }
.quote blockquote { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.quote:first-child blockquote { font-size: 21px; }
.quote figcaption { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-faint); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote { min-height: 0; } }

.tools { margin-top: clamp(64px, 8vw, 112px); }
.tools h3, .tools h2 { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-align: center; letter-spacing: 0; }
.tools--solo { margin-top: 0; }
.marquee { margin-top: 26px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.tool { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding-inline: 18px; border-radius: 999px; font-size: 15px; white-space: nowrap; background: var(--surface); box-shadow: var(--edge), 0 0 0 1px var(--line); }
.tool .ico { width: 18px; height: 18px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + 6px)); } }

/* ==========================================================================
   FAQ (details)
   ========================================================================== */
.faq-list { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.012em;
  transition: color 0.2s;
}
[lang="ar"] .faq-list summary { letter-spacing: 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary .pm { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s; }
.faq-list summary .pm .ico { width: 16px; height: 16px; }
.faq-list details[open] summary .pm { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.faq-list .ans { padding: 0 0 26px; max-width: 68ch; color: var(--ink-soft); }
.faq-list details[open] .ans { animation: ans 0.45s var(--ease); }
@keyframes ans { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.faq-more { margin-top: 32px; }

/* ==========================================================================
   Close + CTA bands
   ========================================================================== */
.close { position: relative; overflow: hidden; }
.close__stage { position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; padding-block: var(--section); }
.close__copy { position: relative; z-index: 3; text-align: center; max-width: 920px; padding-inline: var(--gutter); }
.close__copy .lead { margin: 24px auto 0; }
.close__ctas { margin-top: 40px; display: grid; justify-items: center; gap: 18px; }
.close__or { font-size: 15px; color: var(--ink-soft); }
.close__or a { color: var(--ink); }

/* ==========================================================================
   Sub-page hero
   ========================================================================== */
.phero { position: relative; overflow: hidden; }
.phero__stage { position: relative; min-height: min(72vh, 680px); display: flex; align-items: flex-end; padding-top: calc(var(--hdr-h) + 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.phero__copy { position: relative; z-index: 3; }
.phero__copy .lead { margin-top: 22px; }
.phero .hero__haze { background: radial-gradient(50% 60% at 78% 50%, rgb(61 219 160 / 0.1), transparent 70%); }
[dir="rtl"] .phero .hero__haze { background: radial-gradient(50% 60% at 22% 50%, rgb(61 219 160 / 0.1), transparent 70%); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-faint); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }

/* ==========================================================================
   Services page
   ========================================================================== */
.svcpage { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr-h) + 32px); }
.toc p { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-bottom: 12px; }
.toc a { display: block; padding: 8px 14px; margin-inline-start: -14px; border-radius: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; transition: color 0.2s, background-color 0.2s; position: relative; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.toc a.is-active::before { content: ""; position: absolute; inset-inline-start: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--accent); }
.svcd { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.svcd:first-child { padding-top: 0; }
.svcd__head { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.svcd__head > div { flex: 1 1 320px; }
.svcd__head .lead { margin-top: 14px; }
.svcd__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svcd__box { padding: 24px; }
.svcd__box h4 { font-size: 14px; font-weight: 600; color: var(--ink-faint); margin: 0 0 14px; }
.svcd__box p { font-size: 15.5px; color: var(--ink); }
.ticks { display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.ticks .ico { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); stroke-width: 2.2; }
.dots li { position: relative; padding-inline-start: 16px; font-size: 15px; line-height: 1.5; }
.dots li + li { margin-top: 10px; }
.dots li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.svcd__cta { margin-top: 28px; }
.care { margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; scroll-margin-top: calc(var(--hdr-h) + 24px); }
@media (max-width: 1000px) {
  .svcpage { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .svcd__grid { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Industries page
   ========================================================================== */
.indd { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.indd:last-child { border: 0; }
.indd__head .ico-badge { margin-bottom: 24px; }
.indd__head .lead { margin-top: 14px; }
.indd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; perspective: 1200px; }
.ex { padding: 24px; min-height: 160px; }
.ex h3 { font-size: 18px; letter-spacing: -0.01em; }
.ex p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.ex .ico { color: var(--accent); width: 20px; height: 20px; margin-bottom: 18px; stroke-width: 2; }
@media (max-width: 900px) { .indd { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .indd__grid { grid-template-columns: 1fr; } .ex { min-height: 0; } }

/* ==========================================================================
   About
   ========================================================================== */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(80% 60% at 50% 30%, #1E2123, #0A0B0C); color: #A3A8A5;
  display: grid; place-items: center; box-shadow: var(--e3);
}
.photo img.mark-ph { width: 30%; opacity: 0.9; }
.photo span { position: absolute; bottom: 20px; inset-inline: 0; text-align: center; font-size: 13px; }
.founder__name { margin-top: 28px; font-size: 18px; font-weight: 600; }
.founder__role { color: var(--ink-soft); font-size: 15px; }
.founder__story { display: grid; gap: 18px; margin-top: 24px; font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.mission { text-align: center; }
.mission p.statement { margin: 0 auto; max-width: 22ch; font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; line-height: 1.1; letter-spacing: -0.038em; }
[lang="ar"] .mission p.statement { letter-spacing: 0; line-height: 1.45; max-width: 26ch; }
.values { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1400px; }
.value { padding: 32px; }
.value h3 { margin-top: 28px; font-size: 21px; letter-spacing: -0.015em; }
.value p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .photo { max-width: 420px; } .values { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { padding: clamp(24px, 4vw, 44px); }
.form h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 26px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--ink-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 0;
  background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 16px; transition: box-shadow 0.2s var(--ease), background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235A5E62' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 16px center; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgb(var(--glow) / 0.14); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { box-shadow: inset 0 0 0 1.5px #C2412D; }
.field__err { font-size: 13px; color: #B23A28; min-height: 0; }
.form__foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.form__privacy { font-size: 13.5px; color: var(--ink-soft); max-width: 40ch; }
.form__privacy a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { margin-top: 20px; padding: 14px 18px; border-radius: 14px; font-size: 15px; display: none; }
.form__status.is-ok { display: block; background: rgb(var(--glow) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.25); }
.form__status.is-err { display: block; background: rgb(194 65 45 / 0.08); box-shadow: inset 0 0 0 1px rgb(194 65 45 / 0.25); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side { display: grid; gap: 16px; }
.side__item { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.side__item h3 { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.side__item p, .side__item a.v { font-size: 17px; font-weight: 500; margin-top: 2px; display: inline-block; }
.side__item a.v:hover { color: var(--accent); }
.side__item .btn { margin-top: 14px; }
.ph { color: var(--ink-faint); font-weight: 400 !important; font-size: 15px !important; }
.booking-frame { width: 100%; height: 640px; border: 0; border-radius: var(--r); background: var(--surface); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ==========================================================================
   Legal
   ========================================================================== */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; background: rgb(224 165 38 / 0.1); box-shadow: inset 0 0 0 1px rgb(224 165 38 / 0.35); font-size: 15px; margin-bottom: 48px; }
.notice .ico { color: #A86F00; margin-top: 2px; }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; margin-top: 44px; }
.legal p { margin-top: 12px; color: var(--ink-soft); }
.legal .meta { font-size: 14px; color: var(--ink-faint); margin-bottom: 24px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .dots { margin-top: 14px; color: var(--ink-soft); }
.legal .dots li { font-size: inherit; }
.legal__table { margin-top: 18px; overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal tr:last-child > * { border-bottom: 0; }
.legal thead th { font-size: 13px; font-weight: 600; color: var(--ink-faint); background: var(--surface); }
.legal tbody th { font-weight: 500; color: var(--ink); width: 45%; }
.legal td { color: var(--ink-soft); }

/* ==========================================================================
   Clevrops Local (Bundle 1 landing page)
   ========================================================================== */
.lp [id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }
.lp-hero .phero__stage { min-height: min(88vh, 820px); }
.lp-hero__title { max-width: 18ch; margin-top: 22px; }
[lang="ar"] .lp-hero__title { max-width: 16ch; }
.lp-ctas { justify-content: flex-start; }
.lp-note { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.lp-h { max-width: 22ch; }
.lp-grid3 { margin-top: clamp(36px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.lp-two { margin-top: clamp(36px, 4.5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-box { padding: clamp(24px, 3vw, 36px); }
.lp-box .ticks { font-size: 16.5px; gap: 14px; }
.lp-box__h { font-size: 14px; font-weight: 600; color: var(--ink-faint); margin-bottom: 18px; letter-spacing: 0; }
.lp-box strong { font-weight: 600; }
.lp-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-clinics__h { margin-top: 24px; }
.lp-split .lead { margin-top: 18px; }
.lp-plans { margin-top: clamp(36px, 4.5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1400px; }
.lp-plan { padding: clamp(26px, 3.2vw, 40px); display: flex; flex-direction: column; }
.lp-plan__ex { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.lp-plan__rows { margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
.lp-plan__rows > div { padding-top: 18px; border-top: 1px solid var(--line); }
.lp-plan__rows dt { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.lp-plan__rows dd { margin-top: 4px; }
.lp-plan__price { font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
[lang="ar"] .lp-plan__price { letter-spacing: 0; }
.lp-plan__unit { font-size: 15px; color: var(--ink-soft); }
.lp-offer { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px; border-radius: var(--r); font-size: 16px; line-height: 1.55; background: rgb(var(--glow) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.3); }
.lp-offer .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.lp-offer strong { color: var(--accent); }
@media (max-width: 900px) {
  .lp-grid3, .lp-two, .lp-plans, .lp-split { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lp-hero .phero__stage { min-height: 0; }
  .lp-ctas { margin-inline: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { padding-top: clamp(64px, 8vw, 104px); padding-bottom: 36px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.foot__brand img { height: 28px; width: auto; }
.foot__brand p { margin-top: 18px; color: var(--ink-soft); font-size: 15px; max-width: 30ch; }
.foot h2 { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-bottom: 16px; letter-spacing: 0; }
.foot li + li { margin-top: 10px; }
.foot a { font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s; }
.foot a:hover { color: var(--ink); }
.foot .loc { font-size: 14px; color: var(--ink-soft); margin-top: 12px; line-height: 1.55; }
.socials { display: flex; gap: 8px; }
.social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); transition: color 0.2s, box-shadow 0.25s, background-color 0.2s, transform 0.2s var(--ease); }
.social .ico { width: 17px; height: 17px; }
a.social:hover { color: var(--accent-ink); background: var(--accent); box-shadow: 0 8px 20px -8px rgb(var(--glow) / 0.8); transform: translateY(-2px); }
span.social { opacity: 0.45; cursor: default; }
.foot__bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-faint); }
.foot__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__bottom a { font-size: 13.5px; }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* ==========================================================================
   404
   ========================================================================== */
.nf .phero__stage { min-height: 100vh; min-height: 100svh; align-items: center; }

/* ==========================================================================
   Phones: designed, not shrunk
   ========================================================================== */
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .hero__title { font-size: clamp(40px, 11.6vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
  [lang="ar"] .hero__title { font-size: clamp(36px, 10.4vw, 52px); line-height: 1.28; }
  .hero__sub { font-size: 17px; margin-top: 20px; max-width: 32ch; }
  .hero__eyebrow { font-size: 12px; gap: 8px; padding-inline: 10px 12px; margin-bottom: 22px; white-space: nowrap; }
  .hero__title { font-size: clamp(44px, 13vw, 64px); }
  .hero__ctas { flex-direction: column; align-items: stretch; width: min(100%, 360px); margin-inline: auto; }
  .hero__ctas .btn { width: 100%; }
  .h2 { font-size: clamp(30px, 8.6vw, 40px); }
  [lang="ar"] .h2 { font-size: clamp(28px, 7.8vw, 36px); }
  .problem__text { font-size: clamp(25px, 7vw, 32px); line-height: 1.22; }
  [lang="ar"] .problem__text { font-size: clamp(23px, 6.4vw, 30px); line-height: 1.6; }
  .close__ctas .btn { width: 100%; max-width: 360px; }
  .phero__stage { min-height: 0; padding-top: calc(var(--hdr-h) + 64px); }
}

/* ==========================================================================
   Reduced motion: fewer and gentler, not zero
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js [data-in] { translate: 0 0; transition: opacity 0.4s linear; }
  html.js .hero__eyebrow, html.js .hero__title, html.js .hero__sub, html.js .hero__ctas, .hero__eyebrow span { animation: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .btn, .lnk .ico, .ind__go { transition-duration: 0.01s; }
  .bar, .bar i { animation: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
