/* OverDose Studio, direction "Precision": near-white, ink, hairlines; plum is the one accent; the five colours only in the
   header line, the symbol and the service bars. IBM Plex Sans Arabic for everything, monospaced Latin labels.
   Motion (assets/motion.js) only adds states under html.motion; without it every element is simply visible. */
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-400-arabic.woff2) format("woff2"); font-weight: 400; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-500-arabic.woff2) format("woff2"); font-weight: 500; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-600-arabic.woff2) format("woff2"); font-weight: 600; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-700-arabic.woff2) format("woff2"); font-weight: 700; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { --bg: #FBFAFC; --ink: #121017; --muted: #5E5869; --faint: #9A94A6; --rule: #E7E4EC; --plum: #6A1C80; --plum-soft: #F1E8F5;
	--wide: 1240px; --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --ease: cubic-bezier(.2, .7, .2, 1); }
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.75 Plex, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--plum); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.label { font-size: 0.85rem; font-weight: 600; color: var(--plum); }   /* small labels in Arabic or English (mono is for Latin + digits only) */
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); direction: ltr; unicode-bidi: isolate; }
main, .hd, .ft__in { max-width: var(--wide); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { main, .hd, .ft__in { padding-inline: 40px; } }

/* header + the five-colour hairline */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.hd__logo svg { height: clamp(36px, 9vw, 46px); width: auto; display: block; }
.hd__lang { text-decoration: none; font-size: 0.9rem; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 16px; transition: background .2s, color .2s; }
.hd__lang:hover { background: var(--ink); color: #fff; }
.line { display: flex; height: 3px; }
.line i { flex: 1; background: var(--c); }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 13px 28px; border-radius: 999px; background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--plum); border-color: var(--plum); transform: translateY(-1px); }
.btn.is-ghost { background: transparent; color: var(--ink); }
.btn.is-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* hero: «نبني» + the word that rewrites itself, beside the spec drawing */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; min-height: min(78vh, 760px); padding-block: clamp(36px, 7vw, 88px); }
.kicker { margin-bottom: 22px; }
.h1 { display: block; }
.pre { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; color: var(--muted); margin-bottom: 0.2em; }
.cycle { display: inline-block; font-size: clamp(3.6rem, 10vw, 8.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; padding-inline: 0.04em; border-radius: 6px; transition: background .25s, color .25s; }
.cycle.sel { background: var(--plum-soft); color: var(--plum); }
.caret { display: inline-block; width: 3px; height: clamp(3rem, 8.4vw, 7.2rem); background: var(--plum); vertical-align: -0.12em; margin-inline-start: 6px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 34em; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.spec-fig { position: relative; margin: 0; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: center; }
.spec { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spec .dr { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spec .dr--dash { stroke-dasharray: 0.004 0.008; }
.spec .dr--axis { stroke: var(--plum); stroke-dasharray: 0.02 0.012; }
.spec__labels text { font: 12px var(--mono); fill: var(--plum); letter-spacing: 0.08em; }
.spec__sym { position: absolute; inset: 27%; }
.spec__sym svg { width: 100%; height: 100%; display: block; }

/* sections */
main > section { padding-block: clamp(64px, 10vw, 128px); border-top: 1px solid var(--rule); scroll-margin-top: 8px; }
main > section.hero { border-top: 0; }
.big { font-size: clamp(3rem, 9vw, 7.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.sub { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; margin-top: 22px; }

/* services: one full-screen chapter each, a pinned rail (01 / 06 + the five bars), a drawing per service */
.chapters { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: clamp(40px, 7vw, 88px); }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.rail .mono { color: var(--faint); font-size: 0.8rem; }
.rail__n { color: var(--plum); font-size: 1.6rem; font-weight: 600; display: block; text-align: center; letter-spacing: 0; }
.bars { height: 46vh; display: flex; gap: 10px; align-items: flex-end; }
.bars i { width: 12px; height: 100%; border-radius: 6px; background: var(--c); transform-origin: bottom; transform: scaleY(var(--h, 1)); transition: transform .45s var(--ease); }
.svcs { display: grid; }
.svc { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); scroll-margin-top: 0; }
.chap__num { display: block; font-size: clamp(5rem, 12vw, 10.5rem); font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -0.04em; margin-bottom: 18px; }
.svc h3 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.chap__short { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--muted); margin: 16px 0 30px; max-width: 30em; }
.get, .std ol { margin: 0; padding: 0; list-style: none; }
.get li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.get li:last-child { border-bottom: 1px solid var(--rule); }
.get li::before { content: ""; flex: none; width: 18px; height: 8px; border-radius: 4px; background: var(--plum); transform: rotate(-38deg) translateY(-2px); }
.std { margin-top: 26px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 18px; background: #fff; }
.std ol { counter-reset: s; margin-top: 10px; }
.std li { counter-increment: s; padding: 6px 0; }
.std li::before { content: counter(s, decimal-leading-zero); font: 0.74rem var(--mono); color: var(--plum); margin-inline-end: 14px; }
.art { margin: 0; width: 100%; max-width: 540px; justify-self: center; aspect-ratio: 1; }
.art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.art .ln { fill: none; stroke: var(--s); stroke-width: var(--w); vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.art .t { font: 13px var(--mono); fill: var(--plum); letter-spacing: 0.08em; }
.art .t--big { font-size: 26px; font-weight: 600; letter-spacing: 0.12em; }

/* how we work: the dose fills, one capsule track in six segments, an index of the phases, a panel per phase */
.journey { margin-top: clamp(40px, 7vw, 88px); }
.dose { margin-bottom: clamp(40px, 6vw, 72px); }
.dose__track { position: relative; display: flex; gap: 4px; height: 30px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 15px; }
.seg { flex: 1; border-radius: 10px; background: var(--c); transform: scaleX(var(--f, 1)); transform-origin: left; transition: transform .35s var(--ease); }
[dir="rtl"] .seg { transform-origin: right; }
.rider { position: absolute; top: -26px; inset-inline-start: calc(var(--q, 1) * 100%); margin-inline-start: -17px; width: 34px; height: 15px; border-radius: 8px; background: var(--plum); transform: rotate(-38deg); box-shadow: 0 6px 16px rgba(106, 28, 128, .3); }
.phases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.phase { font: inherit; font-size: 0.95rem; text-align: start; background: none; border: 0; padding: 6px 4px; color: var(--faint); cursor: pointer; display: grid; gap: 2px; transition: color .3s; }
.phase.done { color: var(--ink); }
.phase.on { color: var(--plum); font-weight: 600; }
.phase:hover { color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; }
.step { display: grid; }
.step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 30em; }
.step__out { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink) !important; font-weight: 500; }
.pricing { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.pricing h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
.pricing p { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 40em; }

/* contact */
.contact .lead { margin-bottom: 36px; }
.enq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; max-width: 920px; }
.enq label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.enq .wide, .enq button, .enq__status, .enq__fallback { grid-column: 1 / -1; }
.enq input, .enq select, .enq textarea { font: inherit; font-size: 1.05rem; color: var(--ink); padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; width: 100%; }
.enq textarea { border: 1px solid var(--ink); border-radius: 12px; padding: 12px 14px; resize: vertical; }
.enq input:focus, .enq select:focus, .enq textarea:focus { outline: 0; border-color: var(--plum); box-shadow: 0 1px 0 var(--plum); }
.enq button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.enq button[disabled] { opacity: 0.6; cursor: wait; }
.enq .trap { position: absolute; inset-inline-start: -9999px; }
.enq__status { font-weight: 600; }
.enq__status.is-ok { color: #15803D; } .enq__status.is-bad { color: #B91C1C; }
.direct { margin-top: 26px; color: var(--muted); }

/* footer: one slim black line, logo at the start, the rights at the end */
.ft { background: var(--ink); color: #fff; }
.ft__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.ft__logo svg { height: 34px; width: auto; display: block; }
.ft__rights { font-size: 0.85rem; color: rgba(255, 255, 255, .78); white-space: nowrap; }

/* the sticky contact tab (only when contacts are set) */
.tab { position: fixed; inset-inline-end: 0; top: 40%; z-index: 10; display: grid; background: var(--plum); border-start-start-radius: 12px; border-end-start-radius: 12px; overflow: hidden; }
.tab a { color: #fff; text-decoration: none; font-size: 0.82rem; padding: 12px 10px; writing-mode: vertical-rl; }
.tab a + a { border-top: 1px solid rgba(255, 255, 255, .25); }
.tab a:hover { background: var(--ink); }

/* the cursor capsule */
.cursor { position: fixed; top: 0; left: 0; z-index: 30; width: 46px; height: 21px; border-radius: 11px; background: var(--plum); opacity: 0; pointer-events: none; filter: blur(6px); mix-blend-mode: multiply; transition: opacity .3s; }
.cursor.on { opacity: .35; }

/* motion states (only with the script, never with reduced motion) */
.motion .rv { opacity: 0; transform: translateY(14px); color: var(--faint); transition: opacity .7s var(--ease), transform .7s var(--ease), color 1.1s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; color: inherit; }
.motion .lead.rv.in { color: var(--muted); }
.motion .kicker.rv.in { color: var(--plum); }
.motion .spec .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .spec .dr--dash { stroke-dasharray: 0.004 0.008; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s .6s; }
.motion .spec-fig.in .dr { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.motion .spec-fig.in .dr--dash { opacity: 1; }
.motion .spec-fig.in .dr--axis { transition-delay: .7s; }
.motion .spec .dr--axis { stroke-dasharray: 1; }
.motion .spec-fig.in .dr--axis { stroke-dasharray: 0.02 0.012; }
.motion .spec__labels, .motion .spec__sym { opacity: 0; transition: opacity .8s var(--ease) 1.1s, transform .9s var(--ease) 1s; }
.motion .spec__sym { transform: scale(.94) rotate(-4deg); }
.motion .spec-fig.in .spec__labels, .motion .spec-fig.in .spec__sym { opacity: 1; transform: none; }
.motion .bars i { --h: 0; }
/* each chapter: --p (0…1, set from scroll) draws its strokes, fades its fills and reveals its deliverables, each from its delay --d */
.motion .svc .ln, .motion .svc .fd, .motion .svc .get li, .motion .svc .chap__num, .motion .svc h3, .motion .svc .chap__short, .motion .svc .std { --q: clamp(0, calc((var(--p, 1) * 1.35 - var(--d, 0)) * 3.2), 1); }
.motion .svc .ln { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q)); }
.motion .svc .fd { opacity: var(--q); }
.motion .svc .get li, .motion .svc .std { opacity: var(--q); translate: 0 calc((1 - var(--q)) * 18px); }
.motion .svc .std { --d: .7; }
.motion .svc .chap__num { --d: 0; opacity: calc(.15 + var(--q) * .85); translate: 0 calc((1 - var(--q)) * 40px); }
.motion .svc h3 { --d: .08; opacity: var(--q); translate: 0 calc((1 - var(--q)) * 24px); }
.motion .svc .chap__short { --d: .16; opacity: var(--q); translate: 0 calc((1 - var(--q)) * 18px); }
/* the journey: pinned while the dose fills (wide screens) */
@media (min-width: 861px) {
	.motion .journey { height: 520vh; }
	.motion .journey__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
	.motion .steps { display: grid; grid-template-columns: 1fr; }
	.motion .step { grid-area: 1 / 1; gap: clamp(32px, 5vw, 72px); align-items: center; opacity: 0; translate: 0 30px; transition: opacity .5s var(--ease), translate .6s var(--ease); pointer-events: none; }
	.motion .step.on { opacity: 1; translate: 0 0; pointer-events: auto; }
	.motion .step h3 { font-size: clamp(3.2rem, 7vw, 6.4rem); margin-bottom: 22px; letter-spacing: -0.02em; }
	.motion .step p { font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 32em; }
	.motion .step__out { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; }
}
@media (max-width: 860px) { .motion .step { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease), translate .6s var(--ease); } .motion .step.in { opacity: 1; translate: 0 0; } }

/* phones */
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.spec-fig { max-width: 360px; }
	.chapters { grid-template-columns: 1fr; }
	.rail { display: none; }
	.svc { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
	.art { max-width: 340px; }
	.dose { display: none; }
	.steps { grid-template-columns: 1fr; gap: 0; border-inline-start: 4px solid transparent; border-image: linear-gradient(#F97316, #22C55E, #06B6D4, #EC4899, #6A1C80, #121017) 1; }
	.step { position: relative; padding: 0 22px 48px; }
	.step::before { content: ""; position: absolute; top: 18px; inset-inline-start: -14px; width: 24px; height: 11px; border-radius: 6px; background: var(--plum); transform: rotate(-38deg); }
	.enq { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.cursor { display: none; }
}

/* the services in the form: capsule chips, several can be chosen */
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.95rem; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 3px; }
.chip:hover span { border-color: var(--plum); }

/* the drawings live on once drawn: the loop layer shows (and runs) only while a drawing is complete and on screen */
.art .amb { opacity: 0; transition: opacity .8s var(--ease); }
.art.live .amb { opacity: 1; }
.motion .art .still { transition: opacity .6s var(--ease); }
.motion .art.live .still { opacity: 0; }

/* the searchable country list */
.combo { position: relative; }
.combo ul { position: absolute; z-index: 15; top: 100%; inset-inline: 0; max-height: 280px; overflow-y: auto; margin: 6px 0 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(18, 16, 23, .12); }
.combo li { padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: 1rem; cursor: pointer; }
.combo li:hover, .combo li[aria-selected="true"] { background: var(--plum-soft); color: var(--plum); }
[dir="rtl"] .enq input[dir="ltr"] { text-align: right; }   /* email and phone type left to right but line up with the Arabic fields */
.enq__status { min-height: 1.6em; }
.enq__status.is-ok { color: #15803D; } .enq__status.is-bad { color: #B91C1C; }
.enq [aria-invalid="true"] { border-color: #B91C1C; box-shadow: 0 1px 0 #B91C1C; }
