/* Basiony 3D — styles. Logical properties, so Arabic (RTL) and English (LTR) share one stylesheet.
   One bold moment (the particle journey); everything after it is calm, clear and built to sell. */
@font-face { font-family: "Outfit"; src: url("../assets/fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+20AC; }
@font-face { font-family: "Readex Pro"; src: url("../assets/fonts/readexpro-arabic.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tiny5"; src: url("../assets/fonts/tiny5-regular.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Handjet"; src: url("../assets/fonts/handjet-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #050505;          /* brand black */
  --coal: #121212;         /* raised surfaces */
  --line: #262424;         /* hairlines */
  --bone: #ebe7e3;         /* light band (package, frame stage) */
  --ash: #9a9592;          /* secondary text */
  --signal: #ff1a1a;       /* brand red */
  --signal-strong: #e00000;/* red buttons (white text passes contrast) */
  --text: #f3f1ef;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1320px;
  --font: "Outfit", system-ui, sans-serif;
  --pixel: "Tiny5", monospace;
  --clip: 0; --light: 0;
  --fx: 13vw; --fy: 11vh;   /* the framed screen: 74vw × 78vh on desktop */
  color-scheme: dark;
}
:lang(ar) { --font: "Readex Pro", "Outfit", "Segoe UI", sans-serif; --pixel: "Handjet", "Readex Pro", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-block-start: -80px; inset-inline-start: 16px; z-index: 99; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { inset-block-start: 12px; }
.dim { color: #8d8986; }
.pixel { font-family: var(--pixel); font-weight: 700; letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-block-size: 48px; padding-inline: 22px; border-radius: 12px; border: 1px solid transparent; background: var(--signal-strong); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #c40000; }
.btn svg { inline-size: 20px; block-size: 20px; }
.btn--sm { min-block-size: 36px; padding-inline: 14px; border-radius: 9px; font-size: .875rem; }
.btn--line { background: transparent; border-color: #4a4545; color: var(--text); }
.btn--line:hover { background: rgba(255,255,255,.06); border-color: #6a6363; }
.btn--ghost { background: transparent; color: var(--ash); }
.btn--ghost:hover { background: transparent; color: var(--text); }

/* ---------- header: one pill, centred ---------- */
.top {
  position: fixed; z-index: 30; inset-block-start: 14px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 12px; padding-block: 6px; padding-inline: 14px 6px; border-radius: 14px;
  background: rgba(18,18,18,.78); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); white-space: nowrap;
}
.brand img { block-size: 20px; inline-size: auto; }
.top__sep { inline-size: 1px; block-size: 18px; background: #3a3636; }
.top__nav { display: flex; gap: 2px; }
.top__nav a { padding: 6px 10px; border-radius: 8px; color: #cfcbc8; text-decoration: none; font-size: .875rem; }
.top__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.toggle { color: #ddd; text-decoration: none; font-size: .875rem; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.06); }
[dir="rtl"] .toggle { font-family: "Outfit", sans-serif; }
[dir="ltr"] .toggle { font-family: "Readex Pro", sans-serif; }

/* ---------- fixed layers of the journey (home only) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--bone); opacity: var(--light); pointer-events: none; }
.stage, #field { position: fixed; inset: 0; pointer-events: none; clip-path: inset(calc(var(--clip) * var(--fy)) calc(var(--clip) * var(--fx)) calc(var(--clip) * var(--fyb, var(--fy))) round calc(var(--clip) * 28px)); }
.stage { z-index: 1; background: radial-gradient(38% 42% at 50% 104%, rgba(255,42,26,.55), rgba(140,0,7,.18) 50%, transparent 75%), radial-gradient(30% 40% at 50% 45%, rgba(255,255,255,.05), transparent 70%), var(--ink); transition: opacity .5s; }
.after .stage { opacity: 0; }
#field { z-index: 3; inline-size: 100vw; block-size: 100vh; }
.big {
  position: fixed; z-index: 2; inset-inline: 0; inset-block-start: 13vh; text-align: center; pointer-events: none; white-space: nowrap;
  font-family: var(--pixel); font-weight: 700; line-height: 1; color: #dcd9d6; font-size: 9vw;
  opacity: var(--big-op, 1); translate: 0 calc((1 - var(--big-op, 1)) * -40px);
}
:lang(ar) .big { inset-block-start: 10vh; line-height: 1.15; word-spacing: .4em; } /* kashida-stretched words need a clear gap between them */
.hud { position: fixed; z-index: 20; inset-block-end: 22px; inset-inline-start: var(--gutter); display: flex; align-items: center; gap: 12px; min-block-size: 56px; font-size: 1.0625rem; font-weight: 500; color: #e6e2df; padding: 10px 18px 10px 10px; border-radius: 999px; transition: padding .4s, background-color .4s; background: rgba(28,27,27,.9); border: 1px solid rgba(255,255,255,.12); padding-inline-start: 18px; }
[dir="rtl"] .hud { padding: 10px 18px; }
/* the section icon: 64 pixel squares that glide into each section's shape */
.pix { inline-size: 26px; block-size: 26px; flex: none; overflow: visible; }
.pix rect { fill: var(--signal); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) { .pix rect { transition: none; } }
.hud [data-hud-num] { color: var(--signal); font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.125rem; }
.hud__bar { inline-size: 28px; block-size: 1px; background: #555; }

main { position: relative; z-index: 4; }
.journey { block-size: 560vh; }
.journey__pin { position: sticky; inset-block-start: 0; block-size: 100svh; }
[data-range] { position: absolute; }

.hero__copy { inset-block-end: 104px; inset-inline-start: var(--gutter); display: grid; gap: 14px; justify-items: start; max-inline-size: 460px; }
.hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta { color: #8a8784; font-size: .8125rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #d6d3d0; font-size: .8125rem; }
.pill i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 8px #2fd36b; }
.hero__line { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 400; line-height: 1.2; }
.hero__line span { display: block; }
.hero__fallback { display: none; }
.no-webgl .hero__fallback { display: block; position: absolute; inset: 0; margin: auto; max-block-size: 70svh; inline-size: auto; border-radius: 24px; }

.frame-ui { inset: 0; pointer-events: none; }
.frame-ui__cap { position: absolute; inset-block-start: calc(var(--fy) + 4vh); inset-inline: 0; text-align: center; font-size: clamp(1.4rem, 2.4vw, 2.3rem); font-weight: 500; line-height: 1.3; }
.card { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: center; padding: 20px 24px; border-radius: 20px; inline-size: clamp(290px, 24vw, 370px); min-block-size: 104px; transition: translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background-color .35s; background: rgba(255,255,255,.94); color: #121212; text-decoration: none; pointer-events: auto; box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); }
.card b { font-size: 1.25rem; grid-column: 2; }
.card__ico { grid-row: span 2; display: grid; place-items: center; inline-size: 46px; block-size: 46px; border-radius: 13px; background: #f3dede; color: var(--signal); transition: background-color .35s, color .35s, rotate .35s; }
.card__ico svg { inline-size: 24px; block-size: 24px; }
/* hover: the card lifts, its icon fills with brand red */
.card:hover, .card:focus-visible { translate: 0 -6px; box-shadow: 0 30px 60px -22px rgba(0,0,0,.6), 0 0 0 2px var(--signal); background: #fff; }
.card:hover .card__ico, .card:focus-visible .card__ico { background: var(--signal); color: #fff; rotate: -6deg; }
.card small { color: #6a6461; font-size: 1rem; grid-column: 2; }
/* desktop: two parallel pairs that sit across the frame edges (a third outside), same heights on both sides */
.card--1 { inset-block-start: calc(var(--fy) + 11vh); inset-inline-start: max(16px, calc(var(--fx) - 110px)); }
.card--3 { inset-block-start: calc(var(--fy) + 11vh); inset-inline-end: max(16px, calc(var(--fx) - 110px)); }
.card--2 { inset-block-end: calc(var(--fy) + 13vh); inset-inline-start: max(16px, calc(var(--fx) - 110px)); }
.card--4 { inset-block-end: calc(var(--fy) + 13vh); inset-inline-end: max(16px, calc(var(--fx) - 110px)); }
.brief { position: absolute; inset-block-end: calc(var(--fy) - 34px); left: 50%; translate: -50% 0; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; inline-size: min(640px, 80vw); padding: 14px 14px 14px 22px; border-radius: 18px; background: #1b1a1a; color: #9b9693; text-decoration: none; font-size: 1.0625rem; border: 1px solid #2c2a2a; }
[dir="rtl"] .brief { padding: 12px 18px 12px 12px; }
.brief i { display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 9px; background: var(--signal-strong); color: #fff; }
.brief i svg { inline-size: 16px; block-size: 16px; }
[dir="rtl"] .brief i svg { transform: scaleX(-1); }

.panel { inset-block: 92px 96px; inline-size: min(540px, 42vw); display: grid; gap: 12px; align-content: center; }
.panel--a { inset-inline-end: var(--gutter); }
.panel--b { inset-inline-start: var(--gutter); }
.panel h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.15; margin-block-end: 6px; }
:lang(ar) .panel h2 { line-height: 1.4; }
.panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.panel li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 20px; border-radius: 14px; background: rgba(18,18,18,.8); border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.panel li > span { color: var(--signal); font: 700 1.125rem "Outfit", sans-serif; padding-block-start: 2px; }
.panel .ico svg { inline-size: 28px; block-size: 28px; color: var(--signal); }
.panel li b { display: block; font-size: 1.25rem; }
.panel li small { color: #bdb8b5; font-size: 1.0625rem; }

/* ---------- sections after the journey ---------- */
.sec { position: relative; max-inline-size: var(--max); margin-inline: auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.sec__head { display: grid; gap: 14px; margin-block-end: clamp(28px, 4vw, 48px); max-inline-size: 760px; }
.sec__head h2 { font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: .9; color: #e6e2df; }
:lang(ar) .sec__head h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.25; } /* Readex Pro is wider than the pixel font */
.sec__head p { color: var(--ash); font-size: 1.125rem; max-inline-size: 56ch; }

/* work */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 28px; }
.chip { min-block-size: 40px; padding-inline: 16px; border-radius: 999px; border: 1px solid #3a3636; background: transparent; color: #cfcbc8; font: inherit; font-size: .9375rem; cursor: pointer; }
.chip:hover { border-color: #6a6363; color: #fff; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.wgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 32px); grid-template-columns: 1fr; }
.wcard[hidden] { display: none; }
.wcard__link { display: grid; gap: 14px; text-decoration: none; }
.wcard__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--coal); border: 1px solid #1f1d1d; }
.wcard__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.wcard__link:hover .wcard__media img, .wcard__link:hover .gen__icon { scale: 1.04; }
.wcard__loop, .vframe__loop { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.wcard__loop.on, .vframe__loop.on { opacity: 1; }
.wcard__soon { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(5,5,5,.7); border: 1px solid #333; font-size: .8125rem; color: #d6d3d0; backdrop-filter: blur(6px); }
.wcard__body { display: grid; gap: 4px; }
.wcard__cat { color: var(--signal); font-size: .875rem; }
.wcard__title { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.wcard__sum { color: var(--ash); }
.wcard__open { justify-self: start; font-size: .9375rem; color: #cfcbc8; border-block-end: 1px solid #555; padding-block-end: 2px; }
.wcard__link:hover .wcard__open { color: #fff; border-color: var(--signal); }
/* generated cover until a real poster exists: pixel field + category icon */
.gen { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(60% 70% at 50% 110%, rgba(255,26,26,.32), transparent 70%),
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 14px 14px, #0d0c0c; }
.gen__icon { inline-size: 22%; max-inline-size: 110px; color: #ff4a3a; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.gen__icon svg { inline-size: 100%; block-size: auto; }
.gen--editing .gen__icon, .gen--design .gen__icon { color: #f3ece9; }

/* services: rows with hairlines, not cards */
.srows { border-block-start: 1px solid var(--line); }
.srow { display: grid; gap: 22px; padding-block: 32px; border-block-end: 1px solid var(--line); }
.srow__name { display: grid; gap: 8px; align-content: start; }
.srow__ico svg { inline-size: 30px; block-size: 30px; color: var(--signal); }
.srow h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
.srow__name p { color: #cfcbc8; font-size: 1.0625rem; }
.srow h4 { font-size: .9375rem; font-weight: 500; color: var(--ash); margin-block-end: 8px; }
.srow ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.srow ul li { padding-inline-start: 18px; position: relative; }
.srow ul li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .7em; inline-size: 7px; block-size: 7px; background: var(--signal); }
.srow__for { display: grid; gap: 8px; align-content: start; justify-items: start; }
.srow__for p { color: #cfcbc8; margin-block-end: 10px; }

/* monthly package: the one light band */
.package { max-inline-size: none; padding-inline: 0; }
.package__inner { max-inline-size: var(--max); margin-inline: auto; padding: clamp(36px, 5vw, 64px) var(--gutter); background: var(--bone); color: #141212; border-radius: clamp(20px, 3vw, 32px); display: grid; gap: 32px; }
.package h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; margin-block-end: 12px; }
:lang(ar) .package h2 { line-height: 1.35; }
.package__lead p { color: #4a4442; font-size: 1.125rem; margin-block-end: 24px; max-inline-size: 46ch; }
.package h3 { font-size: 1rem; color: #6a6260; font-weight: 500; margin-block-end: 12px; }
.ticks, .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { padding-inline-start: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .45em; inline-size: 12px; block-size: 7px; border-inline-start: 2px solid var(--signal-strong); border-block-end: 2px solid var(--signal-strong); transform: rotate(-45deg); }
[dir="rtl"] .ticks li::before { transform: rotate(45deg) scaleX(-1); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.steps li::before { content: counter(s); font: 600 .9rem "Outfit", sans-serif; color: var(--signal-strong); padding-block-start: 2px; }

/* numbers (only when real numbers exist) */
.stats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; border-block: 1px solid var(--line); padding-block: 32px; }
.stats__row div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats__row dd { margin: 0; font-family: var(--pixel); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.stats__row dt { color: var(--ash); }

/* about */
.about { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__photo img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.about__text { display: grid; gap: 16px; }
.about h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; }
.about__text > p { color: #cfcbc8; }
.about h3 { font-size: 1.375rem; margin-block-start: 18px; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.why li { display: grid; gap: 4px; padding-block: 16px; border-block-end: 1px solid var(--line); }
.why span { color: var(--ash); }

/* faq */
.faq__list { border-block-start: 1px solid var(--line); max-inline-size: 900px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font-size: 1.1875rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; inline-size: 11px; block-size: 11px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { color: var(--ash); padding-block-end: 22px; max-inline-size: 70ch; }

/* quote form */
.quote { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; margin-block-end: 14px; }
.quote__lead > p { color: var(--ash); max-inline-size: 46ch; }
.quote__preview { margin-block-start: 28px; padding: 18px; border-radius: 16px; background: var(--coal); border: 1px solid #222; }
.quote__preview h3 { font-size: .875rem; font-weight: 500; color: var(--ash); margin-block-end: 8px; }
.quote__preview pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: .9375rem; color: #e6e2df; min-block-size: 4.8em; }
.qform { display: grid; gap: 22px; }
.qform fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.qform legend, .field > span { font-size: .9375rem; color: #cfcbc8; margin-block-end: 8px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 10px; min-block-size: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid #3a3636; color: #d6d3d0; font-size: .9375rem; line-height: 1.3; }
.opt--sm span { min-block-size: 42px; padding: 8px 12px; font-size: .875rem; }
.opt i svg { inline-size: 20px; block-size: 20px; color: var(--signal); display: block; }
.opt b { font-family: "Outfit", sans-serif; }
.opt:hover span { border-color: #6a6363; }
.opt input:checked + span { border-color: var(--signal); background: rgba(255,26,26,.08); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.qform__row { display: grid; gap: 16px; }
.field { display: grid; }
.field input, .field select, .field textarea { inline-size: 100%; min-block-size: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #3a3636; background: #0e0d0d; color: var(--text); font: inherit; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a67; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.qform__error { min-block-size: 1.4em; color: #ff8a7a; font-size: .9375rem; }
.qform__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* footer */
.foot { position: relative; z-index: 4; border-block-start: 1px solid var(--line); background: var(--ink); }
.foot__inner { max-inline-size: var(--max); margin-inline: auto; padding: 40px var(--gutter) 90px; display: grid; gap: 10px; color: var(--ash); }
.foot__inner img { block-size: 24px; inline-size: auto; margin-block-end: 6px; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__contact a { color: var(--text); }
.foot__copy { font-size: .875rem; }

/* ---------- project page ---------- */
.proj { max-inline-size: var(--max); margin-inline: auto; padding: 110px var(--gutter) 40px; display: grid; gap: clamp(28px, 4vw, 48px); }
.proj__back { justify-self: start; color: var(--ash); text-decoration: none; font-size: .9375rem; border-block-end: 1px solid #444; }
.proj__back:hover { color: #fff; }
.proj__head { display: grid; gap: 16px; }
.proj__head h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.05; max-inline-size: 18ch; }
:lang(ar) .proj__head h1 { line-height: 1.3; }
.proj__sum { color: #cfcbc8; font-size: 1.25rem; max-inline-size: 56ch; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 8px 0 0; }
.proj__meta dt { color: var(--ash); font-size: .875rem; }
.proj__meta dd { margin: 0; }
.proj__main { justify-self: center; inline-size: 100%; }
.proj__main--9x16 { max-inline-size: 420px; }
.proj__main--4x5, .proj__main--1x1 { max-inline-size: 640px; }
.vframe { position: relative; overflow: hidden; border-radius: 20px; background: var(--coal); border: 1px solid #1f1d1d; }
.vframe img, .vframe iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; border: 0; }
.vframe__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent 60%); cursor: pointer; color: #fff; }
.vframe__play span { display: grid; place-items: center; inline-size: 78px; block-size: 78px; border-radius: 50%; background: var(--signal-strong); }
.vframe__play svg { inline-size: 30px; block-size: 30px; margin-inline-start: 4px; }
.vframe--soon .gen { position: absolute; }
.vframe__soon { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(5,5,5,.7); border: 1px solid #333; font-size: .875rem; }
.pimg { inline-size: 100%; border-radius: 20px; }
.proj__body { display: grid; gap: 32px; }
.proj__story { display: grid; gap: 28px; }
.proj__story h2, .proj__deliv h2, .proj__more h2 { font-size: 1.125rem; color: var(--ash); font-weight: 500; margin-block-end: 8px; }
.proj__story p { font-size: 1.125rem; max-inline-size: 60ch; }
.proj__empty { color: var(--ash); font-size: 1.125rem; }
.proj__deliv ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.proj__deliv li { padding-inline-start: 18px; position: relative; }
.proj__deliv li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .7em; inline-size: 7px; block-size: 7px; background: var(--signal); }
/* masonry columns, so wide (16:9) and tall (9:16) stills sit together without gaps */
.proj__grid { columns: 3 260px; column-gap: 16px; }
.proj__grid > * { break-inside: avoid; margin-block-end: 16px; }
.proj__grid img { display: block; inline-size: 100%; border-radius: 16px; }
/* case study: brief + numbered steps under the video (Behance-style) */
.proj__brief { display: grid; gap: 10px; padding-block-start: clamp(24px, 3vw, 36px); border-block-start: 1px solid var(--line); }
.proj__brief h2, .steps__title { font-size: .9375rem; font-weight: 500; color: var(--ash); letter-spacing: .04em; }
.proj__brief p { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.5; max-inline-size: 40ch; }
.steps { display: grid; gap: clamp(48px, 7vw, 96px); padding-block-start: clamp(24px, 3vw, 36px); border-block-start: 1px solid var(--line); }
.step { display: grid; gap: 20px; align-items: start; }
.step__txt { display: grid; gap: 10px; align-content: start; }
.step__n { font-family: var(--pixel); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--signal); }
.step__txt h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; }
.step__txt p { color: #cfcbc8; font-size: 1.0625rem; max-inline-size: 46ch; }
/* images in one row at the same height: each grows by its own width/height ratio (--r) */
.step__media { display: flex; gap: clamp(10px, 1.4vw, 16px); align-items: flex-start; }
.step__media img { flex: var(--r, 1) 1 0; min-inline-size: 0; inline-size: 0; block-size: auto; border-radius: 16px; border: 1px solid #1f1d1d; background: var(--coal); }
.step--pad .step__media { padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px); border-radius: 20px; background: var(--coal); border: 1px solid var(--line); }
.step--pad .step__media img { border: 0; border-radius: 0; background: none; }
/* exploded view: the scene's own layers come apart in 3D and settle back (a motion designer's breakdown) */
.explode { position: relative; container-type: inline-size; perspective: 1600px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #1c1a1a, var(--ink)); border: 1px solid var(--line); }
.explode img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .explode { transform-style: preserve-3d; }
  .step.in .explode img { animation: explode 7s cubic-bezier(.65,0,.35,1) .4s infinite; }
}
@keyframes explode {
  0%, 12%, 88%, 100% { transform: none; filter: none; }
  38%, 66% { transform: scale(.8) rotateY(-34deg) translateZ(calc((var(--z) - (var(--n) - 1) / 2) * 7cqi)); filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
}
/* several scenes: a 2-column grid; each scene starts a little later than the one before */
.explodes { display: grid; gap: clamp(10px, 1.4vw, 16px); align-items: center; }
.explodes .explode:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; inline-size: 50%; }
@media (min-width: 600px) { .explodes { grid-template-columns: 1fr 1fr; } }
.step.in .explodes .explode:nth-child(2) img { animation-delay: 1.2s; }
.step.in .explodes .explode:nth-child(3) img { animation-delay: 2s; }
.step.in .explodes .explode:nth-child(4) img { animation-delay: 2.8s; }
/* layer build: the scene's layers switch on one by one (bottom first), hold, then switch off in the same order */
.step__stack { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.lbuild { position: relative; border-radius: 20px; overflow: hidden; background: #1a1818; border: 1px solid var(--line); }
.lbuild img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .step.in .lbuild img { animation: lbuild 9s steps(1, end) calc(var(--z) * .32s + .3s) infinite both; }
}
@keyframes lbuild { 0% { opacity: 0; } 4% { opacity: 1; } 62% { opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 900px) {
  .proj__brief { grid-template-columns: 1fr 2fr; }
  .step { grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: clamp(32px, 4vw, 64px); }
  .step__txt { position: sticky; inset-block-start: 110px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: 0; translate: 0 36px; transition: opacity .7s ease, translate .8s cubic-bezier(.2,.7,.2,1); }
  .js .step.in { opacity: 1; translate: 0 0; }
  .js .step .step__media img { clip-path: inset(0 0 100% 0); transition: clip-path 1s .15s cubic-bezier(.7,0,.2,1); }
  .js .step.in .step__media img { clip-path: inset(0 0 0 0); }
  .js .step.in .step__media img:nth-child(2) { transition-delay: .3s; }
  .js .step.in .step__media img:nth-child(3) { transition-delay: .45s; }
}
.similar { display: grid; gap: 20px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--bone); color: #141212; }
.similar h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
.similar p { color: #4a4442; }
.proj__nav { display: grid; grid-template-columns: 1fr 1fr; border-block-start: 1px solid var(--line); }
.proj__nav a { display: grid; gap: 4px; padding-block: 24px; text-decoration: none; }
.proj__nav a:last-child { text-align: end; }
.proj__nav small { color: var(--ash); }
.proj__nav span { font-size: 1.125rem; }
.proj__nav a:hover span { color: var(--signal); }

/* 404 */
.nf { min-block-size: 100vh; display: grid; place-items: center; text-align: center; }
.nf .pixel { font-size: 30vw; line-height: 1; color: var(--signal); }
.nf p { display: flex; gap: 10px; justify-content: center; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .wgrid { grid-template-columns: 1fr 1fr; }
  .wcard--wide { grid-column: 1 / -1; }
  .wcard--wide .wcard__media { aspect-ratio: 21 / 9; }
  .qform__row { grid-template-columns: 1fr 1fr; }
  .package__inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
  .similar { grid-template-columns: 1fr auto; }
}
@media (min-width: 980px) {
  .srow { grid-template-columns: 1.2fr 1fr .9fr; gap: 40px; }
  .about { grid-template-columns: 5fr 7fr; }
  .quote { grid-template-columns: 5fr 7fr; }
  .quote__lead { position: sticky; inset-block-start: 100px; }
  .proj__body { grid-template-columns: 2fr 1fr; align-items: start; }
}

/* ---------- phones ---------- */
@media (max-width: 860px) { .top__nav, .top__sep { display: none; } }
@media (max-width: 767px) {
  /* phones: the frame ends higher (--fyb) so the four service cards fit stacked under it, above the HUD */
  :root { --fx: 5vw; --fy: 92px; --fyb: 280px; }
  .top { inset-block-start: 10px; gap: 8px; }
  .big { inset-block-start: 20vh; }
  :lang(ar) .big { inset-block-start: 18vh; }
  .hero__copy, .panel { padding: 16px; border-radius: 18px; background: rgba(5,5,5,.72); backdrop-filter: blur(10px); }
  .hero__copy { inset-block-end: 76px; inset-inline-end: var(--gutter); }
  .panel h2 { font-size: 1.5rem; }
  .card { min-inline-size: 0; padding: 8px 12px; }
  .card small { display: none; }
  .card b { font-size: .95rem; }
  .card { inline-size: auto; grid-template-columns: 1fr; }
  .card__ico { display: grid; grid-row: auto; flex: none; inline-size: 28px; block-size: 28px; border-radius: 8px; } /* small animated icon beside the name */
  .card__ico svg { inline-size: 17px; block-size: 17px; }
  .card { gap: 10px; }
  .card b, .card small { grid-column: auto; }
  .brief { font-size: .9375rem; padding: 12px 12px 12px 18px; }
  /* the four cards, one under another, full width, between the frame and the HUD */
  .card { display: flex; align-items: center; block-size: 42px; min-block-size: 0; padding: 0 16px; border-radius: 12px; inset-inline: var(--fx); inset-block-start: auto; }
  .card:hover, .card:focus-visible { translate: none; }
  .card--1 { inset-block-end: calc(var(--fyb) - 56px); }
  .card--2 { inset-block-end: calc(var(--fyb) - 104px); }
  .card--3 { inset-block-end: calc(var(--fyb) - 152px); }
  .card--4 { inset-block-end: calc(var(--fyb) - 200px); }
  /* the idea box sits inside the frame, at its bottom */
  .brief { inset-block-end: calc(var(--fyb) + 12px); inset-inline: calc(var(--fx) + 12px); translate: none; inline-size: auto; }
  .panel { inline-size: auto; inset-inline: var(--gutter); inset-block-start: auto; inset-block-end: 76px; }
  .panel li { padding: 10px 12px; }
  .panel li small { display: none; }
  .hud { inset-block-end: 14px; min-block-size: 48px; font-size: 1rem; background: rgba(28,27,27,.9); border: 1px solid rgba(255,255,255,.12); }
  .pix { inline-size: 22px; block-size: 22px; }
}

/* ---------- header must not shrink: fixed + left:50% only offers half the screen ---------- */
.top { inline-size: max-content; }
.brand { flex: none; }
.brand img { max-inline-size: none; }
@media (max-width: 400px) {
  .top { gap: 6px; padding-inline-start: 10px; }
  .brand img { block-size: 18px; }
  .top .btn { padding-inline: 10px; font-size: .8125rem; }
  .top .toggle { padding-inline: 8px; font-size: .8125rem; }
}
@media (max-width: 350px) { .brand img { block-size: 15px; } .top .btn, .top .toggle { font-size: .75rem; } }

/* until the first animation frame, only the hero text shows (the other journey layers would pile up) */
html:not(.static) [data-range]:not(.hero__copy) { opacity: 0; visibility: hidden; }

/* ---------- static page: reduced motion, no WebGL, or no JS. No camera journey, everything in normal flow ---------- */
.static .stage, .static #field, .static .big { position: absolute; }
.static .big { overflow: hidden; z-index: 6; text-shadow: 0 2px 18px rgba(0,0,0,.7); } /* absolute, so it must not widen the page while fitBig measures it; above the fallback photo */
.static .stage, .static #field { inset: 0 auto auto 0; inline-size: 100%; block-size: 100vh; clip-path: none; }
.static .backdrop, .static .hud { display: none; }
.static .journey { block-size: auto; }
.static .journey__pin { position: relative; block-size: auto; display: block; }
.static [data-range] { position: relative; inset: auto; translate: none !important; opacity: 1 !important; visibility: visible !important; }
.static .hero__copy { min-block-size: 100svh; max-inline-size: none; align-content: end; padding: 0 var(--gutter) 40px; background: none; backdrop-filter: none; border-radius: 0; }
.static .frame-ui { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 64px var(--gutter); background: var(--bone); pointer-events: auto; }
.static .frame-ui__cap { position: static; grid-column: 1 / -1; color: #141212; margin-block-end: 12px; }
.static .card { position: static; min-inline-size: 0; }
.static .card small { display: block; }
.static .brief { position: static; translate: none; grid-column: 1 / -1; inline-size: 100%; }
.static .panel { inline-size: auto; max-inline-size: 900px; margin-inline: auto; padding: 64px var(--gutter) 0; background: none; backdrop-filter: none; }
.static .panel li small { display: block; }
.static.no-webgl .hero__fallback, .static:not(.js) .hero__fallback {
  display: block; position: absolute; inset: 24svh auto auto 50%; translate: -50% 0; margin: 0;
  block-size: 52svh; max-block-size: 52svh; inline-size: auto; max-inline-size: 92vw; object-fit: cover; border-radius: 24px;
}
@media (prefers-reduced-motion: reduce) { .wcard__loop, .vframe__loop { display: none; } html { scroll-behavior: auto; } .wcard__media img, .gen__icon { transition: none; } }

/* ---------- phones: journey overlays ---------- */
@media (max-width: 767px) {
  .brief span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brief i { flex: none; }
}
@media (max-width: 380px) { .card { padding: 7px 9px; } .card b { font-size: .8125rem; } }
@media (max-width: 767px) and (max-height: 699px) {
  .panel { gap: 6px; padding: 12px; }
  .panel h2 { font-size: 1.1875rem; }
  .panel ol { gap: 5px; }
  .panel li { padding: 6px 12px; grid-template-columns: 24px 1fr; gap: 10px; }
  .panel li b { font-size: .9375rem; }
  .panel .ico svg { inline-size: 20px; block-size: 20px; }
  html:not(.static) .hero__copy .meta { display: none; }
}

/* the pinned scene leaves with the page at the end of the journey (main.js sets --shift), then stops drawing */
html:not(.static) .backdrop, html:not(.static) .stage, html:not(.static) #field { translate: 0 var(--shift, 0px); }
.after #field, .after .stage, .after .backdrop, .after .big { visibility: hidden; } /* .big too: a menu jump from the top skips the fade */

/* phones: shorter journey; services and process are normal sections after it */
@media (min-width: 768px) { .m-only { display: none; } }
@media (max-width: 767px) {
  html:not(.static) .journey { block-size: 300vh; }
  html:not(.static) .journey .panel { display: none; }
  .m-steps { padding-block: 56px 8px; }
  .m-steps .panel { position: static; inset: auto; inline-size: auto; padding: 0; background: none; backdrop-filter: none; }
  .m-steps .panel h2 { font-size: 1.75rem; margin-block-end: 10px; }
  .m-steps .panel li small { display: block; }
}
.static .m-only { display: none; }

/* static page: keep the hero text readable over the head */
.static .hero__copy { background: linear-gradient(to bottom, transparent 62%, rgba(5,5,5,.88) 82%); }

/* ---------- conversion helpers ---------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
/* WhatsApp: always one tap away */
.wa-fab { display: grid; place-items: center; position: fixed; z-index: 21; inset-block-end: 22px; inset-inline-end: var(--gutter); inline-size: 56px; block-size: 56px; border-radius: 50%; background: #25d366; color: #06210f; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.wa-fab svg { inline-size: 28px; block-size: 28px; }
.wa-fab span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
  .wa-fab {
    /* same height and baseline as the HUD pill beside it (48px + 1px border, 14px from the bottom) */
    display: grid; place-items: center; position: fixed; z-index: 21; inset-block-end: 14px; inset-inline-end: var(--gutter);
    inline-size: 50px; block-size: 50px; border-radius: 50%; background: #25d366; color: #06210f;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
  }
  .wa-fab svg { inline-size: 24px; block-size: 24px; }
  .wa-fab span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
}
/* client words (hidden while there are none) */
.voices__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.voices figure { margin: 0; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.03); }
.voices blockquote { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.6; }
.voices figcaption { color: var(--muted, #9a9393); font-size: .875rem; }

/* the service choices allow several at once: a check box on each makes that obvious */
.opts--cards .opt span { position: relative; padding-inline-end: 44px; }
.opts--cards .opt span::after { content: ""; position: absolute; inset-inline-end: 14px; inset-block-start: 50%; translate: 0 -50%; inline-size: 18px; block-size: 18px; border-radius: 5px; border: 1.5px solid #5a5454; }
.opts--cards .opt input:checked + span::after { border-color: var(--signal); background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* the frame's brief box is a real field: typing here fills the quote form */
.brief input { flex: 1; min-inline-size: 0; background: none; border: 0; color: #f1eeeb; font: inherit; outline: none; }
.brief input::placeholder { color: #9b9693; }
.brief button { flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.brief:focus-within { border-color: var(--signal); }

/* short phones: a compact card stack so the frame keeps enough height for the head */
@media (max-width: 767px) and (max-height: 720px) {
  :root { --fy: 92px; --fyb: 240px; }   /* 92: room for the skip-intro pill above the frame */
  .card { block-size: 36px; font-size: .875rem; }
  .card--1 { inset-block-end: calc(var(--fyb) - 48px); }
  .card--2 { inset-block-end: calc(var(--fyb) - 88px); }
  .card--3 { inset-block-end: calc(var(--fyb) - 128px); }
  .card--4 { inset-block-end: calc(var(--fyb) - 168px); }
  .brief { padding-block: 8px; }
}
@media (max-width: 767px) and (max-height: 600px) { .frame-ui__cap { display: none; } }

/* trust line: a real promise from the owner */
.trust { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .8125rem; color: #bdb7b3; }
.trust i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 3px rgba(47,211,107,.18); }
.qform__actions { flex-wrap: wrap; align-items: center; }
.qform__actions .trust { flex-basis: 100%; }
/* WhatsApp nudge bubble */
.wa-nudge { position: fixed; z-index: 21; inset-block-end: 90px; inset-inline-end: var(--gutter); max-inline-size: 250px; display: flex; align-items: flex-start; gap: 6px; padding: 12px 10px 12px 14px; border-radius: 16px; border-end-end-radius: 4px; background: #fff; color: #141212; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); font-size: .875rem; line-height: 1.4; animation: nudge-in .45s cubic-bezier(.2,.8,.2,1); }
.wa-nudge[hidden] { display: none; }
.wa-nudge a { color: inherit; text-decoration: none; font-weight: 600; }
.wa-nudge button { flex: none; border: 0; background: none; color: #8a8380; font-size: 1.1rem; line-height: 1; padding: 0 2px; cursor: pointer; }
@keyframes nudge-in { from { opacity: 0; translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .wa-nudge { animation: none; } }
@media (max-width: 767px) { .wa-nudge { inset-block-end: 74px; max-inline-size: 220px; } }
/* skip intro: only while the scroll journey is on screen */
.skip-intro { position: fixed; z-index: 19; inset-block-end: 30px; left: 50%; translate: -50% 0; padding: 7px 16px; border-radius: 999px; background: rgba(28,27,27,.85); border: 1px solid rgba(255,255,255,.14); color: #e6e2df; font-size: .8125rem; text-decoration: none; transition: opacity .3s; }
.skip-intro:hover { background: rgba(48,46,46,.92); }
.after .skip-intro, .static .skip-intro { opacity: 0; pointer-events: none; visibility: hidden; }
@media (max-width: 767px) { .skip-intro { inset-block-end: auto; inset-block-start: 61px; padding: 3px 11px; font-size: .75rem; } } /* sits between the header and the frame (frame starts at 92px) */

/* ---------- monthly package: a dark, prominent card ---------- */
.pk { inline-size: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(26px, 5vw, 64px); border-radius: clamp(22px, 3vw, 36px); background: radial-gradient(70% 80% at 100% 0%, rgba(255,26,26,.2), transparent 60%), #0e0d0d; border: 1px solid rgba(255,255,255,.08); color: #f1eeeb; display: grid; gap: clamp(28px, 4vw, 44px); }
[dir="rtl"] .pk { background: radial-gradient(70% 80% at 0% 0%, rgba(255,26,26,.2), transparent 60%), #0e0d0d; }
.pk__badge { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,26,26,.14); border: 1px solid rgba(255,26,26,.35); color: #ff7a70; font-size: .8125rem; }
.pk h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; margin: 0 0 14px; }
:lang(ar) .pk h2 { line-height: 1.3; }
.pk__text { color: #bdb7b3; font-size: 1.125rem; line-height: 1.6; max-inline-size: 46ch; margin: 0 0 26px; }
.pk__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pk__note { margin: 14px 0 0; font-size: .8125rem; color: #8f8885; }
.pk h3 { font-size: .875rem; font-weight: 500; color: #8f8885; margin: 0 0 14px; }
.pk ul, .pk ol { list-style: none; margin: 0; padding: 0; }
.pk__gets ul { display: grid; gap: 10px; }
.pk__gets li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.pk__ico { flex: none; display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 12px; background: rgba(255,26,26,.12); color: var(--signal); }
.pk__ico svg { inline-size: 22px; block-size: 22px; }
.pk__gets b { display: block; font-size: 1.0625rem; }
.pk__gets small { display: block; margin-top: 3px; color: #a8a19e; font-size: .9rem; line-height: 1.5; }
.pk__compare { display: grid; gap: 14px; }
.pk__col { padding: 22px; border-radius: 18px; }
.pk__col li { position: relative; padding-inline-start: 32px; margin-block: 12px; line-height: 1.5; }
.pk__col li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 1px; inline-size: 20px; block-size: 20px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.pk__col--without { background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.14); color: #9a9390; }
.pk__col--without li::before { background-color: rgba(255,255,255,.08); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%239a9390' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pk__col--with { background: linear-gradient(160deg, rgba(255,26,26,.17), rgba(255,26,26,.04)); border: 1px solid rgba(255,26,26,.45); }
.pk__col--with h3 { color: #ff7a70; }
.pk__col--with li::before { background-color: var(--signal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pk__facts { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.pk__facts li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .9375rem; }
.pk__facts li::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 3px rgba(47,211,107,.18); }
.pk__steps ol { display: grid; gap: 10px; }
.pk__steps li { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.pk__steps li span { flex: none; display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%; border: 1px solid rgba(255,26,26,.6); color: #ff7a70; font-size: .875rem; font-weight: 600; }
@media (min-width: 900px) {
  .pk { grid-template-columns: 1.05fr 1fr; grid-template-areas: "lead gets" "compare compare" "steps facts"; align-items: start; }
  .pk__lead { grid-area: lead; } .pk__gets { grid-area: gets; } .pk__compare { grid-area: compare; grid-template-columns: 1fr 1fr; }
  .pk__steps { grid-area: steps; } .pk__facts { grid-area: facts; justify-content: flex-end; padding-block-start: 30px; }
}

/* ---------- animated icons (all off with reduced motion) ---------- */
.i { transition: scale .3s cubic-bezier(.2,.8,.2,1.4); }
.card:hover .i, .srow:hover .i, .opt:hover .i, .pk__gets li:hover .i, .btn:hover .i, .brief:hover .i, .wa-fab:hover .i, .wcard:hover .i { scale: 1.14; }
@media (prefers-reduced-motion: no-preference) {
  .i * { transform-box: fill-box; transform-origin: center; }
  .i.in { animation: i-in .7s cubic-bezier(.2,.8,.2,1.35) backwards; }
  @keyframes i-in { from { scale: .6; rotate: -12deg; } } /* a pop, never invisible */
  /* motion graphics: a rocket — the ship bobs forward, the flame flickers, the speed lines run (all looping,
     nothing ever disappears) */
  .i-motion .r-ship { animation: r-fly 2.4s ease-in-out infinite; }
  .i-motion .r-flame { transform-origin: 100% 0; animation: r-flame .32s ease-in-out infinite alternate; }
  .i-motion .r-trail { stroke-dasharray: 2.2 2.2; animation: r-trail .6s linear infinite; }
  @keyframes r-fly { 0%, 100% { translate: 0 0; } 50% { translate: 1.3px -1.3px; } }
  @keyframes r-flame { from { scale: .72; opacity: .65; } to { scale: 1.12; opacity: 1; } }
  @keyframes r-trail { to { stroke-dashoffset: 4.4; } }
  /* video editing: the bars rise and fall like a timeline */
  .i-editing rect { animation: i-eq 1.6s ease-in-out infinite; }
  .i-editing rect:nth-child(2) { animation-delay: -.5s; }
  .i-editing rect:nth-child(3) { animation-delay: -1s; }
  @keyframes i-eq { 0%, 100% { scale: 1 1; } 50% { scale: 1 .62; } }
  /* social & ad design: two layers slide over each other */
  .i-design rect:first-child { animation: i-back 3.2s ease-in-out infinite; }
  .i-design rect:last-child { animation: i-front 3.2s ease-in-out infinite; }
  @keyframes i-back { 50% { translate: -3px -3px; } }
  @keyframes i-front { 50% { translate: 3px 3px; } }
  /* AI and brand: a sparkle that turns and breathes */
  .i-ai path, .i-brand path { animation: i-spark 3.4s linear infinite; }
  @keyframes i-spark { 0% { rotate: 0deg; scale: 1; } 50% { scale: .72; } 100% { rotate: 90deg; scale: 1; } }
  /* play: a forward pulse */
  .i-play path { animation: i-play 2.4s ease-in-out infinite; }
  @keyframes i-play { 0%, 100% { scale: 1; translate: 0 0; } 50% { scale: 1.16; translate: 1px 0; } }
  /* WhatsApp: a small ring every few seconds */
  .i-wa { animation: i-ring 5s ease-in-out infinite; }
  .i-wa.in { animation: i-in .7s cubic-bezier(.2,.8,.2,1.35) backwards, i-ring 5s .7s ease-in-out infinite; }
  @keyframes i-ring { 0%, 84%, 100% { rotate: 0deg; } 87% { rotate: -14deg; } 90% { rotate: 11deg; } 93% { rotate: -6deg; } 96% { rotate: 0deg; } }
  /* monthly card: calendar, video + design, platform sizes */
  .i-plan path { animation: i-tick 3.6s ease-in-out infinite; }
  @keyframes i-tick { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.5px; } }
  .i-mix path { animation: i-slide 2.4s ease-in-out infinite; }
  @keyframes i-slide { 0%, 100% { translate: 0 0; } 50% { translate: 2px 0; } }
  .i-sizes rect:nth-child(2) { animation: i-grow 3s ease-in-out infinite; }
  .i-sizes rect:nth-child(3) { animation: i-grow 3s -1.5s ease-in-out infinite; }
  @keyframes i-grow { 0%, 100% { scale: 1; } 50% { scale: .62; } }
  /* ✓ / × marks pop in one by one; the "live" green dots pulse */
  .pk__compare.in .pk__col li::before { animation: i-in .5s cubic-bezier(.2,.8,.2,1.35) backwards; }
  .pk__compare.in .pk__col li:nth-child(2)::before { animation-delay: .12s; }
  .pk__compare.in .pk__col li:nth-child(3)::before { animation-delay: .24s; }
  .pk__compare.in .pk__col--with li::before { animation-delay: .4s; }
  .pk__compare.in .pk__col--with li:nth-child(2)::before { animation-delay: .52s; }
  .pk__compare.in .pk__col--with li:nth-child(3)::before { animation-delay: .64s; }
  .trust i, .pk__facts li::before, .pill i { animation: i-live 2.2s ease-in-out infinite; }
  @keyframes i-live { 0%, 100% { box-shadow: 0 0 0 3px rgba(47,211,107,.18); } 50% { box-shadow: 0 0 0 6px rgba(47,211,107,0); } }
}

/* ---------- polish (owner, 2026-11-24) ---------- */
:root { --dir: 1; } [dir="rtl"] { --dir: -1; }
/* Arabic headings in the clean body font; the pixel font stays for English */
:lang(ar) { --pixel: "Readex Pro", "Segoe UI", sans-serif; }
:lang(ar) .big { word-spacing: .12em; line-height: 1.25; }
/* step numbers and step icons: one badge size, centred on the title */
.panel li { grid-template-columns: 40px 1fr; align-items: center; transition: background-color .25s, border-color .25s, translate .25s; }
.panel li > span { display: grid; place-items: center; inline-size: 40px; block-size: 40px; padding: 0; border-radius: 12px; background: rgba(255,26,26,.12); border: 1px solid rgba(255,26,26,.35); color: #ff6a5f; font: 700 1.25rem/1 "Outfit", sans-serif; transition: background-color .25s, color .25s; }
.panel .ico svg { inline-size: 24px; block-size: 24px; }
.panel li:hover { background: rgba(32,30,30,.92); border-color: rgba(255,26,26,.45); translate: 0 -2px; }
.panel li:hover > span { background: var(--signal); color: #fff; }
.pk__steps li span { transition: background-color .25s, color .25s; }
.pk__steps li:hover span { background: var(--signal); color: #fff; }
/* every list reacts to the mouse */
.srow ul li, .pk__col li, .pk__steps li, .why li, .ticks li { transition: translate .25s, color .25s; }
.srow ul li::before { transition: rotate .25s, scale .25s; }
.srow ul li:hover, .pk__col li:hover, .pk__steps li:hover, .ticks li:hover { translate: calc(4px * var(--dir)) 0; color: #fff; }
.srow ul li:hover::before { rotate: 45deg; scale: 1.25; }
.pk__gets li { transition: background-color .25s, border-color .25s, translate .25s; }
.pk__gets li:hover { background: rgba(255,255,255,.07); border-color: rgba(255,26,26,.45); translate: 0 -2px; }
.why li:hover { translate: calc(6px * var(--dir)) 0; }
.why li:hover b { color: var(--signal); }
.faq summary { transition: color .25s; }
.faq summary:hover { color: #fff; }
.faq details:hover summary::after { border-color: #fff; }
.opt span { transition: border-color .25s, background-color .25s; }
.opt:hover span { border-color: rgba(255,26,26,.5); }
/* service rows: a wider "you get" column so each item fits on one line */
@media (min-width: 1000px) { .srow { grid-template-columns: 1fr 1.45fr .8fr; } }
@media (max-width: 767px) { .panel li { grid-template-columns: 34px 1fr; } .panel li > span { inline-size: 34px; block-size: 34px; font-size: 1.0625rem; border-radius: 10px; } }
@media (max-width: 767px) and (max-height: 700px) { .panel li { grid-template-columns: 28px 1fr; } .panel li > span { inline-size: 28px; block-size: 28px; font-size: .9375rem; } }
/* a card's icon badge turns red on hover, so the icon itself turns white (never red on red) */
.panel li:hover > .ico svg { color: #fff; }
/* phones and tablets have no hover: the same reactions on tap */
@media (hover: none) {
  .card:active { translate: 0 -2px; box-shadow: 0 0 0 2px var(--signal); }
  .card:active .card__ico { background: var(--signal); color: #fff; }
  .panel li:active { background: rgba(32,30,30,.92); border-color: rgba(255,26,26,.45); }
  .panel li:active > span { background: var(--signal); color: #fff; }
  .panel li:active > .ico svg { color: #fff; }
  .srow ul li:active, .pk__col li:active, .pk__steps li:active { translate: calc(4px * var(--dir)) 0; color: #fff; }
  .srow ul li:active::before { rotate: 45deg; scale: 1.25; }
  .pk__gets li:active { background: rgba(255,255,255,.07); border-color: rgba(255,26,26,.45); }
  .pk__steps li:active span { background: var(--signal); color: #fff; }
  .why li:active { translate: calc(6px * var(--dir)) 0; }
  .why li:active b { color: var(--signal); }
  .opt:active span { border-color: rgba(255,26,26,.5); }
  .btn:active .i, .card:active .i, .srow:active .i, .opt:active .i, .pk__gets li:active .i, .wa-fab:active .i { scale: 1.14; }
}
/* icons only move while on screen (.live, set by page.js) and while their panel is shown */
.i:not(.live), .i:not(.live) *, [data-range][style*="hidden"] .i, [data-range][style*="hidden"] .i * { animation-play-state: paused !important; }
html:not(.js) .i, html:not(.js) .i * { animation-play-state: running !important; } /* no JS: nothing marks icons as on screen, so let them run */
/* voice-over waveform plays: a red sweep with a playhead runs across it, like the recording playing */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.step--pad .step__media { position: relative; direction: ltr; }
@media (prefers-reduced-motion: no-preference) {
  .step--pad.in .step__media { animation: wave-play 7s linear .6s infinite both; }
  .step--pad.in .step__media img { -webkit-mask-image: linear-gradient(90deg, #000 var(--p), rgba(0,0,0,.22) var(--p)); mask-image: linear-gradient(90deg, #000 var(--p), rgba(0,0,0,.22) var(--p)); }
  .step--pad.in .step__media::after { content: ""; position: absolute; inset-block: 22%; left: calc(clamp(16px, 4vw, 48px) + (100% - 2 * clamp(16px, 4vw, 48px)) * var(--p) / 100%); inline-size: 2px; background: #fff; box-shadow: 0 0 12px 2px rgba(255,26,26,.8); border-radius: 2px; }
}
@keyframes wave-play { from { --p: 0%; } to { --p: 100%; } }
/* a step clip: same sizing as a step image, loop on top of its poster */
.step__vid { position: relative; flex: var(--r, 1) 1 0; min-inline-size: 0; border-radius: 16px; overflow: hidden; border: 1px solid #1f1d1d; background: var(--coal); }
.step__media .step__vid img { display: block; inline-size: 100%; block-size: auto; border: 0; border-radius: 0; flex: none; }
/* main video + its 9:16 cut side by side at the same height (16:9 width : 9:16 width = 1 : 0.316) */
.proj__duo { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.proj__duo > .vframe:last-child { justify-self: center; inline-size: min(100%, 360px); }
@media (min-width: 720px) { .proj__duo { grid-template-columns: 1fr .3164fr; } .proj__duo > .vframe:last-child { inline-size: 100%; } }
/* many layer builds: the first one wide, the rest two per row */
@media (min-width: 900px) { .step__stack:has(> .lbuild:nth-child(3)) { grid-template-columns: 1fr 1fr; align-items: center; } .step__stack > .lbuild:first-child { grid-column: 1 / -1; } }
/* three videos on top: two 16:9 stacked, the 9:16 cut beside them at their full height (2 × 9/16 × 9/16 = .6328) */
@media (min-width: 720px) {
  .proj__duo--3 { grid-template-columns: 1fr .6328fr; grid-template-rows: auto auto; }
  .proj__duo--3 > .vframe:nth-child(1) { grid-column: 1; grid-row: 1; }
  .proj__duo--3 > .vframe:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
  .proj__duo--3 > .vframe:nth-child(3) { grid-column: 1; grid-row: 2; }
}
/* Reels gallery: vertical videos side by side, no case study */
.proj__main--reels { max-inline-size: none; }
.reels { display: grid; gap: clamp(10px, 1.4vw, 16px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .reels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .reels { grid-template-columns: repeat(4, 1fr); } }
.reel .vframe__play span { inline-size: 64px; block-size: 64px; }
/* 16:9 gallery (film parts): three across, each part labelled */
@media (min-width: 720px) { .reels--wide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .reels--wide { grid-template-columns: repeat(3, 1fr); } }
.reel__label { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(5,5,5,.72); border: 1px solid #333; font-size: .875rem; pointer-events: none; }
.reel:not(:has(img)) { background: radial-gradient(120% 90% at 50% 40%, #2a1210, var(--ink)); }

/* workflow chain, real counts, typed prompt, cinema stills */
.step > .stats, .step > .flow, .step > .prompt { grid-column: -2; min-inline-size: 0; }
.step > .cinema { grid-column: 1 / -1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats div { background: var(--ink); padding: 18px 16px; }
.stats dt { font-family: var(--pixel); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--signal); }
.stats dd { margin: 6px 0 0; color: var(--ash); font-size: .9375rem; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--coal); border: 1px solid var(--line); font-size: .9375rem; }
.flow li::before { content: counter(f, decimal-leading-zero); font-family: var(--pixel); color: var(--signal); }
.flow li:not(:last-child)::after { content: "\2192"; color: var(--ash); margin-inline-start: 4px; }
:lang(ar) .flow li:not(:last-child)::after { content: "\2190"; }
.prompt { margin: 0; padding: 20px 22px; border-radius: 18px; background: #0d0c0c; border: 1px solid var(--line); color: #d9d4cf; font: 500 .875rem/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; max-block-size: 360px; overflow: auto; text-align: left; }
.prompt::before { content: "PROMPT"; display: block; margin-block-end: 10px; color: var(--signal); font: 400 .8125rem var(--pixel); letter-spacing: .1em; }
.prompt.typing code::after { content: "\258C"; color: var(--signal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cinema { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.cinema img { inline-size: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; border-radius: 14px; background: var(--coal); }
@media (min-width: 720px) { .cinema { grid-template-columns: 1fr 1fr; } .cinema img:nth-child(3n + 1) { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .cinema img { opacity: 0; scale: 1.06; transition: opacity 1s ease, scale 1.6s cubic-bezier(.2,.7,.2,1); }
  .js .cinema img.in { opacity: 1; scale: 1; }
}
.step > .step__media, .step > .step__stack { grid-column: -2; }
/* film frames: each one full width at its own 16:9, uncropped */
.cinema { grid-template-columns: 1fr !important; }
.cinema img { aspect-ratio: auto; object-fit: contain; grid-column: auto !important; }
