/*
Theme Name: SQ Pro
Theme URI: https://sqprom.com
Author: SQ Pro Media Production
Description: Lightweight block theme for SQ Pro Media Production. No page builder, no slider plugin. Built from the 2026 redesign prototype.
Version: 1.6.5
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sqpro
*/

/* ---------- Base ---------- */
:root {
	--sq-black: #020303;
	--sq-yellow: #F9ED36;
	--sq-alabaster: #EEEDE9;
	--sq-coffee: #392D32;
	--sq-muted: #B5B3AD;
	--sq-gutter: 24px;
	--sq-max: 1320px;
	/* One family per language (self-hosted, declared in theme.json). v1.6.1: Arabic is IBM Plex Sans Arabic (SIL OFL,
	   assets/fonts/ibm-plex-sans-arabic-OFL.txt) — the free, permanent choice. */
	--sq-font-en: "TikTok Sans Condensed", sans-serif;
	--sq-font-ar: "IBM Plex Sans Arabic", sans-serif;
}
html { font-synthesis: none; }   /* real weights only: no faux bold or italic */
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }
.sq-y { color: var(--sq-yellow); }
.sq-wrap { max-width: var(--sq-max); margin-left: auto !important; margin-right: auto !important; padding-left: var(--sq-gutter); padding-right: var(--sq-gutter); box-sizing: border-box; width: 100%; }
.sq-section { padding-top: 112px; padding-bottom: 112px; }
.sq-light { background: var(--sq-alabaster); color: var(--sq-black); }
.sq-light h1, .sq-light h2, .sq-light h3 { color: var(--sq-black); }
.sq-yellowbg { background: var(--sq-yellow); color: var(--sq-black); }
.sq-yellowbg h1, .sq-yellowbg h2, .sq-yellowbg h3 { color: var(--sq-black); }
.sq-coffeebg { background: var(--sq-coffee); }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks .alignfull { margin-top: 0; margin-bottom: 0; }

/* Display type (weights from the brand guide: H1 ExtraBold, H2/H3 Bold) */
h1, h2, h3, .sq-display { text-transform: uppercase; }
h1, .sq-h1 { font-weight: 800; }
.sq-h1 { font-size: clamp(60px, 9vw, 136px) !important; line-height: .9 !important; }
.sq-h2 { font-size: clamp(44px, 6vw, 88px) !important; line-height: .95 !important; margin: 0 !important; font-weight: 700; }
.sq-h3 { font-size: 30px !important; line-height: 1 !important; font-weight: 700; }

/* Eyebrow label with yellow square */
.sq-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.sq-label::before { content: ""; width: 10px; height: 10px; background: var(--sq-yellow); flex: none; }
.sq-light .sq-label::before, .sq-yellowbg .sq-label::before { background: var(--sq-black); }
.sq-lead { font-size: 20px; max-width: 600px; }
.sq-muted { color: var(--sq-muted); }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 1px solid currentColor; color: inherit; }
.sq-yellowbg .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--sq-black); color: var(--sq-yellow); }
.sq-yellowbg .wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--sq-black); color: var(--sq-black); }
.sq-light .wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--sq-black); color: var(--sq-black); }
.wp-block-button__link { min-height: 52px; display: inline-flex !important; align-items: center; }

/* ---------- Header ---------- */
.sq-header { border-bottom: 1px solid rgba(238, 237, 233, .14); position: relative; z-index: 10; }
.sq-header .sq-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.sq-header .wp-block-image { margin: 0; }
.sq-header .wp-block-image img { height: 40px; width: auto; display: block; }
.sq-header .wp-block-navigation { font-size: 14px; font-weight: 600; gap: 4px 28px; }
.sq-header .wp-block-navigation a:hover { color: var(--sq-yellow); }
.sq-header .wp-block-buttons .wp-block-button__link { min-height: 44px; padding: 12px 22px; }
.sq-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Hero ---------- */
/* Heroes are Cover blocks: image + overlay are set in the editor, not here. */
.sq-hero.wp-block-cover { padding: 0; align-items: center; }
.sq-hero .wp-block-cover__inner-container { position: static; z-index: 1; }
.sq-hero .wp-block-cover__inner-container > * { position: relative; z-index: 1; }
.sq-hero .sq-wrap { padding-top: 120px; padding-bottom: 120px; }
.sq-hero-page { min-height: 0; background: var(--sq-black); }
.sq-hero .sq-caption { position: absolute; z-index: 1; right: 24px; bottom: 24px; font-size: 12px; color: var(--sq-muted); margin: 0; }

/* ---------- Stats ---------- */
.sq-stats .sq-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.sq-stat { padding: 36px 24px 36px 0; }
.sq-stat p { margin: 0; }
.sq-stat .sq-num { font-weight: 800; font-size: 68px; line-height: 1; }
.sq-stat .sq-num + p { margin-top: 6px; font-size: 14px; font-weight: 600; }

/* ---------- Grids ---------- */
.sq-grid { display: grid !important; gap: 24px; }
.sq-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.sq-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.sq-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.sq-grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; }
.sq-grid > * { margin: 0 !important; }
.sq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 80px; margin-bottom: 48px; }
.sq-head > * { margin: 0; }

/* Work tiles */
.sq-tile { position: relative; overflow: hidden; background: var(--sq-coffee); }
.sq-tile .wp-block-image { margin: 0; }
.sq-tile .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.sq-tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 28px 24px; background: linear-gradient(to top, rgba(2,3,3,.92), rgba(2,3,3,0)); }
.sq-tile-text > * { margin: 0; }
.sq-tag { display: inline-block; background: var(--sq-yellow); color: var(--sq-black); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; }
.sq-tile-text h3 { margin: 12px 0 2px; font-size: 40px; line-height: .95; color: var(--sq-alabaster); }
.sq-tile-text .sq-place { font-size: 15px; color: var(--sq-muted); }

/* Service cards */
.sq-card { background: var(--sq-black); color: var(--sq-alabaster); padding: 28px 26px; min-height: 260px; box-sizing: border-box; }
.sq-card .wp-block-image { margin: 0 0 14px; }
.sq-card .wp-block-image img { width: 56px; height: 56px; }
.sq-card h3 { color: var(--sq-alabaster); font-size: 30px; line-height: 1; margin: 0 0 12px; }
.sq-card p { margin: 0; font-size: 16px; color: var(--sq-muted); }
.sq-card .sq-num { color: var(--sq-yellow); font-weight: 800; font-size: 40px; line-height: 1; margin: 0 0 14px; }
.sq-card a { color: inherit; text-decoration: none; }

/* Client logos */
.sq-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.sq-logos .wp-block-image { margin: 0; height: 104px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px 18px; box-sizing: border-box; }
.sq-logos .wp-block-image img { max-height: 64px; width: auto; max-width: 100%; }

/* Why / steps rows */
.sq-row { border-top: 2px solid currentColor; }
.sq-row > * { padding: 28px 20px 8px 0; }
.sq-row h3 { font-size: 30px; line-height: 1; margin: 14px 0 0; }
.sq-row .sq-num { font-weight: 800; font-size: 56px; line-height: 1; margin: 0; }

/* FAQ */
.sq-faq .wp-block-details { border-bottom: 1px solid var(--sq-coffee); padding: 0; }
.sq-faq .wp-block-details summary { padding: 24px 0; font-size: 20px; font-weight: 600; cursor: pointer; }
.sq-faq .wp-block-details p { color: var(--sq-muted); margin: 0 0 24px; }
.sq-faq { border-top: 1px solid var(--sq-coffee); }

/* Offices */
.sq-office { background: var(--sq-black); color: var(--sq-alabaster); padding: 32px 28px; }
.sq-office h3 { color: var(--sq-yellow); font-size: 44px; margin: 0 0 16px; }
.sq-office p { margin: 0 0 8px; font-size: 16px; }

/* Content pages (existing WPBakery content keeps rendering here) */
.sq-content { padding-top: 64px; padding-bottom: 112px; }
.sq-content a { color: var(--sq-yellow); }

/* Contact Form 7 */
.wpcf7 input:not([type=submit]), .wpcf7 textarea, .wpcf7 select { width: 100%; background: var(--sq-black); color: var(--sq-alabaster); border: 1px solid var(--sq-coffee); padding: 12px 14px; font: inherit; min-height: 50px; box-sizing: border-box; }
.wpcf7 input[type=submit] { background: var(--sq-yellow); color: var(--sq-black); border: 0; padding: 16px 32px; font: inherit; font-weight: 700; cursor: pointer; min-height: 54px; }

/* ---------- Footer ---------- */
.sq-footer { background: #000; border-top: 4px solid var(--sq-yellow); }
.sq-footer .sq-wrap { padding-top: 72px; padding-bottom: 40px; }
.sq-footer h3 { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--sq-yellow); margin: 0 0 14px; }
.sq-footer p { font-size: 16px; margin: 0 0 8px; }
.sq-footer a { text-decoration: none; }
.sq-footer .wp-block-image img { height: 54px; width: auto; }
.sq-footer-bottom { border-top: 1px solid var(--sq-coffee); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 400; color: #8A8984; }
.sq-footer-bottom p { margin: 0; font-size: 14px; }

@media (max-width: 781px) {
	.sq-section { padding-top: 80px; padding-bottom: 80px; }
	.sq-hero.wp-block-cover { min-height: 640px !important; }
}

/* ---------- Video (YouTube embeds) ---------- */
.sq-showreel .sq-h2 { margin-bottom: 48px !important; }
.sq-video { margin: 0; }
.sq-video .wp-block-embed__wrapper { background: #000; }
.sq-video iframe { display: block; width: 100%; }

/* ===== v0.3 fixes: match the prototype more closely ===== */

/* 1. Section heads: title left, button right (was dropping below) */
.sq-head > :first-child { flex: 1 1 560px; min-width: 0; }
.sq-head > .wp-block-buttons { flex: 0 0 auto; }

/* 2. Hero titles inside 2-column layouts were breaking mid-word ("TRANSFORM / ING") */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
.wp-block-column .sq-h1 { font-size: clamp(48px, 6.2vw, 100px) !important; }
.wp-block-columns { gap: 48px 72px; align-items: center; }

/* 3. Work tiles: yellow arrow square + subtle zoom, like the prototype */
.sq-tile { isolation: isolate; }
.sq-tile::after { content: "\2197"; position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; background: var(--sq-yellow); color: var(--sq-black); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; z-index: 2; }
.sq-tile .wp-block-image img { transition: transform .5s ease; }
.sq-tile:hover .wp-block-image img { transform: scale(1.04); }

/* 4. FAQ: yellow "+" box on the right, rotates when open */
.sq-faq .wp-block-details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sq-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.sq-faq .wp-block-details summary::after { content: "+"; flex: none; width: 32px; height: 32px; background: var(--sq-yellow); color: var(--sq-black); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; transition: transform .2s; }
.sq-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }

/* 5. About: strengths grid */
.sq-strengths { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px 20px; border-top: 1px solid var(--sq-coffee); padding-top: 24px; margin: 8px 0 28px !important; }
.sq-strength-t { font-size: 16px !important; text-transform: none !important; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; line-height: 1.3 !important; }
.sq-strength-t::before { content: ""; width: 8px; height: 8px; background: var(--sq-yellow); flex: none; }
.sq-strengths p { font-size: 15px; margin: 0; }

/* 6. Contact: direct lines column next to the form */
.sq-lines .sq-line { border: 1px solid var(--sq-coffee); padding: 18px 22px; margin: 0 0 12px !important; }
.sq-lines .sq-line p { margin: 0; }
.sq-line-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sq-muted); }
.sq-line-v a { font-size: 20px; font-weight: 700; text-decoration: none; }
.sq-line-hot { background: var(--sq-yellow); border-color: var(--sq-yellow) !important; }
.sq-line-hot .sq-line-k, .sq-line-hot .sq-line-v a { color: var(--sq-black); }
.sq-line-hot .sq-line-v a { font-weight: 800; font-size: 28px; text-transform: uppercase; }

/* 7. Footer: thicker yellow rule + tighter type, as in the prototype */
.sq-footer .wp-block-columns { align-items: flex-start; }

/* ===== v0.4 Arabic / RTL ===== */

/* Arabic type (v0.8.0): one family, set once on the page and inherited everywhere (--sq-font-ar).
   Weights: H1/H2/H3 and big numbers Bold, labels and buttons SemiBold, body Regular. Never letter-space Arabic. */
html:lang(ar) body { font-family: var(--sq-font-ar); }
:lang(ar) * { letter-spacing: 0 !important; }
:lang(ar) :is(h1, .sq-h1) { font-weight: 700; line-height: 1.2 !important; }
:lang(ar) h2 { font-weight: 700; line-height: 1.3 !important; }
:lang(ar) h3 { font-weight: 700; line-height: 1.35 !important; }
:lang(ar) :is(.sq-num, .sq-number-value, .sq-svc-num, .sq-step-num, .sq-country-name, .sq-line-hot .sq-line-v a) { font-weight: 700; }
:lang(ar) :is(.sq-label, .sq-tag, .sq-line-k, .sq-number-label, .sq-country-count, .sq-country-city, .sq-filter span, .sq-project-meta dt, .sq-case-label, .sq-footer h3, .wp-block-button__link, .wp-element-button, .wpcf7 input[type="submit"]) { font-weight: 600; }
:lang(ar) .sq-h1 { font-size: clamp(42px, 6.2vw, 100px) !important; }
:lang(ar) .sq-h2 { font-size: clamp(34px, 4.6vw, 68px) !important; }
:lang(ar) .sq-h3,
:lang(ar) .sq-card h3,
:lang(ar) .sq-row h3 { font-size: 24px !important; line-height: 1.35 !important; }
:lang(ar) .sq-tile-text h3 { font-size: 30px; line-height: 1.3; }
:lang(ar) p,
:lang(ar) li,
:lang(ar) summary { line-height: 1.8; }
:lang(ar) .sq-label { font-size: 14px; }

/* Mirror the few physically-positioned bits */
[dir="rtl"] .sq-caption { right: auto; left: 24px; }
[dir="rtl"] .sq-tile::after { right: auto; left: 24px; content: "\2196"; }
[dir="rtl"] .sq-stat { padding: 36px 0 36px 24px; }
[dir="rtl"] .sq-row > * { padding: 28px 0 8px 20px; }
[dir="rtl"] .wp-block-cover .wp-block-cover__inner-container { text-align: right; }

/* Language switcher in the header */
.sq-lang { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(238, 237, 233, .3); font-size: 15px; font-weight: 600; text-decoration: none; }
.sq-lang:hover { border-color: var(--sq-yellow); color: var(--sq-yellow); }
.sq-lang[lang="ar"] { font-family: var(--sq-font-ar); }
.sq-lang[lang="en"] { font-family: var(--sq-font-en); }

/* Bug 2 — phone numbers reversed in RTL ("0463 7648 12 20+") */
a[href^="tel:"],
a[href^="mailto:"],
.sq-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* v0.4.3 — header + stats alignment */
.sq-header-right > *,
.sq-stats .sq-wrap > * { margin-block: 0 !important; }
.sq-header-right { gap: 12px 36px; }
.sq-header .wp-block-navigation { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.sq-header .wp-block-navigation .wp-block-navigation__container { gap: 4px 32px; }
.sq-header .wp-block-navigation-item__content { padding: 12px 0; }
.sq-lang { min-height: 48px; padding: 0 18px; line-height: 1; box-sizing: border-box; font-size: 16px; }
.sq-header .wp-block-buttons .wp-block-button__link { min-height: 48px; padding: 0 24px; font-size: 16px; }
.sq-stats .sq-wrap { align-items: start; }
:lang(ar) .sq-header .wp-block-navigation { font-size: 17px; }

/* v0.4.4 — phones: one-row header, 2x2 stats.
   Header rules start below 600px: that is where WordPress swaps the menu for the ☰ button.
   Between 600 and 781px the menu is still inline, so the header must be allowed to wrap. */
@media (max-width: 599px) {
  .sq-header .sq-wrap { flex-wrap: nowrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .sq-header .wp-block-image img { height: 32px !important; }
  .sq-header-right { flex-wrap: nowrap; gap: 10px; }
  .sq-header .wp-block-buttons { display: none; }
  .sq-lang { min-height: 44px; padding: 0 12px; font-size: 15px; }
}
/* The "Get in touch" menu item is for the ☰ menu only; elsewhere the button shows it. */
@media (min-width: 600px) {
  .sq-header .sq-nav-contact { display: none; }
}
@media (max-width: 781px) {
  .sq-stats .sq-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .sq-stat,
  [dir="rtl"] .sq-stat { padding: 24px 0; }
  .sq-stat .sq-num { font-size: 52px; }
}

/* v0.4.5 — branded mobile menu overlay */
.sq-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--sq-black) !important; color: var(--sq-alabaster) !important; padding: 24px !important;
}
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 72px !important; align-items: flex-start !important;
}
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start !important; gap: 4px !important; width: 100%;
}
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%; border-bottom: 1px solid var(--sq-coffee);
}
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: var(--sq-alabaster) !important; font-size: 34px; font-weight: 600;
  text-transform: uppercase; line-height: 1.1; padding: 14px 0 !important;
  display: block; width: 100%; box-sizing: border-box;
}
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.sq-nav-contact {
  border-bottom: 0; margin-top: 20px;
}
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.sq-nav-contact .wp-block-navigation-item__content {
  background: var(--sq-yellow); color: var(--sq-black) !important; padding: 16px 20px !important; font-size: 22px; text-align: center;
}
.sq-header .wp-block-navigation__responsive-container-close { top: 24px !important; right: 24px !important; color: var(--sq-alabaster); }
.sq-header .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
[dir="rtl"] .sq-header .wp-block-navigation__responsive-container-close { right: auto !important; left: 24px !important; }
:lang(ar) .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 28px; line-height: 1.5; }

/* v0.4.5 — 600–781px: logo row + one compact row */
@media (min-width: 600px) and (max-width: 781px) {
  .sq-header .sq-wrap { padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  .sq-header .wp-block-image img { height: 32px !important; }
  .sq-header-right { gap: 8px 16px; width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .sq-header .wp-block-navigation { font-size: 15px; }
  .sq-header .wp-block-navigation .wp-block-navigation__container { gap: 4px 18px; }
  .sq-lang { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .sq-header .wp-block-buttons .wp-block-button__link { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
}

/* v0.5.0 — Transparent header over hero images/video, turning solid on scroll.
   Scoped with :has() to pages that start with a Cover hero (Home, Saudi Arabia, Contact);
   other pages keep the black bar. The home hero is a full-screen video. */
.sq-hero-home.wp-block-cover { min-height: 100vh !important; min-height: 100svh !important; }
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) > header.wp-block-template-part {
	position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 100;
}
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) .sq-header { background: transparent; border-bottom-color: transparent; transition: border-color .4s; }
/* The solid/blurred background lives on a pseudo-element: a backdrop-filter on the header itself
   would trap the fixed ☰ menu overlay inside the header box. */
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) .sq-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(2, 3, 3, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	opacity: 0; transition: opacity .4s;
}
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) > header.is-scrolled .sq-header { border-bottom-color: rgba(238, 237, 233, .14); }
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) > header.is-scrolled .sq-header::before { opacity: 1; }

/* v0.5.1 — stats count-up: steady digits + a black line that fills as each number lands (JS sets --sq-p). */
.sq-stat .sq-num { font-variant-numeric: tabular-nums; }
.sq-stat::after {
	content: ""; display: block; height: 3px; margin-top: 18px; background: var(--sq-black);
	transform-origin: left center; transform: scaleX( var(--sq-p, 1) );
}
[dir="rtl"] .sq-stat::after { transform-origin: right center; }
.sq-stat.sq-counted .sq-num { animation: sq-land .35s ease-out; }
@keyframes sq-land { 0% { transform: translateY(-3px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sq-stat.sq-counted .sq-num { animation: none; } }

/* v0.5.2 — section-head buttons may shrink/wrap on narrow screens */
@media (max-width: 781px) {
  .sq-head > .wp-block-buttons { flex: 1 1 100%; min-width: 0; max-width: 100%; }
}

/* ======================= v0.6.0 — client comments (13 Oct) ======================= */

/* 1. Home/hero pages: nothing dark above the video until the page scrolls. */
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) > header.wp-block-template-part { background: none; }
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) > header:not(.is-scrolled) .sq-header { background: transparent !important; border-bottom-color: transparent !important; }
.sq-hero-home .wp-block-cover__video-background { object-fit: cover; width: 100%; height: 100%; }

/* 2. Numbers on the hero video. The inner container is a full-height column: the text is centred
   in the space above, the numbers bar sits at the bottom in normal flow, so the text can never
   end up underneath it (whatever the bar's height in EN/AR or on any screen). */
.sq-hero-home.wp-block-cover { align-items: stretch; }
.sq-hero-home .wp-block-cover__inner-container { display: flex; flex-direction: column; }
.sq-hero-home .wp-block-cover__inner-container > .sq-wrap {
	flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
	padding-top: 140px; padding-bottom: 48px;
}
.sq-hero-home .wp-block-cover__inner-container > .sq-hero-stats { position: relative; margin: 0; }
.sq-hero-stats {
	background: rgba(2, 3, 3, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-top: 1px solid rgba(238, 237, 233, .18);
}
.sq-hero .sq-hero-stats .sq-wrap { padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-hero-stats .sq-stat { margin: 0 !important; padding: 26px 24px 24px; border-inline-start: 1px solid rgba(238, 237, 233, .18); }
.sq-hero-stats .sq-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.sq-hero-stats .sq-stat .sq-num { color: var(--sq-yellow); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.sq-hero-stats .sq-stat .sq-num + p { margin: 8px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--sq-muted); line-height: 1.4; }
:lang(ar) .sq-hero-stats .sq-stat .sq-num + p { font-size: 14px; text-transform: none; letter-spacing: 0; }
.sq-hero-stats .sq-stat::after { background: var(--sq-yellow); height: 2px; margin-top: 14px; }

@media (min-width: 600px) and (max-width: 781px) {
	.sq-hero-home .wp-block-cover__inner-container > .sq-wrap { padding-top: 170px; }
}
@media (max-width: 599px) {
	.sq-hero-home .wp-block-cover__inner-container > .sq-wrap { padding-top: 100px; padding-bottom: 28px; }
	.sq-hero-home .sq-h1 { font-size: clamp(38px, 11vw, 56px) !important; }
	.sq-hero-home .sq-lead { font-size: 16px; }
	.sq-hero .sq-hero-stats .sq-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sq-hero-stats .sq-stat,
	[dir="rtl"] .sq-hero-stats .sq-stat { padding: 14px 12px 12px; }
	.sq-hero-stats .sq-stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
	.sq-hero-stats .sq-stat:nth-child(n+3) { border-top: 1px solid rgba(238, 237, 233, .18); }
	.sq-hero-stats .sq-stat .sq-num { font-size: 36px; }
	.sq-hero-stats .sq-stat .sq-num + p { font-size: 11px; letter-spacing: .1em; }
	:lang(ar) .sq-hero-stats .sq-stat .sq-num + p { font-size: 13px; }
	.sq-hero-stats .sq-stat::after { margin-top: 10px; }
}

/* 3. Services: photo tiles. The title link is stretched over the whole tile. */
.sq-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sq-svc { position: relative; isolation: isolate; aspect-ratio: 4 / 5; overflow: hidden; background: #111; margin: 0 !important;
	display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 72px 24px 24px; box-sizing: border-box; }
[dir="rtl"] .sq-svc { padding: 24px 24px 24px 72px; }
.sq-svc > * { margin: 0 !important; }
.sq-svc .wp-block-image { position: absolute !important; inset: 0; z-index: -2; }
.sq-svc .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sq-svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(2,3,3,.95) 0%, rgba(2,3,3,.55) 45%, rgba(2,3,3,.05) 100%); }
.sq-svc-num { color: var(--sq-yellow); font-weight: 800; font-size: 28px; line-height: 1; margin-bottom: 10px !important; }
.sq-svc-title { font-size: 28px !important; line-height: 1 !important; font-weight: 700; text-transform: uppercase; color: var(--sq-alabaster); }
.sq-svc-title a { color: inherit; text-decoration: none; }
.sq-svc-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.sq-svc-title a:focus-visible { outline: none; }
.sq-svc-desc { color: var(--sq-muted); font-size: 15px; line-height: 1.45; margin-top: 8px !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sq-svc::after { content: "\2197"; position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 44px; height: 44px;
	background: var(--sq-yellow); color: var(--sq-black); display: flex; align-items: center; justify-content: center;
	font-size: 20px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
[dir="rtl"] .sq-svc::after { right: auto; left: 20px; content: "\2196"; }
.sq-svc:hover .wp-block-image img, .sq-svc:focus-within .wp-block-image img { transform: scale(1.05); }
.sq-svc:hover::after, .sq-svc:focus-within::after { opacity: 1; transform: none; }
.sq-svc:focus-within { outline: 2px solid var(--sq-yellow); outline-offset: 3px; }
@media (max-width: 1099px) { .sq-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
	.sq-svc-grid { gap: 10px; }
	.sq-svc, [dir="rtl"] .sq-svc { padding: 14px; }
	.sq-svc-num { font-size: 22px; margin-bottom: 6px !important; }
	.sq-svc-title { font-size: 20px !important; }
	.sq-svc-desc { display: none; }
	.sq-svc::after { width: 36px; height: 36px; right: 10px; top: 10px; bottom: auto; font-size: 16px; }
	[dir="rtl"] .sq-svc::after { right: auto; left: 10px; }
}

/* 4. Client logos: identical white cells, endless strip (marquee.js clones the row and adds .is-animated). */
.sq-marquee { display: grid; gap: 12px; overflow: hidden; margin-top: 0 !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sq-marquee-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 !important; }
.sq-marquee-row > .wp-block-image { flex: 0 0 auto; width: 180px; height: 88px; margin: 0 !important; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center; background: rgba(238,237,233,.03); border: 1px solid rgba(238,237,233,.08); }
.sq-marquee-row > .wp-block-image img { width: auto; height: auto; max-width: 120px; max-height: 40px; object-fit: contain;
	filter: brightness(0) invert(1); opacity: .55; transition: opacity .3s; }
.sq-marquee-row > .wp-block-image:hover img { opacity: 1; }
.sq-marquee-row.is-animated { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: sq-marquee 60s linear infinite; }
.sq-marquee-row.is-animated > .wp-block-image { margin-inline-end: 12px !important; }
.sq-marquee-row.is-animated.is-reverse { animation-direction: reverse; }
[dir="rtl"] .sq-marquee-row.is-animated { animation-name: sq-marquee-rtl; }
.sq-marquee:hover .sq-marquee-row { animation-play-state: paused; }
@keyframes sq-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sq-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (max-width: 599px) {
	.sq-marquee-row > .wp-block-image { width: 140px; height: 72px; }
	.sq-marquee-row > .wp-block-image img { max-height: 32px; max-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
	.sq-marquee-row.is-animated { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
	.sq-svc .wp-block-image img, .sq-svc::after { transition: none; }
}

/* 5. Home closer to the references: dark sections (one yellow CTA), generous spacing. */
.sq-alt { background: #0B0B0B; }
.wp-site-blocks:has(.sq-hero-home) .sq-section { padding-top: 128px; padding-bottom: 128px; }
@media (max-width: 781px) { .wp-site-blocks:has(.sq-hero-home) .sq-section { padding-top: 80px; padding-bottom: 80px; } }
/* The section head is the last child of .sq-wrap there, and WordPress zeroes that margin: space the strip itself. */
.sq-clients > .sq-marquee { margin-top: 48px !important; }
@media (max-width: 599px) { .sq-clients > .sq-marquee { margin-top: 32px !important; } }

/* ======================= v0.7.0 — meeting 16 Oct, part 1 ======================= */

/* 2. One radius token for buttons, the language switcher, form fields and the burger.
   The larger corner echoes the tail of the "Q". Photos, tiles and the yellow arrow squares stay square. */
:root { --sq-radius: 4px 4px 18px 4px; }
/* Alternative, all corners equal (if the client prefers it): :root { --sq-radius: 10px; } and delete the RTL line below. */
[dir="rtl"] { --sq-radius: 4px 4px 4px 18px; }
.wp-block-button__link, .wp-element-button, .sq-lang,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"],
.wpcf7 input[type="number"], .wpcf7 textarea, .wpcf7 select, .wpcf7 .wpcf7-submit, .wpcf7 input[type="submit"],
.sq-header .wp-block-navigation__responsive-container-open { border-radius: var(--sq-radius) !important; }

/* 1. Header on every screen: logo · Get in touch · burger. Links, language and socials live in the overlay. */
.sq-header .sq-wrap { flex-wrap: nowrap !important; row-gap: 0 !important; }
.sq-header-right, .sq-header-right[class] { display: flex; flex-wrap: nowrap !important; align-items: center; gap: 14px !important; width: auto !important; justify-content: flex-end !important; }
.sq-header .wp-block-buttons { display: flex !important; margin: 0; }
.sq-header .wp-block-navigation__responsive-container-open {
	display: flex !important; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
	color: var(--sq-alabaster); background: transparent; border: 1px solid rgba(238, 237, 233, .3); cursor: pointer;
}
.sq-header .wp-block-navigation__responsive-container-open:hover,
.sq-header .wp-block-navigation__responsive-container-open:focus-visible { border-color: var(--sq-yellow); color: var(--sq-yellow); }
.sq-header .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: clamp(34px, 5vw, 72px); }
:lang(ar) .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: clamp(28px, 4vw, 56px); }
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { max-width: 1320px; margin-inline: auto; width: 100%; }
[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { text-align: right; }
.sq-menu-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; width: 100%; }
@media (max-width: 599px) {
	.sq-header .wp-block-buttons .wp-block-button__link { min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
	.sq-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; }
	.sq-header-right, .sq-header-right[class] { gap: 10px !important; }
}

/* 3. Social icons (footer + burger overlay). */
.sq-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sq-social li { margin: 0; }
.sq-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--sq-alabaster); }
.sq-social a:hover, .sq-social a:focus-visible { color: var(--sq-yellow); }
.sq-social svg { width: 24px; height: 24px; display: block; }
.sq-footer .sq-social { margin-inline-start: -10px; }

/* 4. Home numbers: a simple dark row above the yellow CTA. Static. */
.sq-numbers-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-number { margin: 0 !important; padding: 8px 32px; border-inline-start: 1px solid rgba(238, 237, 233, .18); }
.sq-number:first-child { border-inline-start: 0; padding-inline-start: 0; }
.sq-number-value { color: var(--sq-yellow); font-weight: 800; font-size: clamp(56px, 6vw, 96px); line-height: 1; margin: 0 !important; font-variant-numeric: tabular-nums; }
.sq-number-label { margin: 12px 0 0 !important; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--sq-muted); line-height: 1.4; }
:lang(ar) .sq-number-label { font-size: 14px; text-transform: none; letter-spacing: 0; }
.wp-site-blocks:has(.sq-hero-home) .sq-numbers { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 781px) {
	.sq-numbers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sq-number, [dir="rtl"] .sq-number { padding: 20px 16px; }
	.sq-number:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
	.sq-number:nth-child(n+3) { border-top: 1px solid rgba(238, 237, 233, .18); }
	.wp-site-blocks:has(.sq-hero-home) .sq-numbers { padding-top: 56px; padding-bottom: 56px; }
}
/* With the numbers gone from the hero, the headline block sits in the vertical middle again. */
.sq-hero-home .wp-block-cover__inner-container > .sq-wrap { padding-bottom: 96px; }

/* 5. Service tiles: numbers on one line, titles start on one line; the variable space goes below the title.
   The text starts at a fixed distance from the top of the tile (percent of the tile width). */
.sq-svc, [dir="rtl"] .sq-svc { justify-content: flex-start; }
.sq-svc { padding: 0 72px 24px 24px; }
[dir="rtl"] .sq-svc { padding: 0 24px 24px 72px; }
.sq-svc > .sq-svc-num { margin: 50% 0 10px !important; }
.sq-svc-title { min-height: 3em; }
:lang(ar) .sq-svc-title { min-height: 2.7em; }   /* 2 lines at the Arabic h3 line-height (1.35) */
.sq-svc > .sq-svc-desc { margin-top: 12px !important; }
.sq-svc::before { background: linear-gradient(to top, rgba(2,3,3,.95) 0%, rgba(2,3,3,.8) 45%, rgba(2,3,3,.2) 75%, rgba(2,3,3,.05) 100%); }
@media (max-width: 599px) {
	.sq-svc, [dir="rtl"] .sq-svc { padding: 0 14px 14px; }
	.sq-svc > .sq-svc-num { margin: 50% 0 6px !important; }
}

/* 6a/b. Service page hero: exactly half text, half image (4:5, fills its column, flush under the header). */
.sq-service-hero { padding: 0 !important; }
.sq-split, .sq-split.wp-block-columns { gap: 0 !important; margin: 0 !important; align-items: stretch !important; }
.sq-split > .sq-split-text, .sq-split > .sq-split-media { margin: 0 !important; }
.sq-split-text { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box;
	padding: 96px 56px 96px max(24px, calc((100vw - 1320px) / 2 + 24px)); }
[dir="rtl"] .sq-split-text { padding: 96px max(24px, calc((100vw - 1320px) / 2 + 24px)) 96px 56px; }
.sq-split-media { padding: 0 !important; }
.sq-split-media .wp-block-image { margin: 0 !important; height: 100%; }
.sq-split-media .wp-block-image img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 781px) {
	.sq-split.wp-block-columns { flex-direction: column; }
	.sq-split-media { order: -1; }
	.sq-split-media .wp-block-image img { height: auto; }
	.sq-split-text, [dir="rtl"] .sq-split-text { padding: 40px 24px 56px; }
}

/* 6d. "Our process" timeline: 4 dots joined by a dotted line; vertical on phones. */
.sq-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px !important; }
.sq-step { position: relative; margin: 0 !important; padding-top: 48px; }
.sq-step::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 20px; height: 20px; border-radius: 50%;
	background: var(--sq-yellow); box-shadow: 0 0 0 6px var(--sq-black); z-index: 1; }
.sq-step:not(:last-child)::after { content: ""; position: absolute; top: 9px; inset-inline-start: 20px; inset-inline-end: -32px;
	border-top: 2px dotted rgba(238, 237, 233, .45); }
.sq-step > * { margin: 0 !important; }
.sq-step-num { color: var(--sq-yellow); font-weight: 800; font-size: 28px; line-height: 1; }
.sq-step-title { font-size: 30px !important; line-height: 1 !important; font-weight: 700; margin-top: 10px !important; }
.sq-step-text { color: var(--sq-muted); font-size: 16px; margin-top: 10px !important; }
@media (max-width: 781px) {
	.sq-timeline { grid-template-columns: 1fr; gap: 36px; }
	.sq-step { padding-top: 0; padding-inline-start: 44px; }
	.sq-step:not(:last-child)::after { top: 20px; bottom: -36px; inset-inline-start: 9px; inset-inline-end: auto; border-top: 0; border-inline-start: 2px dotted rgba(238, 237, 233, .45); }
}

/* 7. Contact: shorter hero, dark offices. */
.sq-hero-contact.wp-block-cover { min-height: 60vh !important; min-height: 60svh !important; }
.sq-offices .sq-office { border: 1px solid rgba(238, 237, 233, .12); }
/* Header: WordPress flow layout gives the right-hand group a top margin; keep logo, button and burger on one line. */
.sq-header .sq-wrap > * { margin-block: 0 !important; }

/* ======================= v0.7.0 — part 2: portfolio, project page, image ratios ======================= */

/* 12. Image sizes follow the spec sheet: work/project tiles + project hero 16:10, service tiles + service hero +
   country cards + "Who we are" 4:5, case-study gallery 16:9. */
.sq-about-img { margin: 0; }
.sq-about-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Portfolio: step 1 country cards (4:5) */
.sq-country-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sq-country { position: relative; display: block; overflow: hidden; isolation: isolate; background: #111; color: var(--sq-alabaster); text-decoration: none; aspect-ratio: 4 / 5; }
.sq-country .wp-block-image { position: absolute; inset: 0; margin: 0; z-index: -2; }
.sq-country img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sq-country::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(2,3,3,.92), rgba(2,3,3,.15) 60%); }
.sq-country-text { position: absolute; inset-inline: 28px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.sq-country-name { font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 4vw, 64px); line-height: .95; }
.sq-country-count { color: var(--sq-yellow); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
:lang(ar) .sq-country-name { line-height: 1.3; }
:lang(ar) .sq-country-count { letter-spacing: 0; }
.sq-country:hover img, .sq-country:focus-visible img { transform: scale(1.04); }
.sq-country:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 3px; }
.sq-country-all { margin: 24px 0 0; }
.sq-country-all a { color: var(--sq-alabaster); font-weight: 600; }
.sq-tile-noimg { display: block; width: 100%; height: 100%; aspect-ratio: inherit; background: #1a1a1a; }

/* Portfolio: step 2 filter bar + grid */
.sq-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(238,237,233,.14); }
.sq-filter { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1 1 180px; }
.sq-filter span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sq-muted); }
:lang(ar) .sq-filter span { letter-spacing: 0; font-size: 14px; }
.sq-filter select { appearance: none; -webkit-appearance: none; background: #0B0B0B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F9ED36' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--sq-alabaster); border: 1px solid rgba(238,237,233,.3); border-radius: var(--sq-radius); min-height: 48px; padding: 0 40px 0 14px; font: inherit; font-size: 16px; }
[dir="rtl"] .sq-filter select { background-position: left 14px center; padding: 0 14px 0 40px; }
.sq-filter select:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 2px; }
.sq-filters-clear { color: var(--sq-yellow); font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.sq-filters-count { flex-basis: 100%; margin: 0; color: var(--sq-muted); font-size: 15px; }
.sq-portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sq-project-tile { display: block; text-decoration: none; color: inherit; }
.sq-project-tile .wp-block-image { margin: 0; }
.sq-project-tile img, .sq-project-tile .sq-tile-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.sq-project-tile:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 3px; }
.sq-project-tile[hidden], .sq-countries[hidden], .sq-portfolio-results[hidden], .sq-portfolio-empty[hidden] { display: none !important; }
.sq-portfolio-empty { padding: 48px 0; color: var(--sq-muted); }
.sq-portfolio-empty a { color: var(--sq-yellow); margin-inline-start: 8px; }
[dir="rtl"] .sq-tile::after { right: auto; left: 24px; content: "\2196"; }
@media (max-width: 781px) {
	.sq-country-cards { grid-template-columns: 1fr; }
	.sq-portfolio-grid { grid-template-columns: 1fr; }
	.sq-filter { min-width: 0; flex-basis: calc(50% - 8px); }
}

/* Project page */
.sq-project-head { padding-bottom: 48px !important; }
.sq-project-hero-media { margin: 0 0 40px; }
.sq-project-hero-media img, .sq-project-hero-media video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sq-project-hero-media.is-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sq-project-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(238,237,233,.14); }
.sq-project-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sq-muted); }
.sq-project-meta dd { margin: 4px 0 0; font-size: 18px; }
:lang(ar) .sq-project-meta dt { letter-spacing: 0; font-size: 14px; }
.sq-case-study { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px 48px; margin: 0 0 64px; }
.sq-case-label { font-size: 13px !important; font-weight: 600; letter-spacing: .14em; color: var(--sq-yellow); margin: 0 0 10px !important; }
:lang(ar) .sq-case-label { letter-spacing: 0; font-size: 16px !important; }
.sq-case-block p { margin: 0; color: var(--sq-alabaster); }
.sq-project-body { padding-bottom: 64px; }
.sq-project .wp-block-gallery img { aspect-ratio: 16 / 9; object-fit: cover; }
.sq-project-nav { padding-top: 32px; padding-bottom: 96px; border-top: 1px solid rgba(238,237,233,.14); }
.sq-project-nav a { color: var(--sq-alabaster); font-weight: 600; }

/* ======================= v0.7.0 — part 2: scroll motion (only under html.sq-motion, set by motion.js) ======================= */
html.sq-motion .sq-reveal { opacity: 0; transform: translateY(24px); filter: blur(8px);
	transition: opacity .7s ease-out, transform .7s ease-out, filter .7s ease-out; transition-delay: var(--d, 0ms); }
html.sq-motion .sq-reveal.is-in { opacity: 1; transform: none; filter: none; }
html.sq-motion .sq-words .sq-word { display: inline-block; opacity: 0; transform: translateY(.25em); filter: blur(8px);
	transition: opacity .6s ease-out, transform .6s ease-out, filter .6s ease-out; transition-delay: calc(var(--i, 0) * 60ms); }
html.sq-motion .sq-words.is-in .sq-word { opacity: 1; transform: none; filter: none; }
html.sq-motion .sq-slide { opacity: 0; transform: translateX(40px); transition: opacity .8s ease-out, transform .8s ease-out; }
html.sq-motion[dir="rtl"] .sq-slide, [dir="rtl"] html.sq-motion .sq-slide { transform: translateX(-40px); }
html.sq-motion .sq-slide.is-in { opacity: 1; transform: none; }
/* Timeline: line segment i fills, then step i+1 appears. */
html.sq-motion .sq-timeline-anim .sq-step > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(var(--i, 0) * 550ms); }
html.sq-motion .sq-timeline-anim .sq-step:not(:last-child)::after { clip-path: inset(0 100% 0 0); transition: clip-path .55s linear; transition-delay: calc(var(--i, 0) * 550ms + 150ms); }
html.sq-motion[dir="rtl"] .sq-timeline-anim .sq-step:not(:last-child)::after { clip-path: inset(0 0 0 100%); }
html.sq-motion .sq-timeline-anim.is-in .sq-step > * { opacity: 1; transform: none; }
html.sq-motion .sq-timeline-anim.is-in .sq-step:not(:last-child)::after { clip-path: inset(0 0 0 0); }
@media (max-width: 781px) {
	html.sq-motion .sq-timeline-anim .sq-step:not(:last-child)::after,
	html.sq-motion[dir="rtl"] .sq-timeline-anim .sq-step:not(:last-child)::after { clip-path: inset(0 0 100% 0); }
	html.sq-motion .sq-timeline-anim.is-in .sq-step:not(:last-child)::after { clip-path: inset(0 0 0 0); }
}
/* Gentle zoom tied to scroll (uses the `scale` property, so hover zooms on `transform` still work). */
.sq-split-media .wp-block-image, .sq-about-img, .sq-project-hero-media { overflow: hidden; }
@keyframes sq-zoom { from { scale: 1.08; } to { scale: 1; } }
@supports (animation-timeline: view()) {
	html.sq-motion .sq-zoom { animation: sq-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
}
@media (prefers-reduced-motion: reduce) {
	html.sq-motion .sq-reveal, html.sq-motion .sq-slide, html.sq-motion .sq-words .sq-word,
	html.sq-motion .sq-timeline-anim .sq-step > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
	html.sq-motion .sq-zoom { animation: none !important; scale: none !important; }
	html.sq-motion .sq-timeline-anim .sq-step::after { clip-path: none !important; }
}
/* Slide/zoom start states must never create sideways scroll: clip horizontal overflow of animated sections. */
html.sq-motion .wp-block-post-content > *, html.sq-motion main > section, html.sq-motion .sq-service-hero { overflow-x: clip; }

/* v0.7.1 — country card with no projects yet: quiet, not clickable. */
.sq-country.is-soon { cursor: default; background: #0B0B0B; border: 1px solid rgba(238,237,233,.1); }
.sq-country.is-soon::before { background: none; }
.sq-country.is-soon .sq-country-name { color: rgba(238,237,233,.55); }
.sq-country.is-soon .sq-country-count { color: var(--sq-muted); }
.sq-country-city { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(238,237,233,.35); }
:lang(ar) .sq-country-city { letter-spacing: 0; font-size: 14px; }

/* v0.7.3 — holding page for pages that are not rebuilt yet; anchors clear the fixed header. */
.sq-soon { min-height: 60vh; display: flex; align-items: center; }
.sq-soon .sq-h1 { margin: 0 0 20px; }
.sq-soon .sq-soon-note a { color: var(--sq-yellow); }
.sq-soon .wp-block-buttons { margin-top: 32px; }
#about, #clients, #showreel { scroll-margin-top: 110px; }

/* ======================= v0.7.4 — desktop menu: "Menu" pill + side panel (>= 1024px) =======================
   Below 1024px nothing changes: the full-screen overlay from v0.4.5 / v0.7.0. The logo row, the contact
   block and the button label exist in the markup on every screen but only show on desktop. */
html.sq-menu-open { overflow: hidden; }
.sq-menu-top, .sq-menu-contact { display: none; }

@media (min-width: 1024px) {
	/* Header button: icon only (v0.9.0), 44 × 44 */
	.sq-header .wp-block-navigation__responsive-container-open {
		width: 44px; height: 44px; padding: 0; border: 1px solid rgba(238, 237, 233, .35);
	}
	.sq-header .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }

	/* The core container becomes the backdrop; its inner wrapper becomes the panel. */
	.sq-header .wp-block-navigation__responsive-container.is-menu-open {
		background: transparent !important; padding: 0 !important; animation: none !important; overflow: hidden;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open::before {
		content: ""; position: fixed; inset: 0; background: rgba(2, 3, 3, .55);
		-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
		animation: sq-backdrop-in 250ms ease-out both;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		position: fixed; top: 0; bottom: 0; inset-inline-end: 0; inset-inline-start: auto;
		width: min(440px, 92vw); max-width: none; margin: 0; background: #0B0B0B;
		border-inline-start: 1px solid rgba(238, 237, 233, .12); box-sizing: border-box;
		overflow-y: auto; overscroll-behavior: contain;
		animation: sq-panel-in 320ms cubic-bezier(.2, .8, .2, 1) both;
	}
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { animation-name: sq-panel-in-rtl; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		position: relative; min-height: 100%; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding: 0 !important; margin: 0 !important; max-width: none; width: 100%; flex: 1;
		display: flex; flex-direction: column; align-items: stretch !important; gap: 0 !important;
	}

	/* 1. Top row: logo + ✕ (the core close button, 44×44, on the same row at the inline end). */
	.sq-menu-top { display: flex; align-items: center; height: 44px; margin-bottom: 24px; }
	.sq-menu-top img { height: 32px; width: auto; display: block; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		position: absolute; top: 40px !important; right: 40px !important; left: auto !important;
		width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center;
		color: var(--sq-alabaster); background: transparent; border: 0; cursor: pointer;
	}
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { right: auto !important; left: 40px !important; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover,
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:focus-visible { color: var(--sq-yellow); }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

	/* 2. Links: big condensed label, divider, arrow on hover/focus (no numbers since v0.9.0). */
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex; flex-direction: column; gap: 0 !important; width: 100%; margin: 0; padding: 0;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		display: flex; flex-direction: row !important; align-items: baseline !important; gap: 16px; width: 100%;
		border-bottom: 1px solid rgba(238, 237, 233, .12); animation: sq-link-in 380ms ease-out both;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: flex !important; align-items: center; flex: 1; min-width: 0; padding: 14px 0 !important;
		font-size: 40px !important; line-height: 1 !important; font-weight: 600; text-transform: uppercase;
		color: var(--sq-alabaster) !important; text-align: start !important; text-decoration: none; transition: color .2s;
	}
	:lang(ar) .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 30px !important; line-height: 1.3 !important; text-align: start !important;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
		content: "→" / ""; margin-inline-start: auto; padding-inline-start: 16px; font-size: 28px;
		opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .2s;
	}
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { content: "←" / ""; transform: translateX(12px); }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible,
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--sq-yellow) !important; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after,
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible::after { opacity: 1; transform: none; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: 320ms; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 360ms; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 400ms; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 440ms; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 480ms; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 520ms; }

	/* 3. Contact block: phone, email, Get in touch. */
	/* The last link's divider is the line above this block. */
	.sq-menu-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 28px; }
	.sq-menu-contact > a { color: var(--sq-alabaster); font-size: 17px; text-decoration: none; }
	.sq-menu-contact > a:hover, .sq-menu-contact > a:focus-visible { color: var(--sq-yellow); }
	[dir="rtl"] .sq-menu-phone { unicode-bidi: isolate; }
	.sq-menu-contact .wp-block-button { margin-top: 12px; }
	.sq-menu-contact .wp-block-button__link { min-height: 48px; padding: 12px 24px; }

	/* 4. Bottom row: language switch + social icons. */
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .sq-menu-extra {
		margin-top: auto; padding-top: 24px; flex-wrap: nowrap; justify-content: space-between; gap: 16px;
	}
	.sq-menu-extra .sq-social { margin-inline-end: -10px; }
}

@keyframes sq-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sq-panel-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sq-panel-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes sq-link-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes sq-link-in-rtl { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes sq-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1024px) {
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { animation-name: sq-link-in-rtl; }
}
/* Reduced motion: no slide, a short fade. */
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	.sq-header .wp-block-navigation__responsive-container.is-menu-open::before,
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: sq-fade-in 150ms linear both !important;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { transition: none; transform: none; }
}

/* ======================= v0.7.5 — desktop menu panel fits short screens =======================
   The panel is exactly one screen tall: logo row on top, links + contact in a middle area that scrolls on its own,
   language switch + social icons pinned at the bottom and always visible. Below 1024px the scroll wrapper is
   display: contents, so the full-screen overlay is unchanged. */
.sq-menu-scroll { display: contents; }

@media (min-width: 1024px) {
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		height: 100vh; height: 100dvh; overflow: hidden;
	}
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { height: 100%; min-height: 0; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { min-height: 0; }
	.sq-menu-top { flex: none; }
	.sq-menu-scroll {
		display: block; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
		scrollbar-width: thin; scrollbar-color: rgba(238, 237, 233, .25) transparent;
	}
	/* Focus rings stay inside the scroll area instead of being clipped at its edges. */
	.sq-menu-scroll a:focus-visible { outline-offset: -2px; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .sq-menu-extra { flex: none; margin-top: 0; }
}

/* Short screens (most laptops): tighter rows. */
@media (min-width: 1024px) and (max-height: 820px) {
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { padding: 28px; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: 28px !important; right: 28px !important; }
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { right: auto !important; left: 28px !important; }
	.sq-menu-top { margin-bottom: 16px; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 32px !important; padding: 10px 0 !important; }
	:lang(ar) .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 26px !important; }
	.sq-menu-contact { gap: 6px; padding-top: 18px; }
	.sq-menu-contact .wp-block-button { margin-top: 8px; }
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .sq-menu-extra { padding-top: 16px; }
}
@media (min-width: 1024px) and (max-height: 680px) {
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 26px !important; padding: 8px 0 !important; }
	:lang(ar) .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px !important; }
	.sq-header .sq-menu-contact .sq-menu-email { display: none !important; }
}

/* ======================= v0.7.6 — section spacing =======================
   Where two sections with the same background stack, both paddings add up. Keep the global .sq-section
   padding and trim only at these joins: gap between content blocks <= 160px desktop, <= 96px phones. */
.sq-flush-top { padding-top: 0 !important; }           /* utility: a section that continues the one above it */
.sq-work-intro { padding-bottom: 40px; }                 /* Work: intro → country cards */
.sq-work { padding-top: 0; }
.sq-section > .sq-content { padding-top: 0; padding-bottom: 0; }   /* Contact: the section already pads */
@media (max-width: 781px) {
	.sq-work-intro { padding-bottom: 24px; }
	.sq-service-hero + .sq-process { padding-top: 32px; }  /* the hero text already ends with 56px */
	.sq-soon { min-height: 0; }                          /* holding pages: no centred 60vh box on phones */
	.sq-project-nav { padding-bottom: 64px; }
}

/* ======================= v0.9.0 — client feedback, 21 Oct ======================= */
.sq-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero: description 20% smaller (headline unchanged). */
.sq-hero-home .sq-lead { font-size: 16px; }
@media (max-width: 599px) { .sq-hero-home .sq-lead { font-size: 15px; } }

/* Project grids (Home "Our work", Work, Saudi): 3 per row desktop, 2 tablet, 1 phone. */
.sq-portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .sq-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sq-portfolio-grid { grid-template-columns: 1fr; } }
.sq-portfolio-grid .sq-tile-text { padding: 64px 22px 20px; }
.sq-portfolio-grid .sq-tile-text h3 { font-size: clamp(26px, 2.4vw, 34px); }
/* ▶ badge on projects that have a video */
.sq-play-badge { position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	background: rgba(2, 3, 3, .72); border: 1px solid rgba(238, 237, 233, .35); color: var(--sq-alabaster); }
.sq-play-badge::before { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; } /* ▶ never mirrors */

/* Shared: looping media items (time-lapse + reels) with a "Sample" tag until the real clips arrive. */
.sq-media-item { position: relative; margin: 0 !important; overflow: hidden; background: #111; }
.sq-media-item > * { margin: 0 !important; }
.sq-media-item .wp-block-video video { display: block; width: 100%; height: auto; object-fit: cover; background: #111; }
.sq-sample { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 4px 8px; background: rgba(2, 3, 3, .72);
	color: var(--sq-alabaster); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; pointer-events: none; }

/* Time-lapse: 16:9, 3 × 2 desktop, 2 × 3 tablet, swipe row on phones. */
.sq-tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .sq-tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reels: 9:16, 4 columns desktop, swipe row on tablet/phone. */
.sq-reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 599px) {
	.sq-tl-grid { display: flex; grid-template-columns: none; }
	.sq-tl-grid > .sq-media-item { flex: 0 0 82%; }
}
@media (max-width: 1023px) {
	.sq-reels { display: flex; grid-template-columns: none; }
	/* 1.3 reels visible on phones; on tablets the same width would make a reel taller than the screen, so ~2.3 show. */
	.sq-reels > .sq-media-item { flex: 0 0 min(calc((100% - 16px) / 1.3), 300px); }
}
/* Swipe rows run edge to edge and snap one item at a time. */
@media (max-width: 599px) { .sq-tl-grid { margin-inline: calc(-1 * var(--sq-gutter)); padding-inline: var(--sq-gutter); } }
@media (max-width: 1023px) { .sq-reels { margin-inline: calc(-1 * var(--sq-gutter)); padding-inline: var(--sq-gutter); } }
@media (max-width: 599px) { .sq-tl-grid, .sq-reels { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sq-gutter); gap: 12px; scrollbar-width: none; overscroll-behavior-x: contain; } }
@media (min-width: 600px) and (max-width: 1023px) { .sq-reels { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sq-gutter); scrollbar-width: none; overscroll-behavior-x: contain; } }
.sq-tl-grid::-webkit-scrollbar, .sq-reels::-webkit-scrollbar { display: none; }
.sq-tl-grid > .sq-media-item, .sq-reels > .sq-media-item { scroll-snap-align: start; }

/* Reel "play with sound" button (added by media.js) + full-screen player. */
.sq-reel-open { position: absolute; z-index: 3; bottom: 12px; inset-inline-end: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	padding: 0; border: 1px solid rgba(238, 237, 233, .35); border-radius: var(--sq-radius); background: rgba(2, 3, 3, .72); color: var(--sq-alabaster); cursor: pointer; }
.sq-reel-open:hover, .sq-reel-open:focus-visible { background: var(--sq-yellow); border-color: var(--sq-yellow); color: var(--sq-black); }
.sq-reel-open:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 3px; }
.sq-lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.sq-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.sq-lightbox::backdrop { background: rgba(2, 3, 3, .94); }
.sq-lightbox-video { display: block; height: min(90vh, 90dvh, calc(92vw * 16 / 9)); max-height: 90vh; width: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.sq-lightbox-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	padding: 0; border: 1px solid rgba(238, 237, 233, .35); background: rgba(2, 3, 3, .6); color: var(--sq-alabaster); cursor: pointer; }
.sq-lightbox-close:hover, .sq-lightbox-close:focus-visible { color: var(--sq-yellow); border-color: var(--sq-yellow); }

/* What we do: 12 tiles, no numbers. 4 × 3 desktop, 2 per row on tablet and phone. The title starts at a fixed height. */
@media (max-width: 1099px) and (min-width: 1024px) { .sq-svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .sq-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sq-svc > .sq-svc-title { margin: calc(50% + 38px) 0 0 !important; }
@media (max-width: 599px) { .sq-svc > .sq-svc-title { margin-top: calc(50% + 28px) !important; } }

/* Footer: services list from the shared data. */
.sq-services-list { list-style: none; margin: 0; padding: 0; }
.sq-services-list li { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }

/* Project page: video first, plays on click (lite embed: nothing loads from YouTube until then). */
.sq-project-hero-media.is-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.sq-project-hero-media.is-video iframe, .sq-project-hero-media.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; aspect-ratio: auto; }
.sq-video-facade { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: var(--sq-black); }
.sq-video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .3s; }
.sq-video-facade:hover img, .sq-video-facade:focus-visible img { opacity: 1; }
.sq-video-facade .sq-video-play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: flex; align-items: center; justify-content: center; background: var(--sq-yellow); }
.sq-video-facade .sq-video-play::before { content: ""; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent currentColor; margin-left: 6px; }
.sq-video-facade:focus-visible { outline: 3px solid var(--sq-yellow); outline-offset: 3px; }
@media (max-width: 599px) { .sq-video-facade .sq-video-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }

/* ======================= v0.9.1 — media frames keep their ratio =======================
   WordPress writes the clip's own size on the <video> (width/height + inline aspect-ratio), which beat the 9:16 / 16:9
   rules. The ratio now lives on the frame (the video block), and the video fills it, whatever the file's shape. */
.sq-tl-grid .wp-block-video, .sq-reel .wp-block-video { position: relative; overflow: hidden; margin: 0; width: 100%; }
.sq-tl-grid .wp-block-video { aspect-ratio: 16 / 9; }
.sq-reel .wp-block-video { aspect-ratio: 9 / 16; }
.sq-tl-grid .wp-block-video video, .sq-reel .wp-block-video video {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover;
}

/* ======================= v0.9.2 — responsive polish (screen-size check, 21 Oct) ======================= */
/* 1. Service tile titles on small phones: the longest word ("DOCUMENTARY", "PHOTOGRAPHY") fits with room to spare. */
@media (max-width: 399px) {
	.sq-svc, [dir="rtl"] .sq-svc { padding-inline: 14px; }
	.sq-svc-title { font-size: clamp(16px, 4.6vw, 20px) !important; }
}
/* 2. Service page 50/50 hero: the H1 fits its text column at every width (its longest word is "TRANSFORMING").
   The column stops growing at 1320px, so the size stops at 80px. */
@media (min-width: 782px) {
	.sq-split .sq-h1, :lang(ar) .sq-split .sq-h1 { font-size: clamp(44px, 5.4vw, 80px) !important; }
}
/* 3. Header logo: a 44px-high tap target (the image stays the same size). */
.sq-header .wp-block-image a { display: flex; align-items: center; min-height: 44px; }   /* flex, not inline-flex: no text line around it, so the header height doesn't change */
/* 4. Current page in the menu: yellow + arrow, in the phone overlay as in the desktop panel. */
.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--sq-yellow) !important; }
@media (max-width: 1023px) {
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"]::after { content: "→" / ""; margin-inline-start: .3em; }
	[dir="rtl"] .sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"]::after { content: "←" / ""; }
}
@media (min-width: 1024px) {
	.sq-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"]::after { opacity: 1; transform: none; }
}

/* ======================= v1.0.0 — every page in the new design ======================= */

/* Service pages: "What you get" — two columns of deliverables, then the service's closing line. */
.sq-deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 48px !important; }
.sq-deliv { margin: 0 !important; padding: 24px 0; border-top: 1px solid rgba(238, 237, 233, .14); }
.sq-deliv > * { margin: 0 !important; }
.sq-deliv-title { font-size: 26px !important; line-height: 1.05 !important; }
.sq-deliv p { margin-top: 8px !important; color: var(--sq-muted); }
:lang(ar) .sq-deliv-title { font-size: 22px !important; line-height: 1.4 !important; }
.sq-tagline { margin: 48px 0 0 !important; font-size: clamp(28px, 3.4vw, 48px); font-weight: 700; line-height: 1.05; text-transform: uppercase; max-width: 22ch; }
:lang(ar) .sq-tagline { line-height: 1.4; max-width: none; }
@media (max-width: 781px) { .sq-deliverables { grid-template-columns: 1fr; } }

/* About: strengths as cards, crew teaser, logo strip. */
.sq-strength-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px !important; }
.sq-strength-card { margin: 0 !important; padding: 28px; background: #0B0B0B; border: 1px solid rgba(238, 237, 233, .1); }
.sq-alt .sq-strength-card { background: var(--sq-black); }
.sq-strength-card > * { margin: 0 !important; }
.sq-strength-card h3 { font-size: 24px !important; line-height: 1.1 !important; }
.sq-strength-card p { margin-top: 10px !important; color: var(--sq-muted); }
@media (max-width: 1023px) { .sq-strength-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sq-strength-cards { grid-template-columns: 1fr; } }
.sq-section-cta { margin-top: 40px !important; }

/* Crew: 4 / 2 / 1 per row, photo slot 4:5. */
.sq-crew-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin-top: 48px !important; }
.sq-crew-card { margin: 0 !important; }
.sq-crew-card > * { margin: 0 !important; }
.sq-crew-card .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #141414; }
.sq-crew-name { margin-top: 16px !important; font-size: 24px !important; line-height: 1.1 !important; }
.sq-crew-role { margin-top: 4px !important; color: var(--sq-yellow); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
:lang(ar) .sq-crew-role { font-size: 15px; }
@media (max-width: 1023px) { .sq-crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sq-crew-grid { grid-template-columns: 1fr; } }
.sq-join .sq-head { margin-bottom: 0; align-items: center; }

/* Clients: every logo in one static grid, same cells as the Home strip. */
.sq-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 48px !important; }
.sq-logo-grid > .wp-block-image { margin: 0 !important; height: 96px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 16px;
	background: rgba(238, 237, 233, .03); border: 1px solid rgba(238, 237, 233, .08); }
.sq-logo-grid > .wp-block-image img { width: auto; height: auto; max-width: 120px; max-height: 44px; object-fit: contain; filter: brightness(0) invert(1); opacity: .6; transition: opacity .3s; }
.sq-logo-grid > .wp-block-image:hover img { opacity: 1; }
@media (max-width: 599px) { .sq-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sq-logo-grid > .wp-block-image { height: 80px; } }
.sq-industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px !important; }
@media (max-width: 781px) { .sq-industries { grid-template-columns: 1fr; } }
.sq-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px !important; }
.sq-quote { margin: 0 !important; padding: 32px 28px; border: 1px solid rgba(238, 237, 233, .12); display: flex; flex-direction: column; }
.sq-quote > * { margin: 0 !important; }
.sq-quote-text { font-size: 22px; line-height: 1.4; flex: 1; }
.sq-quote-text::before { content: "“" / ""; display: block; color: var(--sq-yellow); font-size: 64px; line-height: .8; font-weight: 800; }
[dir="rtl"] .sq-quote-text::before { content: "”" / ""; }
.sq-quote-name { margin-top: 24px !important; font-weight: 700; }
.sq-quote-role { color: var(--sq-muted); font-size: 15px; }
@media (max-width: 1023px) { .sq-quotes { grid-template-columns: 1fr; } }

/* Blog: chips, featured card, cards 3 / 2 / 1, pages. */
.sq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.sq-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(238, 237, 233, .3); border-radius: var(--sq-radius);
	color: var(--sq-alabaster); text-decoration: none; font-weight: 600; font-size: 15px; }
.sq-chip:hover, .sq-chip:focus-visible { border-color: var(--sq-yellow); color: var(--sq-yellow); }
.sq-chip[aria-current="true"] { background: var(--sq-yellow); border-color: var(--sq-yellow); color: var(--sq-black); }
.sq-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
@media (max-width: 1023px) { .sq-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sq-post-grid { grid-template-columns: 1fr; } }
.sq-post-card[hidden], .sq-pager[hidden] { display: none !important; }
.sq-post-link { display: block; color: inherit; text-decoration: none; }
.sq-post-img { margin: 0; overflow: hidden; background: #111; }
.sq-post-img img, .sq-post-img .sq-tile-noimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.sq-post-link:hover .sq-post-img img, .sq-post-link:focus-visible .sq-post-img img { transform: scale(1.04); }
.sq-post-link:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 4px; }
.sq-post-text { padding-top: 18px; }
.sq-post-text > * { margin: 0; }
.sq-post-title { margin-top: 12px !important; font-size: 26px !important; line-height: 1.05 !important; }
:lang(ar) .sq-post-title { font-size: 22px !important; line-height: 1.45 !important; }
.sq-post-link:hover .sq-post-title { color: var(--sq-yellow); }
.sq-post-date { margin-top: 10px !important; color: var(--sq-muted); font-size: 14px; }
.sq-post-excerpt { margin-top: 10px !important; color: var(--sq-muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sq-post-card.is-featured { margin-bottom: 48px; }
.sq-post-card.is-featured .sq-post-link { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sq-post-card.is-featured .sq-post-text { padding-top: 0; }
.sq-post-card.is-featured .sq-post-title { font-size: clamp(32px, 3.4vw, 52px) !important; }
:lang(ar) .sq-post-card.is-featured .sq-post-title { font-size: clamp(26px, 2.6vw, 38px) !important; }
@media (max-width: 781px) { .sq-post-card.is-featured .sq-post-link { grid-template-columns: 1fr; gap: 0; } .sq-post-card.is-featured .sq-post-text { padding-top: 18px; } }
.sq-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.sq-pager a, .sq-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid rgba(238, 237, 233, .3);
	color: var(--sq-alabaster); text-decoration: none; font-weight: 600; }
.sq-pager [aria-current="page"], .sq-pager .current { background: var(--sq-yellow); border-color: var(--sq-yellow); color: var(--sq-black); }

/* Single post: comfortable reading column. */
.sq-article-head { padding-bottom: 40px !important; }
.sq-article-wrap { max-width: calc(70ch + 2 * var(--sq-gutter)); }
.sq-article-head .sq-article-wrap { max-width: calc(1000px + 2 * var(--sq-gutter)); }
.sq-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sq-post-meta > * { margin: 0 !important; }
.sq-post-meta .sq-tag { text-decoration: none; }
.sq-article-title { margin: 20px 0 32px !important; font-size: clamp(36px, 5vw, 72px) !important; line-height: .98 !important; }
:lang(ar) .sq-article-title { font-size: clamp(30px, 4vw, 56px) !important; line-height: 1.3 !important; }
.sq-article-img { margin: 0 !important; }
.sq-article-img img { width: 100%; }
.sq-article-body { padding-bottom: 64px; }
.sq-article { font-size: 19px; line-height: 1.8; }
:lang(ar) .sq-article { font-size: 18px; }
.sq-article > * { margin-top: 0; margin-bottom: 1.1em; }
.sq-article h2, .sq-article h3 { margin-top: 1.8em; margin-bottom: .6em; text-transform: none; line-height: 1.15; }
.sq-article h2 { font-size: clamp(28px, 3vw, 36px); }
.sq-article h3 { font-size: clamp(22px, 2.4vw, 26px); }
:lang(ar) .sq-article h2, :lang(ar) .sq-article h3 { line-height: 1.5; }
.sq-article ul, .sq-article ol { padding-inline-start: 1.3em; }
.sq-article li { margin-bottom: .35em; }
.sq-article li::marker { color: var(--sq-yellow); }
.sq-article a { color: var(--sq-yellow); }
.sq-article blockquote { margin-inline: 0; padding: 8px 0 8px 24px; border-inline-start: 4px solid var(--sq-yellow); font-size: 1.15em; }
[dir="rtl"] .sq-article blockquote { padding: 8px 24px 8px 0; }
.sq-article figure { margin-block: 2em; }
.sq-article img { max-width: 100%; height: auto; }
.sq-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(238, 237, 233, .14); }
.sq-share-label { margin: 0 8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sq-muted); }
[dir="rtl"] .sq-share-label { margin: 0 0 0 8px; }
.sq-share-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(238, 237, 233, .3); border-radius: var(--sq-radius);
	background: transparent; color: var(--sq-alabaster); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sq-share-btn:hover, .sq-share-btn:focus-visible { border-color: var(--sq-yellow); color: var(--sq-yellow); }
.sq-related-posts .sq-post-grid { margin-top: 48px; }

/* 404 + search. */
.sq-404 { padding-top: 120px; padding-bottom: 120px; }
.sq-404-num { margin: 0 !important; color: var(--sq-yellow); font-size: clamp(120px, 22vw, 320px); font-weight: 800; line-height: .85; }
.sq-404 .sq-h2 { margin-top: 24px !important; }
.sq-404 .wp-block-buttons { margin-top: 32px; }
.sq-search, .sq-search-page .wp-block-search, .sq-search-page form { max-width: 560px; margin-top: 40px !important; }
.wp-block-search__inside-wrapper { gap: 8px; }
.wp-block-search__input { min-height: 50px; background: var(--sq-black); color: var(--sq-alabaster); border: 1px solid rgba(238, 237, 233, .3); border-radius: var(--sq-radius); padding: 0 14px; font: inherit; }
.wp-block-search__button { min-height: 50px; margin: 0; border-radius: var(--sq-radius) !important; }
.sq-search-page .sq-post-grid { margin-top: 48px; }
.sq-search-title { font-size: clamp(40px, 6vw, 88px) !important; overflow-wrap: anywhere; }
@media (max-width: 599px) { .sq-clients-hero .sq-h1 { font-size: clamp(40px, 13vw, 60px) !important; } }  /* "INDUSTRIES" fits a 360px screen */
/* Search results page: WordPress's classic search form, styled like the 404 search block. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form label { flex: 1 1 240px; margin: 0; }
.search-form .search-field { width: 100%; min-height: 50px; box-sizing: border-box; padding: 0 14px; background: var(--sq-black); color: var(--sq-alabaster);
	border: 1px solid rgba(238, 237, 233, .3); border-radius: var(--sq-radius); font: inherit; }
.search-form .search-submit { min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--sq-radius); background: var(--sq-yellow); color: var(--sq-black); font: inherit; font-weight: 700; cursor: pointer; }

/* ======================= v1.0.1 — Home hero: text centred on the video, new headline, smaller H1 =======================
   Home only (.sq-hero-home); other heroes are unchanged. The !important on the H1 size is needed because the base
   .sq-h1 size (and the Arabic/phone hero sizes) are !important too. */
.sq-hero-home { align-items: center; justify-content: center; }
.sq-hero-home .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; }
.sq-hero-home .sq-wrap { text-align: center; margin-inline: auto; }
.sq-hero-home .sq-h1 { text-align: center; }
.sq-hero-home .sq-lead { margin-inline: auto; max-width: 46ch; text-align: center; }
.sq-hero-home .wp-block-buttons { justify-content: center; }
/* ~65% of the old size: 1440 → 84px (was 130px). EN fits on one line from 1024 up, two lines on phones. */
.sq-hero-home .sq-wrap .sq-h1 { font-size: clamp(2.4rem, 5.8vw, 5.25rem) !important; line-height: .95 !important; }
:lang(ar) .sq-hero-home .sq-wrap .sq-h1 { font-size: clamp(2.25rem, 4.2vw, 3.75rem) !important; line-height: 1.15 !important; }  /* 1440 → 60px (was 89px) */

/* ======================= v1.1.0 — Yasmin's requests (26 Oct) ======================= */

/* Menu: "Services" opens the 12 services below it (accordion). */
.sq-header .wp-block-navigation-item.sq-has-sub { flex-wrap: wrap; }
.sq-header .sq-sub-toggle { appearance: none; background: none; border: 0; margin: 0; width: 100%; cursor: pointer; font: inherit; text-align: start;
	display: flex !important; align-items: center; gap: 12px; }
.sq-header .sq-sub-toggle::after { content: none !important; }
.sq-sub-chevron { flex: none; margin-inline-start: auto; width: 24px; height: 24px; transition: transform .2s; }
.sq-sub-toggle[aria-expanded="true"] .sq-sub-chevron { transform: rotate(180deg); }
.sq-header .wp-block-navigation__responsive-container.is-menu-open .sq-sub-toggle[aria-expanded="true"],
.sq-header .wp-block-navigation__responsive-container.is-menu-open .sq-has-sub.is-current > .sq-sub-toggle { color: var(--sq-yellow) !important; }
.sq-header .sq-sub { list-style: none; margin: 0 0 14px; padding: 0; width: 100%; flex-basis: 100%; }
.sq-header .sq-sub[hidden] { display: none !important; }
.sq-header .sq-sub li { margin: 0; }
.sq-sub-link { display: block; padding: 8px 0; color: var(--sq-muted) !important; font-size: 18px; font-weight: 500; line-height: 1.3; text-transform: none; text-decoration: none; }
.sq-sub-link:hover, .sq-sub-link:focus-visible, .sq-sub-link[aria-current="page"] { color: var(--sq-yellow) !important; }
@media (prefers-reduced-motion: reduce) { .sq-sub-chevron { transition: none; } }

/* Service pages: the 10-step process — 5 × 2 on wide screens, a vertical timeline below 1100px. */
.sq-timeline-10 .sq-step-title { font-size: 22px !important; line-height: 1.1 !important; }
:lang(ar) .sq-timeline-10 .sq-step-title { line-height: 1.45 !important; }
.sq-timeline-10 .sq-step-text { font-size: 15px; }
@media (min-width: 1100px) {
	.sq-timeline-10 { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 56px; }
	.sq-timeline-10 .sq-step:nth-child(5n)::after { display: none; }
}
@media (max-width: 1099px) {
	.sq-timeline-10 { grid-template-columns: 1fr; gap: 28px; }
	.sq-timeline-10 .sq-step { padding-top: 0; padding-inline-start: 44px; }
	.sq-timeline-10 .sq-step:not(:last-child)::after { top: 20px; bottom: -28px; inset-inline-start: 9px; inset-inline-end: auto; border-top: 0; border-inline-start: 2px dotted rgba(238, 237, 233, .45); }
	html.sq-motion .sq-timeline-10.sq-timeline-anim .sq-step:not(:last-child)::after,
	html.sq-motion[dir="rtl"] .sq-timeline-10.sq-timeline-anim .sq-step:not(:last-child)::after { clip-path: inset(0 0 100% 0); }
	html.sq-motion .sq-timeline-10.sq-timeline-anim.is-in .sq-step:not(:last-child)::after { clip-path: inset(0 0 0 0); }
}
html.sq-motion .sq-timeline-10.sq-timeline-anim .sq-step > * { transition-delay: calc(var(--i, 0) * 160ms); }
html.sq-motion .sq-timeline-10.sq-timeline-anim .sq-step:not(:last-child)::after { transition-duration: .3s; transition-delay: calc(var(--i, 0) * 160ms + 80ms); }
/* 4-column service tiles (1024px+): the longer final names ("CONSTRUCTION", "PHOTOGRAPHY") need a fluid size to fit the tile. */
@media (min-width: 1024px) {
	.sq-svc-grid .sq-svc-title { font-size: clamp(20px, 1.95vw, 28px) !important; }
	.sq-svc, [dir="rtl"] .sq-svc { padding-inline-end: 56px; }
}

/* ======================= v1.1.1 — real reels (square) + time-lapse ======================= */
/* Reels: 9:16 (1080×1920, v1.1.2 — the sources are vertical), 4 in a row on desktop, 2 × 2 on tablet and phone. */
.sq-reel .wp-block-video { aspect-ratio: 9 / 16; }
@media (max-width: 1023px) {
	.sq-reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
	.sq-reels > .sq-media-item { flex: none; }
}
/* The caption names the reel for screen readers and the full-screen player; no text over the tiles. */
.sq-reel figcaption { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sq-reels-section .sq-wrap > .sq-sr + .sq-media-grid { margin-top: 0 !important; }
/* Full-screen player: 9:16, fits the screen height. */
.sq-lightbox-video { aspect-ratio: 9 / 16; height: min(90vh, 90dvh, calc(92vw * 16 / 9)); max-height: 90vh; }

/* ======================= v1.1.4 — phone + email live in the menu, not in the header bar =======================
   Header bar: logo · Get a quote · ☰ (as before v1.1.0). The menu's contact block now shows on every screen
   (it was desktop only), each line with its icon; "Get a quote" inside the menu stays desktop only. */
.sq-menu-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 24px; width: 100%; }
.sq-menu-contact .wp-block-button { display: none; }
.sq-menu-contact > a.sq-menu-phone, .sq-menu-contact > a.sq-menu-email {
	display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--sq-alabaster); font-size: 17px; line-height: 1.2; text-decoration: none;
	direction: inherit; }   /* not the global tel:/mailto: LTR: the icon follows the page (right of the text in Arabic); <bdi dir="ltr"> keeps the number LTR */
.sq-menu-contact > a:hover, .sq-menu-contact > a:focus-visible { color: var(--sq-yellow); }
.sq-menu-contact > a:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 2px; }
.sq-menu-contact .sq-menu-icon { width: 20px; height: 20px; flex: none; display: block; }
.sq-menu-contact bdi { unicode-bidi: isolate; }
@media (min-width: 1024px) {
	.sq-menu-contact { padding-top: 28px; }
	.sq-menu-contact .wp-block-button { display: block; margin-top: 12px; }
}
@media (min-width: 1024px) and (max-height: 820px) {
	.sq-menu-contact { padding-top: 16px; }
	.sq-menu-contact .wp-block-button { margin-top: 8px; }
}
@media (min-width: 1024px) and (max-height: 680px) {
	.sq-header .sq-menu-contact .sq-menu-email { display: inline-flex !important; }   /* the panel scrolls; both lines stay */
}

/* ======================= v1.2.0 — the 78 real projects =======================
   Project page: cover 16:10 → title + client · location + service chips → intro → video (16:9, click to play) →
   gallery (2 columns, 1 on phones, lightbox) → "More stories". Work page: 12 tiles + "Load more". */
.sq-project-intro .sq-h1 { margin: 0 !important; }
.sq-project-meta { display: block; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(238, 237, 233, .14); }
.sq-project-meta-line { margin: 0 0 16px !important; font-size: 18px; color: var(--sq-alabaster); }
.sq-project-chips { list-style: none; padding: 0; margin: 0 !important; }
.sq-project-chips li { margin: 0; }
.sq-project-body > .wp-block-post-content > p { max-width: 68ch; font-size: 19px; line-height: 1.6; }
:lang(ar) .sq-project-body > .wp-block-post-content > p { font-size: 18px; line-height: 1.9; }
.sq-project-video { position: relative; aspect-ratio: 16 / 9; margin: 48px 0 0 !important; background: #000; overflow: hidden; }
.sq-project-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sq-project .wp-block-gallery.sq-project-gallery { margin-top: 48px !important; gap: 16px; }
.sq-project .wp-block-gallery.sq-project-gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 599px) {
	.sq-project .wp-block-gallery.sq-project-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100% !important; }
	.sq-project-video { margin-top: 32px !important; }
}
.sq-more-stories .sq-portfolio-grid { margin-top: 40px; }
.sq-project-tile:focus { outline: none; }
.sq-project-tile:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 3px; }

/* Service pages: each service's own process (6–10 steps). Wide screens: 5 per row for 9–10 steps, 4 for 8, 3 for 6;
   below 1100px the vertical timeline as before. */
@media (min-width: 1100px) {
	.sq-timeline-10.sq-steps-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sq-timeline-10.sq-steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sq-timeline-10.sq-steps-8 .sq-step:nth-child(5n):not(:last-child)::after,
	.sq-timeline-10.sq-steps-6 .sq-step:nth-child(5n):not(:last-child)::after { display: block; }
	.sq-timeline-10.sq-steps-8 .sq-step:nth-child(4n)::after,
	.sq-timeline-10.sq-steps-6 .sq-step:nth-child(3n)::after { display: none; }
}

/* Header over the home hero video: a soft dark backdrop keeps the ☰ outline visible on bright frames. */
.wp-site-blocks:has(.sq-hero.wp-block-cover, .sq-phero) > header:not(.is-scrolled) .sq-header .wp-block-navigation__responsive-container-open {
	background: rgba(2, 3, 3, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* v1.2.1 — project cards: long titles stop before the yellow arrow (48px at 24px from the edge; left side in Arabic). */
/* (v1.4.0: the card arrow moved to the top, so titles no longer need to stop short of it) */

/* ======================= v1.3.0 — project page redesign =======================
   Full-bleed hero (breadcrumb + title at the bottom, "Watch the film" on the right) → info band (lead + facts) →
   editorial gallery (wide 21:9 / pair 16:10 / trio 1:1 or 4:5) → next project band → related → CTA. Arabic mirrors. */
.sq-project { padding: 0 !important; }
.sq-phero { position: relative; height: min(88svh, 860px); min-height: 520px; overflow: hidden; background: #0b0b0b; color: var(--sq-alabaster); }
.sq-phero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-phero-shade { position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to bottom, rgba(2, 3, 3, .55) 0%, rgba(2, 3, 3, 0) 28%, rgba(2, 3, 3, .92) 100%); }
.sq-phero-content { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 56px; }
.sq-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.sq-crumbs a { color: var(--sq-alabaster); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.sq-crumbs a.sq-crumb-back { color: var(--sq-yellow); gap: 6px; }
.sq-crumbs a:hover, .sq-crumbs a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.sq-crumb-sep { opacity: .5; }
:lang(ar) .sq-crumbs { letter-spacing: 0; font-size: 14px; }
.sq-phero-title { margin: 14px 0 0 !important; max-width: 16ch; font-size: clamp(40px, 5.6vw, 84px) !important; line-height: .95 !important; color: var(--sq-alabaster); text-wrap: balance; }
:lang(ar) .sq-phero-title { line-height: 1.15 !important; }
.sq-phero-play { flex: none; display: inline-flex; align-items: center; gap: 16px; color: var(--sq-alabaster); text-decoration: none; font-weight: 700; font-size: 16px; }
.sq-phero-play-btn { position: relative; width: 84px; height: 84px; background: var(--sq-yellow); border-radius: var(--sq-radius); transition: transform .25s; }
.sq-phero-play-btn::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -14px 0 0 -9px; border-style: solid; border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent var(--sq-black); } /* ▶ never mirrors */
.sq-phero-play:hover .sq-phero-play-btn, .sq-phero-play:focus-visible .sq-phero-play-btn { transform: scale(1.05); }
.sq-phero-play:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 6px; }
/* Phones: the hero is a column — film button at the top (inline-start), title block at the bottom; it grows rather than
   letting a long title run into the button. */
@media (max-width: 599px) {
	.sq-phero { height: auto; min-height: max(75svh, 460px); display: flex; }
	.sq-phero-content { position: relative; flex: 1; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 96px; padding-bottom: 32px; }
	.sq-phero-play { order: -1; font-size: 14px; gap: 12px; }
	.sq-phero-play-btn { width: 64px; height: 64px; }
	.sq-phero-play-btn::before { margin: -11px 0 0 -7px; border-width: 11px 0 11px 19px; }
}

/* Info band */
.sq-pinfo-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; padding-top: 80px; padding-bottom: 72px; }
.sq-pinfo-lead > * { margin: 0 0 1em !important; }
.sq-pinfo-lead > :last-child { margin-bottom: 0 !important; }
.sq-pinfo-lead p { font-size: 22px; line-height: 1.55; color: var(--sq-alabaster); }
:lang(ar) .sq-pinfo-lead p { line-height: 1.85; }
.sq-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-content: start; margin: 0;
	padding-inline-start: 40px; border-inline-start: 1px solid rgba(238, 237, 233, .16); }
.sq-fact { margin: 0; min-width: 0; }
.sq-fact dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #8c8a84; }
:lang(ar) .sq-fact dt { font-size: 13px; letter-spacing: 0; }
.sq-fact dd { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: var(--sq-alabaster); overflow-wrap: anywhere; }
.sq-fact dd a { color: var(--sq-alabaster); text-decoration: underline; text-decoration-color: rgba(238, 237, 233, .35); text-underline-offset: 4px; }
.sq-fact dd a:hover, .sq-fact dd a:focus-visible { color: var(--sq-yellow); text-decoration-color: currentColor; }
.sq-pinfo.is-facts-only .sq-pinfo-grid { grid-template-columns: 1fr; }
.sq-pinfo.is-facts-only .sq-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline-start: 0; border-inline-start: 0; }
@media (max-width: 781px) {
	.sq-pinfo-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
	.sq-pinfo-lead p { font-size: 18px; }
	.sq-facts, .sq-pinfo.is-facts-only .sq-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline-start: 0; border-inline-start: 0; padding-top: 28px; border-top: 1px solid rgba(238, 237, 233, .16); }
	.sq-pinfo.is-facts-only .sq-facts { padding-top: 0; border-top: 0; }
}

/* Gallery */
.sq-pgal { padding-bottom: 96px; }
.sq-pgal-row { display: grid; gap: 16px; }
.sq-pgal-row + .sq-pgal-row { margin-top: 16px; }
.sq-pgal-row.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sq-pgal-row.is-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sq-g-item { display: block; position: relative; overflow: hidden; background: #111; aspect-ratio: 16 / 10; cursor: zoom-in; }
.sq-pgal-row.is-wide .sq-g-item { aspect-ratio: 21 / 9; }
.sq-pgal-row.is-trio .sq-g-item { aspect-ratio: 1 / 1; }
.sq-pgal-row.is-trio.is-portrait .sq-g-item, .sq-pgal-row.is-pair.is-portrait .sq-g-item { aspect-ratio: 4 / 5; }
.sq-g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.sq-g-item:hover img, .sq-g-item:focus-visible img { transform: scale(1.03); }
.sq-g-item:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 3px; }
@media (max-width: 599px) {
	.sq-pgal { padding-bottom: 64px; }
	.sq-pgal-row.is-pair, .sq-pgal-row.is-trio { grid-template-columns: 1fr; }
	.sq-pgal-row.is-pair.is-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sq-pgal-row.is-wide .sq-g-item, .sq-pgal-row.is-pair .sq-g-item, .sq-pgal-row.is-trio:not(.is-portrait) .sq-g-item { aspect-ratio: 16 / 10; }
}

/* Next project */
.sq-pnext { position: relative; display: block; height: clamp(280px, 36vw, 460px); overflow: hidden; color: var(--sq-alabaster); text-decoration: none; background: #0b0b0b; }
.sq-pnext-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.sq-pnext-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 3, 3, .9), rgba(2, 3, 3, .45)); }
.sq-pnext-content { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 56px; }
.sq-pnext-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--sq-yellow); }
:lang(ar) .sq-pnext-label { letter-spacing: 0; font-size: 14px; }
.sq-pnext-title { display: block; margin-top: 12px; max-width: 18ch; font-weight: 800; text-transform: uppercase;
	font-size: clamp(32px, 4.4vw, 64px); line-height: .95; text-wrap: balance; }
:lang(ar) .sq-pnext-title { line-height: 1.2; text-transform: none; }
.sq-pnext-arrow { flex: none; width: 64px; height: 64px; background: var(--sq-yellow); color: var(--sq-black); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; transition: transform .25s; }
.sq-pnext-arrow::before { content: "→"; }
[dir="rtl"] .sq-pnext-arrow::before { content: "←"; }
.sq-pnext:hover .sq-pnext-img, .sq-pnext:focus-visible .sq-pnext-img { transform: scale(1.03); }
.sq-pnext:hover .sq-pnext-arrow, .sq-pnext:focus-visible .sq-pnext-arrow { transform: translateX(6px); }
[dir="rtl"] .sq-pnext:hover .sq-pnext-arrow, [dir="rtl"] .sq-pnext:focus-visible .sq-pnext-arrow { transform: translateX(-6px); }
.sq-pnext:focus-visible { outline: 3px solid var(--sq-yellow); outline-offset: -3px; }
@media (max-width: 599px) {
	.sq-pnext-content { padding-bottom: 32px; }
	.sq-pnext-arrow { width: 48px; height: 48px; font-size: 22px; }
}

/* Lightboxes (film + gallery) */
.sq-lb { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; color: var(--sq-alabaster); overflow: hidden; }
.sq-lb[open] { display: flex; align-items: center; justify-content: center; }
.sq-lb::backdrop { background: rgba(2, 3, 3, .94); }
.sq-lb-close { position: absolute; top: 20px; inset-inline-end: 20px; z-index: 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
	background: rgba(2, 3, 3, .6); color: var(--sq-alabaster); border: 1px solid rgba(238, 237, 233, .3); border-radius: var(--sq-radius); cursor: pointer; }
.sq-lb-close:hover, .sq-lb-close:focus-visible { border-color: var(--sq-yellow); color: var(--sq-yellow); }
.sq-lb-frame { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.sq-lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.sq-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.sq-lb-img { display: block; max-width: 92vw; max-height: 80vh; max-height: 80dvh; width: auto; height: auto; object-fit: contain; }
.sq-lb-caption { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; width: 100%; font-size: 14px; color: #c9c7c1; }
.sq-lb-count { font-variant-numeric: tabular-nums; color: var(--sq-yellow); font-weight: 700; }
.sq-lb-nav { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; display: flex; align-items: center; justify-content: center;
	background: rgba(2, 3, 3, .6); color: var(--sq-alabaster); border: 1px solid rgba(238, 237, 233, .3); border-radius: var(--sq-radius); cursor: pointer; }
.sq-lb-nav:hover, .sq-lb-nav:focus-visible { border-color: var(--sq-yellow); color: var(--sq-yellow); }
.sq-lb-prev { inset-inline-start: 20px; }
.sq-lb-next { inset-inline-end: 20px; }
.sq-lb-next svg, [dir="rtl"] .sq-lb-prev svg { transform: scaleX(-1); }
[dir="rtl"] .sq-lb-next svg { transform: none; }
.sq-lb-nav[hidden] { display: none; }
@media (max-width: 599px) {
	.sq-lb-nav { top: auto; bottom: 16px; margin-top: 0; width: 48px; height: 48px; }
	.sq-lb-img { max-height: 70vh; max-height: 70dvh; }
}

@media (prefers-reduced-motion: reduce) {
	.sq-g-item img, .sq-pnext-img, .sq-phero-play-btn, .sq-pnext-arrow { transition: none !important; transform: none !important; }
}
/* "3 / 9" stays in reading order in Arabic too; the film label keeps contrast over bright skies. */
.sq-lb-count { direction: ltr; unicode-bidi: isolate; }
.sq-phero-play-label { text-shadow: 0 1px 14px rgba(2, 3, 3, .75); }

/* ======================= v1.3.1 — Our stories cover band (Work page) =======================
   Yasmin's "project cover" behind the title: 60svh (45svh on phones), title + intro at the bottom (right in Arabic),
   the filters right under it. Uses the Cover hero, so the header is transparent over it like Home. */
.sq-work-hero.wp-block-cover { min-height: 60vh !important; min-height: 60svh !important; align-items: flex-end; }
.sq-work-hero .wp-block-cover__inner-container { width: 100%; }
.sq-work-hero .sq-wrap { padding-top: 140px; padding-bottom: 56px; }
.sq-work-hero .sq-h1 { margin: 0 !important; }
.sq-work-hero .sq-lead { margin-top: 16px !important; max-width: 52ch; color: var(--sq-alabaster); }
.sq-work-hero + .sq-work, .sq-work-hero + * .sq-work { padding-top: 48px !important; }
@media (max-width: 599px) {
	.sq-work-hero.wp-block-cover { min-height: 45vh !important; min-height: 45svh !important; }
	.sq-work-hero .sq-wrap { padding-top: 110px; padding-bottom: 32px; }
	.sq-work-hero + .sq-work { padding-top: 32px !important; }
}

/* v1.3.1 — Yasmin's tile photos are busier than the old ones (bright illustration on 06, signs on 02/03): a slightly
   deeper gradient through the title zone and a soft shadow keep every title at ≥ 6:1 against its brightest pixels. */
.sq-svc::before { background: linear-gradient(to top, rgba(2,3,3,.96) 0%, rgba(2,3,3,.86) 45%, rgba(2,3,3,.5) 68%, rgba(2,3,3,.12) 88%, rgba(2,3,3,.05) 100%); }
.sq-svc > .sq-svc-title { text-shadow: 0 1px 16px rgba(2, 3, 3, .55); }

/* ======================= v1.3.2 — Yasmin's white client logos =======================
   The SVGs are already white: no filter. Each <img> carries its optical width (--lw, from inc/clients.php) and keeps its
   ratio inside the box. Project hero titles: 20ch (2 lines for the long ones). */
.sq-clients-marquee .sq-marquee-row > .wp-block-image img,
.sq-clients-grid > .wp-block-image img { filter: none; width: var(--lw); height: auto; max-width: 100%; object-fit: contain; }
.sq-clients-marquee .sq-marquee-row > .wp-block-image img { max-width: 150px; max-height: 58px; opacity: .7; }
.sq-clients-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.sq-clients-grid > .wp-block-image { height: 112px; padding: 16px 12px; }
.sq-clients-grid > .wp-block-image img { max-width: 78%; max-height: 72px; opacity: .8; }
.sq-clients-marquee .sq-marquee-row > .wp-block-image:hover img, .sq-clients-grid > .wp-block-image:hover img { opacity: 1; }
@media (max-width: 599px) {
	.sq-clients-marquee .sq-marquee-row > .wp-block-image img { width: calc(var(--lw) * .78); max-width: 110px; max-height: 46px; }
	.sq-clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sq-clients-grid > .wp-block-image { height: 96px; }
	.sq-clients-grid > .wp-block-image img { width: calc(var(--lw) * .82); max-height: 60px; }
}
.sq-phero-title { max-width: min(20ch, 65vw); }
.sq-phero-title.is-long { max-width: 65vw; font-size: clamp(34px, 4.3vw, 62px) !important; }
.sq-phero-title.is-xlong { font-size: clamp(32px, 3.75vw, 54px) !important; }

/* ======================= v1.3.3 — Our stories: "Load more" block =======================
   Progress line (text + 2px bar) above a 56px outline button in the site's button shape; loading spinner; the new cards
   fade in; at the end the button gives way to "Back to top". */
.sq-more { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 56px 0 0 !important; text-align: center; }
.sq-more[hidden] { display: none !important; }
.sq-more-status { margin: 0 !important; font-size: 13px; line-height: 1.4; color: #8c8a84; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sq-more-bar { width: 280px; max-width: 100%; height: 2px; margin: 10px 0 24px; background: #2a2a28; overflow: hidden; }
.sq-more-bar > span { display: block; height: 100%; background: var(--sq-yellow); transition: width .45s ease; }
.sq-more-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; height: 56px; min-height: 0; padding: 0 32px;
	border: 1px solid var(--sq-alabaster); border-radius: var(--sq-radius); background: transparent; color: var(--sq-alabaster);
	font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sq-more-btn[hidden] { display: none; }
.sq-more-btn:hover, .sq-more-btn:focus-visible { background: var(--sq-yellow); border-color: var(--sq-yellow); color: var(--sq-black); }
.sq-more-btn:focus-visible { outline: 2px solid var(--sq-yellow); outline-offset: 4px; }
.sq-more-icon { display: inline-flex; width: 16px; height: 16px; transition: transform .2s; }
.sq-more-icon svg { display: block; width: 16px; height: 16px; }
.sq-more-btn:hover .sq-more-icon, .sq-more-btn:focus-visible .sq-more-icon { transform: translateY(2px); }
.sq-more-btn.is-loading { pointer-events: none; }
.sq-more-btn.is-loading .sq-more-icon svg { display: none; }
.sq-more-btn.is-loading .sq-more-icon::before { content: ""; width: 14px; height: 14px; margin: 1px; box-sizing: border-box; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent; animation: sq-spin .7s linear infinite; }
@keyframes sq-spin { to { transform: rotate(360deg); } }
.sq-more-top { margin-top: 4px; font-size: 13px; color: var(--sq-alabaster); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.sq-more-top[hidden] { display: none; }
.sq-more-top:hover, .sq-more-top:focus-visible { color: var(--sq-yellow); }
.sq-more.is-done .sq-more-bar { margin-bottom: 8px; }
.sq-project-tile.sq-tile-in { animation: sq-tile-in .45s ease both; }
@keyframes sq-tile-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
	.sq-more { margin-top: 40px !important; }
	.sq-more-btn { width: 100%; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
	.sq-project-tile.sq-tile-in { animation: none; }
	.sq-more-bar > span, .sq-more-icon { transition: none; }
	.sq-more-btn.is-loading .sq-more-icon::before { animation-duration: 1.4s; }
}

/* ======================= v1.4.0 — Yasmin's requests 2 =======================
   1. Project cards (Home "Our stories", Our stories page, "More stories"): text 25% smaller so the photo shows more;
      the arrow sits top-right (top-left in Arabic), the ▶ badge top-left (top-right in Arabic). */
.sq-portfolio-grid .sq-tile-text { padding: 56px 18px 16px; background: linear-gradient(to top, rgba(2,3,3,.94) 0%, rgba(2,3,3,.7) 45%, rgba(2,3,3,0) 100%); }
.sq-portfolio-grid .sq-tile-text h3 { font-size: clamp(20px, 1.8vw, 26px); margin: 9px 0 2px; }
.sq-portfolio-grid .sq-tile-text .sq-place { font-size: 12px; }
.sq-portfolio-grid .sq-tile-text .sq-tag { font-size: 10px; padding: 4px 7px; }
.sq-project-tile::after { top: 16px; bottom: auto; right: 16px; width: 40px; height: 40px; font-size: 18px; }
[dir="rtl"] .sq-project-tile::after { right: auto; left: 16px; }
.sq-project-tile .sq-play-badge { top: 16px; inset-inline-start: 16px; }
@media (max-width: 599px) { .sq-portfolio-grid .sq-tile-text h3 { font-size: 22px; } }

/* 5. Home / Services tiles: no description line; the title sits at the bottom of the tile. */
.sq-svc { justify-content: flex-end !important; }
.sq-svc > .sq-svc-title, .sq-svc > .sq-svc-title.wp-block-heading { margin: auto 0 0 !important; min-height: 0 !important; }

/* 3. Home time-lapse: the CTA under the grid */
.sq-tl-cta { margin-top: 40px !important; justify-content: center; }
.sq-tl-cta .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; line-height: 1; }

/* 4. Time-lapse livestreaming page */
.sq-hero-tl.wp-block-cover { min-height: 80vh !important; min-height: 80svh !important; align-items: flex-end; }
.sq-hero-tl .wp-block-cover__inner-container { width: 100%; }
.sq-hero-tl .sq-wrap { padding-top: 140px; padding-bottom: 64px; }
.sq-hero-tl .sq-h1 { font-size: clamp(40px, 5.2vw, 80px) !important; line-height: .98 !important; max-width: 18ch; }
:lang(ar) .sq-hero-tl .sq-h1 { line-height: 1.2 !important; }
.sq-hero-tl .sq-lead { max-width: 60ch; margin-top: 20px !important; color: var(--sq-alabaster); }
.sq-tl-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px !important; }
@media (max-width: 1099px) { .sq-tl-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sq-tl-points { grid-template-columns: 1fr; } }
.sq-tl-grid-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px; overflow: visible !important; margin-inline: 0 !important; padding-inline: 0 !important; }
.sq-tl-grid-2 > .sq-media-item { flex: none !important; }
.sq-tl-grid-2 figcaption { margin: 12px 0 0 !important; font-size: 15px; font-weight: 600; color: var(--sq-alabaster); text-align: start; }
@media (max-width: 599px) { .sq-tl-grid-2 { grid-template-columns: 1fr !important; gap: 20px; } }

/* 6. Services overview page */
.sq-services-page .sq-svc-grid { margin-top: 0 !important; }

/* 8. Footer: the services in 2 columns (6 + 6, menu order), 1 on phones; the time-lapse link under them. */
.sq-footer .sq-services-list { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 0 40px; }
.sq-footer-tl { margin: 16px 0 0 !important; font-size: 14px; }
.sq-footer-tl a { color: var(--sq-yellow); }
@media (max-width: 599px) { .sq-footer .sq-services-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

/* Menu: "All services" first in the Services list */
.sq-sub-link.sq-sub-all { font-weight: 700; }
/* v1.4.0 fixes: the Time-lapse page clips grow to show their caption (16:9 stays on the video); the footer services
   column takes up to 46% from 1024px up (the brand column gives way) (a long Arabic name may still wrap, never overflow); the social icons stay on one row. */
.sq-tl-grid-2 > .sq-media-item { aspect-ratio: auto !important; overflow: visible; background: none; }
.sq-tl-grid-2 > .sq-media-item .wp-block-video { aspect-ratio: auto !important; height: auto !important; overflow: visible; background: none; }
.sq-tl-grid-2 > .sq-media-item .wp-block-video video { position: static !important; inset: auto !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1024px) {
	.sq-footer .wp-block-columns > .wp-block-column:nth-child(1) { flex: 1 1 0 !important; min-width: 0; }
	.sq-footer .wp-block-columns > .wp-block-column:nth-child(2) { flex: 0 1 46% !important; min-width: 0; }
	.sq-footer .wp-block-columns > .wp-block-column:nth-child(3) { flex: 0 0 auto !important; }
	.sq-footer .sq-services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sq-footer .sq-social { flex-wrap: nowrap; }
}

/* ======================= v1.5.0 — CEO review (requests 3) =======================
   2. Countries line under the hero headline (Home + Time-lapse page): uppercase, wide tracking, yellow separators. */
.sq-countries { margin: 18px 0 0 !important; font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(238, 237, 233, .85); }
.sq-countries .sq-sep { color: var(--sq-yellow); margin: 0 .7em; font-weight: 400; }
:lang(ar) .sq-countries { letter-spacing: .04em; font-size: 16px; }
.sq-hero-home .sq-countries { text-align: center; }
.sq-hero-home .sq-countries + .wp-block-buttons { margin-top: 32px !important; }
@media (max-width: 599px) { .sq-countries { font-size: 12px; letter-spacing: .16em; } :lang(ar) .sq-countries { font-size: 13px; } .sq-countries .sq-sep { margin: 0 .5em; } }

/* 3. Menu: three numbers, each with its country label above it (compact rows, still ≥ 44px tap targets). */
.sq-menu-contact > a.sq-menu-phone { min-height: 44px; }
.sq-menu-ph { display: flex; flex-direction: column; line-height: 1.15; }
.sq-menu-country { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8c8a84; }
:lang(ar) .sq-menu-country { letter-spacing: 0; font-size: 12px; }
.sq-menu-contact > a.sq-menu-phone + a.sq-menu-phone { margin-top: 2px; }

/* 4. Time-lapse page hero: sub-heading (≈ 1/3 of the H1) */
.sq-hero-tl .sq-tl-sub { margin: 14px 0 0 !important; font-size: clamp(16px, 1.75vw, 26px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--sq-alabaster); }
:lang(ar) .sq-hero-tl .sq-tl-sub { text-transform: none; }
.sq-hero-tl .sq-h1 { max-width: 22ch; }

/* 5. Project page: the project's time-lapse clip (between the info band and the gallery) */
.sq-ptl { padding-bottom: 72px; }
.sq-ptl .sq-label { margin: 0 0 16px !important; }
.sq-ptl-clip { position: relative; margin: 0 !important; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.sq-ptl-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-ptl-link { margin: 16px 0 0 !important; font-size: 15px; }
.sq-ptl-link a { color: var(--sq-yellow); }
@media (max-width: 599px) { .sq-ptl { padding-bottom: 48px; } }

/* 6. Our stories intro on one line from 1024px (it wrapped at 52ch). */
@media (min-width: 1024px) { .sq-work-hero .sq-lead { max-width: none; white-space: nowrap; } :lang(ar) .sq-work-hero .sq-lead { white-space: normal; max-width: 80ch; } }
/* v1.5.0: the El-Awir sunset is bright behind the Time-lapse headline (yellow on orange sky): a side scrim behind the
   text (left in English, right in Arabic) on top of the top-to-bottom gradient keeps every line ≥ 4.5:1. */
.sq-hero-tl .wp-block-cover__background { background: linear-gradient(90deg, rgba(2,3,3,.78) 0%, rgba(2,3,3,.55) 45%, rgba(2,3,3,.15) 80%), linear-gradient(180deg, rgba(2,3,3,.45) 0%, rgba(2,3,3,.3) 45%, rgba(2,3,3,.92) 100%) !important; }
[dir="rtl"] .sq-hero-tl .wp-block-cover__background { background: linear-gradient(270deg, rgba(2,3,3,.78) 0%, rgba(2,3,3,.55) 45%, rgba(2,3,3,.15) 80%), linear-gradient(180deg, rgba(2,3,3,.45) 0%, rgba(2,3,3,.3) 45%, rgba(2,3,3,.92) 100%) !important; }
@media (max-width: 781px) { .sq-hero-tl .wp-block-cover__background, [dir="rtl"] .sq-hero-tl .wp-block-cover__background { background: linear-gradient(180deg, rgba(2,3,3,.6) 0%, rgba(2,3,3,.62) 50%, rgba(2,3,3,.94) 100%) !important; } }

/* v1.5.1 — Home time-lapse section uses the Time-lapse page wording: sub-heading + countries line under the H2. */
.sq-timelapse .sq-tl-sub { margin: 14px 0 0 !important; font-size: clamp(16px, 1.6vw, 24px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--sq-alabaster); }
:lang(ar) .sq-timelapse .sq-tl-sub { text-transform: none; }
.sq-timelapse .sq-countries { margin-top: 14px !important; }
.sq-timelapse .sq-countries + .sq-lead { margin-top: 20px !important; }

/* ======================= v1.6.1 — reCAPTCHA v3 (Contact Form 7) ======================= */
/* Google allows hiding the floating badge when its notice is shown with the form (functions.php adds it). */
.grecaptcha-badge { visibility: hidden !important; }
.sq-recaptcha-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--sq-muted); }
.sq-recaptcha-note a { color: var(--sq-alabaster); text-decoration: underline; text-underline-offset: 2px; }

/* ======================= v1.6.2 — decorative videos on iPhone (Low Power Mode / data saver) ======================= */
/* iOS blocks autoplay and draws its own big ▶ on the <video>. Decorative videos (heroes, time-lapse loops, reels) never
   have controls, so hide WebKit's overlay on those only — not on the reel player (.sq-lightbox-video) or YouTube.
   One rule per pseudo-element: a browser that doesn't know one of them would drop a grouped rule entirely. */
.sq-bgvideo::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
.sq-bgvideo::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }
.sq-bgvideo::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.sq-bgvideo::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
/* same for loops whose markup comes from the portfolio plugin (media.js adds .sq-bgvideo later; this covers first paint) */
.sq-autoplay video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.sq-autoplay video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
/* Autoplay refused (media.js): the wrapper shows the poster as a still and the video is hidden (same box, no shift). */
.sq-video-off { background-image: var(--sq-poster); background-repeat: no-repeat; background-size: cover; background-position: center; }
.sq-video-off > video.sq-bgvideo { visibility: hidden; }
