/* Madar home: the scroll journey (EN + AR/RTL). Tokens follow design-systems/madar/DESIGN.md.
   Logical properties throughout; the [dir=rtl] block at the end tunes Arabic type. */
@font-face { font-family: 'Cairo'; src: url('/assets/fonts/Cairo-ExtraBold-v1.woff2') format('woff2'), url('/assets/fonts/Cairo-ExtraBold.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'PlexAr'; src: url('/assets/fonts/PlexAr-400-v1.woff2') format('woff2'), url('/assets/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PlexAr'; src: url('/assets/fonts/PlexAr-600-v1.woff2') format('woff2'), url('/assets/fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-latin-v1.woff2') format('woff2'), url('/assets/fonts/Inter.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --space-base: #0A0F1E;
  --surface: #121A30;
  --surface-raised: #1B2645;
  --hairline: #273255;
  --accent: #2563EB;
  --accent-light: #7FA6FF;
  --violet: #6D3AED;
  --violet-light: #B79BFF;
  --text: #EAF0FA;
  --muted: #93A1B8;
  --glow: linear-gradient(135deg, #2563EB 0%, #6D3AED 50%, #A855F7 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 88px;
  --logo-h: 60px;
  --dir: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--space-base); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--space-base);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
h1, h2, h3 { font-family: 'Cairo', 'Inter', sans-serif; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Background canvas ---------- */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: var(--space-base); }
.no-gl #field { display: none; }
#field { transition: opacity .5s ease; }
.js #field:not(.on) { opacity: 0; }   /* field.js adds .on with its first frame (speed fix, 5 Oct 2026) */
@media (max-width: 900px) { html[data-ch]:not([data-ch="hero"]) #field { opacity: .42; } }
.no-gl body {
  background:
    radial-gradient(60vmax 60vmax at 72% 40%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(40vmax 40vmax at 78% 46%, rgba(109, 58, 237, .16), transparent 60%),
    var(--space-base);
  background-attachment: fixed;
}
main, .nav, .rail { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2;
  min-height: 48px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
/* Glass outline (D): translucent fill + blur + thin luminous edge, so the field animation shows through.
   The dark tint under the white label keeps text >= 4.5:1 over the brightest part of the field. */
.btn-primary, .btn-ghost {
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  color: #fff; border-color: rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 8px 28px -14px rgba(109, 58, 237, .55);
}
.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)), rgba(10, 15, 30, .56);
  font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(180deg, rgba(183, 155, 255, .30), rgba(109, 58, 237, .14)), rgba(10, 15, 30, .52);
  border-color: rgba(183, 155, 255, .85);
  transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 36px -10px rgba(109, 58, 237, .65);
}
.btn-ghost { background: rgba(10, 15, 30, .42); border-color: rgba(255, 255, 255, .22); font-weight: 600; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(10, 15, 30, .54); border-color: var(--accent-light); color: #fff; }
.btn-primary:active, .btn-ghost:active { transform: translateY(0); }
@media (prefers-reduced-transparency: reduce) {
  .btn-primary, .btn-ghost { -webkit-backdrop-filter: none; backdrop-filter: none; background: #121A30; border-color: #7FA6FF; }
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn-lg { font-size: 17px; padding: 18px 34px; }

.tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-light); }
.glow-text { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10, 15, 30, .55); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav.scrolled { background: rgba(10, 15, 30, .88); border-bottom-color: var(--hairline); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter); min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: var(--logo-h); width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links .link { font-size: 14px; color: var(--muted); transition: color .25s var(--ease); }
.nav-links .link:hover { color: var(--text); }
.lang-switch { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 15px; color: var(--muted); }
.lang-switch:hover { color: var(--accent-light); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Journey rail ---------- */
.rail { position: fixed; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); z-index: 40; }
.rail ol { display: flex; flex-direction: column; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 32px; height: 26px; }
.rail a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3A4A78; transition: transform .3s var(--ease), background .3s var(--ease); }
.rail a[aria-current]::before { background: var(--accent-light); transform: scale(1.7); }
.rail a:hover::before { background: var(--accent-light); }
.rail span { position: absolute; inset-inline-end: 30px; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateX(calc(6px * var(--dir))); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.rail a[aria-current] span, .rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a[aria-current] span { color: var(--accent-light); }

/* ---------- Chapters (static layout is the default) ---------- */
.chapter { position: relative; }
.journey { padding: clamp(80px, 12vh, 140px) 0; }
.journey .stage > .wrap { display: block; }

h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.25; }

/* Chapter title cards: every chapter opens with its own name, huge. Static layout = a big stacked title above the content;
   in the motion layout (below) the card owns the pinned stage first, then hands over to the chapter's beats. */
.journey { --ct: .7; }
.ct { position: relative; pointer-events: none; margin-bottom: clamp(28px, 5vh, 56px); }
.ct-in { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.ct-n { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--accent-light); }
.ct-n::after { content: ''; width: 56px; height: 2px; border-radius: 2px; background: var(--glow); }
.ct-w { display: block; margin-top: 16px; font-family: 'Cairo', 'Inter', sans-serif; font-weight: 800; font-size: clamp(44px, 8.4vw, 112px); letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.ct-pin.journey { padding: calc(var(--nav-h) + 16px) 0 0; }
.ct-pin .ct { margin-bottom: 0; }

/* Hero */
.chapter-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 96px; }
.hero-inner > * { max-width: 640px; }
.hero-inner h1 { font-size: clamp(40px, 5.8vw, 80px); letter-spacing: -.035em; }
.hero-inner .lede { margin-top: 28px; font-size: 18px; color: var(--muted); max-width: 54ch; }
.stance { margin-top: 20px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.facts { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; color: var(--muted); }
.facts li { position: relative; padding-inline-start: 14px; }
.facts li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Problem */
.beats { position: relative; }
.beat { padding: 28px 0; }
.beat h2 { font-size: clamp(40px, 7.4vw, 104px); letter-spacing: -.04em; line-height: 1; }
.beat p { margin-top: 22px; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 34ch; }

/* Turn */
.turn-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 64px; row-gap: 28px; align-items: start; }
.turn-grid h2 { font-size: clamp(30px, 4.6vw, 60px); grid-column: 1; }
.turn-lede { grid-column: 1; font-size: 18px; color: var(--muted); max-width: 52ch; }
.caps { grid-column: 1 / -1; margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.caps li { border-top: 1px solid var(--hairline); padding-top: 20px; }
.caps p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Method */
.method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 72px; align-items: center; }
.method-grid h2 { font-size: clamp(30px, 4.2vw, 56px); }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps .n { grid-row: span 2; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent-light); }
.steps p { color: var(--muted); font-size: 16px; max-width: 46ch; margin-top: 6px; }

/* Products */
.products-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 64px; align-items: center; }
.prod-head p { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 44ch; }
.prod-index { display: none; }
.prod-panels { display: grid; gap: 20px; }
.prod { background: rgba(18, 26, 48, .88); border: 1px solid var(--hairline); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.prod h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.prod p:not(.tag):not(.soon) { color: var(--muted); font-size: 16px; max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text); }
.chips li { position: relative; padding-inline-start: 12px; }
.chips li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-light); }
.prod .btn { margin-top: 6px; }
.soon { font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 14px; width: 100%; margin-top: 6px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 72px; align-items: center; }
.trust-copy p { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.grounds { margin-top: 28px; }
.grounds li { border-top: 1px solid var(--hairline); padding: 14px 0; font-size: 15px; max-width: 56ch; }
.grounds li:last-child { border-bottom: 1px solid var(--hairline); }
.founders { display: grid; gap: 20px; margin-top: 28px; }
.founders li { display: flex; gap: 20px; align-items: flex-start; background: rgba(18, 26, 48, .88); border: 1px solid var(--hairline); border-radius: 16px; padding: 26px 26px; }
.founders h3 { font-size: 22px; }
.founders .tag { margin-top: 4px; }
.founders p:not(.tag) { margin-top: 10px; font-size: 15px; color: var(--muted); }
.mono { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 17px; color: var(--accent-light); }

/* Contact chapter: the real lead form (same fields and endpoint as the previous home) + footer */
.chapter-cta { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.contact-grid { flex: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 72px; align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 64px; }
.contact-intro h2 { font-size: clamp(34px, 4.8vw, 62px); letter-spacing: -.035em; }
.contact-intro > p { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: 17px; }
.contact-intro .facts { flex-direction: column; gap: 10px; margin-top: 30px; }
.contact-card { background: rgba(18, 26, 48, .9); border: 1px solid var(--hairline); border-radius: 18px; padding: clamp(22px, 3vw, 36px); }
.lead-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.req { color: var(--violet-light); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(10, 15, 30, .72); border: 1px solid var(--hairline); border-radius: 10px; transition: border-color .25s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6F7E99; }
.field input:hover, .field textarea:hover { border-color: #3A4A78; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(127, 166, 255, .22); }
.field.invalid input, .field.invalid textarea { border-color: #F08A8A; }
.lead-form .chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--muted); font-size: 13px; line-height: 1.3; transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease); }
.chip:hover span { border-color: var(--accent-light); color: var(--text); }
.chip input:checked + span { border-color: var(--accent-light); background: rgba(37, 99, 235, .2); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.lead-submit { justify-self: start; }
.lead-submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hairline); }
.form-status.ok { border-color: #4FB58A; color: #B7F0D5; }
.form-status.err { border-color: #F08A8A; color: #FFC9C9; }
.form-status[hidden] { display: none; }
.footer { border-top: 1px solid var(--hairline); background: rgba(10, 15, 30, .82); }
.footer-inner { padding-block: 26px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover { color: var(--accent-light); }
.footer-legal { flex-basis: 100%; margin: 0; color: var(--muted); }
@media (max-width: 760px) { .footer-inner { padding-bottom: 92px; } } /* the last footer line scrolls clear of the floating Try-our-agent button */

/* ---------- Motion layout: sticky 100svh stages scrubbed by scroll ---------- */
.motion .journey:not(.flow) { padding: 0; height: calc((var(--k) + var(--ct)) * 100vh); height: calc((var(--k) + var(--ct)) * 100svh); }
.motion .journey:not(.flow) .stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 8px) 0 24px; overflow: hidden; }
.motion .journey:not(.flow) .stage > .wrap { width: 100%; }
.motion .journey:not(.flow) .ct { position: absolute; inset: 0; z-index: 3; margin: 0; display: flex; align-items: center; padding-top: calc(var(--nav-h) * .6); opacity: 0; visibility: hidden; will-change: transform, opacity; }
.motion .journey:not(.flow) .ct-w { font-size: clamp(48px, 11.5vw, 184px); }
.motion:not(.ready) .journey .stage { visibility: hidden; }
.motion .journey:not(.flow) .beats { min-height: 56svh; }
.motion .journey:not(.flow) .beat { position: absolute; inset-inline: var(--gutter); top: 0; bottom: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; }
.motion .journey:not(.flow) .prod-panels { grid-template: 1fr / 1fr; }
.motion .journey:not(.flow) .prod { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; }
.motion .journey:not(.flow) .prod-index { display: block; margin-top: 32px; }
.prod-index li { position: relative; padding-inline-start: 34px; font-size: 14px; color: var(--muted); line-height: 2; transition: color .3s var(--ease); }
.prod-index li::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 22px; height: 1px; background: var(--hairline); transition: background .3s var(--ease), width .3s var(--ease); }
.prod-index li.on { color: var(--text); }
.prod-index li.on::before { width: 26px; background: var(--accent-light); }
.motion .journey:not(.flow) .words .w { opacity: .16; }
.motion .journey:not(.flow) .steps li { opacity: .28; }

.motion .hero-inner > * { animation: rise .8s var(--ease) both; }
.motion .hero-inner > *:nth-child(2) { animation-delay: .08s; }
.motion .hero-inner > *:nth-child(3) { animation-delay: .16s; }
.motion .hero-inner > *:nth-child(4) { animation-delay: .24s; }
.motion .hero-inner > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Fallback: a chapter whose content is taller than one small viewport drops the sticky stage and reads as normal flow (journey.js sets .flow) */
.journey.flow { padding: calc(var(--nav-h) + 16px) 0 clamp(48px, 8vh, 96px); }
.journey.flow .stage { position: static; height: auto; overflow: visible; padding: 0; }
@media (max-width: 900px) { .journey.flow { padding-bottom: 108px; } } /* clears the floating agent launcher */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .turn-grid, .method-grid, .products-grid, .trust-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .contact-grid { row-gap: 32px; padding-bottom: 40px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .caps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chapter-hero { align-items: flex-end; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 132px; }
  .hero-inner h1 { font-size: clamp(36px, 10.4vw, 52px); }
  .hero-inner .lede { font-size: 16px; margin-top: 20px; }
  .facts { margin-top: 24px; }
  .stance { font-size: 17px; }
  .method-grid, .products-grid, .trust-grid { row-gap: 20px; }
  .rail { inset-inline-end: 4px; }
  .rail a { width: 22px; height: 24px; }
  .rail span { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px var(--gutter) 24px; background: rgba(10, 15, 30, .97); border-bottom: 1px solid var(--hairline); }
  .nav.open .nav-links { display: flex; }
  .nav-links .link, .lang-switch { padding: 10px 0; font-size: 16px; }
  :root { --nav-h: 80px; --logo-h: 50px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .motion .journey:not(.flow) .stage { padding-top: calc(var(--nav-h) + 4px); padding-bottom: 20px; }
  .steps li { padding: 12px 0; grid-template-columns: 40px minmax(0, 1fr); }
  .steps .n { font-size: 30px; }
  .steps p { font-size: 14px; line-height: 1.5; }
  h3 { font-size: 18px; }
  .caps li { padding-top: 12px; }
  .caps p { font-size: 14px; line-height: 1.5; margin-top: 6px; }
  .turn-lede { font-size: 15px; line-height: 1.55; }
  .turn-grid { row-gap: 16px; }
  .turn-grid h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .prod { padding: 22px 20px; gap: 10px; }
  .prod p:not(.tag):not(.soon) { font-size: 14px; line-height: 1.55; }
  .chips { font-size: 12px; gap: 4px 14px; }
  .prod-head p { font-size: 14px; margin-top: 10px; line-height: 1.5; }
  .motion .journey:not(.flow) .prod-index { display: flex; gap: 6px; margin-top: 14px; }
  .motion .journey:not(.flow) .prod-index li { flex: 1; height: 3px; padding: 0; font-size: 0; line-height: 0; background: var(--hairline); border-radius: 2px; }
  .motion .journey:not(.flow) .prod-index li::before { display: none; }
  .motion .journey:not(.flow) .prod-index li.on { background: var(--accent-light); }
  .trust-copy p { margin-top: 12px; font-size: 14px; line-height: 1.55; }
  .grounds { margin-top: 14px; }
  .grounds li { padding: 9px 0; font-size: 13px; line-height: 1.45; }
  .founders { gap: 10px; margin-top: 14px; }
  .founders li { padding: 14px; gap: 14px; }
  .founders h3 { font-size: 17px; }
  .founders p:not(.tag) { font-size: 13px; line-height: 1.45; margin-top: 6px; }
  .mono { width: 40px; height: 40px; font-size: 14px; }
  .beat p { margin-top: 16px; }
  .contact-intro > p { font-size: 16px; margin-top: 16px; }
  .btn-lg { font-size: 16px; padding: 16px 26px; }
}
@media (max-height: 720px) and (max-width: 900px) {
  .journey:not(.flow) .prod-head > p, .journey:not(.flow) .turn-lede { display: none; }
}
/* ---------- Arabic / RTL: Latin tracking and uppercase are poison for Arabic joins ---------- */
[dir=rtl] { --dir: -1; }
[dir=rtl] body { font-family: 'PlexAr', 'Cairo', system-ui, sans-serif; line-height: 1.85; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { font-family: 'Cairo', 'PlexAr', sans-serif; letter-spacing: 0; line-height: 1.32; text-wrap: balance; }
[dir=rtl] .hero-inner h1 { font-size: clamp(36px, 5.2vw, 70px); line-height: 1.24; }
[dir=rtl] .ct-n { letter-spacing: 0; }
[dir=rtl] .ct-w { letter-spacing: 0; line-height: 1.22; }
[dir=rtl] .motion .journey:not(.flow) .ct-w { font-size: clamp(46px, 10.4vw, 168px); }
@media (max-width: 600px) { /* phones: the title card fills the width, wrapping onto 2-3 lines */
  .motion .journey:not(.flow) .ct-w { font-size: clamp(56px, 20vw, 96px); }
  [dir=rtl] .motion .journey:not(.flow) .ct-w { font-size: clamp(52px, 17vw, 88px); }
}
[dir=rtl] .beat h2 { font-size: clamp(38px, 6.6vw, 92px); letter-spacing: 0; line-height: 1.15; }
[dir=rtl] .turn-grid h2 { font-size: clamp(28px, 4.1vw, 52px); line-height: 1.34; }
[dir=rtl] .method-grid h2, [dir=rtl] .contact-intro h2 { letter-spacing: 0; }
[dir=rtl] .tag, [dir=rtl] .rail span, [dir=rtl] .stance, [dir=rtl] .steps .n, [dir=rtl] .mono, [dir=rtl] .contact-intro h2 { letter-spacing: 0; text-transform: none; }
[dir=rtl] .tag { font-family: 'PlexAr', sans-serif; font-size: 13px; }
[dir=rtl] .rail span { font-size: 12.5px; }
[dir=rtl] .btn, [dir=rtl] .nav-links .link, [dir=rtl] .field input, [dir=rtl] .field textarea { font-family: 'PlexAr', 'Cairo', sans-serif; }
[dir=rtl] .lang-switch { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; }
[dir=rtl] .steps .n { font-family: 'Cairo', sans-serif; }
[dir=rtl] .field input[type=email], [dir=rtl] .field input[type=tel] { direction: ltr; text-align: right; }
@media (max-width: 900px) {
  [dir=rtl] .hero-inner h1 { font-size: clamp(32px, 9.4vw, 46px); }
  [dir=rtl] .turn-grid h2 { font-size: clamp(24px, 6.8vw, 34px); }
  [dir=rtl] .steps p, [dir=rtl] .caps p, [dir=rtl] .prod p:not(.tag):not(.soon), [dir=rtl] .founders p:not(.tag), [dir=rtl] .grounds li { line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
