/* ============================================================
   Bareeq Alsuraa Advertising — design system (Phase 1)
   Dark premium direction. Logical properties throughout so the
   Arabic RTL layout mirrors automatically. Provisional identity.
   ============================================================ */

:root {
  --bg: #06070c;
  --bg-2: #0b0e16;
  --surface: #101524;
  --surface-2: #161c30;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f9;
  --muted: #a8b1c6;
  --faint: #6b7488;
  --gold: #f0b429;
  --gold-deep: #c78d12;
  --gold-ink: #1a1206;
  --cyan: #3fd2d8;
  --cyan-deep: #1f8f94;
  --danger: #e5484d;
  --ok: #46c98a;
  --font-display: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1320px;
  --header-h: 72px;
}

[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* Kill-switch: the loader can never trap the page, even if JS is disabled,
   blocked, or fails. JS hides it sooner; CSS guarantees it by 5s. */
.loader { animation: loader-kill 0.5s ease 5s forwards; }
@keyframes loader-kill { to { opacity: 0; visibility: hidden; } }
.no-js .loader { display: none; }
.loader-mark { width: 64px; height: 64px; animation: pulse 1.4s ease-in-out infinite; }
.loader-bar { width: 148px; height: 3px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--gold); animation: slide 1.1s ease-in-out infinite; }
.loader-text { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; }
[dir="rtl"] .loader-text { letter-spacing: 0; }
@keyframes pulse { 50% { transform: scale(0.92); opacity: 0.75; } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(380%); } }
[dir="rtl"] .loader-bar span { animation-name: slide-rtl; }
@keyframes slide-rtl { 0% { transform: translateX(110%); } 100% { transform: translateX(-380%); } }

/* ---------- Layout scaffolding ---------- */
.wrap { width: calc(100% - 2.5rem); max-width: var(--maxw); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-block-end: 2.75rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-block-end: 1rem;
}
[dir="rtl"] .kicker { letter-spacing: 0.04em; }
.kicker::before { content: ""; width: 2rem; height: 2px; background: var(--gold); border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
.h-display { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 800; }
.h-1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.h-2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 44rem; }
.section-head .lede { margin-block-start: 1rem; }
.accent { color: var(--gold); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .brand-name small { letter-spacing: 0.06em; }
.site-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.nav-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-link[aria-current="page"] { color: var(--text); background: rgba(240, 180, 41, 0.12); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { border-color: var(--gold); background: rgba(240, 180, 41, 0.08); }
.lang-toggle .globe { width: 1rem; height: 1rem; }

.menu-button {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.menu-button svg { width: 1.35rem; height: 1.35rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 12px 32px rgba(240, 180, 41, 0.25); }
.btn-gold:hover { background: #ffc63f; box-shadow: 0 16px 40px rgba(240, 180, 41, 0.35); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(63, 210, 216, 0.08); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn .arrow { width: 1.05rem; height: 1.05rem; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; border-block-end: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  min-height: calc(100svh - var(--header-h));
}
.hero-copy .lede { margin-block: 1.4rem 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-points { list-style: none; padding: 0; margin-block-start: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--muted); font-size: 0.92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-points svg { width: 1rem; height: 1rem; color: var(--cyan); flex: none; }

.hero-stage { position: relative; min-height: 420px; }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: grab;
  touch-action: pan-y;
}
.hero-canvas:active { cursor: grabbing; }
/* Static fallback art: shown when WebGL/CDN is unavailable. Solid shapes only. */
.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.hero-stage.is-fallback .hero-fallback { display: flex; }
.hero-stage.is-fallback .hero-canvas { display: none; }
.hero-chip {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 7, 12, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  color: var(--muted);
  pointer-events: none;
}
.hero-chip .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); }
.hero-stage.is-fallback .hero-chip .dot { background: var(--gold); }

.scroll-cue {
  position: absolute;
  inset-block-end: 1.2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
[dir="rtl"] .scroll-cue { transform: translateX(50%); letter-spacing: 0.06em; }
.scroll-cue::after { content: ""; width: 1px; height: 2.4rem; background: var(--line-strong); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: scaleY(0.5); opacity: 0.5; } }

/* ---------- Interior page hero ---------- */
.page-hero { border-block-end: 1px solid var(--line); background: var(--bg-2); }
.page-hero-inner { padding-block: clamp(2.5rem, 6vw, 4rem); max-width: 60rem; }
.crumbs { display: flex; align-items: center; gap: 0.6rem; color: var(--faint); font-size: 0.85rem; margin-block-end: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: 0.5; }
[dir="rtl"] .crumbs .sep { transform: scaleX(-1); display: inline-block; }
.page-hero-inner .lede { margin-block-start: 1rem; }

/* ---------- Editorial numbered rows (services index, process) ---------- */
.index-rows { list-style: none; padding: 0; border-block-start: 1px solid var(--line); }
.index-rows > li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.5rem;
  border-block-end: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.index-rows > li:hover { background: rgba(255, 255, 255, 0.025); }
.index-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--faint); }
.index-rows > li:hover .index-num { color: var(--gold); }
.index-body h3 { font-size: 1.25rem; margin-block-end: 0.3rem; }
.index-body h3 a { text-decoration: none; }
.index-body h3 a:hover { color: var(--gold); }
.index-body p { color: var(--muted); max-width: 52rem; }
.index-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.index-link svg { width: 1.1rem; height: 1.1rem; transition: transform 0.2s ease; }
[dir="rtl"] .index-link svg { transform: scaleX(-1); }
.index-rows > li:hover .index-link { color: var(--gold); }
.index-rows > li:hover .index-link svg { transform: translateX(4px); }
[dir="rtl"] .index-rows > li:hover .index-link svg { transform: scaleX(-1) translateX(4px); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-block-start: 0.7rem; }
.tag-row span { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0.25rem 0.8rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.duo-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 1.6rem 1.7rem; }
.duo-panel h3 { font-size: 1.3rem; margin-block-end: 0.6rem; color: var(--gold); }
.duo-panel p { color: var(--muted); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Split editorial band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.split-copy .lede { margin-block: 1.1rem 1.6rem; }
.check-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin-block-end: 1.8rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); }
.check-list svg { width: 1.15rem; height: 1.15rem; color: var(--gold); flex: none; margin-block-start: 0.2rem; }
.check-list strong { color: var(--text); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2.5rem; }
.stat { text-align: start; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--line-strong); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--gold); }
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: var(--muted); margin-block-start: 0.5rem; max-width: 40rem; }
.cta-band .btn { margin-inline-start: auto; }

/* ---------- Marquee strip ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.1rem; background: var(--bg); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: ""; width: 0.5rem; height: 0.5rem; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-end: 2rem; }
.filter-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.work-card {
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 0.25s ease;
  text-align: start;
  font: inherit;
  color: inherit;
  padding: 0;
}
.work-card:nth-child(3n+1) { grid-column: span 7; }
.work-card:nth-child(3n+2) { grid-column: span 5; }
.work-card:nth-child(3n) { grid-column: span 12; }
.work-card:hover, .work-card:focus-visible { border-color: var(--gold); }
.work-cover { aspect-ratio: 16 / 8; overflow: hidden; }
.work-card:nth-child(3n) .work-cover { aspect-ratio: 21 / 7; }
.work-cover svg { width: 100%; height: 100%; }
.work-meta { display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 1.4rem 1.3rem; }
.work-meta h3 { font-size: 1.1rem; }
.work-title { display: block; font-size: 1.1rem; font-weight: 700; }
.work-cat { margin-inline-start: auto; color: var(--faint); font-size: 0.82rem; white-space: nowrap; }
.demo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-deep);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  margin-block-start: 0.5rem;
}
[dir="rtl"] .demo-badge { letter-spacing: 0; }
.work-note { color: var(--faint); font-size: 0.88rem; margin-block-start: 1.75rem; max-width: 56rem; }

/* Case overlay */
.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(4, 5, 9, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.case-overlay.is-open { display: flex; }
.case-dialog {
  width: min(880px, 100%);
  max-height: calc(100svh - 2.5rem);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}
.case-cover svg { width: 100%; height: auto; }
.case-body { padding: clamp(1.25rem, 4vw, 2.25rem); }
.case-body h2 { margin-block: 0.6rem 1rem; }
.case-body p { color: var(--muted); }
.case-body p + p { margin-block-start: 0.9rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.4rem; }
.case-tags span { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 0.3rem 0.85rem; }
.case-close {
  position: sticky;
  top: 1rem;
  margin-inline-start: calc(100% - 3.5rem);
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.case-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}
.field-error { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hp-field { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status {
  grid-column: 1 / -1;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  display: none;
}
.form-status.is-ok { display: block; background: rgba(70, 201, 138, 0.12); border: 1px solid var(--ok); color: var(--ok); }
.form-status.is-err { display: block; background: rgba(229, 72, 77, 0.1); border: 1px solid var(--danger); color: #f2a3a5; }
.privacy-note { grid-column: 1 / -1; color: var(--faint); font-size: 0.85rem; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; background: var(--bg-2); }
.contact-card h3 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-block-end: 0.3rem; }
.contact-card a, .contact-card address { font-style: normal; text-decoration: none; font-size: 1.05rem; font-weight: 600; }
.contact-card a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); background: var(--bg-2); margin-block-start: auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-block-start: 1rem; max-width: 24rem; }
.footer-col h3 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-block-end: 1rem; }
[dir="rtl"] .footer-col h3 { letter-spacing: 0.03em; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; color: var(--muted); font-size: 0.94rem; }
.footer-base { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }
.footer-base .fine { margin-inline-start: auto; }

/* ---------- Scroll reveal (subtle, varied) ---------- */
.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal[data-reveal="rise"] { transform: translateY(22px); }
.reveal[data-reveal="rise"].is-in { transform: none; }
.reveal[data-reveal="fade"].is-in { transform: none; }
.reveal[data-reveal="drift"] { transform: translateX(-22px); }
[dir="rtl"] .reveal[data-reveal="drift"] { transform: translateX(22px); }
.reveal[data-reveal="drift"].is-in { transform: none; }
.no-js .reveal, .no-motion .reveal { opacity: 1; transform: none; }

/* ---------- Photographic hero (full-bleed) ---------- */
.hero-photo { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: var(--bg-2); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-drift 28s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 12, 0.82) 0%, rgba(6, 7, 12, 0.55) 55%, rgba(6, 7, 12, 0.35) 100%), linear-gradient(0deg, rgba(6, 7, 12, 0.7) 0%, rgba(6, 7, 12, 0) 35%; }
[dir="rtl"] .hero-veil { background: linear-gradient(-90deg, rgba(6, 7, 12, 0.82) 0%, rgba(6, 7, 12, 0.55) 55%, rgba(6, 7, 12, 0.35) 100%), linear-gradient(0deg, rgba(6, 7, 12, 0.7) 0%, rgba(6, 7, 12, 0) 35%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(4rem, 10vw, 7rem); }
.hero-inner .hero-copy { max-width: 62rem; }
.hero-photo .h-display { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.hero-credit { position: absolute; z-index: 1; inset-block-end: 1.1rem; inset-inline-end: 1.4rem; color: var(--faint); font-size: 0.75rem; }

/* ---------- Spark band (full-width interactive 3D) ---------- */
.spark-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.spark-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.spark-stage { height: clamp(440px, 62vh, 620px); }
.spark-copy .lede { margin-block: 1.1rem 0; }

/* ---------- Service photo thumbs ---------- */
.index-rows.svc-rows > li { grid-template-columns: 4.5rem 220px 1fr auto; }
.svc-thumb { width: 220px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); flex: none; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Photo frames (aspect-locked, no layout shift) ---------- */
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media { min-height: 380px; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-cover img { transform: scale(1.03); }
.case-cover img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.photo-wide { margin: 2.75rem 0 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); }
.split > .photo-wide { grid-column: 1 / -1; }
.photo-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.why-list { grid-template-columns: 1fr 1fr; gap: 1.1rem 2.5rem; }
.cta-band { background: linear-gradient(rgba(6, 7, 12, 0.82), rgba(6, 7, 12, 0.82)), url("../img/cta-dubai-1600.jpg") center / cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { min-height: 340px; height: 52vw; max-height: 440px; }
  .spark-grid { grid-template-columns: 1fr; }
  .spark-stage { height: 64vw; min-height: 360px; max-height: 560px; }
  .index-rows.svc-rows > li { grid-template-columns: 3.5rem 180px 1fr; }
  .svc-thumb { width: 180px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    background: var(--bg-2);
    border-block-end: 1px solid var(--line-strong);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-link { padding: 0.8rem 1rem; font-size: 1.02rem; }
  .header-cta { display: none; }
  .index-rows > li { grid-template-columns: 3rem 1fr; }
  .index-rows.svc-rows > li { grid-template-columns: 3rem 1fr; }
  .index-rows.svc-rows .svc-thumb { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 8; }
  .index-link { display: none; }
  .work-card, .work-card:nth-child(3n+1), .work-card:nth-child(3n+2), .work-card:nth-child(3n) { grid-column: span 12; }
  .work-card:nth-child(3n) .work-cover { aspect-ratio: 16 / 8; }
  .form-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .cta-band .btn { margin-inline-start: 0; width: 100%; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .brand-name small { display: none; }
  .hero-stage { height: 72vw; min-height: 280px; }
}

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-bg img { animation: none; }
}
