/*
 * Remap site styles. Abdullah's rules apply here:
 * 1 square corners on everything; 3 motion that switches off for reduced motion; 7 navy and pearl carry the page,
 * amber only on the WhatsApp button (and the logo's own point); 8 icon lines as thick as the text; 9 full-screen fits phones;
 * 11-14 no emoji, no blobs or glow, no grid of identical boxes, no photo opening.
 */

/* ---------- fonts (served by the site itself) ---------- */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/alexandria-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/alexandria-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --navy: oklch(22.1% 0.0533 255.4);      /* #081B33 Night Navy */
  --navy-2: oklch(27.1% 0.0656 255.2);    /* a lighter navy surface for depth */
  --navy-3: oklch(32.4% 0.0806 255.5);
  --blue: oklch(55.2% 0.1856 256.5);      /* #0D6EDB Gulf Blue */
  --blue-deep: oklch(45% 0.15 256.5);
  --sky: oklch(75.4% 0.1309 250.8);       /* #6CB4FF Sky */
  --amber: oklch(79.9% 0.1636 70.2);      /* #FFA826 Spark Amber: the WhatsApp button only */
  --amber-hover: oklch(85% 0.15 72);
  --pearl: oklch(97.8% 0.0062 255.5);     /* #F5F8FC Pearl */
  --slate: oklch(49.4% 0.0458 261.3);     /* #53627C Slate */
  --mist: oklch(92.1% 0.0207 254.9);      /* #DCE6F3 Mist */
  --white: oklch(100% 0 0);
  --text-soft: oklch(100% 0 0 / 0.74);
  --line-dark: oklch(100% 0 0 / 0.14);    /* semi-transparent rules on navy */
  --line-light: oklch(22.1% 0.0533 255.4 / 0.14);
  --pad: clamp(20px, 6vw, 112px);
  --head: 72px;
  --draft-h: 0px;
  --max: 1680px;
  --font: 'Alexandria', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --tight: -0.035em;
}

/* ---------- base ---------- */
/* Square corners on everything except buttons (Abdullah, 2026-11-26: "keep it circleish" for buttons). */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
.btn, .lang, .film-sound, .chip span, .js .motion-toggle { border-radius: 999px; }
.film-play, .player-play, .call-icon, .call-ring { border-radius: 50%; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.6;
}
[dir='rtl'] body { line-height: 1.85; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: var(--tight); line-height: 0.95; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sec-pearl a:focus-visible, .sec-pearl button:focus-visible, .sec-pearl summary:focus-visible { outline-color: var(--blue); }
.icon { width: 20px; height: 20px; flex: none; }

.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 50; padding: 12px 16px; background: var(--white); color: var(--navy); font-weight: 600; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Draft notice: the first row of the header. The header sticks with this row scrolled out of view. */
:root:has(.head-draft) { --draft-h: 34px; }
.draft { display: flex; align-items: center; height: var(--draft-h); padding-inline: var(--pad); overflow: hidden; background: var(--navy-2); border-bottom: 1px solid var(--line-dark); color: var(--text-soft); font-size: 13px; white-space: nowrap; }
.head.head-draft { top: calc(-1 * var(--draft-h)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 2px solid transparent;
  font: 600 16px/1.1 var(--font);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn-wa { background: var(--amber); color: var(--navy); }
.btn-wa:hover { background: var(--amber-hover); }
.btn-ghost { border-color: oklch(100% 0 0 / 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; gap: 10px; }
.btn-sm .icon { width: 18px; height: 18px; }
.btn-lg { min-height: 66px; padding: 0 32px; font-size: 18px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 30; background: oklch(22.1% 0.0533 255.4 / 0.94); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.head.scrolled { border-bottom-color: var(--line-dark); }
.head-in { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 40px); height: var(--head); }
.brand { display: inline-flex; margin-inline-end: auto; color: var(--white); }
.logo { display: block; height: 28px; width: auto; }
.logo-ink { fill: currentColor; }
.logo-point { fill: var(--amber); }
.nav { display: flex; gap: clamp(16px, 2vw, 36px); }
.nav a, .lang { color: var(--text-soft); font-size: 15px; text-decoration: none; transition: color 0.2s; }
.nav a:hover, .lang:hover { color: var(--white); }
.lang { padding: 9px 12px; border: 1px solid var(--line-dark); }
@media (max-width: 900px) { .nav { display: none; } }
/* On small phones the header button shows its icon only; the word stays for screen readers. */
@media (max-width: 400px) {
  .head .btn-sm { padding: 0 12px; }
  .head .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- first screen ---------- */
/* The headline row on top, then the film across the full width of the page. */
.hero { padding-block: clamp(40px, 7vh, 88px) clamp(56px, 9vh, 112px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vh, 72px); }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: 'eyebrow eyebrow' 'title lead' 'title actions';
  column-gap: var(--pad);
  align-items: end;
}
.eyebrow { grid-area: eyebrow; margin-bottom: clamp(20px, 3vh, 32px); color: var(--sky); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.hero-title { grid-area: title; font-size: clamp(56px, 8.6vw, 164px); line-height: 0.95; }
[dir='rtl'] .hero-title { line-height: 1.12; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
/* Arabic dots sit well below the line (the two under the final ي); give them room so the rising mask never cuts them. */
[dir='rtl'] .hero-title .line { padding-bottom: 0.32em; margin-bottom: -0.26em; }
/* One thin line, one heavy line: "You ask." light, "We build." heavy. */
.line-thin { font-weight: 300; }
.line-heavy { font-weight: 800; color: var(--sky); }
.hero-title .w { display: inline-block; }
/* A band of light that sweeps across the heavy words (text only; no glow behind anything). */
.sweep {
  background-image: linear-gradient(100deg, var(--sky) 0%, var(--sky) 42%, var(--white) 50%, var(--sky) 58%, var(--sky) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The text colour only paints inside the word's box; stretch the box down so the dots under Arabic letters keep it. */
[dir='rtl'] .sweep { padding-bottom: 0.3em; margin-bottom: -0.3em; }
.lead { grid-area: lead; max-width: 33em; margin-bottom: 28px; color: var(--text-soft); font-size: clamp(17px, 1.35vw, 21px); }
.actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 0.12em; }
.hero-film { min-width: 0; }
@media (max-width: 900px) {
  .hero { padding-block: 40px 56px; }
  .hero-grid { gap: 44px; }
  .hero-copy { grid-template-columns: 1fr; grid-template-areas: 'eyebrow' 'title' 'lead' 'actions'; }
  .hero-title { margin-bottom: 24px; }
}

/* ---------- the pause-motion button (WCAG 2.2.2): beside "What we build", where the looping examples are ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(40px, 6vw, 88px); }
.sec-head .sec-title { margin-bottom: 0; }
.motion-toggle { display: none; }
.js .motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid oklch(100% 0 0 / 0.5);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}
@media (hover: hover) { .js .motion-toggle:hover { border-color: var(--white); } }
@media (max-width: 600px) { .js .motion-toggle { width: 44px; padding: 0; justify-content: center; } }
.toggle-icon { position: relative; width: 12px; height: 14px; }
.toggle-icon::before, .toggle-icon::after { content: ''; position: absolute; top: 0; bottom: 0; width: 4px; background: currentColor; }
.toggle-icon::before { inset-inline-start: 0; }
.toggle-icon::after { inset-inline-end: 0; }
.motion-paused .toggle-icon::before { width: 0; height: 0; inset-block: 0; background: none; border-block: 7px solid transparent; border-inline-start: 12px solid currentColor; }
.motion-paused .toggle-icon::after { display: none; }
/* On phones the button shows its icon only; its words stay for screen readers. */
@media (max-width: 600px) { .toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(88px, 14vh, 176px); }
.sec-navy { background: var(--navy); color: var(--white); }
.sec-pearl { background: var(--pearl); color: var(--navy); }
.sec-title { margin-bottom: clamp(40px, 6vw, 88px); font-size: clamp(44px, 6.6vw, 120px); }

/* ---------- what we build: ruled rows, each with its own drawn example ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-dark); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  padding-block: clamp(22px, 2.6vw, 40px);
  border-top: 1px solid var(--line-dark);
}
.row-title { display: flex; align-items: center; gap: 0.3em; font-size: clamp(30px, 3.8vw, 68px); line-height: 1; transition: color 0.3s; }
.row-title::before { content: ''; flex: none; width: 0.2em; height: 0.2em; background: var(--sky); transform: rotate(45deg) scale(0); transition: transform 0.35s var(--ease); }
@media (hover: hover) {
  .row:hover .row-title { color: var(--sky); }
  .row:hover .row-title::before { transform: rotate(45deg) scale(1); }
}
.row-text { color: var(--text-soft); font-size: clamp(16px, 1.2vw, 19px); }
.row-also { margin-top: 10px; color: var(--sky); font-size: 0.88em; }
.sample { position: relative; height: clamp(150px, 12vw, 200px); overflow: hidden; border: 1px solid var(--line-dark); background: var(--navy-2); }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 16px; }
  .row-title::before { display: none; }
  .sample { height: 180px; margin-top: 8px; }
}

/* AI agent: a question, the agent typing, the answer */
.chat { position: absolute; inset: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.msg-in { align-self: flex-start; background: var(--navy-3); animation: chat-q 7s var(--ease) infinite; }
.reply { display: grid; justify-items: end; }
.reply > * { grid-area: 1 / 1; }
.msg-out { background: var(--blue); animation: chat-a 7s var(--ease) infinite; }
.msg-typing { display: flex; gap: 5px; align-items: center; padding: 14px; background: var(--blue); animation: chat-t 7s linear infinite; }
.msg-typing i { width: 6px; height: 6px; background: var(--white); animation: blink 0.9s ease-in-out infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-q { 0% { opacity: 0; transform: translateY(10px); } 7%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes chat-t { 0%, 12% { opacity: 0; } 16%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes chat-a { 0%, 38% { opacity: 0; transform: translateY(10px); } 45%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* Websites: a page building itself in a browser window */
.browser { position: absolute; inset: 18px 18px 0; background: var(--pearl); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 22px; padding-inline: 8px; background: var(--mist); }
.browser-bar i { width: 7px; height: 7px; background: var(--slate); }
.browser-bar b { flex: 1; height: 8px; margin-inline-start: 10px; background: var(--white); }
.browser-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; height: calc(100% - 22px); padding: 16px; }
.bb-copy i { display: block; height: 10px; margin-bottom: 8px; background: var(--navy); transform-origin: left center; animation: grow-x 6s var(--ease) infinite; }
[dir='rtl'] .bb-copy i { transform-origin: right center; }
.bb-copy i:nth-child(1) { width: 88%; }
.bb-copy i:nth-child(2) { width: 62%; animation-delay: 0.15s; }
.bb-copy i:nth-child(3) { width: 74%; background: var(--blue); animation-delay: 0.3s; }
.bb-copy i:nth-child(4) { width: 42%; height: 18px; margin-top: 14px; background: var(--blue); animation-delay: 0.45s; }
.bb-block { background: var(--blue); transform-origin: bottom center; animation: grow-y 6s var(--ease) 0.3s infinite; }
@keyframes grow-x { 0% { transform: scaleX(0); opacity: 1; } 18%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes grow-y { 0% { transform: scaleY(0); opacity: 1; } 18%, 88% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* 3D animation: a turning cube */
.cube-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 640px; }
.cube { position: relative; width: 78px; height: 78px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(35deg); animation: spin 10s linear infinite; }
.cube .f { position: absolute; inset: 0; border: 1.5px solid oklch(100% 0 0 / 0.45); }
.f1 { background: var(--blue); transform: translateZ(39px); }
.f2 { background: var(--navy-3); transform: rotateY(180deg) translateZ(39px); }
.f3 { background: var(--blue-deep); transform: rotateY(90deg) translateZ(39px); }
.f4 { background: var(--blue-deep); transform: rotateY(-90deg) translateZ(39px); }
.f5 { background: var(--sky); transform: rotateX(90deg) translateZ(39px); }
.f6 { background: var(--navy-3); transform: rotateX(-90deg) translateZ(39px); }
.cube-floor { position: absolute; bottom: 18%; width: 120px; height: 2px; background: var(--line-dark); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }

/* Automation: work running along the wires between steps */
.flow { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
[dir='rtl'] .flow { transform: scaleX(-1); }
.wire { fill: none; stroke: oklch(75.4% 0.1309 250.8 / 0.35); stroke-width: 3; }
.wire-run { fill: none; stroke: var(--sky); stroke-width: 3; stroke-dasharray: 10 18; animation: run 1.6s linear infinite; }
.node { fill: var(--navy); stroke: var(--sky); stroke-width: 2.5; }
.node-blue { fill: var(--blue); stroke: none; }
.node-sky { fill: var(--sky); stroke: none; }
.node-core { fill: var(--white); }
.tick { fill: none; stroke: var(--white); stroke-width: 3.5; stroke-linecap: square; }
.flow .tick:last-child { stroke: var(--navy); }
@keyframes run { to { stroke-dashoffset: -28; } }

/* Videos: a player with its sound wave */
.player { position: absolute; inset: 18px; display: grid; grid-template-rows: 1fr auto; gap: 14px; padding: 16px; border: 1px solid var(--line-dark); background: var(--navy); }
.player-top { display: flex; align-items: center; gap: 16px; min-height: 0; }
.player-play { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--white); color: var(--navy); }
.player-play svg { width: 20px; height: 20px; }
.wave { display: flex; flex: 1; align-items: center; gap: 4px; height: 100%; }
.wave i { flex: 1; height: 80%; background: var(--sky); transform: scaleY(0.3); animation: wave 1.1s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-duration: 0.8s; }
.wave i:nth-child(4n + 1) { animation-duration: 1.4s; }
.wave i:nth-child(2n) { animation-delay: -0.4s; }
.wave i:nth-child(5n) { animation-delay: -0.7s; }
.progress { position: relative; display: block; height: 4px; background: oklch(100% 0 0 / 0.2); }
.progress i { position: absolute; inset: 0; background: var(--sky); transform-origin: left center; animation: grow-line 9s linear infinite; }
[dir='rtl'] .progress i { transform-origin: right center; }
@keyframes wave { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes grow-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Reports: bars rising, with no figures on them */
.chart { position: absolute; inset: 22px 26px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 2px solid oklch(100% 0 0 / 0.3); }
.bar { flex: 1; background: var(--blue); transform-origin: bottom center; animation: grow-y 6s var(--ease) infinite; }
.b1 { height: 28%; }
.b2 { height: 44%; animation-delay: 0.1s; }
.b3 { height: 36%; animation-delay: 0.2s; }
.b4 { height: 60%; animation-delay: 0.3s; }
.b5 { height: 74%; background: var(--sky); animation-delay: 0.4s; }
.b6 { height: 94%; background: var(--sky); animation-delay: 0.5s; }

/* Phone call agents: a call in progress, the voice moving */
.call { position: absolute; inset: 18px; display: flex; align-items: center; gap: 18px; padding-inline: 18px; border: 1px solid var(--line-dark); background: var(--navy); }
.call-icon { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--sky); color: var(--navy); }
.call-icon svg { width: 24px; height: 24px; }
.call-ring { position: absolute; inset-inline-start: 18px; width: 52px; height: 52px; border: 2px solid var(--sky); animation: ring 2s ease-out infinite; }
.wave-call { height: 56%; }
.call-time { flex: none; color: var(--text-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }

/* AI cameras: four tables seen from above; one has waited too long, so its timer fills and it is marked */
.cam { position: absolute; inset: 14px; border: 1px solid var(--line-dark); background: var(--navy); }
.cam-corner { position: absolute; width: 16px; height: 16px; border-color: var(--sky); border-style: solid; border-width: 0; }
.k1 { top: 8px; inset-inline-start: 8px; border-top-width: 2px; border-inline-start-width: 2px; }
.k2 { top: 8px; inset-inline-end: 8px; border-top-width: 2px; border-inline-end-width: 2px; }
.k3 { bottom: 8px; inset-inline-start: 8px; border-bottom-width: 2px; border-inline-start-width: 2px; }
.k4 { bottom: 8px; inset-inline-end: 8px; border-bottom-width: 2px; border-inline-end-width: 2px; }
.cam-dot { position: absolute; top: 14px; inset-inline-end: 32px; width: 8px; height: 8px; background: var(--sky); animation: blink 1.4s ease-in-out infinite; }
.cam-floor { position: absolute; inset: 22% 18%; display: grid; grid-template-columns: 1fr 1fr; gap: 14% 18%; }
.tbl { position: relative; background: var(--navy-3); border: 1px solid oklch(100% 0 0 / 0.25); }
.cam-box { position: absolute; inset: -7px; border: 2px solid var(--sky); animation: watch 4s ease-in-out infinite; }
.cam-wait { position: absolute; inset-inline: 0; bottom: -13px; height: 4px; background: oklch(100% 0 0 / 0.2); }
.cam-wait b { position: absolute; inset: 0; background: var(--sky); transform-origin: left center; animation: grow-line 4s linear infinite; }
[dir='rtl'] .cam-wait b { transform-origin: right center; }
@keyframes watch { 0%, 70% { opacity: 0.35; } 80%, 100% { opacity: 1; } }

/* Apps and systems: a dashboard with a menu, numbers in boxes and a line rising */
.dash { position: absolute; inset: 18px 18px 0; display: grid; grid-template-columns: 22% 1fr; background: var(--pearl); }
.dash-side { display: grid; align-content: start; gap: 8px; padding: 12px 10px; background: var(--navy-3); }
.dash-side i { height: 8px; background: oklch(100% 0 0 / 0.35); }
.dash-side i:first-child { background: var(--sky); }
.dash-main { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 12px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-cards i { height: 30px; background: var(--mist); border-inline-start: 3px solid var(--blue); }
.dash-chart { width: 100%; height: 100%; }
.spark { fill: none; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; animation: draw-line 4s var(--ease) infinite; }
@keyframes draw-line { 0% { stroke-dashoffset: 1; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* AI images and branding: a mark on its tile, and the colours that go with it */
.kit { position: absolute; inset: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding-inline: 18px; }
.kit-mark { display: grid; place-items: center; width: 88px; height: 88px; background: var(--navy); border: 1px solid var(--line-dark); }
.kit-mark i { width: 30px; height: 30px; background: var(--sky); transform: rotate(45deg); animation: turn 6s var(--ease) infinite; }
.kit-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 88px; }
.kit-swatches i { transform-origin: bottom center; animation: grow-y 6s var(--ease) infinite; }
.kit-swatches i:nth-child(1) { background: var(--navy); border: 1px solid var(--line-dark); }
.kit-swatches i:nth-child(2) { background: var(--blue); animation-delay: 0.12s; }
.kit-swatches i:nth-child(3) { background: var(--sky); animation-delay: 0.24s; }
.kit-swatches i:nth-child(4) { background: var(--pearl); animation-delay: 0.36s; }
@keyframes turn { 0%, 20% { transform: rotate(45deg); } 50%, 100% { transform: rotate(225deg); } }

/* And more: an open slot */
.more-box { position: absolute; inset: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 2px dashed oklch(75.4% 0.1309 250.8 / 0.6); }
.more-box i { width: 14px; height: 14px; background: var(--sky); animation: blink 1.2s ease-in-out infinite; }
.more-box i:nth-child(2) { animation-delay: 0.2s; }
.more-box i:nth-child(3) { animation-delay: 0.4s; }

/* ---------- how it works: the heading stays while the steps pass ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--pad); }
.how-head { position: sticky; top: calc(var(--head) + 12vh); align-self: start; }
.how .sec-title { margin-bottom: 36px; }
.how-rail { position: relative; width: 2px; height: 180px; background: var(--line-light); }
.how-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: top center; transform: scaleY(var(--progress, 1)); transition: transform 0.4s var(--ease); }
.steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-light); }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 58vh; padding-block: 48px; border-top: 1px solid var(--line-light); }
.step-label { color: var(--blue); font-size: 15px; font-weight: 600; }
.step-title { margin: 14px 0 22px; font-size: clamp(52px, 7.4vw, 136px); line-height: 1; transition: color 0.5s var(--ease); }
.step-text { max-width: 26em; color: var(--slate); font-size: clamp(17px, 1.4vw, 22px); }
/* The step in the middle of the screen is navy; the others are slate, which still reads at 5.8:1 on pearl. */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .js .step:not(.on) .step-title { color: var(--slate); }
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-head { position: static; }
  .how-rail { display: none; }
  .step { min-height: 0; }
}

/* ---------- the film, in the first screen ---------- */
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-dark);
  background-color: var(--navy-2);
  background-image: radial-gradient(oklch(75.4% 0.1309 250.8 / 0.25) 1.5px, transparent 1.7px);
  background-size: 30px 30px;
}
.film-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.film-cover, .film-bar { display: none; }
/* Silent loop: "play with sound" and a pause button sit on the film. */
.film-frame.previewing .film-bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(10px, 1.4vw, 18px); }
.film-sound { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; background: var(--white); color: var(--navy); font: 600 14px/1 var(--font); cursor: pointer; }
.film-sound .icon { width: 18px; height: 18px; }
.film-note { margin-top: 14px; color: var(--text-soft); font-size: 14px; }
/* Still cover, for less motion or saved data: press to play with sound. */
.film-frame.still .film-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(20px, 3vw, 44px);
  border: 0;
  background-color: var(--navy-2);
  background-image: radial-gradient(oklch(75.4% 0.1309 250.8 / 0.25) 1.5px, transparent 1.7px);
  background-size: 30px 30px;
  text-align: start;
  cursor: pointer;
}
.film-play { display: grid; place-items: center; width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); background: var(--white); color: var(--navy); transition: transform 0.3s var(--ease); }
.film-play svg { width: 40%; height: 40%; }
.film-label { font-size: clamp(24px, 2.8vw, 48px); font-weight: 800; letter-spacing: var(--tight); line-height: 1; }
[dir='rtl'] .film-label { letter-spacing: 0; }
.film-time { color: var(--text-soft); font-size: 14px; }
@media (hover: hover) { .film-cover:hover .film-play { transform: scale(1.06); } }
.film-frame.playing .film-cover, .film-frame.playing .film-bar { display: none; }
/* Narrow phones: a smaller cover so it fits the 16:9 frame. */
@media (max-width: 480px) {
  .film-frame.still .film-cover { gap: 8px; padding: 14px; }
  .film-play { width: 44px; height: 44px; }
  .film-label { font-size: 20px; }
}

/* "Read the film": what is said and what is on screen */
.film-text { margin-top: 12px; border-block: 1px solid var(--line-dark); }
.film-text summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.film-text summary::-webkit-details-marker { display: none; }
.film-text[open] .plus::after { transform: scaleY(0); }
.film-text ol { display: grid; gap: 20px; max-width: 52em; margin: 0; padding: 0 0 28px; padding-inline-start: 1.4em; }
.film-text li { color: var(--white); }
.film-seen { color: var(--text-soft); font-size: 0.92em; }
.film-seen span { color: var(--sky); font-weight: 500; }

/* ---------- statement ---------- */
.say { font-size: clamp(46px, 9vw, 172px); font-weight: 800; letter-spacing: var(--tight); line-height: 1.02; }
[dir='rtl'] .say { letter-spacing: 0; line-height: 1.3; }
.say span { display: block; }
.say-no { position: relative; width: fit-content; max-width: 100%; color: var(--slate); }
.say-no::after { content: ''; position: absolute; inset-inline: -0.03em; top: 54%; height: 0.075em; background: var(--navy); transform-origin: left center; }
[dir='rtl'] .say-no::after { transform-origin: right center; }
.say-yes { margin-top: 0.22em; color: var(--blue); }

/* ---------- questions ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--pad); }
.qa { border-bottom: 1px solid var(--line-dark); }
.q { border-top: 1px solid var(--line-dark); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; font-size: clamp(20px, 1.9vw, 30px); font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer; }
.q summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 22px; height: 22px; }
.plus::before, .plus::after { content: ''; position: absolute; background: currentColor; }
.plus::before { inset-inline: 0; top: 10px; height: 2px; }
.plus::after { inset-block: 0; left: 10px; width: 2px; transition: transform 0.3s var(--ease); }
.q[open] .plus::after, .film-text[open] .plus::after { transform: scaleY(0); }
.q p { max-width: 38em; padding-bottom: 28px; color: var(--text-soft); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

/* ---------- the end of the route ---------- */
.end { padding-bottom: clamp(96px, 16vh, 200px); }
.end-title { margin-bottom: clamp(32px, 5vw, 56px); font-size: clamp(56px, 11vw, 200px); line-height: 0.92; }
[dir='rtl'] .end-title { line-height: 1.15; }
.end-act { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.route-point { flex: none; width: 22px; height: 22px; background: var(--amber); transform: rotate(45deg); }
.end-meta { margin-top: 28px; color: var(--text-soft); }
/* A typing cursor after "Let's build something". */
/* It blinks four times when the heading comes into view (under 5 seconds, so it needs no pause button), then stays. */
.caret { display: inline-block; width: 0.09em; height: 0.78em; margin-inline-start: 0.12em; background: var(--sky); vertical-align: -0.04em; }
.js .end-title.in .caret { animation: caret 1.1s steps(1) 0.9s 4; }
@keyframes caret { 50% { opacity: 0; } }

/* The brief builder: square choices, then WhatsApp. Shown only when scripts run; otherwise the plain button shows. */
.brief { display: none; }
.js .brief { display: block; max-width: 1000px; }
.js .brief-fallback { display: none; }
.brief-group { min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
.brief-group legend { margin-bottom: 14px; padding: 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 18px; border: 1px solid oklch(100% 0 0 / 0.5); font-weight: 500; pointer-events: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip span::before { content: ''; flex: none; width: 12px; height: 12px; border: 2px solid currentColor; }
.chip-checkbox span::before { border-radius: 3px; }
.chip-radio span::before { border-radius: 50%; }
@media (hover: hover) { .chip:hover span { border-color: var(--white); } }
.chip input:checked + span { border-color: var(--sky); background: var(--sky); color: var(--navy); }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 3px; }
.brief-more { display: grid; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.brief-more span { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.brief-more textarea { width: 100%; min-height: 112px; padding: 14px 16px; border: 1px solid oklch(100% 0 0 / 0.5); background: var(--navy-2); color: var(--white); font: inherit; resize: vertical; }
.brief-more textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.brief-note { margin-top: 18px; color: var(--text-soft); font-size: 14px; }
/* Shown next to the choices when someone tries to send an empty brief. */
.brief-error { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--white); font-weight: 600; }
.brief-error::before { content: ''; flex: none; width: 9px; height: 9px; background: var(--sky); transform: rotate(45deg); }
.brief-error:empty { display: none; }

/* A small "send your brief" link after the services, for people ready to ask before the end of the page. */
.mini-cta { margin-top: clamp(28px, 4vw, 44px); }
.mini-cta a { display: inline-flex; align-items: center; gap: 12px; color: var(--sky); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mini-cta a:hover { text-decoration-thickness: 2px; }
[dir='rtl'] .icon-forward { transform: scaleX(-1); }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(36px, 7vh, 88px) clamp(56px, 9vh, 104px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--pad); align-items: center; }
.page-hero-plain .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero-copy { min-width: 0; }
.page-title { margin-bottom: 24px; font-size: clamp(44px, 6.4vw, 112px); line-height: 0.98; }
[dir='rtl'] .page-title { line-height: 1.2; }
.page-hero .lead { margin-bottom: 32px; }
.sample-hero { height: clamp(220px, 24vw, 340px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 clamp(20px, 3vh, 32px); padding: 0; list-style: none; color: var(--text-soft); font-size: 14px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 10px; color: oklch(100% 0 0 / 0.35); }
.crumbs a { color: var(--sky); text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--white); }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .sample-hero { height: 220px; }
}

/* Service rows without a drawn example (What you get, About). */
.row-plain { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row-plain .row-text { font-size: clamp(17px, 1.35vw, 21px); }
@media (max-width: 900px) { .row-plain { grid-template-columns: 1fr; } }

/* The whole row is one link to that service's page. */
.row { position: relative; }
.row-link { color: inherit; text-decoration: none; }
.row-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 3px solid var(--sky); outline-offset: 4px; }
@media (hover: hover) { .row:hover .row-link { color: var(--sky); } }

/* Where it helps: short example uses on pearl. */
.use-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.use-list li { padding: 24px 0; padding-inline-end: 24px; border-bottom: 1px solid var(--line-light); font-size: clamp(18px, 1.5vw, 23px); font-weight: 500; }
.use-list li::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-inline-end: 14px; background: var(--blue); transform: rotate(45deg) translateY(-2px); }

/* More we build: links to the other services. */
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-inline-end: 20px; border-bottom: 1px solid var(--line-dark); color: var(--white); font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.related-list a .icon { color: var(--sky); transition: transform 0.25s var(--ease); }
@media (hover: hover) { .related-list a:hover { color: var(--sky); } .related-list a:hover .icon { transform: translateX(4px); } [dir='rtl'] .related-list a:hover .icon { transform: scaleX(-1) translateX(4px); } }

/* Contact details. */
.contact-list { display: grid; gap: 18px; margin: 0 0 8px; }
.contact-list div { display: grid; gap: 4px; }
.contact-list dt { color: var(--text-soft); font-size: 14px; }
.contact-list dd { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; }
.contact-list a { color: var(--white); text-underline-offset: 5px; }

/* Privacy policy: comfortable reading width. */
.policy-text { max-width: 46em; }
.policy-part + .policy-part { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line-dark); }
.policy-part h2 { margin-bottom: 16px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.policy-part p { color: var(--text-soft); }
.policy-part p + p { margin-top: 14px; }
.updated { margin-top: 8px; color: var(--text-soft); font-size: 14px; }
.not-found-ar { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-dark); }

/* On phones: one WhatsApp button stays at the bottom, hidden while the brief builder is on screen. */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: oklch(22.1% 0.0533 255.4 / 0.96); border-top: 1px solid var(--line-dark); transition: transform 0.3s var(--ease); }
  .mobile-bar .btn { width: 100%; justify-content: center; }
  .brief-visible .mobile-bar { transform: translateY(110%); }
  body { padding-bottom: 76px; }
}

/* ---------- footer ---------- */
.foot { padding-block: 40px; border-top: 1px solid var(--line-dark); background: var(--navy); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.foot .brand { margin-inline-end: 0; }
.foot .logo { height: 22px; }
.foot p { color: var(--text-soft); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-nav a { color: var(--white); font-size: 14px; text-decoration: none; }
.foot-nav a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- the route line ---------- */
.route { position: absolute; top: 0; left: 0; z-index: 10; width: 100%; height: 0; overflow: visible; pointer-events: none; }
.route-line { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linejoin: miter; stroke-linecap: square; }

/* ---------- motion (only with scripts, and only when the visitor has not asked for less motion) ---------- */
.motion-paused .loop, .motion-paused .loop i { animation-play-state: paused; }
/* Without scripts there is no pause button, so nothing loops (WCAG 2.2.2): the examples show their finished state. */
html:not(.js) .loop, html:not(.js) .loop i { animation: none; }
html:not(.js) .msg-typing { visibility: hidden; }
html:not(.js) .progress i { transform: scaleX(0.4); }
html:not(.js) .wave i { transform: scaleY(0.6); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .w { transform: translateY(108%); animation: rise 0.95s var(--ease) forwards; }
  .js[dir='rtl'] .hero-title .w { transform: translateY(150%); }
  .js .w1 { animation-delay: 0.08s; }
  .js .w2 { animation-delay: 0.18s; }
  .js .w3 { animation-delay: 0.36s; }
  .js .w4 { animation-delay: 0.46s; }
  .js .w5 { animation-delay: 0.56s; }
  .js .w6 { animation-delay: 0.66s; }
  .js .eyebrow, .js .lead, .js .actions { opacity: 0; animation: fade-up 0.9s var(--ease) forwards; }
  .js .lead { animation-delay: 0.7s; }
  .js .actions { animation-delay: 0.85s; }
  /* The heavy words rise, then one band of light crosses them. All done within 5 seconds, so no pause button is needed. */
  .js .hero-title .sweep {
    animation-name: rise, sweep;
    animation-duration: 0.95s, 2.2s;
    animation-timing-function: var(--ease), ease-in-out;
    animation-iteration-count: 1, 1;
    animation-fill-mode: forwards, none;
  }
  .js .w2.sweep { animation-delay: 0.18s, 1.5s; }
  .js .w3.sweep { animation-delay: 0.36s, 1.5s; }
  .js .w4.sweep { animation-delay: 0.46s, 1.62s; }
  .js[dir='rtl'] .hero-title .sweep { animation-name: rise, sweep-rtl; }
  .js .film-frame.previewing { opacity: 0; animation: fade-up 1s var(--ease) 0.9s forwards; }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  /* The wipe is on the children: a fully clipped element would never count as on screen, so it would never open. */
  .js [data-reveal='wipe'] { opacity: 1; transform: none; }
  .js [data-reveal='wipe'] > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
  .js[dir='rtl'] [data-reveal='wipe'] > * { clip-path: inset(0 0 0 100%); }
  .js [data-reveal='wipe'] > :nth-child(2) { transition-delay: 0.12s; }
  .js [data-reveal='wipe'] > :nth-child(3) { transition-delay: 0.24s; }
  .js [data-reveal='wipe'].in > * { clip-path: inset(0 0 0 0); }

  .js .say-no::after { transform: scaleX(0); transition: transform 0.75s var(--ease); }
  .js .say-no + .say-no::after { transition-delay: 0.4s; }
  .js .say.in .say-no::after { transform: scaleX(1); }
  .js .say-yes { opacity: 0; transform: translateY(0.25em); transition: opacity 0.9s var(--ease) 1.1s, transform 0.9s var(--ease) 1.1s; }
  .js .say.in .say-yes { opacity: 1; transform: none; }

  .js .route-point { transform: rotate(45deg) scale(0); transition: transform 0.6s var(--ease); }
  .js.route-arrived .route-point { transform: rotate(45deg) scale(1); }
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes sweep-rtl { from { background-position: 0% 0; } to { background-position: 100% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-toggle, .js .motion-toggle { display: none; }
  .msg-typing { visibility: hidden; }
  .progress i { transform: scaleX(0.4); }
  .wave i { transform: scaleY(0.6); }
}
