:root {
  --paper: #F3F0E8; --paper-2: #EAE5D9; --card: #FBFAF6;
  --ink: #1E1847; --ink-2: #4B4766; --muted: #85809A; --rule: rgba(30,24,71,.14);
  --green: #5FAE6A; --green-d: #3F8A4B; --green-l: #CFE8D1;
  --indigo: #282050; --night: #15112F; --on: #F3F0E8; --on-2: rgba(243,240,232,.66);
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif; --naskh: "Noto Naskh Arabic", serif; --lat: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; }
em { font-style: normal; font-family: var(--naskh); font-weight: 600; color: var(--green-d); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* lockup */
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.lockup .mk { width: 30px; height: 36px; flex: none; }
.wm { display: grid; line-height: 1.05; }
.wm b { font-family: var(--lat); font-weight: 600; font-size: 22px; letter-spacing: -.02em; direction: ltr; text-align: right; }
.wm small { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.lockup.light { color: var(--on); } .lockup.light small { color: var(--on-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.btn-ink { background: var(--ink); color: var(--on); }
.btn-ink:hover { background: var(--green-d); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: gap .4s var(--ease), color .3s; }
.link-arrow i { font-style: normal; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--green-d); border-color: var(--green-d); } .link-arrow:hover i { transform: translate(-3px, 3px); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 26px; }
.eyebrow .sq { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.eyebrow.light { color: var(--on-2); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.nav-in { display: flex; align-items: center; gap: 34px; height: 84px; }
.nav.solid { background: rgba(243,240,232,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.nav.hide { transform: translateY(-100%); }
.links { display: flex; gap: 30px; margin-inline-start: auto; font-size: 15.5px; color: var(--ink-2); }
.links a { position: relative; transition: color .3s; }
.links a::after { content: ""; position: absolute; inset: auto 0 -4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.links a:hover { color: var(--ink); } .links a:hover::after { transform: scaleX(1); }
.lang { font-family: var(--lat); font-size: 14.5px; color: var(--ink-2); }
.burger { display: none; width: 40px; height: 40px; }
.burger span { display: block; width: 22px; height: 1.6px; background: var(--ink); margin: 6px auto; transition: transform .4s var(--ease); }

/* hero */
.hero { min-height: 100vh; padding-top: 84px; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; padding-block: 50px 40px; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.2vw, 96px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-size: 1.04em; }
.lead { margin-top: 30px; font-size: 19px; color: var(--ink-2); max-width: 560px; font-weight: 400; }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.matrix { position: relative; aspect-ratio: 1; width: 100%; max-width: 500px; justify-self: center; }
#dots { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.mx-tabs { position: absolute; inset: auto 0 -10px; display: flex; justify-content: center; gap: 4px; }
.mx-tabs button { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .4s var(--ease), background .4s var(--ease); display: inline-flex; gap: 6px; align-items: baseline; }
.mx-tabs .n { font-family: var(--lat); font-size: 11px; }
.mx-tabs button[aria-selected=true] { color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.hero-foot { display: flex; gap: 30px; padding-block: 26px 34px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.hero-foot .scroll { margin-inline-start: auto; color: var(--muted); }

/* split heading reveal */
.split .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.split .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.split.in .ln > span { transform: none; }
.split.in .ln:nth-child(2) > span { transition-delay: .09s; } .split.in .ln:nth-child(3) > span { transition-delay: .18s; }
.fade { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade.in { opacity: 1; transform: none; }

/* intro */
.intro { padding: 150px 0 130px; }
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.intro-label { font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--ink); align-self: start; }
.intro-text { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.55; font-weight: 500; letter-spacing: -.01em; }
.reveal-words .w { opacity: .14; transition: opacity .5s linear; }
.reveal-words .w.on { opacity: 1; }

/* services */
.services { padding: 40px 0 140px; }
.sec-head { margin-bottom: 60px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.sec-head h2, .faq h2, .careers h2 { font-size: clamp(38px, 4.8vw, 72px); line-height: 1.15; font-weight: 700; }
.note { max-width: 340px; color: var(--ink-2); font-size: 15px; }
.svc-list { list-style: none; border-top: 1px solid var(--ink); }
.svc { position: relative; display: grid; grid-template-columns: 90px 1.4fr 1fr 120px; gap: 30px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--rule); cursor: default; }
.svc::before { content: ""; position: absolute; inset: 0 -40px; background: var(--card); opacity: 0; transition: opacity .6s var(--ease); z-index: -1; }
.svc:hover::before { opacity: 1; }
.idx { font-family: var(--lat); font-size: 15px; color: var(--muted); align-self: start; padding-top: 10px; }
.svc h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.3; transition: transform .7s var(--ease); }
.svc:hover h3 { transform: translateX(-10px); }
.svc-main p { margin-top: 8px; color: var(--ink-2); max-width: 520px; font-size: 16px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.svc-tags i { font-style: normal; font-size: 13.5px; padding: 6px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }
.svc-dots { width: 120px; height: 120px; justify-self: end; }

/* quote */
.quote { padding: 120px 0; background: var(--indigo); color: var(--on); }
.quote blockquote { font-family: var(--naskh); font-weight: 600; font-size: clamp(36px, 5.6vw, 88px); line-height: 1.5; text-align: center; }
.quote .w { opacity: .18; }
.quote .w.on { opacity: 1; }

/* scenarios */
.scenarios { padding: 140px 0 120px; }
.scen-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 18px; padding: 0 40px 10px; max-width: 1360px; margin: 0 auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scen-track::-webkit-scrollbar { display: none; }
.scen { position: relative; scroll-snap-align: start; min-height: 440px; border-radius: 6px; padding: 32px 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform .7s var(--ease); }
.scen:hover { transform: translateY(-6px); }
.scen .sn { font-family: var(--naskh); font-size: 34px; line-height: 1; }
.scen h4 { font-size: 26px; margin-top: auto; }
.scen p { margin-top: 8px; font-size: 15.5px; max-width: 300px; position: relative; z-index: 1; }
.scen-dots { position: absolute; top: 24px; left: 24px; width: 150px; height: 150px; }
.c1 { background: var(--indigo); color: var(--on); } .c1 p { color: var(--on-2); }
.c2 { background: var(--green); color: #0F2414; } .c2 p { color: rgba(15,36,20,.75); }
.c3 { background: var(--paper-2); } .c3 p { color: var(--ink-2); }
.c4 { background: var(--night); color: var(--on); } .c4 p { color: var(--on-2); }

/* process */
.process { background: var(--night); color: var(--on); padding: 140px 0; }
.proc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.proc-sticky { position: sticky; top: 130px; }
.big-num { font-family: var(--lat); font-weight: 500; font-size: clamp(120px, 15vw, 230px); line-height: .9; letter-spacing: -.05em; direction: ltr; text-align: right; display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; }
.big-num span { display: inline-block; transition: transform .7s var(--ease), opacity .4s; }
.big-num span.swap { transform: translateY(-14px); opacity: 0; }
.big-num small { font-size: .2em; color: var(--on-2); letter-spacing: 0; }
.proc-note { margin-top: 30px; color: var(--on-2); max-width: 380px; font-size: 15.5px; }
.proc-steps { list-style: none; }
.proc-steps li { padding: 70px 0; border-top: 1px solid rgba(243,240,232,.14); opacity: .3; transition: opacity .7s var(--ease); }
.proc-steps li.on { opacity: 1; }
.proc-steps li:last-child { border-bottom: 1px solid rgba(243,240,232,.14); }
.proc-steps h3 { font-size: clamp(30px, 3.4vw, 50px); }
.proc-steps p { margin-top: 12px; color: var(--on-2); font-size: 18px; max-width: 520px; }

/* principles */
.principles { padding: 140px 0; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.pr-grid > div { padding: 34px 30px 10px 0; border-inline-start: 1px solid var(--rule); padding-inline-start: 30px; }
.pr-grid > div:first-child { border: 0; padding-inline-start: 0; }
.pr-n { font-family: var(--naskh); font-size: 44px; color: var(--green-d); line-height: 1; }
.pr-grid h3 { font-size: 25px; margin: 24px 0 10px; }
.pr-grid p { color: var(--ink-2); }

/* careers */
.careers { background: var(--green); color: #0F2414; padding: 120px 0; }
.car-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.car-side p { font-size: 18px; margin-bottom: 28px; color: rgba(15,36,20,.8); }
.careers .btn-ink:hover { background: var(--night); }

/* faq */
.faq { padding: 140px 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-grid > * { min-width: 0; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; padding: 28px 0 28px 50px; font-size: 20px; font-weight: 500; position: relative; transition: color .3s; }
.faq-list summary:hover { color: var(--green-d); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; left: 8px; top: 50%; width: 16px; height: 1.6px; background: currentColor; transition: transform .5s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details > div { overflow: hidden; }
.faq-list details p { padding: 0 0 28px 50px; color: var(--ink-2); font-size: 16.5px; }

/* contact / footer */
.contact { background: var(--indigo); color: var(--on); padding: 130px 0 34px; }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--lat); font-weight: 500; font-size: clamp(48px, 9.5vw, 160px); line-height: 1; letter-spacing: -.04em; direction: ltr; border-bottom: 1px solid rgba(243,240,232,.25); padding-bottom: 30px; transition: color .5s var(--ease); }
.mail i { font-style: normal; font-size: .45em; transition: transform .6s var(--ease); }
.mail:hover { color: var(--green); } .mail:hover i { transform: translate(-10px, -10px); }
.c-note { margin-top: 30px; color: var(--on-2); max-width: 560px; font-size: 18px; }
.f-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 110px; flex-wrap: wrap; }
.f-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; color: var(--on-2); }
.f-links a:hover { color: var(--on); }
.f-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(243,240,232,.12); font-size: 13.5px; color: rgba(243,240,232,.45); }

@media (max-width: 1020px) {
  .hero-grid, .proc-grid, .faq-grid, .car-in { grid-template-columns: 1fr; gap: 50px; }
  .matrix { max-width: 420px; }
  .proc-sticky { position: static; } .big-num { justify-content: flex-start; }
  .svc { grid-template-columns: 60px 1fr 100px; } .svc-tags { display: none; }
  .svc-dots { width: 100px; height: 100px; }
  .pr-grid { grid-template-columns: 1fr; } .pr-grid > div { border: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); } .pr-grid > div:first-child { border-top: 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; } .intro-label { width: 160px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-in { height: 68px; gap: 14px; }
  .links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px 18px 18px; background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
  .nav.open .links { display: flex; } .nav.open { background: var(--paper); }
  .nav-in > .btn, .lang { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .nav.open .burger span:first-child { transform: translateY(3.8px) rotate(45deg); } .nav.open .burger span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .hero { padding-top: 68px; min-height: auto; }
  .hero-grid { padding-block: 40px 30px; gap: 30px; }
  .lead { font-size: 17px; }
  .ctas { gap: 22px; }
  .hero-foot { flex-wrap: wrap; gap: 6px 16px; } .hero-foot .scroll { display: none; }
  .intro { padding: 100px 0 80px; }
  .services, .scenarios, .principles, .faq { padding-block: 90px; }
  .svc { grid-template-columns: 1fr 72px; gap: 10px 16px; padding: 28px 0; } .idx { grid-column: 1 / -1; padding: 0; }
  .svc-dots { width: 72px; height: 72px; grid-row: 2; grid-column: 2; }
  .svc::before { inset: 0 -18px; }
  .scen-track { padding: 0 18px 10px; grid-auto-columns: 82%; }
  .scen { min-height: 380px; }
  .process { padding: 90px 0; } .proc-steps li { padding: 44px 0; opacity: 1; }
  .quote, .careers { padding: 90px 0; }
  .faq-list summary { font-size: 17.5px; padding-block: 22px; }
  .contact { padding-top: 90px; }
  .mail { font-size: clamp(40px, 13vw, 70px); }
  .f-row { margin-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .split .ln > span, .fade { transform: none; opacity: 1; }
  .reveal-words .w, .quote .w { opacity: 1; }
}
.hero > .wrap { width: 100%; }
