/* فكر النجاح، الموقع التعريفي.
   A white editorial page in the FN palette. Display type is Alexandria (OFL), a modern geometric Arabic
   that sits with the IBM Plex Sans Arabic text face. The hero is a rendered dune landscape
   (scripts/dunes_render.py) in two depth layers with wind-blown sand; the service emblems are fine
   Sadu line drawings. The logo is the untouched master image, shown on white without a plate. */
:root {
  --navy: #071B35;      /* كحلي عميق */
  --blue: #012857;      /* أزرق الفكر */
  --graphite: #292D36;  /* جرافيت */
  --silver: #A8ACB5;    /* رمادي فضي */
  --pearl: #F5F6F8;     /* أبيض لؤلؤي */
  --red: #B7041D;       /* أحمر إشارة */
  --ink: var(--navy);
  --ink-2: #4A505C;
  --mute: #C9CDD4;
  --line: rgba(7, 27, 53, .14);
  --line-d: rgba(255, 255, 255, .16);
  --display: "Alyamama", "Alexandria", "Noto Kufi Arabic", Tahoma, sans-serif;
  --kufi: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --plex: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --latin: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --top-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.85 var(--plex); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.arw { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .35s var(--ease); }
.bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.l2 { color: var(--blue); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; font: 700 1rem/1 var(--plex); text-decoration: none; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s; }
.btn-cut { background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 26px)); padding-inline-start: 36px; }
.btn-cut:hover { background: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--pearl); color: var(--blue); }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); background: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .08); }
.more { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.more::after { content: ""; width: 14px; height: 1.5px; background: currentColor; transform: rotate(-40deg); transition: transform .3s var(--ease); }
.more:hover::after { transform: rotate(-40deg) translateX(-4px); }

/* ---------- header: white, the logo straight on the page ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .35s, transform .45s var(--ease); }
/* Reading line: how far down the page the visitor is. The header tucks away while reading down and returns on the way up. */
.top-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--red); transform-origin: 100% 50%; transform: scaleX(var(--p, 0)); }
.top.tuck { transform: translateY(-100%); }
.top.scrolled { border-color: var(--line); }
.brand { display: block; line-height: 0; }
.brand img { width: 62px; height: auto; }
.nav { margin-inline-start: auto; display: none; }
.nav ul { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; background: linear-gradient(var(--red), var(--red)) no-repeat 100% 100% / 0 2px; transition: background-size .3s var(--ease); }
.nav a:hover, .nav a[aria-current] { background-size: 100% 2px; }
.menu a[aria-current] span { color: var(--red); }
.top-cta { display: none; min-height: 48px; }
.menu-btn { margin-inline-start: auto; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; border: 0; background: none; cursor: pointer; }
.menu-btn i { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4.5px) rotate(40deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4.5px) rotate(-40deg); }
.menu { position: fixed; inset: var(--top-h) 0 0; background: var(--navy); color: #fff; padding: clamp(28px, 6vh, 56px) var(--gut) 0; display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ul { display: grid; }
.menu li { border-bottom: 1px solid var(--line-d); }
.menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font: 700 clamp(1.9rem, 9vw, 2.6rem)/1.3 var(--display); text-decoration: none; transition: color .25s, padding .35s var(--ease); }
.menu a:hover, .menu a:focus-visible { color: var(--mute); padding-inline-start: 10px; }
.menu small { font: 500 .85rem/1 var(--plex); color: var(--silver); letter-spacing: .08em; }
.menu small::before { content: ""; display: inline-block; width: 18px; height: 1.5px; margin-inline-end: 10px; vertical-align: middle; background: var(--red); transform: rotate(-40deg); }
.menu-foot { margin-top: auto; padding: 32px 0 calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 4px; color: var(--mute); font-size: .95rem; position: relative; }
.menu-foot p:first-child { font: 700 1.25rem/1.5 var(--display); color: #fff; }
.menu-foot::after { content: ""; display: block; height: 16px; margin: 22px calc(var(--gut) * -1) 0; background: url("brand/sadu.svg") repeat-x 0 0 / auto 16px; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) li { animation: rise .6s var(--ease) both; }
  .menu li:nth-child(2) { animation-delay: .05s !important; } .menu li:nth-child(3) { animation-delay: .1s !important; } .menu li:nth-child(4) { animation-delay: .15s !important; }
}
body.menu-open { overflow: hidden; }
/* backdrop-filter makes the header a containing block for the fixed menu; drop it while the menu is open */
body.menu-open .top { backdrop-filter: none; background: #fff; border-color: transparent; }

/* ---------- shared scaffolding ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 160px) var(--gut) 0; }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head h2, .svc-head h2, .process-head h2 { font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: 1.2; }
.sec-head .more { margin-inline-start: auto; }
.sec-note { color: var(--ink-2); }
.num { font: 600 .95rem/1 var(--plex); color: var(--red); letter-spacing: .02em; }
.num::after { content: ""; display: inline-block; width: 28px; height: 1.5px; margin-inline-start: 10px; vertical-align: middle; background: currentColor; transform: rotate(-40deg); }
.num.light { color: #fff; }
.num.light::after { background: var(--red); }
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; z-index: 3; width: 26px; height: 26px; pointer-events: none; border: 2px solid var(--red); }
.frame::before { top: -10px; inset-inline-end: -10px; border-bottom: 0; border-inline-start: 0; }
.frame::after { bottom: -10px; inset-inline-start: -10px; border-top: 0; border-inline-end: 0; }
.film { width: 100%; height: 100%; object-fit: cover; background: var(--graphite); }
.slate { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.slate span + span::before { content: "/"; margin: 0 10px; color: var(--silver); }
.slate span:first-child { color: var(--red); font-weight: 600; }
.slate .draft { flex-basis: auto; width: fit-content; margin-top: 6px; padding: 2px 8px; color: var(--graphite); background: #fff3cd; }
.slate .draft::before { content: none; }

/* ---------- hero: a two-line kashida headline over a collage of cut-out photographs on grey dunes ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; background: #fff; }
.hero h1 { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(8px, 2vh, 28px) var(--gut) 0; font: 900 min(calc((100vw - 2 * var(--gut)) / 5.8), 14.5rem)/1.12 "Alyamama", var(--display); color: var(--navy); letter-spacing: 0; }
.hx { display: block; }
.hx span { display: block; white-space: nowrap; }
.hx-2 { text-align: left; margin-top: -.12em; }
.stage { position: relative; z-index: 2; margin-top: -8.5vw; aspect-ratio: 1440 / 560; pointer-events: none; }
.stage .dn { inset: auto 0 0; height: 72%; -webkit-mask-image: linear-gradient(transparent, #000 24%); mask-image: linear-gradient(transparent, #000 24%); filter: grayscale(1) contrast(1.3) brightness(.46); }
.stage .dn-front { filter: grayscale(1) contrast(1.2) brightness(.34); }
.dn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; translate: calc(var(--mx, 0) * -8px) calc(var(--sy, 0) * .14px); will-change: translate; }
.dn-front { translate: calc(var(--mx, 0) * -26px) calc(var(--sy, 0) * -.08px); }
.sand { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Each cut-out sits by its foot on the stage; --d is its depth, so near pieces drift more with the pointer. */
.pc { position: absolute; height: auto; translate: calc(var(--mx, 0) * var(--d, 10) * -1px) calc(var(--sy, 0) * var(--d, 10) * -.006px); will-change: translate; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .22)); }
.pc-riyadh { left: 3%; bottom: 50%; width: 22%; rotate: -4deg; --d: 5; }
.pc-edge { left: 61%; bottom: 60%; width: 27%; rotate: 2.5deg; --d: 7; }
.pc-arch { left: 49%; bottom: 40%; width: 11%; rotate: 3deg; --d: 11; }
.pc-diriyah { left: 23%; bottom: 24%; width: 27%; rotate: -2deg; --d: 13; }
.pc-horse { left: 0; bottom: 3%; width: 31%; --d: 20; filter: none; }
.pc-super8 { left: 72%; bottom: 6%; width: 8%; rotate: -7deg; --d: 24; }
.pc-falcon { left: 17%; bottom: 112%; width: 13%; rotate: -6deg; --d: 30; filter: none; }
.birds { position: absolute; left: 30%; bottom: 128%; width: 8%; fill: none; stroke: #0B0D12; stroke-width: 1.6; stroke-linecap: round; translate: calc(var(--mx, 0) * -34px) 0; }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 10%; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.hero-intro { max-width: 34em; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--ink-2); }

/* ---------- heritage bands ---------- */

/* ---------- marquee of the six services ---------- */
.marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: clamp(16px, 2.4vw, 28px) 0; direction: ltr; }
.marquee-track { display: flex; width: max-content; }
.marquee p { display: flex; align-items: center; flex: none; direction: rtl; font: 700 clamp(1.8rem, 4.6vw, 3.8rem)/1.35 var(--display); white-space: nowrap; }
.marquee span { padding: 0 .55em; }
.marquee span:nth-of-type(even) { color: var(--blue); }
.marquee i { width: .9em; height: 4px; background: var(--red); transform: rotate(-40deg); flex: none; }

/* ---------- promise ---------- */
.about { position: relative; background: linear-gradient(#fff, var(--pearl) 22%, var(--pearl) 78%, #fff); }
.promise { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 130px) var(--gut) clamp(72px, 10vw, 140px); }
.promise-line { margin-top: 22px; font-size: clamp(2.6rem, 8.4vw, 7.4rem); line-height: 1.2; }
.promise-line .l2 { display: block; }
.orn { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto clamp(36px, 5vw, 64px); }
.orn::before, .orn::after { content: ""; width: min(22vw, 180px); height: 1px; background: var(--silver); }
.orn i { width: 16px; height: 16px; transform: rotate(45deg); border: 1.5px solid var(--navy); box-shadow: inset 0 0 0 3px var(--pearl), inset 0 0 0 16px var(--red); }
.promise-body { display: grid; gap: 24px; margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 2px solid var(--navy); }
.promise-body .lead { font: 800 clamp(1.35rem, 2.6vw, 2rem)/1.55 var(--kufi); max-width: 18em; }
.promise-body div { display: grid; gap: 14px; max-width: 34em; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- works ---------- */
.cases { display: grid; gap: clamp(28px, 4vw, 48px); }
.case-link { display: grid; gap: 22px; text-decoration: none; }
.case-media { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3.4; }
.is-stage { display: grid; place-items: center; }
.is-stage .bg { transition: transform 1.2s var(--ease); }
.stage-shot { width: 84%; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75); transition: transform 1s var(--ease); }
.stage-shot img { width: 100%; }
.stage-phone { position: absolute; inset-inline-start: 6%; bottom: 8%; width: 22%; border: 5px solid #0d0f14; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); transition: transform 1s var(--ease); }
.is-stage.is-reel { display: flex; align-items: center; justify-content: center; gap: 4%; }
.reel-film { position: relative; height: 82%; aspect-ratio: 9 / 16; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); transition: transform 1s var(--ease); }
.reel-film video { position: absolute; inset: 0; }
.reel-side { height: 56%; aspect-ratio: 9 / 16; overflow: hidden; opacity: .9; }
.reel-side img { width: 100%; height: 100%; object-fit: cover; }
.case-cap { display: grid; gap: 8px; }
.case-title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.3; transition: color .3s; }
.case-sum { color: var(--ink-2); max-width: 32em; }
.case-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 700; color: var(--navy); }
.case-link:hover .case-title { color: var(--blue); }
.case-link:hover .arw { transform: translateX(-6px); }
.case-link:hover .is-stage .bg { transform: scale(1.05); }
.case-link:hover .stage-shot, .case-link:hover .reel-film { transform: translateY(-8px); }
.case-link:hover .stage-phone { transform: translateY(-14px) rotate(-2deg); }
.empty { padding: 48px 0; color: var(--ink-2); }

/* ---------- services: a horizontal track of illustrated panels ---------- */
.services { background: linear-gradient(#fff, var(--pearl) 18%, var(--pearl) 82%, #fff); margin-top: clamp(40px, 6vw, 90px); padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.svc-head { max-width: var(--max); margin: 0 auto clamp(28px, 4vw, 48px); padding: 0 var(--gut); display: flex; flex-wrap: wrap; align-items: end; gap: 16px 32px; }
.svc-head h2 { margin-top: 10px; }
.svc-head .sec-note { flex: 1 1 14em; }
.svc-ctrl { display: none; gap: 10px; }
.svc-btn { width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--navy); cursor: pointer; transition: background-color .25s, color .25s; }
.svc-btn:hover { background: var(--navy); color: #fff; }
.svc-btn[data-dir="prev"] .arw { transform: scaleX(-1); }
.svc-btn:disabled { opacity: .3; cursor: default; background: none; color: inherit; }
.svc-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 380px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0 var(--gut) 24px; scrollbar-width: thin; scrollbar-color: var(--navy) transparent; }
.svc { position: relative; overflow: hidden; scroll-snap-align: start; min-height: 520px; padding: 28px 26px 48px; display: flex; flex-direction: column; gap: 10px; background: #fff; box-shadow: 0 1px 0 var(--line); transition: background-color .4s, color .4s; }
.svc::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 14px; background: url("brand/sadu.svg") repeat-x 0 0 / auto 14px; }
.svc-n { font: 700 1rem/1 var(--plex); color: var(--red); }
.svc-art { width: 78%; height: auto; aspect-ratio: 4 / 3; margin: 18px auto auto; color: var(--navy); transition: transform .8s var(--ease), color .4s; }
.svc-art .ac { fill: var(--red); }
.svc-art .acl { fill: none; stroke: var(--red); stroke-width: 3; }
.svc h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.35; margin-top: 14px; }
.svc > p { color: var(--ink-2); font-size: 1rem; }
.svc-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.svc-items li { font-size: .82rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.svc:hover { background: var(--navy); color: #fff; }
.svc:hover > p { color: var(--mute); }
.svc:hover .svc-items li { background: transparent; box-shadow: inset 0 0 0 1px var(--line-d); }
.svc:hover .svc-art { color: #fff; transform: scale(1.06); }

/* ---------- process: the one navy chapter ---------- */
.process { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
/* Soft dune-shaped edges where the page dips into the navy chapter and climbs out of it. */
.process::before, .process::after { content: ""; position: absolute; z-index: 1; inset-inline: 0; height: clamp(48px, 7vw, 110px); background: url("brand/ridge.svg") no-repeat 0 0 / 100% 100%; pointer-events: none; }
.process::before { top: -1px; }
.process::after { bottom: -1px; transform: scale(-1, -1); }
.process .bg { object-position: 70% 50%; transform: scaleX(-1); opacity: .9; }
.process-in { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gut); display: grid; gap: 48px; }
.process-head h2 { margin: 12px 0 16px; }
.process-head p:last-child { color: var(--mute); max-width: 22em; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line-d); }
.step:last-child { border-bottom: 1px solid var(--line-d); }
.step-n { font: 700 clamp(3.4rem, 8vw, 5.6rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--silver); min-width: 1.2em; transition: color .4s; }
.step:hover .step-n { color: #fff; -webkit-text-stroke-color: #fff; }
.step h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.step p { color: var(--mute); }

/* ---------- contact: white, one big invitation ---------- */
.contact { background: #fff; }
.contact-in { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 13vw, 180px) var(--gut) clamp(56px, 8vw, 110px); display: grid; gap: 22px; }
.contact-title { font-size: clamp(3rem, 11vw, 10rem); line-height: 1.22; margin-top: 8px; }
.contact-title span { display: block; }
.contact-title .l2 { text-align: end; }
.contact-text { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--ink-2); font-size: 1.15rem; }
.handle { font: 700 1rem/1 var(--latin); color: var(--navy); padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy); }
/* Six platforms as a tidy grid of tiles: the name, and an arrow that turns on hover. */
.links { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 14px clamp(14px, 2vw, 22px); background: var(--pearl); text-decoration: none; transition: background-color .3s, color .3s; }
.links b { font: 900 clamp(1.1rem, 2.6vw, 2rem)/1.3 var(--display); white-space: nowrap; }
.links .arw { width: 1.4em; height: 1.4em; flex: none; color: var(--red); transition: transform .3s var(--ease), color .3s; }
.links a:hover, .links a:focus-visible { background: var(--navy); color: #fff; }
.links a:hover .arw, .links a:focus-visible .arw { transform: translateX(-4px) rotate(40deg); color: #fff; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(96px, 11vw, 150px) var(--gut) 28px; }
.foot::before { content: ""; position: absolute; inset: -1px 0 auto; height: clamp(48px, 7vw, 110px); background: url("brand/ridge.svg") no-repeat 0 0 / 100% 100%; }
body:has(.contact) .foot-follow { display: none; }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 36px; }
.foot-brand { display: flex; gap: 18px; align-items: center; color: var(--mute); }
.foot-brand img { width: 84px; height: auto; flex: none; filter: brightness(0) invert(1); }
.foot nav ul, .foot-social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; color: var(--mute); transition: color .2s; }
.foot a:hover { color: #fff; }
.foot-h { font-weight: 600; margin-bottom: 8px; }
.foot-line { max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto 0; padding-top: 18px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--mute); font-size: .9rem; }

/* ---------- inner pages ---------- */
.page-head { position: relative; background: linear-gradient(180deg, #E4E9F0, #F8F7F5 70%); }
.page-head-in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--gut) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(3.2rem, 12vw, 10rem); line-height: 1.25; margin: 14px 0 20px; }
.page-head h1 .l2 { display: inline-block; }
.page-head .hero-intro { color: var(--ink-2); }
.page-head .slate { margin-top: 18px; }
.dunes-strip { position: relative; height: clamp(120px, 16vw, 260px); margin-top: -40px; }
.dunes-strip .dn { object-position: 50% 62%; translate: none; }
.dunes-strip::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.detail-in { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut) 0; }
.d-cover-film { aspect-ratio: 9 / 14; max-height: 86vh; width: min(100%, 520px); margin-inline: auto; }
.d-cover-film video { position: absolute; inset: 0; }
.d-cover .case-media { aspect-ratio: 16 / 9.5; }
.d-cover .stage-shot { width: 78%; }
.d-body { display: grid; gap: 40px; padding: clamp(56px, 8vw, 120px) 0; }
.d-body h2 { font-size: 1.05rem; font-family: var(--plex); font-weight: 600; color: var(--red); margin-bottom: 12px; }
.d-idea p { font: 800 clamp(1.4rem, 3.2vw, 2.2rem)/1.6 var(--kufi); max-width: 26em; }
.d-col li { padding: 12px 0; border-top: 1px solid var(--line); }
.d-gallery { display: grid; gap: 20px; }
.d-gallery figcaption { font-size: .85rem; color: var(--ink-2); padding-top: 8px; }
.d-gallery.triptych { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-gallery.screens figure:not(.phone) { box-shadow: 0 30px 60px -40px rgba(7, 27, 53, .5); background: #fff; }
.d-gallery .phone { width: min(60%, 300px); justify-self: center; border: 6px solid var(--navy); border-radius: 26px; overflow: hidden; background: var(--navy); }
.d-gallery .phone figcaption { color: var(--mute); padding: 6px 10px; }
.next { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; margin-top: clamp(64px, 9vw, 120px); padding: 40px 0; border-block: 2px solid var(--navy); text-decoration: none; }
.next small { color: var(--red); font-weight: 600; }
.next b { font: 700 clamp(2.2rem, 6vw, 4.8rem)/1.3 var(--display); transition: color .3s; }
.next span { color: var(--ink-2); }
.next .arw { grid-row: 1 / span 3; grid-column: 2; width: clamp(40px, 6vw, 72px); height: auto; color: var(--red); }
.next:hover b { color: var(--blue); }
.next:hover .arw { transform: translateX(-10px); }
.prose { max-width: 46em; padding-bottom: clamp(72px, 10vw, 140px); }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.1rem; }
.prose .updated { margin-top: 40px; font-size: .9rem; color: var(--silver); }

/* ---------- motion: optional, and it stops for prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .case.reveal .case-media { clip-path: inset(12% 0 0 0); transition: clip-path 1.2s var(--ease); }
  .js .case.reveal.in .case-media { clip-path: inset(0); }
  /* The dunes settle in like a camera finding its frame; the near ridge arrives last. */
  .js .dn-back { animation: settle 2.6s var(--ease) both; }
  .js .dn-front { animation: settle-near 2.4s var(--ease) .15s both; }
  .js .hx span { animation: rise 1.1s var(--ease) both; } .js .hx-2 { animation-delay: .12s; }
  .js .pc, .js .birds { animation: drop 1.3s var(--ease) both; } .js .pc-diriyah { animation-delay: .2s; } .js .pc-horse { animation-delay: .35s; } .js .pc-arch { animation-delay: .3s; } .js .pc-super8 { animation-delay: .55s; } .js .pc-edge { animation-delay: .1s; } .js .pc-riyadh { animation-delay: .05s; } .js .pc-falcon, .js .birds { animation: glide 2s var(--ease) .5s both; }
  .marquee-track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(44px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.1) translateY(4%); } }
@keyframes settle-near { from { opacity: 0; transform: scale(1.18) translateY(12%); } }
@keyframes drop { from { opacity: 0; transform: translateY(18%); } }
@keyframes glide { from { opacity: 0; transform: translate(-60%, 30%); } }
@keyframes cue { 0% { transform: translateX(50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(50%) scaleY(0); transform-origin: bottom; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tablet and up ---------- */
@media (min-width: 760px) {
  .cases { grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 40px); row-gap: clamp(56px, 7vw, 100px); }
  .case-wide { grid-column: 1 / -1; }
  .case-wide .case-link { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: clamp(24px, 4vw, 56px); }
  .case-wide .case-media { aspect-ratio: 16 / 10; }
  .case-half { grid-column: span 6; }
  .case-half:nth-child(3n) { margin-top: clamp(60px, 10vw, 140px); }
  .case-half .case-media { aspect-ratio: 4 / 4.4; }
  .promise-body { grid-template-columns: 1fr 1fr; align-items: start; }
  .process-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: clamp(40px, 6vw, 100px); }
  .process-head { position: sticky; top: calc(var(--top-h) + 40px); }
  .foot-in { grid-template-columns: 1.3fr 1fr 1.2fr; align-items: start; }
  body:has(.contact) .foot-in { grid-template-columns: 1fr auto; align-items: center; }
  .links { grid-template-columns: repeat(3, 1fr); }
  .d-body { grid-template-columns: 1.4fr 1fr 1fr; column-gap: 48px; }
  .d-gallery { grid-template-columns: repeat(2, 1fr); }
  .d-gallery.screens { grid-template-columns: 1.6fr 1.6fr 1fr; align-items: center; }
  .d-gallery.screens .phone { width: 100%; }
}

/* ---------- desktop ---------- */
@media (min-width: 1080px) {
  .nav { display: block; }
  .top-cta { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
  .brand img { width: 70px; }
  .svc-ctrl { display: flex; }
  .svc-track { grid-auto-columns: 360px; padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
  .promise-line { max-width: 11em; }
}
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
@media (max-width: 759px) {
  .hero h1 { padding-top: 22px; }
  .stage { margin-top: -2vw; aspect-ratio: 390 / 600; }
  .stage .dn { height: 62%; }
  .pc-riyadh { left: -4%; bottom: 60%; width: 52%; }
  .pc-edge { left: 46%; bottom: 66%; width: 58%; }
  .pc-arch { left: 6%; bottom: 30%; width: 30%; }
  .pc-diriyah { left: 40%; bottom: 36%; width: 58%; rotate: 4deg; }
  .pc-horse { left: -4%; bottom: 3%; width: 80%; }
  .pc-super8 { left: 74%; bottom: 4%; width: 20%; }
  .pc-falcon { left: 44%; bottom: 86%; width: 26%; }
  .birds { left: 14%; bottom: 93%; width: 18%; }
  }
.stage picture, .dunes-strip picture { display: contents; }
