/* =========================================================================
   SAWWA STUDIO — public site
   Apple-inspired minimalism. Black / white / grey, a whisper of champagne.
   ========================================================================= */
:root {
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --line: #D2D2D7;
  --gold: #A88F6A;       /* champagne: lines, icons, active states only */
  --gold-deep: #8A7350;  /* same hue with enough contrast for focus rings */
  --line-soft: #E5E5EA;
  --ink-80: rgba(29, 29, 31, .8);

  --font-ar: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: var(--font-ar);

  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 168px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
}
html[lang="en"] { --font: var(--font-en); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
/* dashboard-controlled text size (Settings → حجم النص): scales all rem-based type together */
html[data-tsize="sm"] { font-size: 90%; }
html[data-tsize="lg"] { font-size: 112.5%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="en"] body { letter-spacing: -0.006em; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ol, ul, dl, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; 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: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.display {
  font-size: clamp(3rem, 10.5vw, 9.5rem); line-height: .98; font-weight: 800; letter-spacing: -.035em;
  margin: 18px 0 0; text-wrap: balance;
}
html[lang="ar"] .display { letter-spacing: -.01em; line-height: 1.12; font-weight: 700; }
.display .w { display: inline-block; }
.display-2 { font-size: clamp(2.3rem, 6vw, 5rem); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
html[lang="ar"] .display-2 { line-height: 1.22; letter-spacing: 0; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
html[lang="ar"] .h2 { line-height: 1.3; letter-spacing: 0; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
html[lang="ar"] .h3 { line-height: 1.4; letter-spacing: 0; }
.h4 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 12px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 60ch; line-height: 1.7; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] .kicker { letter-spacing: .02em; font-size: .9rem; }
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
html[dir="rtl"] .btn .ic-arrow, html[dir="rtl"] .btn-link .ic:last-child, html[dir="rtl"] .head-link .ic { transform: scaleX(-1); }
.btn:hover .ic:last-child { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .ic:last-child { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); }
.btn-link { padding: 0 4px; min-height: 44px; border-radius: 8px; }
.btn-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.btn-glass { background: rgba(255,255,255,.72); color: var(--ink); border: 1px solid rgba(0,0,0,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ECECEE; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.preview-bar { position: sticky; top: 0; z-index: 70; background: var(--ink); color: #fff; text-align: center; font-size: .88rem; padding: 8px 16px; }
.preview-bar a { text-decoration: underline; margin-inline-start: 10px; font-weight: 600; }
.hdr { position: sticky; top: 0; z-index: 60; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.hdr.is-scrolled { background: rgba(245,245,247,.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: 32px; width: auto; }
.brand-word { font-family: var(--font-en); font-weight: 800; letter-spacing: .18em; font-size: .98rem; display: inline-flex; gap: 6px; direction: ltr; }
.brand-word span { font-weight: 400; color: var(--ink-2); letter-spacing: .3em; }
.hdr-nav { display: flex; gap: 4px; margin-inline: auto; }
.hdr-nav a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--ink-80); transition: color .2s, background .2s; }
.hdr-nav a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.hdr-act { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: .88rem; color: var(--ink-80); }
.lang:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.lang .ic { width: 16px; height: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; }
.menu-btn:hover { background: rgba(0,0,0,.05); }
.menu-btn .ic { width: 22px; height: 22px; }

.mnav { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 72px; flex: none; }
.mnav-links { display: flex; flex-direction: column; padding-block: 24px; }
.mnav-links a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--line-soft); letter-spacing: -.02em; }
.mnav-foot { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 24px 40px; margin-top: auto; }
.mnav-foot .btn { flex: 1 1 160px; }
@media (prefers-reduced-motion: no-preference) {
  .mnav:not([hidden]) .mnav-links a { animation: mIn .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
}
@keyframes mIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec-tight { padding-block: clamp(40px, 6vw, 88px); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; position: relative; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head-link { justify-self: start; margin-top: 4px; }
.empty { color: var(--ink-2); padding: 40px 0; text-align: center; }

/* ---------- HERO: full-width image directly under the header, real text on top ---------- */
.hero { position: relative; isolation: isolate; }
.hero.has-visual { min-height: clamp(560px, calc(100svh - 72px), 920px); display: grid; }
.hero.type-only { padding-block: clamp(48px, 8vw, 120px); }
.hero-visual { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #EEECE8; }
.hero-visual picture { display: contents; }
.hero-img, .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
/* light wash behind the text side so dark type stays readable on any photo */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(245,244,241,.94) 0%, rgba(245,244,241,.78) 30%, rgba(245,244,241,0) 58%); }
.hero-in { display: flex; align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.hero-copy { margin-left: auto; width: min(100%, 600px); display: grid; gap: 22px; justify-items: start; }
.hero .display { font-size: clamp(2.6rem, 5.6vw, 5.4rem); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: var(--ink-2); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.eyebrow-sep { color: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.hero-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #4A4A4F; max-width: 46ch; line-height: 1.85; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; }

/* ---------- CLIENTS marquee ---------- */
.clients { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.clients .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.clients .h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.mq-wrap { display: grid; gap: clamp(18px, 3vw, 30px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq { overflow: hidden; direction: ltr; }
.mq-track { display: flex; width: max-content; align-items: center; animation: mq var(--dur, 40s) linear infinite; will-change: transform; }
.mq.rev .mq-track { animation-direction: reverse; }
.mq-wrap.pausable .mq:hover .mq-track { animation-play-state: paused; }
.mq-item { flex: none; height: 92px; margin-inline: clamp(14px, 2vw, 26px); padding-inline: 14px; display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.mq-item.is-light { background: var(--ink); padding-inline: 22px; } /* white logo: dark chip for contrast */
.mq-item img { width: auto; max-width: 190px; object-fit: contain; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.mq-wrap.mono .mq-item img { filter: grayscale(1); }
.mq-wrap.mono .mq-item:hover img { filter: none; opacity: 1; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq { overflow-x: auto; scrollbar-width: none; }
  .mq-track { animation: none; }
  .mq-track [aria-hidden="true"] { display: none; }
  .mq-wrap { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- SERVICES (editorial index) ---------- */
.services { background: var(--card); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-grid.has-img { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
.svc-grid .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.svc-list { border-top: 1px solid var(--line); }
.svc-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 110px; aspect-ratio: 4 / 5; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc { display: grid; grid-template-columns: 56px 48px minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative; }
.svc::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width .6s var(--ease); }
.svc:hover::after { width: 100%; }
.svc-num { font-family: var(--font-en); font-size: .85rem; color: var(--ink-2); padding-top: 8px; font-variant-numeric: tabular-nums; }
.svc-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.svc-ic .ic { width: 22px; height: 22px; }
.svc:hover .svc-ic { background: var(--ink); color: #fff; transform: rotate(-6deg); }
.svc h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.svc p { color: var(--ink-2); margin-top: 6px; max-width: 48ch; }

/* ---------- WORK (filters + bento) ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink-80); background: transparent; transition: .2s var(--ease); }
.chip span { font-family: var(--font-en); font-size: .75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on span { color: var(--gold); }

.work { padding-top: clamp(56px, 7vw, 104px); }
.bento { --cols: 3; --gap: clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: dense; }
.js .bento.is-laid { grid-auto-rows: 4px; row-gap: 0; }
.tile { min-width: 0; }
.js .bento.is-laid .tile { padding-bottom: var(--gap); align-self: start; }
.tile.is-feat { grid-column: span 2; }
@media (max-width: 1100px) { .bento { --cols: 2; } }
@media (max-width: 640px) { .bento { --cols: 1; } .tile.is-feat { grid-column: auto; } }
.tile[hidden] { display: none; }
.tile-link { display: block; border-radius: var(--r-md); }
.tile-link:focus-visible { outline-offset: 4px; }
.tile-media { position: relative; aspect-ratio: var(--ar); border-radius: var(--r-md); overflow: hidden; background: #EBEBEF; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media.fit-contain img { object-fit: contain; }
.tile-cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 56px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(12,12,13,.74), rgba(12,12,13,0)); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.tile-txt { min-width: 0; }
.tile-t { font-size: 1rem; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-m { font-size: .82rem; color: rgba(255,255,255,.78); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; }
.tile-go .ic { width: 15px; height: 15px; }
html[dir="rtl"] .tile-go .ic { transform: scaleX(-1); }
@media (hover: hover) {
  .tile-link:hover .tile-media, .tile-link:focus-visible .tile-media { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(0,0,0,.32); }
  .tile-link:hover .tile-cap, .tile-link:focus-visible .tile-cap { opacity: 1; transform: none; }
}
/* touch screens have no hover: keep name + "open" visible */
@media (hover: none) { .tile-cap { opacity: 1; transform: none; padding-top: 40px; } }
.is-video .tile-cap { opacity: 1; transform: none; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; backdrop-filter: blur(8px); transition: transform .35s var(--ease), background .35s; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.play .ic { width: 22px; height: 22px; margin-inline-start: 3px; }
html[dir="rtl"] .play .ic { margin-inline-start: 0; margin-inline-end: 3px; }
a:hover .play, button:hover .play { transform: scale(1.08); background: #fff; }
.more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- BRANDING showcase ---------- */
.brand-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.brand-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: clamp(380px, 42vw, 560px); }
.brand-panel.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.brand-panel.flip .bp-stage { order: 2; }
.bp-stage, .case-stage { position: relative; background: var(--tint); display: grid; place-items: center; padding: clamp(40px, 7vw, 96px); transition: background .5s var(--ease); }
.bp-logo { width: min(100%, 420px); display: grid; place-items: center; }
.bp-logo img { max-height: clamp(140px, 20vw, 260px); width: auto; max-width: 100%; object-fit: contain; transition: filter .45s var(--ease); }
[data-mode="black"] .bp-logo img { filter: brightness(0); }
[data-mode="white"] { background: #151517; }
[data-mode="white"] .bp-logo img { filter: brightness(0) invert(1); }
.bp-modes { position: absolute; bottom: 18px; inset-inline-start: 18px; display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.75); backdrop-filter: blur(12px); border-radius: 999px; }
[data-mode="white"] .bp-modes { background: rgba(255,255,255,.12); }
.bp-modes button { padding: 6px 14px; min-height: 34px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink-2); transition: .2s; }
[data-mode="white"] .bp-modes button { color: rgba(255,255,255,.7); }
.bp-modes button.is-on { background: var(--ink); color: #fff; }
[data-mode="white"] .bp-modes button.is-on { background: #fff; color: var(--ink); }
.bp-info { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.bp-info p { color: var(--ink-2); }
.bp-info .btn { margin-top: 10px; }
.swatches { display: flex; gap: 8px; }
.swatches li { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bp-thumb { display: block; width: 100%; max-width: 280px; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16/10; }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- VIDEOS ---------- */
.videos { background: var(--ink); color: #F5F5F7; }
.videos .lead, .videos .kicker { color: #A1A1A6; }
.videos .chip { border-color: rgba(255,255,255,.18); color: #D2D2D7; }
.videos .chip:hover { border-color: #fff; color: #fff; }
.videos .chip.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.videos .chip.is-on span { color: var(--gold); }
.vgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.vcard { grid-column: span 4; }
.vcard.o-portrait { grid-column: span 3; }
.vcard[hidden] { display: none; }
.vcard-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #2C2C2E; }
.vcard.o-portrait .vcard-media { aspect-ratio: 9 / 16; }
.vcard.o-square .vcard-media { aspect-ratio: 1; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; opacity: .9; }
.vcard-link:hover .vcard-media img { transform: scale(1.04); opacity: 1; }
.vcard-blank { position: absolute; inset: 0; background: #2C2C2E; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.vcard-cap { padding: 14px 2px 0; }
.vcard-cap h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.vcard-cap p { font-size: .85rem; color: #A1A1A6; margin-top: 2px; }
.sec-tight .vcard-cap p, .vpage .vcard-cap p { color: var(--ink-2); }

/* ---------- ABOUT ---------- */
.about-top { display: grid; gap: 22px; max-width: 1100px; }
.statement p { font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.35; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
html[lang="ar"] .statement p { line-height: 1.6; letter-spacing: 0; font-weight: 500; }
html[lang="en"] .statement p::first-letter { color: var(--gold); } /* Arabic letters must stay joined */
.about-img { margin-top: clamp(40px, 6vw, 80px); border-radius: var(--r-lg); overflow: hidden; }
.about-img img { width: 100%; }
.steps { margin-top: clamp(56px, 8vw, 112px); }
.steps-title { font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 28px; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: s; position: relative; }
.steps-list::before { content: ''; position: absolute; top: 27px; inset-inline: 28px; height: 1px; background: var(--line); }
.step { position: relative; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-family: var(--font-en); font-weight: 600; font-size: .95rem; transition: background .35s, color .35s, border-color .35s; }
.step:hover .step-n { background: var(--ink); color: #fff; border-color: var(--ink); }
.step h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; margin-top: 24px; letter-spacing: -.01em; }
.step p { color: var(--ink-2); margin-top: 8px; max-width: 34ch; }

/* ---------- CONTACT ---------- */
.contact { padding-top: 0; }
.contact-card { background: var(--ink); color: #fff; border-radius: clamp(24px, 3vw, 40px); padding: clamp(36px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; overflow: hidden; position: relative; }
.contact-card::before { content: ''; position: absolute; width: 520px; height: 520px; inset-inline-start: -220px; bottom: -300px; border-radius: 50%; border: 1px solid rgba(168,143,106,.35); pointer-events: none; }
.contact .lead { color: #A1A1A6; margin-top: 18px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: #A1A1A6; font-size: .92rem; }
.contact-meta a:hover { color: #fff; }
.cform { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; position: relative; z-index: 1; }
.cform h3 { font-size: 1.1rem; font-weight: 600; }
.fld { display: grid; gap: 6px; font-size: .85rem; color: #A1A1A6; }
.fld input, .fld textarea { font: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; width: 100%; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.09); }
.fld.is-bad input, .fld.is-bad textarea { border-color: #FF8A80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-msg { font-size: .9rem; min-height: 1.4em; }
.cform-msg.ok { color: #9FE2B0; }
.cform-msg.err { color: #FF9E95; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* custom sections */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.custom-grid.no-img { grid-template-columns: 1fr; max-width: 860px; }
.custom-grid .lead { margin: 18px 0 26px; }
.custom-grid figure { border-radius: var(--r-lg); overflow: hidden; }

/* ---------- page heroes / detail pages ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 120px) clamp(20px, 3vw, 40px); }
.page-hero .lead { margin-top: 20px; }
.page-hero.nf { min-height: 60vh; display: grid; align-items: center; }
.page-hero.nf .btn { margin-top: 28px; }
.crumb { display: inline-flex; font-size: .9rem; color: var(--ink-2); margin-bottom: 22px; }
.crumb::before { content: '←'; margin-inline-end: 8px; }
html[dir="rtl"] .crumb::before { content: '→'; }
.crumb:hover { color: var(--ink); }
.proj-head { padding-block: clamp(40px, 7vw, 100px) 0; }
.proj-head .lead { margin-top: 20px; }
.proj-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(32px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); }
.meta { display: grid; gap: 18px; align-content: start; }
.meta dt { font-size: .8rem; color: var(--ink-2); }
.meta dd { margin: 2px 0 0; font-weight: 600; }
.prose { font-size: 1.08rem; color: var(--ink-80); display: grid; gap: 16px; max-width: 68ch; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.g-item { min-width: 0; }
.g-item.is-feat { grid-column: 1 / -1; }
.g-btn { display: block; width: 100%; aspect-ratio: var(--ar); border-radius: var(--r-md); overflow: hidden; background: #EBEBEF; cursor: zoom-in; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-btn:hover img { transform: scale(1.02); }
.g-item figcaption { font-size: .86rem; color: var(--ink-2); padding: 10px 4px 0; }
.next-proj { border-top: 1px solid var(--line); }
.next-proj a { display: grid; gap: 8px; padding-block: clamp(48px, 7vw, 96px); }
.next-title { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(1.8rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.next-title .ic { width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); transition: transform .4s var(--ease); }
html[dir="rtl"] .next-title .ic { transform: scaleX(-1); }
.next-proj a:hover .next-title .ic { transform: translateX(8px); }
html[dir="rtl"] .next-proj a:hover .next-title .ic { transform: scaleX(-1) translateX(8px); }

.case-hero { padding-block: clamp(32px, 5vw, 72px) 0; }
.case-stage { border-radius: var(--r-lg); min-height: clamp(320px, 46vw, 620px); margin-bottom: clamp(32px, 5vw, 56px); }
.case-hero .lead { margin-top: 18px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.case-grid .btn { margin-top: 28px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.palette span { display: block; aspect-ratio: 1.3; border-radius: var(--r-sm); background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.palette code { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 6px; }
.type-list { display: grid; gap: 8px; }
.type-list li { font-size: 1.4rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.variant { background: var(--card); border-radius: var(--r-md); padding: 36px; display: grid; place-items: center; aspect-ratio: 4/3; }
.variant img { max-height: 70%; width: auto; object-fit: contain; }
.variant figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.case .sec-tight .h3 { margin-bottom: 28px; }

.vpage { padding-block: clamp(40px, 7vw, 100px); }
.vpage .display-2 { margin-bottom: clamp(24px, 4vw, 48px); }
.player { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16/9; max-height: 82vh; margin-inline: auto; }
.player.o-portrait { aspect-ratio: 9/16; max-width: min(460px, 100%); }
.player.o-square { aspect-ratio: 1; max-width: 760px; }
.player img, .player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player video { object-fit: contain; }
.play.big { width: 84px; height: 84px; }

/* ---------- fullscreen viewer (projects + videos) ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: #151516; color: #F5F5F7; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.lb[hidden], .lb [hidden] { display: none !important; }
.lb-panel { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 88px 32px 32px; background: #1B1B1D; border-inline-end: 1px solid rgba(255,255,255,.07); overflow-y: auto; }
.lb-num { font-family: var(--font-en); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .lb-num { font-family: var(--font); letter-spacing: .02em; font-size: .88rem; }
.lb-title { font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 700; line-height: 1.35; }
.lb-meta { color: #A1A1A6; font-size: .92rem; }
.lb-cap { color: #D2D2D7; font-size: .9rem; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.lb-progress { margin-top: auto; display: grid; gap: 10px; }
.lb-count { font-family: var(--font-en); font-size: .85rem; color: #D2D2D7; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; justify-self: start; }
.lb-bar { display: block; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.lb-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); width: 100%; }
.lb-link .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
html[dir="rtl"] .lb-link .ic { transform: scaleX(-1); }
.lb-link:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.lb-main { grid-column: 2; grid-row: 1; position: relative; min-height: 0; overflow: hidden; }
.lb-stage { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 72px 92px 20px; }
.lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; border-radius: 6px; transition: opacity .25s var(--ease); }
.lb-stage img.is-loading { opacity: .4; }
.lb-stage .vbox { width: min(100%, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16/9; position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.lb-stage .vbox.o-portrait { width: min(100%, calc((100dvh - 120px) * 9 / 16)); aspect-ratio: 9/16; }
.lb-stage .vbox.o-square { width: min(100%, calc(100dvh - 120px)); aspect-ratio: 1; }
.lb-stage .vbox iframe, .lb-stage .vbox video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-prev { inset-inline-start: 20px; }
.lb-next { inset-inline-end: 20px; }
.lb-prev .ic { transform: scaleX(-1); }
html[dir="rtl"] .lb-prev .ic { transform: none; }
html[dir="rtl"] .lb-next .ic { transform: scaleX(-1); }
.lb-thumbs { grid-column: 2; grid-row: 2; display: flex; gap: 8px; padding: 10px 24px 20px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.lb-th { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-th:hover { opacity: .85; }
.lb-th.is-on { opacity: 1; border-color: var(--gold); }
.lb-th img { width: 100%; height: 100%; object-fit: cover; }
.lb-x { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.lb-x:hover { background: rgba(255,255,255,.2); }
.lb.is-video .lb-stage { padding-inline: 32px; }
@media (max-width: 900px) {
  .lb { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .lb-panel { grid-column: 1; grid-row: 1; padding: 16px 20px 12px; padding-inline-end: 76px; gap: 4px; border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.07); overflow: visible; }
  .lb-title { font-size: 1.1rem; }
  .lb-meta, .lb-num { font-size: .78rem; }
  .lb-cap { display: none; }
  .lb-progress { margin-top: 6px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .lb-link { border-top: 0; padding-top: 6px; font-size: .85rem; }
  .lb-main { grid-column: 1; grid-row: 2; }
  .lb-stage { padding: 12px; }
  .lb-nav { width: 44px; height: 44px; background: rgba(21,21,22,.6); }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
  .lb-thumbs { grid-column: 1; grid-row: 3; padding: 8px 12px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .lb-th { width: 52px; height: 52px; }
  .lb-x { top: 12px; }
}

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.ftr-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 36px; }
.ftr-brand p { color: var(--ink-2); margin-top: 16px; max-width: 36ch; font-size: .95rem; }
.ftr-col { display: grid; gap: 10px; align-content: start; font-size: .95rem; }
.ftr-col > a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-80); width: fit-content; }
.ftr-col > a:hover { color: var(--ink); }
.ftr-col .ic { width: 18px; height: 18px; color: var(--ink-2); }
.socials { display: flex; gap: 6px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.socials .ic { width: 18px; height: 18px; color: currentColor; }
.ftr-bottom { padding-block: 28px; margin-top: 48px; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  /* portrait artwork shown whole across the width (subject in its upper part), text sits on its calm lower part */
  .hero.has-visual { min-height: 0; }
  .hero-visual { background: var(--bg); }
  .hero-img { height: auto; object-fit: fill; }
  .hero-video { height: 62vw; min-height: 260px; object-position: 50% 50%; }
  .hero-shade { background: linear-gradient(to top, var(--bg) 0%, rgba(245,245,247,.96) 30%, rgba(245,245,247,.6) 52%, rgba(245,245,247,0) 68%); }
  .hero-in { align-items: flex-end; padding-block: calc(min(100vw, 700px) * .86) 36px; }
  .hero-copy { width: 100%; gap: 14px; }
  .hero .display { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .hero-text { font-size: 1rem; line-height: 1.75; }
  .hero.mob-wide .hero-in { padding-top: calc(min(100vw, 700px) * .5625 + 28px); }
  .hero.mob-video .hero-in { padding-top: calc(max(62vw, 260px) + 28px); }
  .hero.mob-wide .hero-shade, .hero.mob-video .hero-shade { display: none; }
}
@media (max-width: 1100px) {
  .hdr-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-act { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .svc-grid, .contact-card, .proj-intro, .case-grid, .custom-grid, .ftr-in { grid-template-columns: minmax(0, 1fr); }
  .svc-grid .sec-head { position: static; }
  .svc-grid.has-img { grid-template-columns: minmax(0, 1fr); }
  .svc-media { position: static; aspect-ratio: 16 / 10; order: -1; }
  .brand-panel, .brand-panel.flip { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .brand-panel.flip .bp-stage { order: 0; }
  .bp-stage { min-height: 280px; }
  .vcard { grid-column: span 6; }
  .vcard.o-portrait { grid-column: span 6; }
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps-list::before { top: 28px; bottom: 28px; inset-inline: auto; inset-inline-start: 27px; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding-bottom: 32px; }
  .step h4 { margin-top: 12px; }
  .step p { grid-column: 2; }
  .variants { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hdr-cta, .hdr-act > .lang span { display: none; }
  .hdr-in { height: 64px; gap: 12px; }
  .eyebrow { font-size: .78rem; padding: 6px 12px; }
  .eyebrow-sep { display: none; }
  .hero-btns .btn { flex: 1 1 auto; }
  .hero-btns .btn-link { flex-basis: 100%; }
  .svc { grid-template-columns: 40px minmax(0, 1fr); }
  .svc-ic { display: none; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard, .vcard.o-portrait { grid-column: span 2; }
  .vcard.o-portrait { grid-column: span 1; }
  .contact-btns .btn { width: 100%; }
  .variants { grid-template-columns: minmax(0, 1fr); }
  .mq-item { height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
