/* ==========================================================================
   MAWQ3K — موقعك · Software studio portal
   Cinematic, dark, premium. Amber-gold on near-black. Bilingual EN/AR + RTL.
   Committed color strategy: one saturated color carries the brand.
   ========================================================================== */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  /* Canvas — deep warm near-black (screening room) */
  --bg:          oklch(0.145 0.008 72);
  --bg-deep:     oklch(0.115 0.007 72);
  --surface:     oklch(0.185 0.009 72);
  --surface-2:   oklch(0.225 0.011 72);
  --line:        oklch(0.30 0.010 72);
  --line-strong: oklch(0.40 0.012 72);

  /* Ink */
  --ink:         oklch(0.970 0.006 80);
  --muted:       oklch(0.760 0.013 78);
  --faint:       oklch(0.610 0.012 78);

  /* Primary — amber / honey-gold (THE brand color) */
  --gold:        oklch(0.815 0.142 82);
  --gold-bright: oklch(0.880 0.150 86);
  --gold-deep:   oklch(0.720 0.150 70);

  /* Accent — cool moonlight, used sparingly */
  --moon:        oklch(0.830 0.050 235);
  --positive:    oklch(0.800 0.140 150);

  /* Geometry */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --maxw: 1240px;
  --gut:  clamp(1.25rem, 4vw, 3.5rem);

  /* Type */
  --f-display: "Clash Display", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body:    "General Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* Motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo-ish */
  --e-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Z-scale (semantic) */
  --z-atmos: 0;
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-toast: 300;

  color-scheme: dark;
}

/* Arabic typography swap */
:lang(ar) {
  --f-display: "IBM Plex Sans Arabic", "Clash Display", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans Arabic", "General Sans", system-ui, sans-serif;
}

/* ───────────────────────── Reset ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}
:lang(ar) body { line-height: 1.72; }

img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.2; }
p { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--bg-deep); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: var(--gut);
  z-index: var(--z-toast);
  background: var(--gold); color: var(--bg-deep);
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: inset-block-start 0.25s var(--e-out);
}
.skip-link:focus { inset-block-start: 12px; }

/* ───────────────────────── Atmosphere ───────────────────────── */
.atmos { position: fixed; inset: 0; z-index: var(--z-atmos); pointer-events: none; overflow: hidden; }

.atmos__beam {
  position: absolute; inset-block-start: -30vh; inset-inline-end: -10vw;
  width: 70vw; height: 120vh;
  background: radial-gradient(closest-side,
              oklch(0.815 0.142 82 / 0.16),
              oklch(0.815 0.142 82 / 0.05) 45%,
              transparent 70%);
  transform: rotate(18deg);
  filter: blur(20px);
}
.atmos__spot {
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 70%) var(--my, 22%),
              oklch(0.880 0.150 86 / 0.10), transparent 70%);
  transition: background 0.35s var(--e-soft);
}
.atmos__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, transparent 55%, var(--bg-deep) 100%),
    radial-gradient(120% 120% at 50% 120%, transparent 50%, var(--bg-deep) 100%);
}
.atmos__grain {
  position: absolute; inset: -100%;
  width: 300%; height: 300%;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ───────────────────────── Layout helpers ───────────────────────── */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  padding-block: clamp(5rem, 11vh, 9rem);
  position: relative; z-index: var(--z-base);
}
.section__head { max-width: 64ch; margin-block-end: clamp(2.5rem, 6vh, 4rem); }
.section__title { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.section__lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); margin-block-start: 1.1rem; max-width: 60ch; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --pad: 0.72rem 1.25rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--e-out), background 0.3s var(--e-out),
              border-color 0.3s var(--e-out), color 0.3s var(--e-out), box-shadow 0.3s var(--e-out);
}
.btn--lg { --pad: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn--gold {
  background: var(--gold); color: var(--bg-deep);
  box-shadow: 0 6px 30px oklch(0.815 0.142 82 / 0.22);
}
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 38px oklch(0.815 0.142 82 / 0.32); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ───────────────────────── Brand / wordmark ───────────────────────── */
.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; }
.brand__latin {
  font-family: var(--f-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.01em; line-height: 1;
}
.brand__three { color: var(--gold); }
.brand__ar { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1.05rem; color: var(--muted); font-weight: 500; }

/* live status dot */
.livedot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 0 oklch(0.800 0.140 150 / 0.6);
  animation: pulse 2.4s var(--e-soft) infinite; flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.800 0.140 150 / 0.55); }
  70%  { box-shadow: 0 0 0 9px oklch(0.800 0.140 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.800 0.140 150 / 0); }
}

/* ───────────────────────── Top bar ───────────────────────── */
.topbar {
  position: sticky; inset-block-start: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem var(--gut);
  max-width: var(--maxw); margin-inline: auto;
  width: 100%;
  transition: background 0.4s var(--e-out), border-color 0.4s var(--e-out), padding 0.4s var(--e-out);
  border-block-end: 1px solid transparent;
}
.brand { flex: 0 0 auto; }
.topbar.is-stuck {
  background: oklch(0.145 0.008 72 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-block-end-color: var(--line);
  padding-block: 0.7rem;
}
.nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.97rem; position: relative; padding-block: 0.2rem; transition: color 0.25s; }
.nav a::after {
  content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: inline-start; transition: transform 0.35s var(--e-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.topbar__actions { display: flex; align-items: center; gap: 0.9rem; margin-inline-start: 1rem; }
:dir(rtl) .nav { margin-inline-start: auto; }

.langtoggle {
  display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.langtoggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: 0.85rem;
  width: 2.2rem; height: 1.9rem; border-radius: 999px; line-height: 1;
  transition: background 0.3s var(--e-out), color 0.3s var(--e-out);
}
.langtoggle button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1rem; }
.langtoggle button.is-active { background: var(--gold); color: var(--bg-deep); }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  min-height: min(94vh, 880px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut); padding-block: clamp(3rem, 8vh, 6rem) 0;
  position: relative; z-index: var(--z-base);
}
.hero__inner { max-width: min(100%, 60ch); }
.hero__title { max-width: 13ch; }
.hero__label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--muted); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  margin-block-end: clamp(1.5rem, 4vh, 2.4rem);
}
.hero__title {
  font-size: clamp(2.8rem, 1.5rem + 7vw, 5.5rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 0.98;
  display: flex; flex-direction: column;
}
:lang(ar) .hero__title { letter-spacing: 0; line-height: 1.12; }
.hero__title-key { color: var(--gold); }
.hero__sub {
  color: var(--muted); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  max-width: 46ch; margin-block-start: clamp(1.4rem, 3.5vh, 2.2rem); line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block-start: clamp(2rem, 5vh, 3rem); }

/* Marquee */
.marquee {
  margin-block-start: clamp(3rem, 8vh, 5rem);
  margin-inline: calc(var(--gut) * -1);
  border-block: 1px solid var(--line);
  padding-block: 1.1rem; overflow: hidden;
  direction: ltr;   /* decorative Latin names — keep LTR so the scroll works in RTL too */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.8vw, 1.5rem);
  color: var(--faint); letter-spacing: -0.01em;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee__track i { color: var(--gold); font-style: normal; font-size: 0.7em; }
.marquee__next { color: var(--gold-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────────────────── Work grid ───────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-end: clamp(2rem, 5vh, 3rem); }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--f-body); font-weight: 500; font-size: 0.92rem;
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.work-item {
  grid-column: span 3;              /* landscape site previews — 2 per row */
  position: relative; display: flex; flex-direction: column;   /* equal-height rows */
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface);
  isolation: isolate;
  transition: transform 0.5s var(--e-out), border-color 0.5s var(--e-out), box-shadow 0.5s var(--e-out);
}
.work-item--feature { grid-column: span 6; }   /* VOIDFORM lead banner — full width */
.work-item--app { grid-column: span 3; }       /* portrait mobile-app previews — 2 per row */

/* Filtered view (desktop only): a category can mix landscape sites and portrait
   apps, which can't sit equal-height side by side. So collapse every visible tile
   to one uniform size + aspect — a tidy 3-up grid. Mobile is untouched: it stacks
   one-per-row, so the natural portrait app frames stay (and never get squashed). */
@media (min-width: 1025px) {
  .work__grid.is-filtered .work-item,
  .work__grid.is-filtered .work-item--app,
  .work__grid.is-filtered .work-item--feature { grid-column: span 2; }
  .work__grid.is-filtered .preview { aspect-ratio: 16 / 10; }
}

.work-item:hover { transform: translateY(-4px); border-color: oklch(0.815 0.142 82 / 0.55); box-shadow: 0 18px 50px oklch(0.115 0.007 72 / 0.7); }

/* Preview frame — landscape for sites, a wide banner for the feature,
   portrait for mobile apps */
.preview {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  flex: none;                       /* hold its aspect; meta absorbs extra height */
  overflow: hidden; background: var(--bg-deep);
  border-block-end: 1px solid var(--line);
}
.work-item--feature .preview { aspect-ratio: 21 / 9; }
.work-item--app .preview { aspect-ratio: 3 / 4; }

/* Static screenshot previews — cover-fit, gentle zoom on hover.
   Sites centre on their (centred) hero; mobile apps anchor to the top. */
.preview .shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  z-index: 0;
  transition: transform 0.6s var(--e-out), opacity 0.6s var(--e-out);
}
.work-item--app .shot { object-position: 50% 0; }
.work-item:hover .preview .shot { transform: scale(1.035); }

.preview__load {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 280% 100%;
  animation: shimmer 1.6s linear infinite;
}
.preview.is-ready .preview__load { opacity: 0; transition: opacity 0.5s; pointer-events: none; }
@keyframes shimmer { to { background-position: -280% 0; } }

/* gold edge-glow on hover */
.preview::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 oklch(0.815 0.142 82 / 0);
  transition: box-shadow 0.5s var(--e-out);
}
.work-item:hover .preview::after { box-shadow: inset 0 0 60px oklch(0.815 0.142 82 / 0.18); }
/* darken slightly so meta is readable; lifts on hover */
.preview::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, oklch(0.115 0.007 72 / 0.35), transparent 45%);
  opacity: 1; transition: opacity 0.5s var(--e-out);
}
.work-item:hover .preview::before { opacity: 0.4; }

.work-item__meta { padding: 1.2rem 1.3rem 1.4rem; flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; }
.work-item__tag {
  display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid oklch(0.815 0.142 82 / 0.35); border-radius: 999px;
  padding: 0.2rem 0.7rem; margin-block-end: 0.75rem;
}
:lang(ar) .work-item__tag { letter-spacing: 0; text-transform: none; }
.work-item__name { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.7rem); }
.work-item__desc { color: var(--muted); font-size: 0.98rem; margin-block-start: 0.45rem; max-width: 42ch; }
.work-item__open {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-block-start: auto; padding-block-start: 1rem;   /* pin to the bottom of every card */
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.work-item__open i { color: var(--gold); font-style: normal; transition: transform 0.35s var(--e-out); }
.work-item:hover .work-item__open i { transform: translate(3px, -3px); }
:dir(rtl) .work-item:hover .work-item__open i { transform: translate(-3px, -3px); }

/* filtering */
.work-item.is-hidden { display: none; }

/* ───────────────────────── Range / Capabilities ───────────────────────── */
.range { border-block-start: 1px solid var(--line); }
.range__head { max-width: 60ch; margin-block-end: clamp(2.5rem, 6vh, 4rem); }
.range__head .section__title { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem); max-width: 18ch; }

.range__scale {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  counter-reset: scale;
}
.range__scale li {
  background: var(--surface); padding: 1.5rem 1.4rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.4rem; position: relative;
  transition: background 0.4s var(--e-out);
}
.range__scale li::before {
  counter-increment: scale; content: "0" counter(scale);
  font-family: var(--f-display); color: var(--faint); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
}
.range__scale li:hover { background: var(--surface-2); }
.range__scale b { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.range__scale span { color: var(--muted); font-size: 0.95rem; }

.range__axis {
  margin-block-start: clamp(2rem, 5vh, 3.2rem);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.range__pole h3 { font-size: 1.4rem; margin-block-end: 0.5rem; }
.range__pole p { color: var(--muted); font-size: 0.98rem; max-width: 34ch; }
.range__pole--end { text-align: end; }
.range__pole--end p { margin-inline-start: auto; }
.range__bar { width: clamp(60px, 14vw, 180px); height: 2px; position: relative; }
.range__bar { background: linear-gradient(90deg, var(--gold), var(--moon)); border-radius: 2px; }
.range__bar span {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: 12px; height: 12px; border-radius: 50%; background: var(--ink);
  transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--bg);
}

/* ───────────────────────── Process ───────────────────────── */
.process { border-block-start: 1px solid var(--line); }
.process__list {
  list-style: none; padding: 0; margin-block-start: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem);
}
.process__step { position: relative; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.process__num { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--gold); letter-spacing: 0.05em; }
.process__step h3 { font-size: 1.45rem; margin-block: 0.7rem 0.5rem; }
.process__step p { color: var(--muted); font-size: 0.98rem; }

/* ───────────────────────── Contact ───────────────────────── */
.contact { border-block-start: 1px solid var(--line); }
.contact__inner { max-width: 30ch; }
.contact__title { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); margin-block-start: 1.2rem; letter-spacing: -0.03em; }
:lang(ar) .contact__title { letter-spacing: 0; }
.contact__sub { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); margin-block-start: 1.1rem; max-width: 48ch; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block-start: clamp(1.8rem, 4vh, 2.6rem); }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 7vh, 5rem) var(--gut) 2.5rem;
  border-block-start: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(2rem, 5vw, 4rem);
  position: relative; z-index: var(--z-base);
}
.footer__brand .brand__latin { font-size: 1.6rem; }
.footer__brand p { color: var(--muted); margin-block-start: 0.7rem; font-size: 0.98rem; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__links h4 { font-family: var(--f-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-block-end: 0.9rem; font-weight: 600; }
:lang(ar) .footer__links h4 { text-transform: none; letter-spacing: 0; }
.footer__links a { display: block; color: var(--muted); font-size: 0.95rem; padding-block: 0.28rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--gold-bright); }
.footer__base {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  margin-block-start: clamp(2rem, 5vh, 3.5rem); padding-block-start: 1.5rem; border-block-start: 1px solid var(--line);
  color: var(--faint); font-size: 0.88rem;
}

/* ───────────────────────── Reveal animation ───────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--e-out), transform 0.8s var(--e-out); }
.reveal.is-in { opacity: 1; transform: none; }
.process__step.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work-item, .work-item--app { grid-column: span 1; }
  .work-item--feature { grid-column: 1 / -1; }
  .preview { aspect-ratio: 16 / 10; }
  .work-item--feature .preview { aspect-ratio: 16 / 7; }
  .work-item--app .preview { aspect-ratio: 3 / 4; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .range__scale { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { gap: 0.75rem; }
  .topbar__actions { margin-inline-start: auto; gap: 0.6rem; }
  /* the top CTA is redundant on mobile (hero + contact both carry it) and the
     longer Arabic label is what pushed the bar off-screen — drop it here */
  .topbar .btn--gold { display: none; }
  .brand__latin { font-size: 1.2rem; }
  .brand__ar { font-size: 0.95rem; }
  .hero__inner { max-width: 100%; }
  .work__grid { grid-template-columns: 1fr; }
  .work-item, .work-item--app, .work-item--feature { grid-column: 1 / -1; }
  .preview { aspect-ratio: 16 / 10; }
  .work-item--feature .preview { aspect-ratio: 16 / 9; }
  .work-item--app .preview { aspect-ratio: 4 / 5; }
  .range__axis { grid-template-columns: 1fr; gap: 1.4rem; text-align: start; }
  .range__pole--end { text-align: start; }
  .range__pole--end p { margin-inline-start: 0; }
  .range__bar { width: 100%; height: 2px; }
  .range__bar { background: linear-gradient(90deg, var(--gold), var(--moon)); }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .range__scale { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .btn--lg { --pad: 0.85rem 1.4rem; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; transform: none; justify-content: center; flex-wrap: wrap; white-space: normal; }
  .reveal { opacity: 1; transform: none; }
  .atmos__spot { display: none; }
  .work-item:hover .preview .shot { transform: none; }
  .livedot { animation: none; }
}
