/* =========================================================
   Skillco — Legendary Landing
   Brand: Yellow · Teal · Black · Geometric squares
   ========================================================= */

:root {
  --yellow: #FFE500;
  --yellow-deep: #F5D800;
  --teal: #00B5AE;
  --teal-dark: #009690;
  --teal-soft: #E6F8F7;
  --black: #0A0A0A;
  --ink: #121212;
  --gray-900: #1A1A1A;
  --gray-800: #2A2A2A;
  --gray-700: #3D3D3D;
  --gray-500: #6B6B6B;
  --gray-400: #9A9A9A;
  --gray-200: #E8E8E8;
  --gray-100: #F4F4F4;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.14);
  --shadow-yellow: 0 16px 48px rgba(255, 229, 0, 0.35);
  --radius: 16px;
  --radius-lg: 28px;
  --nav-h: 80px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================== ARABIC / RTL ===================== */
[dir="rtl"] body {
  font-family: var(--font-ar);
}

/* Letter-spacing is a Latin-script convention; it breaks Arabic letter joining, so strip it everywhere in RTL mode */
[dir="rtl"] * {
  letter-spacing: normal !important;
}

/* Phone numbers, emails and figures must stay LTR even inside Arabic paragraphs */
.numeral,
[dir="rtl"] .office-body a,
[dir="rtl"] .quick-contact a[href^="tel"],
[dir="rtl"] .quick-contact a[href^="mailto"] {
  direction: ltr;
  unicode-bidi: isolate;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--black);
  overflow-wrap: break-word;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

/* Arrow icons point right for LTR reading; mirror them for Arabic */
[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover svg {
  transform: scaleX(-1) translateX(4px);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: var(--shadow-yellow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(255, 229, 0, 0.45);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: var(--gray-800);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-ghost {
  border: 2px solid var(--gray-200);
  color: var(--black);
}

.btn-ghost:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 10;
}

.logo img {
  height: 46px;
  width: auto;
  max-width: 42vw;
  object-fit: contain;
  object-position: left center;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  border-inline-start: 4px solid var(--yellow);
  padding-inline-start: 12px;
}

.logo-fallback strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-fallback span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.logo-fallback .ar {
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 12px 22px;
  font-size: 0.88rem;
}

.lang-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gray-700);
  overflow: hidden;
  transition: all 0.25s;
}

.lang-toggle .lang-flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lang-toggle:hover {
  border-color: var(--teal);
  transform: scale(1.06);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 229, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0, 181, 174, 0.1), transparent 50%),
    linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-square {
  position: absolute;
  border-radius: 4px;
  opacity: 0.9;
  animation: float 8s ease-in-out infinite;
}

.geo-square.s1 { width: 56px; height: 56px; background: var(--black); top: 18%; left: 6%; transform: rotate(18deg); animation-delay: 0s; }
.geo-square.s2 { width: 72px; height: 72px; background: var(--yellow); top: 28%; left: 14%; transform: rotate(-12deg); animation-delay: 0.5s; }
.geo-square.s3 { width: 28px; height: 28px; background: var(--teal); top: 42%; left: 8%; transform: rotate(8deg); animation-delay: 1s; }
.geo-square.s4 { width: 40px; height: 40px; background: var(--gray-700); bottom: 22%; left: 12%; transform: rotate(-20deg); animation-delay: 1.5s; }
.geo-square.s5 { width: 22px; height: 22px; background: var(--yellow); top: 55%; left: 20%; animation-delay: 0.8s; }
.geo-square.s6 { width: 48px; height: 48px; background: var(--black); top: 12%; right: 28%; transform: rotate(25deg); animation-delay: 1.2s; }
.geo-square.s7 { width: 32px; height: 32px; background: var(--teal); top: 22%; right: 18%; transform: rotate(-15deg); animation-delay: 0.3s; }
.geo-square.s8 { width: 20px; height: 20px; background: var(--yellow); bottom: 30%; right: 12%; animation-delay: 2s; }
.geo-square.s9 { width: 36px; height: 36px; background: var(--gray-500); bottom: 18%; right: 22%; transform: rotate(12deg); animation-delay: 1.7s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 4deg)); }
}

.hero-mark {
  position: absolute;
  inset-inline-end: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 620px);
  aspect-ratio: 1;
  pointer-events: none;
}

.hero-mark .tri-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 0, 0, 0.06);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: scale(1.15);
}

.hero-mark .tri-ring:nth-child(2) {
  transform: scale(0.95);
  border-color: rgba(0, 0, 0, 0.04);
}

.hero-mark .yellow-block {
  position: absolute;
  inset: 12%;
  background: var(--yellow);
  box-shadow: var(--shadow-yellow);
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 100%, 0% 100%,
    0% 0%,
    18% 18%, 18% 82%, 82% 82%, 50% 32%, 18% 82%, 18% 18%
  );
  /* simpler approach: square with triangle cutout via SVG mask */
  clip-path: none;
  border-radius: 8px;
}

.hero-mark .yellow-block::after {
  content: "";
  position: absolute;
  inset: 14%;
  background: #FAFAFA;
  clip-path: polygon(50% 12%, 12% 88%, 88% 88%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  padding-inline: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.hero-badge i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  font-style: normal;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 24px;
  color: var(--black);
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.28em;
  background: var(--yellow);
  z-index: -1;
  border-radius: 2px;
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 480px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.hero-stats strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
}

.hero-stats strong span {
  color: var(--teal);
}

.hero-stats small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  background: var(--gray-900);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
}

.hero-card-overlay .tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 12px;
}

.hero-card-overlay h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-card-overlay p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-float {
  position: absolute;
  background: var(--white);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.hero-float.f1 {
  bottom: 12%;
  inset-inline-start: -12%;
  animation-delay: 0.5s;
}

.hero-float.f2 {
  top: 10%;
  inset-inline-end: -8%;
  animation-delay: 1.2s;
}

.hero-float .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-float.f2 .icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.hero-float strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-float span {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  z-index: 3;
}

.scroll-hint .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gray-300, #ccc);
  border-radius: 12px;
  position: relative;
}

.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--teal);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ===================== MARQUEE / TICKER ===================== */
.ticker {
  background: var(--black);
  color: var(--white);
  padding: 18px 0;
  overflow: hidden;
  border-bottom: 4px solid var(--yellow);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.9;
}

.ticker-track .dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== VISION STRIP ===================== */
.vision-strip {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vision-card {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--teal));
}

.vision-card .portrait {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.vision-card .name {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.vision-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.vision-card p mark {
  background: var(--yellow);
  color: var(--black);
  padding: 0 4px;
  border-radius: 2px;
}

.vision-banner {
  margin-top: 40px;
  background: var(--gray-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 36px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.vision-banner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 0, 0.15));
}

/* ===================== ABOUT ===================== */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual .main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-visual .main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual .side-img {
  position: absolute;
  bottom: -32px;
  inset-inline-end: -32px;
  width: 48%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.about-visual .side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 28px;
  inset-inline-start: -20px;
  background: var(--yellow);
  color: var(--black);
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-yellow);
  text-align: center;
  min-width: 110px;
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content .eyebrow {
  margin-bottom: 16px;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 40px;
}

.about-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-point .num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.about-point p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.65;
}

.about-point p strong {
  color: var(--black);
}

.units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.unit {
  padding: 14px 16px;
  background: var(--gray-100);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-800);
  border-inline-start: 3px solid var(--teal);
  transition: background 0.25s, transform 0.25s;
}

.unit:hover {
  background: var(--teal-soft);
  transform: translateX(4px);
}

[dir="rtl"] .unit:hover {
  transform: translateX(-4px);
}

/* ===================== PRINCIPLES ===================== */
.principles {
  padding: 120px 0;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.principles::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 20%;
  width: 420px;
  height: 420px;
  background: var(--yellow);
  opacity: 0.35;
  border-radius: 24px;
  transform: rotate(12deg);
}

.principles .section-head {
  position: relative;
  z-index: 1;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.principle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.principle-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gray-900);
  border: 3px solid var(--yellow);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.5rem;
}

.principle-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

.principle-card p {
  color: var(--gray-500);
  line-height: 1.7;
}

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.value-card {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease);
}

.value-card:nth-child(2) {
  background: var(--white);
  border: 2px solid var(--gray-200);
}

.value-card:nth-child(3) {
  background: var(--teal);
  color: var(--white);
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.value-card:nth-child(3) .value-icon {
  background: rgba(255, 255, 255, 0.18);
}

.value-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.85;
}

.value-card:nth-child(2) p {
  color: var(--gray-500);
  opacity: 1;
}

/* ===================== SERVICES ===================== */
.services {
  padding: 120px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  overflow: hidden;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.service-card:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-8px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover .service-num,
.service-card:hover p {
  color: rgba(255, 255, 255, 0.65);
}

.service-card:hover .service-icon {
  background: var(--yellow);
  color: var(--black);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-top: auto;
}

/* ===================== PROJECTS ===================== */
.projects {
  padding: 120px 0;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.projects .section-title {
  color: var(--white);
}

.projects .section-lead {
  color: rgba(255, 255, 255, 0.55);
}

.projects .eyebrow {
  color: var(--yellow);
}

.projects .eyebrow::before {
  background: var(--teal);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: var(--gray-900);
  group: project;
}

.project-card.wide {
  grid-column: span 7;
}

.project-card.narrow {
  grid-column: span 5;
}

.project-card.full {
  grid-column: span 4;
  min-height: 300px;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  opacity: 0.75;
}

.project-card:hover img {
  transform: scale(1.08);
  opacity: 0.55;
}

.project-card .content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.chip.yellow {
  background: var(--yellow);
  color: var(--black);
  border-color: transparent;
}

.chip.teal {
  background: var(--teal);
  color: var(--white);
  border-color: transparent;
}

.project-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-card .scope {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 16px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.project-footer .value {
  font-weight: 800;
  color: var(--yellow);
  font-size: 1.05rem;
}

.project-footer .client {
  opacity: 0.7;
}

/* Cost and partner names are withheld from the public site */
.project-footer,
.project-card .value,
.project-card .client {
  display: none;
}

/* ===================== GALLERY ===================== */
.gallery {
  padding: 120px 0;
  background: var(--white);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.gallery-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s var(--ease);
}

.gallery-item:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== STATS / TEAM ===================== */
.team {
  padding: 120px 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0D2524 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.team::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 0, 0.06));
}

.team .section-title { color: var(--white); }
.team .section-lead { color: rgba(255, 255, 255, 0.55); }
.team .eyebrow { color: var(--yellow); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.team-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s;
}

.team-stat:hover {
  background: rgba(255, 229, 0, 0.08);
  border-color: rgba(255, 229, 0, 0.25);
}

.team-stat .ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) 0deg, var(--teal) 180deg, rgba(255,255,255,0.1) 180deg);
  margin-bottom: 16px;
  position: relative;
}

.team-stat .ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #121212;
  border-radius: 50%;
}

.team-stat .ring span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--yellow);
}

.team-stat h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team-photos img {
  border-radius: 18px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-photos img:first-child {
  grid-column: span 2;
  height: 260px;
}

/* ===================== QUALITY ===================== */
.quality {
  padding: 120px 0;
  background: var(--white);
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quality-content .eyebrow { margin-bottom: 16px; }
.quality-content h2 { margin-bottom: 20px; }
.quality-content > p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.quality-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quality-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: 16px;
  transition: background 0.3s;
}

.quality-item:hover {
  background: var(--teal-soft);
}

.quality-item .qi {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quality-item h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.quality-item p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.iso-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iso-card {
  background: linear-gradient(145deg, #FAFAFA, #F0F0F0);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.iso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.iso-seal {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid;
  display: grid;
  place-items: center;
  font-weight: 800;
  line-height: 1.15;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
}

.iso-seal.qms {
  border-color: #1a56a8;
  color: #1a56a8;
  background: radial-gradient(circle, #fff 55%, #e8f0fb);
}

.iso-seal.ems {
  border-color: #2d8a3e;
  color: #2d8a3e;
  background: radial-gradient(circle, #fff 55%, #e8f5ea);
}

.iso-seal strong {
  display: block;
  font-size: 1.1rem;
}

.iso-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.iso-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

.hse-banner {
  margin-top: 48px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.hse-banner .icon-big {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--yellow);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
}

.hse-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hse-banner p {
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hse-banner .badge {
  padding: 12px 20px;
  background: rgba(0, 181, 174, 0.15);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ===================== CLIENTS ===================== */
.clients {
  padding: 100px 0;
  background: var(--gray-100);
  overflow: hidden;
}

.clients .section-head {
  margin-bottom: 48px;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.clients .section-lead {
  text-align: center;
}

.client-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 24px;
}

.client-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.client-track.reverse {
  animation-direction: reverse;
  animation-duration: 55s;
}

.client-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 80px;
  padding: 0 28px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gray-700);
  letter-spacing: -0.02em;
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s, transform 0.3s;
}

.client-pill:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  color: var(--black);
}

/* ===================== CONTACT ===================== */
.contact {
  padding: 120px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-info .eyebrow { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.office-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.office-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.office-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.office-body {
  padding: 20px 20px 20px 0;
}

.office-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-body h3::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
}

.office-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 10px;
}

.office-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
  margin-inline-end: 16px;
}

.office-body a:hover {
  color: var(--teal);
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.3s, transform 0.3s;
}

.quick-contact a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.quick-contact a.alt {
  background: var(--yellow);
  color: var(--black);
}

.contact-form-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 160px;
  height: 160px;
  background: var(--yellow);
  opacity: 0.4;
  border-radius: 20px;
  transform: rotate(18deg);
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}

.contact-form-wrap > p {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 28px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 181, 174, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-wrap .btn {
  width: 100%;
  margin-top: 8px;
  position: relative;
}

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  position: relative;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 229, 0, 0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 181, 174, 0.06), transparent 40%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-brand .logo-fallback {
  border-left-color: var(--yellow);
  margin-bottom: 20px;
}

.footer-brand .logo-fallback strong,
.footer-brand .logo-fallback .ar {
  color: var(--white);
}

.footer-brand .logo-fallback span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer-brand > img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  /* source file is a black wordmark on transparent bg; invert it to white for the dark footer */
  filter: brightness(0) invert(1);
}

[dir="rtl"] .footer-brand > img {
  object-position: right center;
}

.footer-brand .logo-fallback {
  margin-bottom: 16px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
}

.socials a:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.footer h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s, padding-inline-start 0.25s;
}

.footer-links a:hover {
  color: var(--white);
  padding-inline-start: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  position: relative;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  padding: 40px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================== MOBILE NAV ===================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 24px) 40px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.mobile-nav.open {
  transform: translateX(0);
}

[dir="rtl"] .mobile-nav {
  transform: translateX(-100%);
}

[dir="rtl"] .mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--black);
}

.mobile-nav .btn {
  margin-top: 32px;
  width: 100%;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .team-grid,
  .quality-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-float.f1 { inset-inline-start: 0; }
  .hero-float.f2 { inset-inline-end: 0; }

  .hero-mark { opacity: 0.4; }

  .project-card.wide,
  .project-card.narrow,
  .project-card.full {
    grid-column: span 6;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .about-visual .side-img {
    inset-inline-end: 16px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* keep the lang toggle and menu button grouped together at the end instead of
     floating mid-way (nav-links is gone, so space-between would center nav-cta) */
  .nav-cta {
    margin-inline-start: auto;
  }

  .services-grid,
  .values-row {
    grid-template-columns: 1fr;
  }

  .principles-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .project-card.wide,
  .project-card.narrow,
  .project-card.full {
    grid-column: span 12;
    min-height: 280px;
  }

  .hse-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-stats strong {
    font-size: 1.4rem;
  }

  /* Decorative floating squares are tuned for wide desktop hero space;
     on narrower screens the text column fills the section and they end up sitting on top of copy */
  .hero-geo {
    display: none;
  }

  .principles::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding-top: calc(var(--nav-h) + 24px);
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 10px;
    border-top: none;
    padding-top: 0;
  }

  .hero-stats > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-100);
    border-radius: 14px;
    border-inline-start: 3px solid var(--yellow);
  }

  .hero-stats strong {
    font-size: 1.3rem;
  }

  .hero-stats small {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .office-card {
    grid-template-columns: 1fr;
  }

  .office-card img {
    height: 140px;
  }

  .office-body {
    padding: 16px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .team-stats {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .units {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .about,
  .principles,
  .services,
  .projects,
  .gallery,
  .team,
  .quality,
  .contact {
    padding: 80px 0;
  }

  .nav-inner {
    gap: 12px;
  }

  .logo img {
    height: 38px;
  }

  .nav-cta {
    gap: 8px;
  }

  .lang-toggle {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
  }

  .lang-toggle .lang-flag {
    width: 26px;
    height: 26px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-nav {
    padding: 100px 28px 40px;
  }

  .mobile-nav a {
    font-size: 1.5rem;
    padding: 10px 0;
  }

  .hero-badge {
    font-size: 0.74rem;
    text-align: start;
  }

  .hero-float {
    padding: 12px 14px;
    gap: 10px;
  }

  .hero-float strong {
    font-size: 0.84rem;
  }

  .hero-float .icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero-mark {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  .about-visual {
    margin-inline: 6px;
  }

  .about-visual .side-img {
    inset-inline-end: 0;
    width: 52%;
    border-width: 4px;
  }

  .about-badge {
    inset-inline-start: 0;
    top: 16px;
    padding: 14px 16px;
    min-width: 88px;
  }

  .about-badge strong {
    font-size: 1.5rem;
  }

  .hse-banner {
    padding: 32px 24px;
  }

  .iso-seal {
    width: 96px;
    height: 96px;
    font-size: 0.72rem;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .office-body a {
    display: inline-flex;
    margin-bottom: 6px;
  }

  .client-pill {
    min-width: 150px;
    height: 64px;
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats strong {
    font-size: 1.5rem;
  }

  .about-badge {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   Multi-page layout — AlBawani-inspired structure
   Sparse homepage, dedicated inner pages, editorial spacing
   ========================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav over dark photography ---------- */
.nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

.nav:not(.scrolled) .nav-links a:hover,
.nav:not(.scrolled) .nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
}

.nav:not(.scrolled) .logo-fallback strong,
.nav:not(.scrolled) .logo-fallback .ar {
  color: var(--white);
}

.nav:not(.scrolled) .logo-fallback {
  border-inline-start-color: var(--yellow);
}

.nav:not(.scrolled) .lang-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

.nav:not(.scrolled) .menu-toggle {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.28);
}

.nav:not(.scrolled) .menu-toggle span {
  background: var(--white);
}

.nav.scrolled {
  background: var(--glass);
}

/* When the mobile menu is open, keep the bar readable on white */
.nav.menu-open {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav.menu-open .nav-links a,
.nav.menu-open .logo-fallback strong,
.nav.menu-open .logo-fallback .ar {
  color: var(--black);
}

.nav.menu-open .logo img {
  filter: none;
}

.nav.menu-open .lang-toggle,
.nav.menu-open .menu-toggle {
  border-color: var(--gray-200);
}

.nav.menu-open .menu-toggle span {
  background: var(--black);
}

/* ---------- Cinematic homepage hero ---------- */
.cine-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.cine-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.cine-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.72) 100%);
}

.cine-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  width: min(100%, 1100px);
}

.cine-brand {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--yellow);
}

.cine-rotator {
  position: relative;
  min-height: calc(clamp(2.6rem, 7vw, 5.8rem) * 2.35);
}

.cine-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--white);
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(calc(-50% + 16px));
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}

.cine-line.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

[dir="rtl"] .cine-line {
  font-family: var(--font-ar);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.cine-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cine-scroll .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
}

.cine-scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

/* ---------- Intro (company statement + two stats) ---------- */
.intro {
  padding: 120px 0 100px;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 80px;
  align-items: end;
}

.intro-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.intro h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--black);
  max-width: 28ch;
}

.intro-copy {
  font-size: 1.08rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 62ch;
}

.intro-stats {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 8px;
}

.intro-stat strong {
  display: flex;
  align-items: flex-start;
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--black);
}

.intro-stat .plus {
  font-size: 0.45em;
  color: var(--teal);
  margin-inline-start: 4px;
  line-height: 1;
  padding-top: 0.18em;
}

.intro-stat small {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500);
}

/* ---------- Distinct areas of focus ---------- */
.focus {
  padding: 40px 0 120px;
  background: var(--white);
}

.focus .section-head {
  margin-bottom: 64px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.focus-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--black);
}

.focus-card p {
  font-size: 0.98rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ---------- Landmark projects (photo, category, title only) ---------- */
.landmarks {
  padding: 100px 0 110px;
  background: var(--gray-100);
}

.landmarks .section-head {
  align-items: flex-end;
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
}

.view-more:hover {
  color: var(--teal-dark);
}

.land-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.land-card {
  position: relative;
  display: block;
  min-height: 400px;
  overflow: hidden;
  background: var(--gray-900);
  color: var(--white);
}

.land-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.land-card:hover img {
  transform: scale(1.06);
}

.land-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.78) 100%);
}

.land-card .body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.land-card .cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.land-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.land-card .scope {
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

/* ---------- Closing CTA ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--white);
}

[dir="rtl"] .cta-band h2 {
  font-family: var(--font-ar);
  font-style: normal;
  font-weight: 700;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 72px) 0 64px;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--yellow);
  margin-bottom: 14px;
}

.page-hero .eyebrow::before {
  background: var(--yellow);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
}

/* ---------- About: editorial prose ---------- */
.page-tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
}

.page-tabs-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
}

.page-tabs a {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-500);
  border-radius: 999px;
}

.page-tabs a:hover,
.page-tabs a.active {
  color: var(--black);
  background: var(--gray-100);
}

.prose-section {
  padding: 100px 0;
  background: var(--white);
}

.prose-section + .prose-section {
  padding-top: 0;
}

.prose-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.prose-grid h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose-copy p {
  font-size: 1.08rem;
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 62ch;
}

.unit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mission-card {
  padding: 40px 36px;
  background: var(--gray-100);
  border-top: 4px solid var(--yellow);
}

.mission-card.alt {
  border-top-color: var(--teal);
}

.mission-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--black);
}

.mission-card p {
  color: var(--gray-500);
  line-height: 1.75;
  font-size: 1.02rem;
}

.values-editorial {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 820px;
}

.value-ed h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.value-ed h3 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--teal-dark);
}

[dir="rtl"] .value-ed h3 em {
  font-family: var(--font-ar);
  font-style: normal;
  font-weight: 800;
}

.value-ed p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.value-ed .idx {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gray-400);
  margin-bottom: 10px;
}

/* ---------- Services / capabilities ---------- */
.capabilities {
  padding: 40px 0 80px;
  background: var(--white);
}

.capability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-200);
}

.capability:last-child {
  border-bottom: 0;
}

.capability.reverse .capability-copy {
  grid-column: 1;
  grid-row: 1;
}

.capability.reverse .capability-visual {
  grid-column: 2;
  grid-row: 1;
}

.capability-visual {
  overflow: hidden;
  min-height: 320px;
  background: var(--gray-100);
}

.capability-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.capability-copy .num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 12px;
}

.capability-copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.capability-copy p {
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 1.02rem;
}

/* ---------- Projects listing ---------- */
.projects-page {
  padding: 80px 0 40px;
  background: var(--white);
}

.projects-page .land-grid {
  gap: 20px;
}

.projects-page .land-card {
  min-height: 360px;
}

.projects-page .land-card .body {
  min-height: 360px;
}

.gallery-block {
  padding: 40px 0 120px;
  background: var(--white);
}

/* ---------- Contact page spacing ---------- */
.contact-page {
  padding: 80px 0 120px;
}

/* ---------- Home should not dump every section ---------- */
.clients {
  display: none;
}

@media (max-width: 1100px) {
  .intro-grid,
  .prose-grid,
  .capability {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro h2 {
    max-width: none;
  }

  .intro-stats {
    flex-direction: row;
    gap: 48px;
  }

  .capability.reverse .capability-copy,
  .capability.reverse .capability-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .land-card,
  .land-card .body,
  .projects-page .land-card,
  .projects-page .land-card .body {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .focus-grid,
  .mission-grid,
  .land-grid,
  .unit-row {
    grid-template-columns: 1fr;
  }

  .intro,
  .focus,
  .landmarks,
  .prose-section,
  .cta-band {
    padding-left: 0;
    padding-right: 0;
  }

  .intro {
    padding-top: 80px;
    padding-bottom: 56px;
  }

  .focus {
    padding-bottom: 80px;
  }

  .landmarks {
    padding: 72px 0 80px;
  }

  .prose-section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .cine-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .cine-line {
    font-size: 2.15rem;
  }

  .cine-rotator {
    min-height: calc(2.15rem * 2.6);
  }

  .cine-scroll {
    display: none;
  }

  .intro-stats {
    flex-direction: column;
    gap: 24px;
  }

  .intro-stat strong {
    font-size: 3rem;
  }

  .page-hero {
    min-height: 38vh;
    padding: calc(var(--nav-h) + 48px) 0 40px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .page-tabs-inner {
    padding: 10px 0;
  }

  .mission-card,
  .capability {
    padding: 28px 0;
  }

  .mission-card {
    padding: 28px 22px;
  }

  .land-card,
  .land-card .body,
  .projects-page .land-card,
  .projects-page .land-card .body {
    min-height: 280px;
  }

  .cta-band {
    padding: 64px 0;
  }
}
