/*
Theme Name: Wajahat
Theme URI: https://www.facebook.com/Wajahatext/
Author: Wajahat
Description: قالب شركة واجهات — واجهات ألومنيوم وزجاج وكلادينج. صفحة رئيسية بالإنجليزي تلقائياً والعربي (?lang=ar)، وضع داكن وفاتح، مشاريع وريلز من لوحة التحكم، وفورم معاينة على واتساب.
Version: 1.5.11
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wajahat
*/

/* Brand colours come from the official logo: teal #045175 and navy #041C3C. */
:root {
  --navy: #041c3c;
  --navy-2: #072a54;
  --navy-card: #0b2a52;
  --navy-surface: #103560;

  --accent: #3fa7d6;          /* brand teal, lifted for use on dark */
  --accent-soft: #8fd0ee;
  --accent-dark: #045175;     /* official logo teal, for text on light */
  --accent-glow: rgba(63, 167, 214, 0.25);

  --blue: #045175;
  --blue-soft: #5fb8e3;
  --blue-glow: rgba(95, 184, 227, 0.2);

  --steel: #8a9ba8;
  --alu: #cbd5e1;
  --white: #ffffff;

  /* Theme tokens: light values here, dark values below.
     Light = the portfolio's grey drafting paper. Dark = a blueprint sheet at night. */
  --paper: #f3f3f1;
  --surface: #ffffff;
  --ink: #0a1b33;
  --title: #014a97;           /* portfolio heading blue */
  --muted: #56657a;
  --lineart: rgba(10, 27, 51, 0.5);
  --texture: none;
  --texture-size: auto;
  --nav-bg: rgba(234, 234, 232, 0.86);
  --nav-fg: #0a1b33;
  --mark-color: block;        /* which logo shows on the scrolled header */
  --mark-white: none;
  --line: rgba(10, 27, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-grid: rgba(255, 255, 255, 0.05);
  --chip: rgba(6, 24, 44, 0.07);
  --on-accent: #ffffff;
  --shadow: rgba(4, 28, 60, 0.12);
  --solid: #041c3c;
  --on-solid: #ffffff;
  --prim-a: #045175;
  --prim-b: #0a74a3;

  --status-live: #f59e0b;
  --status-live-bg: rgba(245, 158, 11, 0.16);
  --status-done: #10b981;
  --status-done-bg: rgba(16, 185, 129, 0.16);

  --font: "Cairo", "Jost", system-ui, sans-serif;
  --display: "Jost", "Cairo", system-ui, sans-serif;   /* Latin in Jost; Arabic letters fall through to Cairo */
  --wordmark: "Poppins", "Jost", sans-serif;           /* the logo's typeface, for "wajahat" only */
  --ease: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(18px, 5vw, 80px);
  --radius: 3px;              /* drafted corners, like the portfolio photos */
  --radius-sm: 2px;
  color-scheme: light;
}
html[lang="en"] { --font: "Jost", system-ui, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #06111f; --surface: #0b1c31; --ink: #e6edf5; --title: #8ec3f0; --muted: #93a6bb;
    --lineart: rgba(142, 195, 240, 0.32);
    --texture: linear-gradient(rgba(142, 195, 240, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 195, 240, 0.045) 1px, transparent 1px);
    --texture-size: 48px 48px;
    --nav-bg: rgba(6, 17, 31, 0.82); --nav-fg: #e6edf5; --mark-color: none; --mark-white: block;
    --line: rgba(255, 255, 255, 0.1); --chip: rgba(255, 255, 255, 0.08);
    --accent-dark: #5fb8e3; --blue: #5fb8e3; --on-accent: #041c3c; --shadow: rgba(0, 0, 0, 0.5);
    --solid: #3fa7d6; --on-solid: #041c3c; --prim-a: #2c8fbf; --prim-b: #5fb8e3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #06111f; --surface: #0b1c31; --ink: #e6edf5; --title: #8ec3f0; --muted: #93a6bb;
    --lineart: rgba(142, 195, 240, 0.32);
    --texture: linear-gradient(rgba(142, 195, 240, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 195, 240, 0.045) 1px, transparent 1px);
    --texture-size: 48px 48px;
    --nav-bg: rgba(6, 17, 31, 0.82); --nav-fg: #e6edf5; --mark-color: none; --mark-white: block;
    --line: rgba(255, 255, 255, 0.1); --chip: rgba(255, 255, 255, 0.08);
    --accent-dark: #5fb8e3; --blue: #5fb8e3; --on-accent: #041c3c; --shadow: rgba(0, 0, 0, 0.5);
    --solid: #3fa7d6; --on-solid: #041c3c; --prim-a: #2c8fbf; --prim-b: #5fb8e3;
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background-color: var(--paper); background-image: var(--texture); background-size: var(--texture-size); color: var(--ink); line-height: 1.7; overflow-x: hidden; transition: background-color .5s var(--ease), color .5s var(--ease); }
body.is-loading { overflow: hidden; animation: wj-unlock 0s 3.5s forwards; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }

.section { padding: clamp(80px, 11vw, 150px) var(--pad); }
.dark { background: var(--navy); color: var(--white); }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--accent-dark); margin-bottom: 22px; letter-spacing: .02em; }
.label::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: transparent; }
.dark .label { color: var(--accent-soft); }
h2 { font-size: clamp(30px, 4.6vw, 62px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--title); text-wrap: balance; }
.dark h2 { color: var(--white); }
h2 span { color: var(--ink); font-weight: 400; }
.dark h2 span { color: var(--accent-soft); }
.dark { background-image: linear-gradient(rgba(142, 195, 240, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 195, 240, 0.05) 1px, transparent 1px); background-size: 48px 48px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 620px; }
.dark .lead { color: var(--alu); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); transition: all .3s var(--ease); }
.btn--primary { background: linear-gradient(135deg, var(--prim-a) 0%, var(--prim-b) 100%); color: var(--on-accent); box-shadow: 0 4px 20px var(--accent-glow); }
.btn--primary:hover { background: var(--solid); color: var(--on-solid); background-image: none; box-shadow: 0 8px 25px var(--accent-glow); transform: translateY(-2px); }
.hero .btn--primary:hover, .nav .btn--primary:hover { background: var(--white); color: var(--navy); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--white); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }
.btn--dark { background: var(--solid); color: var(--on-solid); }
.btn--dark:hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Preloader: the logo draws itself, then two panels open */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; }
.loader__panel { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--navy); transition: transform 1s var(--ease); }
.loader__panel--a { inset-inline-start: 0; }
.loader__panel--b { inset-inline-end: 0; }
.loader__mark { position: relative; z-index: 1; width: min(170px, 40vw); display: grid; justify-items: center; gap: 16px; transition: opacity .4s; }
.loader__mark svg { width: 100%; overflow: visible; }
.loader__mark path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw .9s var(--ease) forwards; }
.loader__mark path:nth-child(2) { animation-delay: .15s; }
.loader__mark path:nth-child(3) { animation-delay: .22s; }
.loader__mark path:nth-child(4) { animation-delay: .29s; }
.loader__mark path:nth-child(5) { animation-delay: .36s; }
.loader__mark path:nth-child(6) { animation-delay: .42s; }
.loader__word { font-family: var(--wordmark); font-weight: 700; font-size: 30px; color: var(--white); letter-spacing: .01em; opacity: 0; animation: fadeUp .6s .4s forwards; direction: ltr; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Safety net: if the opening script never runs, the loader still leaves and the page unlocks. */
body.is-loading .loader { animation: wj-hide .4s 3.5s forwards; }
body.is-loading .hero .reveal-line > span { animation: wj-show 1s 3.5s var(--ease) forwards; }
@keyframes wj-hide { to { opacity: 0; visibility: hidden; } }
@keyframes wj-show { to { transform: none; } }
@keyframes wj-unlock { to { overflow-y: auto; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.is-loaded .loader__mark { opacity: 0; }
body.is-loaded .loader__panel--a { transform: translateX(-101%); }
body.is-loaded .loader__panel--b { transform: translateX(101%); }
[dir="rtl"] body.is-loaded .loader__panel--a { transform: translateX(101%); }
[dir="rtl"] body.is-loaded .loader__panel--b { transform: translateX(-101%); }
body.is-gone .loader { display: none; }

/* Nav */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); color: var(--white); transition: background .4s, padding .4s, box-shadow .4s; }
.nav.is-scrolled { background: rgba(4, 28, 60, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line-dark); }
.brand { display: flex; align-items: center; gap: 10px; direction: ltr; }
.brand img { width: 38px; height: auto; }
.brand b { font-family: var(--wordmark); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -.01em; }
.brand__r { font-style: normal; font-weight: 400; font-size: .4em; vertical-align: super; margin-inline-start: 1px; }
.brand small { display: block; font-family: var(--wordmark); font-size: 9.5px; letter-spacing: .1em; color: var(--alu); margin-top: 3px; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; }
.nav__links a { position: relative; padding: 6px 0; opacity: .9; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--blue-soft); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 12px; }
.nav__lang { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.nav__lang:hover { background: var(--white); color: var(--navy); }
.nav__cta { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.nav__burger span { position: absolute; inset-inline: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--pad); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
body.menu-open .menu { clip-path: inset(0); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--navy); }
.hero__stage, .hero__base, .hero__slats { position: absolute; inset: 0; }
.hero__base picture { display: block; height: 100%; }
.hero__base img, .hero__slat img { width: 100%; height: 100%; object-fit: cover; }
.hero__base img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__slats { display: flex; }
.hero__slat { position: relative; flex: 1; overflow: hidden; clip-path: inset(0 0 100% 0); }
.hero__slat.is-in { clip-path: inset(0); transition: clip-path .9s var(--ease); }
.hero__slat img { position: absolute; top: 0; height: 100%; max-width: none; transform: scale(1.08); }
/* curtain-wall mullion grid over the photo */
.hero__grid { position: absolute; inset: 0; pointer-events: none; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px calc(100% / 10)),
  repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 140px); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 28, 60,.6) 0%, rgba(4, 28, 60,.4) 40%, rgba(4, 28, 60,.95) 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(110px, 15vh, 150px); }
.hero__eyebrow { font-size: 14px; color: var(--accent-soft); margin-bottom: 18px; font-weight: 500; letter-spacing: .02em; }
.hero__title { font-size: clamp(42px, 7.6vw, 112px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; max-width: 1100px; }
.hero__title .accent { font-style: normal; color: var(--accent-soft); }
.hero__lead { margin-top: 22px; max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--alu); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .reveal-line { display: block; overflow: hidden; }
.hero .reveal-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
body.is-loaded .hero .reveal-line > span { transform: none; }
.hero .reveal-line:nth-child(2) > span { transition-delay: .1s; }
.hero__lead.reveal-line > span { transition-delay: .25s; }
.hero__actions.reveal-line > span { transition-delay: .35s; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { position: absolute; z-index: 2; inset-inline-end: var(--pad); bottom: clamp(110px, 15vh, 150px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13px; color: var(--alu); }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 3px; background: rgba(255,255,255,.3); }
.hero__dots button.is-active { background: var(--accent-soft); }
.hero__tag { font-family: var(--display); direction: ltr; font-weight: 600; letter-spacing: .04em; color: var(--accent-soft); }

/* Ticker */
.ticker { background: var(--navy-2); color: var(--white); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; gap: 34px; align-items: center; font-size: clamp(16px, 1.8vw, 22px); font-weight: 600; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker__track i { width: 10px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes ticker { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* About */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.about__quote { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.5; margin-top: 26px; padding-inline-start: 22px; border-inline-start: 3px solid var(--accent); }
.about__text p + p { margin-top: 16px; }
.about__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { color: var(--ink); position: absolute; inset-inline-start: 18px; bottom: 18px; background: var(--surface); padding: 16px 20px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(4, 28, 60,.18); }
.about__badge b { display: block; font-size: 26px; line-height: 1.1; color: var(--accent-dark); }
.about__badge span { font-size: 13px; color: var(--muted); }
.stats { margin-top: clamp(56px, 8vw, 100px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 28px 24px; }
.stat b { display: inline-block; direction: ltr; unicode-bidi: isolate; font-size: clamp(34px, 4vw, 54px); line-height: 1; font-weight: 700; color: var(--ink); }
.stat b em { font-style: normal; color: var(--accent-dark); }
.stat p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Building types */
.types__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.types__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); color: var(--white); isolation: isolate; }
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.type::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(4, 28, 60,.92)); transition: background .5s; }
.type:hover img { transform: scale(1.07); }
.type:hover::before { background: linear-gradient(180deg, rgba(63, 167, 214,.15) 0%, rgba(4, 28, 60,.96)); }
.type__body { position: absolute; inset-inline: 22px; bottom: 22px; }
.type__num { font-family: var(--display); font-size: 13px; color: var(--alu); }
.type h3 { font-size: 22px; font-weight: 700; margin: 4px 0 6px; }
.type p { font-size: 14px; color: var(--alu); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s; }
.type:hover p, .type:focus-within p { max-height: 90px; opacity: 1; }

/* Systems: fins that open like a facade */
.systems__fins { display: flex; gap: 10px; height: clamp(420px, 60vh, 560px); margin-top: 48px; }
.fin { color: var(--white); position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radius); cursor: pointer; transition: flex .8s var(--ease); background: var(--navy-2); }
.fin.is-open { flex: 4.5; }
.fin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .6s, transform 1.2s var(--ease); }
.fin.is-open img { opacity: .9; }
.fin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 28, 60,.1), rgba(4, 28, 60,.94)); }
.fin__num { position: absolute; z-index: 1; top: 18px; inset-inline-start: 18px; font-family: var(--display); font-size: 13px; color: var(--alu); }
.fin__title { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font-size: 18px; font-weight: 700; transition: opacity .3s; }
.fin.is-open .fin__title { opacity: 0; }
.fin__body { position: absolute; z-index: 1; inset-inline: 26px; bottom: 26px; max-width: 460px; opacity: 0; transform: translateY(16px); transition: opacity .5s .25s, transform .5s .25s; }
.fin.is-open .fin__body { opacity: 1; transform: none; }
.fin__body h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; }
.fin__body small { font-family: var(--display); color: var(--blue-soft); font-size: 13px; font-weight: 600; direction: ltr; display: inline-block; }
.fin__body p { color: var(--alu); margin-top: 8px; font-size: 15px; }

/* Before / after */
.ba__wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); user-select: none; background: var(--navy); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
[dir="rtl"] .ba__before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.ba.is-demo .ba__before { filter: grayscale(1) contrast(.75) brightness(.8) sepia(.25); }
.ba__handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 2px; background: var(--white); transform: translateX(-50%); pointer-events: none; }
[dir="rtl"] .ba__handle { transform: translateX(50%); }
.ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ba__tag { position: absolute; top: 16px; padding: 6px 14px; font-size: 13px; font-weight: 600; background: rgba(4, 28, 60,.8); color: var(--white); border-radius: 40px; pointer-events: none; border: 1px solid var(--line-dark); backdrop-filter: blur(8px); }
.ba__tag--before { inset-inline-start: 16px; }
.ba__tag--after { inset-inline-end: 16px; background: var(--solid); color: var(--on-solid); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
[dir="rtl"] .ba input { direction: rtl; }

/* Projects (Architectural Portfolio) */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all .3s var(--ease); background: var(--surface); color: var(--ink); }
.filters button .filter-count { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--chip); color: var(--muted); font-family: var(--display); font-weight: 600; }
.filters button:hover, .filters button.is-active { background: var(--solid); border-color: var(--solid); color: var(--on-solid); box-shadow: 0 4px 16px rgba(4, 28, 60, 0.15); }
.filters button.is-active .filter-count { background: rgba(255, 255, 255, 0.2); color: inherit; }

.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project { cursor: pointer; border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.03); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.project:hover { transform: translateY(-6px); box-shadow: 0 16px 36px var(--shadow); border-color: var(--accent); }
.project.is-hidden { display: none; }

.project__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.08); }

/* Badges floating on image */
.project__badges { position: absolute; z-index: 2; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.project__status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: 30px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.project__status.is-done { background: rgba(16, 185, 129, 0.9); color: var(--white); }
.project__status.is-live { background: rgba(245, 158, 11, 0.92); color: var(--navy); }
.project__status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.project__status.is-live .project__status-dot { animation: statusPulse 1.8s infinite; }
@keyframes statusPulse { 0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); } 70% { transform: scale(1.3); opacity: .7; box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 100% { transform: scale(0.9); opacity: 1; } }

.project__sys-badge { padding: 5px 12px; font-size: 11.5px; font-weight: 600; border-radius: 30px; background: rgba(4, 28, 60, 0.75); color: var(--accent-soft); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hover curtain */
.project__curtain-hover { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 28, 60, 0.85) 100%); opacity: 0; transition: opacity .4s var(--ease); display: flex; align-items: flex-end; padding: 20px; }
.project:hover .project__curtain-hover { opacity: 1; }
.project__view-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--white); background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); padding: 8px 16px; border-radius: 30px; transform: translateY(10px); transition: transform .4s var(--ease); }
.project:hover .project__view-btn { transform: none; }
.project__view-btn svg { width: 14px; height: 14px; transition: transform .3s; }
[dir="rtl"] .project__view-btn svg { transform: rotate(180deg); }
.project:hover .project__view-btn svg { transform: translateX(3px); }
[dir="rtl"] .project:hover .project__view-btn svg { transform: rotate(180deg) translateX(3px); }

/* Card Content */
.project__content { padding: 20px 22px 24px; }
.project__meta-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.project__loc { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-dark); font-weight: 600; }
.project__loc svg { width: 14px; height: 14px; color: var(--accent); }
.project__partner { font-family: var(--display); }
.project__title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; color: var(--ink); }
.project__snippet { font-size: 14px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Reels */
.reels__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.reels__controls { display: flex; align-items: center; gap: 10px; }
.reels__more { font-size: 14px; color: var(--blue-soft); margin-inline-end: 8px; border-bottom: 1px solid currentColor; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-size: 18px; transition: background .3s, color .3s; }
.round:hover { background: var(--white); color: var(--navy); }
.reels__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 22vw, 290px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.reels__track::-webkit-scrollbar { display: none; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; scroll-snap-align: start; cursor: pointer; background: var(--navy-2); }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 28, 60,.92)); pointer-events: none; }
.reel h3 { position: absolute; z-index: 1; inset-inline: 16px; bottom: 16px; font-size: 15px; font-weight: 600; }
.reel__play { position: absolute; z-index: 1; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); display: grid; place-items: center; }
.reel__play::before { content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--white); margin-left: 3px; }

/* Process */
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.process__line { position: absolute; top: 27px; inset-inline: 0; height: 2px; background: var(--line); }
.process__line span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 2s var(--ease); }
.process.is-in .process__line span { width: 100%; }
.step { position: relative; }
.step__dot { position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); font-family: var(--display); font-weight: 600; font-size: 18px; border-radius: var(--radius); }
.step h4 { font-size: 19px; font-weight: 700; margin: 20px 0 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* Quote form */
.quote__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; margin-top: 36px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--blue-soft); margin-top: 3px; }
.contact-list small { display: block; font-size: 13px; color: var(--steel); }
.contact-list a:hover { color: var(--blue-soft); }
.form { background: var(--surface); color: var(--ink); padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form h3 { grid-column: 1 / -1; font-size: 22px; font-weight: 700; }
.form p.form__note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: -8px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-weight: 400; font-size: 15px; transition: border-color .3s, background .3s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.form .btn { grid-column: 1 / -1; }

/* Social icons */
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials__link { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--white); transition: background .3s, border-color .3s, transform .3s; }
.socials__link svg { width: 20px; height: 20px; }
.socials__link:hover { transform: translateY(-3px); border-color: transparent; }
.socials__link--facebook:hover { background: #1877f2; }
.socials__link--instagram:hover { background: linear-gradient(45deg, #f9a825, #e1306c, #833ab4); }
.socials__link--whatsapp:hover { background: #25d366; }
.socials__link--tiktok:hover { background: #000; }
.socials__link--pinterest:hover { background: #e60023; }
.socials__link--messenger:hover { background: #0084ff; }
.socials { flex-wrap: wrap; }
/* Partners row under the stats */
.partners { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.partners__label { font-size: 13px; font-weight: 600; color: var(--blue); }
.partners__name { font-family: var(--display); direction: ltr; font-weight: 600; font-size: 15px; color: var(--muted); }
.footer .socials { margin-top: 0; }
.contact-list__social { padding-inline-start: 36px; }
.contact-list .socials svg { width: 20px; height: 20px; margin: 0; color: inherit; }
.footer .socials__link { width: 40px; height: 40px; }

/* Footer */
.footer { background: #031529; color: var(--alu); padding: 34px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer .brand { color: var(--white); }
.footer { padding-inline-end: calc(var(--pad) + 76px); } /* room for the floating WhatsApp button */
@media (max-width: 600px) { .footer { padding-inline-end: var(--pad); padding-bottom: 96px; } }

/* Floating WhatsApp */
.wa { position: fixed; z-index: 40; bottom: 20px; inset-inline-end: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.3); transition: transform .3s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; }

/* Overlays, Architectural Case Study Modal & Reel Player */
.overlay { color: var(--white); position: fixed; inset: 0; z-index: 90; background: rgba(4, 28, 60, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); padding: 20px; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.overlay__close { position: absolute; top: 16px; inset-inline-end: 20px; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--white); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: grid; place-items: center; transition: background .3s, transform .3s; z-index: 5; }
.overlay__close:hover { background: var(--white); color: var(--navy); transform: scale(1.08); }

/* Architectural Case Study Modal */
.case-study { width: min(1080px, 94vw); max-height: 88vh; background: var(--navy); color: var(--white); border-radius: 14px; border: 1px solid var(--line-dark); display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; box-shadow: 0 25px 70px rgba(0,0,0,.7); }
.case-study__visual { position: relative; background: #000; overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.case-study__visual img { width: 100%; height: 100%; object-fit: cover; }
.case-study__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(4, 28, 60, 0.65); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); color: var(--white); display: grid; place-items: center; font-size: 16px; transition: background .3s, transform .3s; }
.case-study__nav:hover { background: var(--white); color: var(--navy); transform: translateY(-50%) scale(1.08); }
.case-study__prev { inset-inline-start: 16px; }
.case-study__next { inset-inline-end: 16px; }

.case-study__sheet { padding: clamp(22px, 3.5vw, 40px); overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); }
.case-study__badges { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.case-study__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 20px; }
.case-study__status.is-done { background: var(--status-done-bg); color: var(--status-done); border: 1px solid rgba(16, 185, 129, 0.3); }
.case-study__status.is-live { background: var(--status-live-bg); color: var(--status-live); border: 1px solid rgba(245, 158, 11, 0.3); }
.case-study__system { font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px; background: rgba(63, 167, 214, 0.15); color: var(--accent-soft); border: 1px solid rgba(63, 167, 214, 0.3); }

.case-study__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; color: var(--white); }
.case-study__subtitle { font-size: 13.5px; color: var(--steel); margin-top: 4px; }

.case-study__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.case-study__item { display: flex; flex-direction: column; gap: 3px; }
.case-study__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-soft); font-weight: 600; }
.case-study__val { font-size: 13.5px; font-weight: 600; color: var(--white); }

.case-study__scope-box { background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark); padding: 14px; border-radius: var(--radius-sm); }
.case-study__scope { font-size: 13px; color: var(--alu); line-height: 1.6; margin-top: 4px; }

.case-study__actions { padding-top: 4px; }
.case-study__whatsapp { width: 100%; min-height: 48px; background: #25d366; color: #fff; font-weight: 700; font-size: 14.5px; border-radius: var(--radius-sm); box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25); }
.case-study__whatsapp:hover { background: #1eb857; color: #fff; }
.case-study__whatsapp svg { width: 18px; height: 18px; }

.reel-modal video { height: min(88vh, 900px); max-width: 94vw; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }

/* Scroll reveal. Only hidden once main.js is ready to show it again, so a script error never leaves sections blank. */
.reveal-ready .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .types__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .ba__wrap, .quote__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process__line { display: none; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .case-study { grid-template-columns: 1fr; max-height: 88vh; }
  .case-study__visual { aspect-ratio: 16 / 10; min-height: 260px; }
  .hero__meta { display: none; }
  /* fins become a vertical stack on tablets and phones */
  .systems__fins { flex-direction: column; height: auto; }
  .fin { flex: none; height: 74px; transition: height .7s var(--ease); }
  .fin.is-open { flex: none; height: 380px; }
  .fin__title { left: auto; inset-inline-start: 64px; transform: translateY(-50%); }
  .fin__num { top: 50%; transform: translateY(-50%); }
  .fin.is-open .fin__num { top: 18px; transform: none; }
}
@media (max-width: 600px) {
  .types__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work__grid { grid-template-columns: 1fr; gap: 18px; }
  .project__sys-badge { display: none; }
  .case-study { width: 96vw; max-height: 92vh; }
  .case-study__grid { grid-template-columns: 1fr; gap: 10px; }
  .type { aspect-ratio: 3 / 4.4; }
  .type__body { inset-inline: 12px; bottom: 12px; }
  .type h3 { font-size: 16px; }
  .type p { display: none; }
  .project__title { font-size: 17px; }
  .project__snippet { font-size: 13px; }
  .form { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .hero__actions.reveal-line > span { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { padding: 0 12px; }
  .reels__track { grid-auto-columns: 66vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* WordPress admin bar: keep the fixed header below it */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Fallback pages (blog posts, 404) */
.page-simple { max-width: 860px; margin: 0 auto; padding: 150px var(--pad) 100px; min-height: 70vh; }
.page-simple h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; margin-bottom: 24px; }
.page-simple .entry { color: var(--muted); }
.page-simple .entry > * + * { margin-top: 16px; }
.page-simple article + article { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.page-simple h2 a:hover { color: var(--blue); }
body.page-plain .nav { background: var(--navy); }

/* ---- Header after scroll: follows the theme (paper glass by day, blueprint glass by night) ---- */
.nav.is-scrolled, body.page-plain .nav { background: var(--nav-bg); color: var(--nav-fg); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav.is-scrolled .brand small, body.page-plain .brand small { color: var(--accent-dark); }
.nav.is-scrolled .nav__lang, body.page-plain .nav__lang { border-color: var(--line); }
.brand__mark--color { display: none; }
.nav.is-scrolled .brand__mark--white, body.page-plain .nav .brand__mark--white { display: var(--mark-white); }
.nav.is-scrolled .brand__mark--color, body.page-plain .nav .brand__mark--color { display: var(--mark-color); }
.brand img { width: 42px; height: auto; }
.brand small { white-space: nowrap; }
@media (max-width: 420px) { .brand img { width: 34px; } .brand b { font-size: 19px; } .nav__end { gap: 8px; } }
.brand .brand__logo { width: auto; height: 48px; }
@media (max-width: 420px) { .brand .brand__logo { height: 38px; } }

/* ---- Theme switch: a sliding pill, sky by day and starfield by night ---- */
.theme-switch { position: relative; width: 70px; height: 36px; flex: none; border-radius: 40px; padding: 0; isolation: isolate; }
.theme-switch__track { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(160deg, #d9ecfb 0%, #8fc3ec 100%);
  box-shadow: inset 0 2px 6px rgba(4, 28, 60, .25), 0 6px 18px rgba(4, 28, 60, .18); transition: background .6s var(--ease), border-color .6s; }
.theme-switch__track::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background:
    radial-gradient(1.2px 1.2px at 14px 10px, #fff 99%, transparent),
    radial-gradient(1px 1px at 24px 22px, #fff 99%, transparent),
    radial-gradient(1.4px 1.4px at 8px 24px, #cfe6ff 99%, transparent),
    radial-gradient(1px 1px at 30px 8px, #fff 99%, transparent),
    radial-gradient(1px 1px at 19px 16px, #9fcff5 99%, transparent); }
.theme-switch__track::after { content: ""; position: absolute; inset-inline-end: 9px; top: 16px; width: 20px; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .92);
  box-shadow: 6px -4px 0 1px rgba(255, 255, 255, .92); transition: opacity .5s, transform .6s var(--ease); }
[dir="rtl"] .theme-switch__track::after { box-shadow: -6px -4px 0 1px rgba(255, 255, 255, .92); }
.theme-switch__knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #eef4fa 60%, #c9d6e3 100%); color: #e8a33a;
  box-shadow: 0 3px 10px rgba(4, 28, 60, .35), inset 0 -2px 3px rgba(4, 28, 60, .12);
  transition: transform .6s cubic-bezier(.65, -0.25, .3, 1.4), background .6s, color .6s, box-shadow .3s; }
.theme-switch__knob svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: opacity .4s, transform .6s var(--ease); }
.theme-switch .i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); fill: currentColor; stroke: none; }
.theme-switch:hover .theme-switch__knob { box-shadow: 0 3px 14px rgba(63, 167, 214, .6), inset 0 -2px 3px rgba(4, 28, 60, .12); }
.theme-switch:focus-visible { outline-offset: 4px; }

:root[data-theme="dark"] .theme-switch__track { background: linear-gradient(160deg, #0b1f3a 0%, #020b18 100%); border-color: rgba(142, 195, 240, .3); }
:root[data-theme="dark"] .theme-switch__track::before { opacity: 1; }
:root[data-theme="dark"] .theme-switch__track::after { opacity: 0; transform: translateY(8px); }
:root[data-theme="dark"] .theme-switch__knob { transform: translateX(34px); background: radial-gradient(circle at 35% 30%, #f4f1e6 0%, #d9d4c3 70%, #a9a597 100%); color: #3b4a5e; }
:root[data-theme="dark"][dir="rtl"] .theme-switch__knob { transform: translateX(-34px); }
:root[data-theme="dark"] .theme-switch .i-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .theme-switch .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch__track { background: linear-gradient(160deg, #0b1f3a 0%, #020b18 100%); border-color: rgba(142, 195, 240, .3); }
  :root:not([data-theme="light"]) .theme-switch__track::before { opacity: 1; }
  :root:not([data-theme="light"]) .theme-switch__track::after { opacity: 0; transform: translateY(8px); }
  :root:not([data-theme="light"]) .theme-switch__knob { transform: translateX(34px); background: radial-gradient(circle at 35% 30%, #f4f1e6 0%, #d9d4c3 70%, #a9a597 100%); color: #3b4a5e; }
  :root:not([data-theme="light"])[dir="rtl"] .theme-switch__knob { transform: translateX(-34px); }
  :root:not([data-theme="light"]) .theme-switch .i-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
  :root:not([data-theme="light"]) .theme-switch .i-moon { opacity: 1; transform: none; }
}
.menu__theme { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 16px; color: var(--alu); }

/* Circular reveal when the theme changes (browsers with View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---- Numbered section labels (01, 02, ...) and tracked English labels ---- */
main { counter-reset: sec; }
.label { counter-increment: sec; }
.label::after { content: counter(sec, decimal-leading-zero); font-family: var(--display); font-weight: 600; opacity: .5; margin-inline-start: 4px; direction: ltr; }
html[lang="en"] .label { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
html[lang="en"] .hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
html[lang="en"] h2, html[lang="en"] .hero__title { letter-spacing: -.025em; }

/* ---- Portfolio line-art buildings (colour follows the theme through a mask) ---- */
.has-lineart { position: relative; overflow: hidden; isolation: isolate; }
.has-lineart > :not(.lineart) { position: relative; z-index: 1; }
.lineart { position: absolute; z-index: 0; pointer-events: none; background: var(--lineart);
  -webkit-mask: var(--art) no-repeat bottom / contain; mask: var(--art) no-repeat bottom / contain; }
.dark .lineart { background: rgba(142, 195, 240, .22); }
.lineart--tower { --art: url("assets/img/lineart-tower.svg"); width: clamp(160px, 20vw, 300px); aspect-ratio: 320 / 570; }
.lineart--block { --art: url("assets/img/lineart-block.svg"); width: clamp(260px, 34vw, 520px); aspect-ratio: 620 / 400; }
.about .lineart { inset-inline-end: -30px; bottom: 0; opacity: .7; }
.process .lineart { inset-inline-end: var(--pad); bottom: 0; opacity: .6; }
@media (max-width: 1024px) { .about .lineart, .process .lineart { opacity: .25; } }

/* ---- Founder: circular portrait in an orbit of the company line, words set as a quote ---- */
.founder { margin-top: clamp(72px, 10vw, 130px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.founder__portrait { position: relative; margin: 0; width: clamp(240px, 27vw, 340px); aspect-ratio: 1; flex: none; }
.founder__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: founderOrbit 48s linear infinite; }
.founder__orbit text { direction: ltr; unicode-bidi: isolate; font-family: var(--display); font-size: 9.6px; font-weight: 500; fill: var(--accent-dark); }
@keyframes founderOrbit { to { transform: rotate(360deg); } }
.founder__photo { position: absolute; inset: 12.5%; border-radius: 50%; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 9px var(--paper), 0 0 0 10px var(--line); }
.founder__photo picture, .founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__mark { position: absolute; z-index: 1; inset-inline-end: 12%; bottom: 12%; width: 21%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--prim-a); box-shadow: 0 0 0 6px var(--paper); }
.founder__mark img { width: 54%; height: auto; }
.founder__body { min-width: 0; display: grid; gap: 14px; }
.founder__role { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
html[lang="ar"] .founder__role { letter-spacing: 0; text-transform: none; font-size: 15px; }
.founder__name { margin: 0; font-size: clamp(38px, 5.4vw, 76px); line-height: 1; color: var(--title); text-transform: none !important; }
[dir="rtl"] .founder__name { text-align: right; }
.founder__text { position: relative; margin: 10px 0 0; padding-top: 34px; max-width: 62ch; color: var(--ink); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.8; }
.founder__text::before { content: "\201C"; position: absolute; top: -18px; inset-inline-start: -4px; font-family: Georgia, "Times New Roman", serif; font-size: 84px; line-height: 1; color: var(--accent-dark); opacity: .35; }
[dir="rtl"] .founder__text::before { content: "\201D"; }
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .founder__body { justify-items: center; }
  [dir="rtl"] .founder__name { text-align: center; }
  .founder__text::before { inset-inline-start: 50%; transform: translateX(-50%); }
  [dir="rtl"] .founder__text::before { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) { .founder__orbit { animation: none; } }

/* ---- Project cards in the portfolio's voice: bold blue name, place underneath, spec chips ---- */
.project__content { display: grid; gap: 4px; }
.project__title { color: var(--title); font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.project__place { color: var(--title); opacity: .85; font-size: 15px; font-weight: 400; }
.project__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.project__chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 30px; background: var(--chip); color: var(--ink); }
.project__open { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.project__open span:last-child { font-family: var(--display); color: var(--title); transition: transform .3s var(--ease); }
[dir="rtl"] .project__open span:last-child { transform: scaleX(-1); }
.project:hover .project__open span:last-child { transform: translateX(4px); }
[dir="rtl"] .project:hover .project__open span:last-child { transform: scaleX(-1) translateX(4px); }

/* ---- Closing band (portfolio "Thank You" slide) ---- */
.closing { padding: clamp(90px, 12vw, 160px) var(--pad) clamp(40px, 5vw, 60px); display: grid; gap: clamp(36px, 5vw, 64px); }
.closing .lineart { inset-inline-start: 50%; transform: translateX(-50%); bottom: 0; width: clamp(150px, 16vw, 230px); opacity: .55; }
[dir="rtl"] .closing .lineart { transform: translateX(50%); }
.closing__kicker { text-align: center; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--muted); direction: ltr; }
.closing__title { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 10vw, 150px); line-height: 1; letter-spacing: -.04em; color: var(--title); text-align: center; text-wrap: balance; }
.closing .btn { justify-self: center; }

/* ---- Architectural finish: flat surfaces, sharp corners, no glow ---- */
.btn--primary { background: var(--prim-a); box-shadow: none; }
.btn--primary:hover { box-shadow: none; }
.btn { letter-spacing: .01em; }
html[lang="en"] .btn { font-weight: 600; }
.hero__title { font-weight: 700; }
.hero { padding-top: 110px; } /* keeps the headline clear of the fixed header on short screens */
.project { box-shadow: none; border-color: var(--line); }
.project:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--title); }
.project__status { border-radius: var(--radius-sm); box-shadow: none; font-size: 11px; letter-spacing: .04em; padding: 4px 9px; }
html[lang="en"] .project__status { text-transform: uppercase; }
.project__chip { border-radius: var(--radius-sm); }
.filters button { border-radius: var(--radius-sm); min-height: 40px; box-shadow: none !important; }
.filters button .filter-count { border-radius: var(--radius-sm); }
.reel { border-radius: var(--radius); }
.reel-modal video { border-radius: var(--radius); }
.case-study { border-radius: var(--radius); }
.about__badge { box-shadow: none; border: 1px solid var(--line); }
.step__dot { border-radius: var(--radius-sm); }
.reveal-ready .reveal { transform: translateY(18px); transition-duration: .7s; }
.reveal-ready .reveal.is-in { transform: none; }

/* Keyboard users can jump past the header */
.skip-link { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 200; padding: 10px 16px; background: var(--solid); color: var(--on-solid); font-weight: 600; border-radius: var(--radius-sm); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ==== A-class layer (v1.4): Jost + Cairo (as dezignzco.com), light headlines, quieter surfaces ==== */
html[lang="ar"] body { line-height: 1.9; }
h2, .hero__title, .menu__links a, .closing__title, .founder__name, .founder__role, .stat b, .project__title, .fin__body h3, .fin__title,
.type h3, .step h4, .case-study__title, .form h3, .about__badge b, .ticker__track, .nav__links a, .btn, .label, .hero__eyebrow, .hero__tag, .closing__kicker {
  font-family: var(--display);
}
/* Light, large headlines with a medium-weight accent */
.hero__title { font-weight: 300; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.05; letter-spacing: -.025em; }
.hero__title .accent { font-weight: 500; }
html[lang="ar"] .hero__title { line-height: 1.35; letter-spacing: 0; }
h2 { font-weight: 300; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -.02em; }
h2 span { font-weight: 500; }
html[lang="ar"] h2 { line-height: 1.45; letter-spacing: 0; }
.closing__title, .founder__name { font-weight: 300; letter-spacing: -.03em; }
.founder__name { font-weight: 300; }
.stat b { font-weight: 300; letter-spacing: -.02em; }
.fin__title, .type h3, .step h4, .project__title, .case-study__title, .form h3 { font-weight: 500; letter-spacing: -.005em; }
html[lang="en"] .fin__title { font-size: 17px; }
.ticker__track { font-weight: 400; }
html[lang="en"] .ticker__track { text-transform: uppercase; font-size: clamp(14px, 1.5vw, 19px); letter-spacing: .1em; }
.nav__links a { font-size: 14px; font-weight: 500; }
html[lang="en"] .nav__links a { text-transform: uppercase; font-size: 13px; letter-spacing: .1em; }
.about__quote { font-weight: 400; }
html[lang="en"] .hero__lead { font-weight: 300; } /* body copy stays 400: muted grey at 300 is too faint to read */

/* Buttons: flat, rectangular, tracked caps in English */
.btn { font-weight: 500; border-radius: 0; min-height: 54px; padding: 0 30px; }
html[lang="en"] .btn { text-transform: uppercase; font-size: 13px; letter-spacing: .14em; }
.btn--line { border: 1px solid currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: var(--solid); border-color: var(--solid); color: var(--on-solid); transform: translateY(-2px); }
.dark .btn--line:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Sections breathe more; hairlines instead of boxes */
.section { padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(90px, 12vw, 170px); }
.stats { background: var(--line); }
.project { border-radius: 0; }
.project__media { aspect-ratio: 16 / 11; }

/* Quotation form */
.form { border-radius: 0; }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field--file input { padding: 12px; min-height: 0; cursor: pointer; }
.field--file input::file-selector-button { font: inherit; font-weight: 600; margin-inline-end: 12px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.form__status { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; font-weight: 600; color: #c2410c; margin: 0; }
.form__status.is-ok { color: #047857; }
.form__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.form .btn { grid-column: auto; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) { .form__actions { grid-template-columns: 1fr; } }

/* Project window: gallery strip and the quote button in brand colour */
.case-study__visual { flex-direction: column; }
.case-study__visual > img { flex: 1; min-height: 0; }
.case-study__thumbs { position: absolute; z-index: 2; inset-inline: 16px; bottom: 16px; display: flex; gap: 8px; justify-content: center; }
.case-study__thumbs:empty { display: none; }
.case-study__thumbs button { width: 64px; height: 46px; padding: 0; border: 2px solid rgba(255, 255, 255, .5); opacity: .75; overflow: hidden; transition: opacity .3s, border-color .3s; }
.case-study__thumbs button.is-active, .case-study__thumbs button:hover { opacity: 1; border-color: var(--white); }
.case-study__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.case-study, .case-study__status, .case-study__system { border-radius: 0; }
.case-study__cta { width: 100%; }

/* ==== Client project tracking (/track) ==== */
.track { padding: 120px var(--pad) clamp(70px, 9vw, 120px); display: grid; gap: clamp(48px, 6vw, 80px); max-width: 1100px; margin: 0 auto; }
.track h1, .track h2, .track h3 { font-family: var(--display); }
.track-note { margin: 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.track-note--ok { border-color: var(--status-done); color: var(--status-done); background: var(--status-done-bg); }
.track-note--error { border-color: #c2410c; color: #c2410c; }

/* Code entry */
.track-entry { min-height: 52vh; display: grid; align-items: center; }
.track-entry__inner { display: grid; gap: 22px; max-width: 640px; }
.track-entry__inner .label { margin-bottom: 0; }
.track-entry__title { font-weight: 300; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: -.02em; color: var(--title); text-wrap: balance; }
html[lang="ar"] .track-entry__title { line-height: 1.4; letter-spacing: 0; }
.track-entry__title span { font-weight: 500; color: var(--ink); }
.track-entry__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.track-entry__field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.track-entry__field input { min-height: 54px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.track-entry__field input::placeholder { color: var(--muted); opacity: .6; letter-spacing: .08em; }
.track-entry__field input:focus { outline: none; border-color: var(--accent-dark); }
@media (max-width: 560px) { .track-entry__form { grid-template-columns: 1fr; } }

/* Project summary */
.track-head { display: grid; gap: 26px; }
.track-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.track-head__top > div:first-child { min-width: 0; flex: 1 1 320px; }
.track-head__code { font-family: var(--display); font-size: 13px; letter-spacing: .14em; color: var(--accent-dark); margin: 0 0 8px; text-align: start; }
.track-head__title { font-weight: 300; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.02em; color: var(--title); }
html[lang="ar"] .track-head__title { line-height: 1.4; letter-spacing: 0; }
.track-head__client { margin: 10px 0 0; font-weight: 600; }
.track-head__place { margin: 2px 0 0; color: var(--muted); }
.track-ring { --p: 0; width: 148px; aspect-ratio: 1; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--paper) 82%, transparent 83% 100%), conic-gradient(var(--status-done) calc(var(--p) * 1%), var(--line) 0); }
.track-ring b { font-family: var(--display); font-size: 36px; font-weight: 300; line-height: 1; color: var(--ink); }
.track-ring span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.track-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.track-facts > div { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.track-facts dt { font-size: 12.5px; color: var(--muted); }
.track-facts dd { margin: 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.track-facts dd small { display: block; font-weight: 400; font-size: 13px; color: var(--status-done); margin-top: 2px; }
.track-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px 28px; align-items: center; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.track-share b { display: block; font-size: 15px; }
.track-share p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.track-share__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.track-share__row input { min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 13.5px; }
.track-share__row .btn { min-height: 48px; padding: 0 18px; }
@media (max-width: 760px) { .track-share { grid-template-columns: 1fr; } .track-ring { width: 120px; } .track-ring b { font-size: 30px; } }

/* Stages */
.track-stages { display: grid; gap: 18px; }
.track-stages .label { margin-bottom: 0; }
.track-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.track-legend li { display: flex; align-items: center; gap: 8px; }
.track-legend i, .track-stage__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--line); background: var(--surface); }
.track-legend .is-done i, .track-stage.is-done .track-stage__dot { background: var(--status-done); border-color: var(--status-done); }
.track-legend .is-live i, .track-stage.is-live .track-stage__dot { background: var(--status-live); border-color: var(--status-live); box-shadow: 0 0 0 5px var(--status-live-bg); }
.track-list { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.track-list::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 6px; width: 2px; background: var(--line); }
.track-stage { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 20px; padding-bottom: 26px; scroll-margin-top: 110px; }
.track-stage__dot { margin-top: 6px; position: relative; z-index: 1; }
.track-stage__body { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 8px; }
.track-stage.is-live .track-stage__body { border-color: var(--status-live); }
.track-stage.is-pending .track-stage__body { background: transparent; }
.track-stage__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.track-stage__num { font-family: var(--display); font-size: 13px; color: var(--muted); }
.track-stage h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); flex: 1 1 200px; }
.track-stage__status { font-size: 12px; font-weight: 600; padding: 3px 10px; background: var(--chip); color: var(--muted); }
.track-stage.is-done .track-stage__status { background: var(--status-done-bg); color: var(--status-done); }
.track-stage.is-live .track-stage__status { background: var(--status-live-bg); color: var(--status-live); }
.track-stage__meta { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.track-stage__cost { color: var(--ink); font-weight: 600; }
.track-stage__note { margin: 0; color: var(--ink); font-size: 15px; max-width: 70ch; }
.track-stage__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.track-photo { width: 104px; height: 78px; padding: 0; overflow: hidden; border: 1px solid var(--line); }
.track-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.track-photo:hover img { transform: scale(1.06); }
.track-approve { margin-top: 6px; }
.track-approve .btn { min-height: 46px; }
.track-lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }

/* Contact */
.track-contact { display: grid; gap: 12px; padding: clamp(24px, 4vw, 40px); background: var(--navy); color: var(--white); }
.track-contact h2 { color: var(--white); font-size: clamp(24px, 3vw, 36px); }
.track-contact .lead { color: var(--alu); margin: 0; }
.track-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.track-contact .btn--line:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* ==== v1.5.3: type and hero actions measured from dezignzco.com ==== */
/* Light headlines; the accent word changes colour, not weight. */
.hero__title { font-weight: 300; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(38px, 5vw, 76px); }
.hero__title .accent { font-weight: 300; }
h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.15; }
h2 span { font-weight: 300; color: var(--accent-dark); }
.dark h2 span { color: var(--accent-soft); }
.hero__eyebrow { font-weight: 300; }
html[lang="en"] .hero__eyebrow { font-size: 12px; letter-spacing: .3em; }
html[lang="en"] .label { font-weight: 400; letter-spacing: .22em; }
html[lang="en"] .hero__lead { font-size: clamp(15px, 1.25vw, 18px); }

/* Four hero actions: one row on desktop, a 2 x 2 grid on phones. */
.hero__actions.reveal-line > span { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.hero .btn { min-height: 48px; padding: 0 26px; font-size: 12px; font-weight: 600; }
html[lang="en"] .hero .btn { letter-spacing: .2em; }
html[lang="ar"] .hero .btn { font-size: 14px; }
.hero .btn--ghost { background: rgba(4, 28, 60, .45); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
@media (max-width: 600px) {
  .hero__actions.reveal-line > span { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .btn { padding: 0 8px; min-height: 50px; }
  html[lang="en"] .hero .btn { font-size: 11px; letter-spacing: .08em; }
  html[lang="ar"] .hero .btn { font-size: 13px; }
}

/* Before & After: light section, wide slider, labels in the bottom corners. */
.ba-section { display: grid; gap: clamp(28px, 4vw, 44px); }
.ba__head { display: grid; gap: 14px; max-width: 760px; }
.ba__head .label { margin-bottom: 0; }
.ba__head .lead { margin: 0; }
.ba-section .ba { aspect-ratio: 16 / 9; border-radius: 0; background: var(--surface); }
.ba__handle::after { content: "\25C2\25B8"; width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 13px; letter-spacing: 1px; color: var(--accent-dark); box-shadow: 0 6px 22px rgba(4, 28, 60, .28); }
.ba__tag { top: auto; bottom: 18px; padding: 8px 16px; border: 0; border-radius: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 11px; font-weight: 500; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[lang="en"] .ba__tag { letter-spacing: .18em; text-transform: uppercase; }
html[lang="ar"] .ba__tag { font-size: 13px; }
.ba__tag--before { inset-inline-start: 18px; }
.ba__tag--after { inset-inline-end: 18px; background: rgba(255, 255, 255, .92); color: var(--navy); }
/* Thin brand-teal corner marks, like a drawing frame */
.ba__corner { position: absolute; z-index: 2; top: 18px; width: 34px; height: 34px; pointer-events: none; border-top: 1px solid var(--accent-soft); }
.ba__corner--start { inset-inline-start: 18px; border-inline-start: 1px solid var(--accent-soft); }
.ba__corner--end { inset-inline-end: 18px; border-inline-end: 1px solid var(--accent-soft); }
@media (max-width: 600px) { .ba-section .ba { aspect-ratio: 4 / 5; } .ba__tag { bottom: 12px; } .ba__tag--before { inset-inline-start: 12px; } .ba__tag--after { inset-inline-end: 12px; } }

.socials__link--linkedin:hover { background: #0a66c2; }

/* ==== v1.5.4: one step heavier everywhere (owner's request: "bold شوية") ==== */
/* English: Jost 300 -> 400 on headlines, 500 on the accent word. Arabic: Cairo is lighter on screen, so it goes up to 600. */
.hero__title, h2, .closing__title, .founder__name, .stat b, .track-head__title, .track-entry__title, .track-ring b { font-weight: 400; }
.hero__title .accent, h2 span { font-weight: 500; }
html[lang="ar"] .hero__title, html[lang="ar"] h2, html[lang="ar"] .closing__title, html[lang="ar"] .track-head__title, html[lang="ar"] .track-entry__title { font-weight: 600; }
html[lang="ar"] .hero__title .accent, html[lang="ar"] h2 span { font-weight: 700; }
.hero__eyebrow, .label { font-weight: 500; }
html[lang="en"] .hero__lead { font-weight: 400; }
html[lang="ar"] body { font-weight: 500; }
html[lang="ar"] .lead, html[lang="ar"] .hero__lead { font-weight: 500; }
.fin__title, .type h3, .step h4, .project__title, .case-study__title, .form h3, .track-stage h3 { font-weight: 600; }
.nav__links a { font-weight: 600; }
.ba__caption { margin: -10px 0 0; font-size: 14px; color: var(--muted); }

/* ==== v1.5.5: mobile menu — numbered list with hairlines, quote button and contact at the foot ==== */
.menu { justify-content: flex-start; gap: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(100px + env(safe-area-inset-top, 0px)) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  background-color: var(--navy);
  background-image: linear-gradient(rgba(142, 195, 240, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 195, 240, .05) 1px, transparent 1px);
  background-size: 48px 48px; }
body.menu-open { overflow: hidden; }
.menu__eyebrow { margin: 0 0 14px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-soft); }
html[lang="ar"] .menu__eyebrow { letter-spacing: 0; font-size: 14px; }
.menu__links { display: grid; border-top: 1px solid rgba(255, 255, 255, .12); }
.menu__links a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .12); font-family: var(--display); font-size: clamp(22px, 6.2vw, 30px); font-weight: 400; line-height: 1.25; letter-spacing: -.01em; color: var(--white);
  opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease), color .3s; transition-delay: calc(.15s + var(--i, 0) * .05s); }
html[lang="ar"] .menu__links a { font-weight: 600; letter-spacing: 0; }
body.menu-open .menu__links a { opacity: 1; transform: none; }
.menu__num { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.menu__arrow { font-size: 18px; color: var(--accent-soft); transition: transform .35s var(--ease); }
[dir="rtl"] .menu__arrow { transform: scaleX(-1); }
.menu__links a:hover .menu__label, .menu__links a:focus-visible .menu__label { color: var(--accent-soft); }
.menu__links a:hover .menu__arrow { transform: translateX(4px); }
[dir="rtl"] .menu__links a:hover .menu__arrow { transform: scaleX(-1) translateX(4px); }
.menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 18px;
  opacity: 0; transform: translateY(14px); transition: opacity .45s ease .5s, transform .6s var(--ease) .5s; }
body.menu-open .menu__foot { opacity: 1; transform: none; }
.menu .menu__cta { width: 100%; min-height: 52px; }
.menu__contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.menu__phone { font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: .04em; color: var(--white); }
.menu .menu__small { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent-soft); border-bottom: 1px solid currentColor; }
.menu .socials { margin-top: 0; }
.menu .socials__link { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) { .menu__links a, .menu__foot { opacity: 1; transform: none; transition: none; } }

/* Credit line under the copyright: the footer wraps, so it takes a full row of its own. */
.footer__credit { flex-basis: 100%; margin: 0; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--steel); letter-spacing: .02em; }

/* ==== v1.5.7: top bar never wraps (burger below 1280px); slide caption sits under the buttons; square Before & After ==== */
.nav__links a, .nav__cta { white-space: nowrap; }
@media (max-width: 1280px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
.hero__meta { bottom: clamp(36px, 6vh, 56px); }
.ba-section .ba { aspect-ratio: 1 / 1; width: 100%; max-width: 860px; margin-inline: auto; }
.ba__caption { text-align: center; }
@media (max-width: 600px) { .ba-section .ba { aspect-ratio: 4 / 5; } }
.footer__credit a { color: inherit; border-bottom: 1px solid currentColor; transition: color .3s; }
.footer__credit a:hover { color: var(--white); }

/* ---- Indexable pages: systems, projects (seo-page.php) ---- */
.seo { max-width: 1100px; margin: 0 auto; padding: 120px var(--pad) clamp(70px, 9vw, 120px); display: grid; gap: clamp(36px, 5vw, 64px); }
.seo > * { min-width: 0; }
.seo h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 5vw, 60px); line-height: 1.12; letter-spacing: -.02em; color: var(--title); text-wrap: balance; }
html[lang="ar"] .seo h1 { line-height: 1.4; letter-spacing: 0; font-weight: 500; }
.seo h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.seo-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: -16px; }
.seo-crumbs a:hover { color: var(--title); }
.seo-head { display: grid; gap: 18px; justify-items: start; }
.seo-lead { max-width: 70ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.seo-place { font-size: 18px; color: var(--title); }
.seo-hero { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }
.seo-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(28px, 5vw, 64px); }
.seo-blocks p, .seo-steps li { color: var(--muted); }
.seo-steps ol { padding-inline-start: 20px; display: grid; gap: 10px; max-width: 75ch; }
.seo-steps b { color: var(--ink); }
.seo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.seo-card { display: grid; gap: 4px; }
.seo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.seo-card__name { font-weight: 600; color: var(--title); line-height: 1.3; }
.seo-card:hover .seo-card__name { text-decoration: underline; }
.seo-card__place { font-size: 14px; color: var(--muted); }
.seo-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seo-links h2 { flex-basis: 100%; }
.seo-links a, .seo-inline a { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; transition: border-color .3s, color .3s; }
.seo-links a:hover, .seo-inline a:hover { border-color: var(--title); color: var(--title); }
.seo-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.seo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seo-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.seo-gallery img:first-child:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.seo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.seo-facts div { background: var(--surface); padding: 16px 18px; }
.seo-facts dt { font-size: 12px; color: var(--muted); }
.seo-facts dd { margin: 2px 0 0; font-weight: 600; }
.seo-cta { justify-self: start; }
.work__all { margin-top: 32px; }
.fin__more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: #fff; border-bottom: 1px solid currentColor; }
.case-study__page { font-size: 13.5px; font-weight: 600; text-decoration: underline; }
@media (max-width: 760px) { .seo-blocks, .seo-gallery { grid-template-columns: 1fr; } .seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
