/* =====================================================================
   SKY JEWEL GROUP — Executive Institutional Profile
   Drop-in asset slots (edit these to match your brand exactly):
   ===================================================================== */

/* -------- BRAND FONTS (replace @font-face or Google Fonts import in HTML) -------- */
/* To use custom fonts, drop files into /assets/fonts/ and uncomment:
@font-face { font-family: "BrandDisplay"; src: url("assets/fonts/BrandDisplay.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "BrandBody";    src: url("assets/fonts/BrandBody.woff2")    format("woff2"); font-display: swap; }
@font-face { font-family: "BrandAR";      src: url("assets/fonts/BrandAR.woff2")      format("woff2"); font-display: swap; }
*/

/* -------- BRAND COLORS (official Sky Jewel palette) -------- */
:root {
  /* Primary brand colors */
  --brand-charcoal: #28282B;   /* الأسود الفحمي — primary logo & text (power, clarity) */
  --brand-gray:     #A9A9A9;   /* الرمادي الأسمنتي — secondary / backgrounds (balance) */
  --brand-white:    #FFFFFF;   /* الأبيض الصريح — negative space */

  /* Saudi-inspired accent (adjustable) */
  --brand-gold:    #C9A96E;
  --brand-gold-2:  #E7D5A8;

  /* Semantic aliases used across the UI */
  --brand-primary:   var(--brand-charcoal);
  --brand-primary-2: #3a3a3d;
  --brand-ivory:     var(--brand-white);
  --brand-ink:       var(--brand-charcoal);
  --brand-ink-2:     #3a3a3d;
  --brand-muted:     var(--brand-gray);
  --brand-line:      rgba(169, 169, 169, 0.35);

  /* Fonts — Readex Pro (supports both Latin & Arabic natively) */
  --font-display:    "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:       "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar-display: "Readex Pro", system-ui, sans-serif;
  --font-ar-body:    "Readex Pro", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: .7s;

  /* Layout */
  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* =================== RESET =================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; } /* base bumped from 16px → ~+12.5% across the site */
@media (max-width: 640px) { html { font-size: 17px; } }
@media (max-width: 380px) { html { font-size: 16px; } }
body {
  font-family: var(--font-body);
  background: var(--brand-ivory);
  color: var(--brand-ink);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar-body); line-height: 1.95; font-size: 1.1rem; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dt, dd { margin: 0; }
p { margin: 0 0 1rem; }

/* =================== UTILITIES =================== */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 1.6rem;
  position: relative;
  padding-inline-start: 0;
}
html[dir="rtl"] .eyebrow { font-family: var(--font-ar-body); letter-spacing: .1em; }

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  color: var(--brand-primary);
}
html[dir="rtl"] .h2 { font-family: var(--font-ar-display); letter-spacing: 0; line-height: 1.3; }

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0 0 .6rem;
  color: var(--brand-primary);
}
html[dir="rtl"] .h3 { font-family: var(--font-ar-display); }

.lede {
  max-width: 62ch;
  color: #55555a;
  font-size: 1.05rem;
}

/* =================== SCROLL PROGRESS =================== */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-2));
  transition: width .08s linear;
}

/* =================== NAVBAR =================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding: 14px 0;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(40, 40, 43, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(201,169,110,.12);
  padding: 10px 0;
}
.nav__inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  color: var(--brand-ivory);
}
.nav__brand { display: flex; align-items: center; color: var(--brand-white); transition: color .3s var(--ease); }
.nav__brand:hover { color: var(--brand-gold); }

/* Monochrome brand logo — mask-driven so ANY CSS color tints it.
   The logo SVG uses currentColor; here we mask-paint it to allow
   per-context coloring (white on dark, gold on hover, etc.). */
.brand-logo {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url("assets/logo.svg");
          mask-image: url("assets/logo.svg");
  -webkit-mask-size: contain;   mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.nav__logo {
  width: 90px; height: 90px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  transition: width .35s var(--ease), height .35s var(--ease);
}
.nav.is-scrolled .nav__logo { width: 72px; height: 72px; }
.nav__links {
  display: flex; gap: 28px; margin-inline: auto;
  font-size: .92rem;
}
.nav__links a {
  position: relative; padding: 6px 2px; color: rgba(245,241,232,.8);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px;
  background: var(--brand-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--brand-gold-2); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; letter-spacing: .18em;
  padding: 8px 12px; border: 1px solid rgba(201,169,110,.35);
  border-radius: 999px; color: var(--brand-ivory);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--brand-gold); background: rgba(201,169,110,.08); }
.lang-toggle__current { color: var(--brand-gold); font-weight: 600; }
.lang-toggle__sep { opacity: .5; }
.lang-toggle__other { opacity: .8; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: .92rem; letter-spacing: .06em;
  font-weight: 500;
  transition: transform .25s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: .82rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-primary);
  box-shadow: 0 10px 30px -10px rgba(201,169,110,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(201,169,110,.8); }
.btn--outline {
  border: 1px solid rgba(245,241,232,.6); color: var(--brand-ivory);
}
.btn--outline:hover { border-color: var(--brand-gold); color: var(--brand-gold); }
.btn--ghost {
  border: 1px solid rgba(245,241,232,.35); color: var(--brand-ivory);
}
.btn--ghost:hover { background: var(--brand-gold); color: var(--brand-primary); border-color: var(--brand-gold); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* =================== PATTERN LAYERS ===================
   Uses mask-image so the pattern can be tinted ANY color
   via --pattern-color / background-color (your uploaded
   pattern.svg keeps its shape, CSS drives the color).
   ===================================================== */
.pattern-layer {
  position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 320px;
          mask-size: 320px;
  -webkit-mask-repeat: repeat;
          mask-repeat: repeat;
  opacity: .10;
  will-change: transform;
}
.pattern-layer--hero     { position: fixed; opacity: .08; z-index: 0; background-color: var(--brand-gold); }
.pattern-layer--heritage { opacity: .14; background-color: var(--brand-gold); }
.pattern-layer--contact  { opacity: .12; background-color: var(--brand-gold); }

/* ---- Section-level patterns (pseudo-elements — no HTML needed) ---- */

/* Subtle texture behind the ABOUT section */
.section--about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-charcoal);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 380px; mask-size: 380px;
  opacity: .04;
  mask-position: top right; -webkit-mask-position: top right;
}

/* Full-bleed pattern across the SECTORS section */
.section--sectors::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 360px; mask-size: 360px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  opacity: .07;
}

/* Very soft texture across WHY section */
.section--why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-gray);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 340px; mask-size: 340px;
  opacity: .05;
}

/* Corner accent in CLIENTS section */
.section--clients::before {
  content: ""; position: absolute; inset: 0 auto auto -10%;
  width: 50%; height: 70%; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 360px; mask-size: 360px;
  opacity: .04;
}

/* GALLERY — pattern band behind the grid */
.section--gallery::before {
  content: ""; position: absolute; inset: 20% -10% 20% -10%; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 400px; mask-size: 400px;
  opacity: .04;
}

/* PROCESS section — large faint pattern */
.section--process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 440px; mask-size: 440px;
  opacity: .04;
  mask-position: bottom left; -webkit-mask-position: bottom left;
}

/* Make sure section content stays above the pattern */
.section > .container { position: relative; z-index: 2; }
.section > .hscroll   { position: relative; z-index: 2; }

/* =================== HERO =================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: var(--brand-ivory);
  background: radial-gradient(ellipse at 70% 20%, #3a3a3d 0%, var(--brand-charcoal) 55%, #151517 100%);
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .45;
}
.hero__orb--1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--brand-gold), transparent 60%); top: -140px; right: -120px; }
.hero__orb--2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(169,169,169,.5), transparent 60%); bottom: -160px; left: -120px; }

.hero__content { position: relative; z-index: 2; max-width: 960px; }
.hero__logo {
  width: 200px; height: 200px;
  color: var(--brand-gold);
  margin-bottom: 28px;
  filter: drop-shadow(0 10px 40px rgba(201,169,110,.35));
}
@media (max-width: 560px) { .hero__logo { width: 140px; height: 140px; } }
.hero__eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(201,169,110,.4);
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 48px;
  color: var(--brand-ivory);
}
html[dir="rtl"] .hero__title { font-family: var(--font-ar-display); line-height: 1.2; margin-bottom: 56px; }
.hero__title span { display: block; }
.hero__title-gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 300;
  letter-spacing: -0.015em;
}
/* Arabic rendering fix: gradient text-clip + light weight makes ي dots
   almost invisible. In AR mode use solid gold + heavier weight. */
html[dir="rtl"] .hero__title-gold {
  background: none;
  -webkit-text-fill-color: var(--brand-gold);
  color: var(--brand-gold);
  font-weight: 600;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  max-width: 68ch; color: rgba(245,241,232,.82);
  margin-bottom: 22px;
}
.hero__tagline {
  font-family: var(--font-display);
  color: var(--brand-gold-2); font-size: 1.35rem;
  margin-bottom: 40px; letter-spacing: .04em;
  font-weight: 300;
}
html[dir="rtl"] .hero__tagline { font-family: var(--font-ar-display); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding-top: 32px; border-top: 1px solid rgba(201,169,110,.2);
  max-width: 820px;
}
.hero__meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  color: var(--brand-gold); line-height: 1; font-weight: 600;
}
.hero__meta em {
  font-style: normal; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(245,241,232,.6);
}
html[dir="rtl"] .hero__meta em { text-transform: none; letter-spacing: 0; font-size: .85rem; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(201,169,110,.55);
  border-radius: 14px; z-index: 2;
}
.hero__scroll span {
  display: block; width: 2px; height: 8px; background: var(--brand-gold);
  margin: 8px auto 0; border-radius: 2px;
  animation: scrollDot 1.8s infinite var(--ease);
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =================== SECTIONS =================== */
.section { position: relative; padding: 120px 0; }
.section--about    { background: var(--brand-white); }
.section--vision   { background: linear-gradient(180deg, var(--brand-white), #f0f0f0); }
.section--sectors  { background: var(--brand-charcoal); color: var(--brand-white); overflow: hidden; }
.section--sectors .h2 { color: var(--brand-ivory); }
.section--sectors .lede { color: rgba(245,241,232,.72); }
.section--why      { background: #fafafa; }
.section--heritage { background: linear-gradient(180deg, #f0f0f0, var(--brand-charcoal) 75%); color: var(--brand-white); overflow: hidden; }
.section--heritage .h2 { color: var(--brand-ivory); }
.section--process  { background: var(--brand-primary); color: var(--brand-ivory); }
.section--process .h2 { color: var(--brand-ivory); }
.section--process .lede { color: rgba(245,241,232,.72); }
.section--clients  { background: var(--brand-white); }
.section--gallery  { background: #1c1c1f; color: var(--brand-white); overflow: hidden; }
.section--gallery .h2 { color: var(--brand-white); }
.section--contact  { background: radial-gradient(ellipse at 50% 0%, #3a3a3d, var(--brand-charcoal) 60%, #151517 100%); color: var(--brand-white); overflow: hidden; padding-bottom: 0; }

.section__head { max-width: 820px; margin-bottom: 70px; }

/* =================== GRID-2 =================== */
.grid-2 {
  display: grid; gap: 60px;
  grid-template-columns: 1.1fr 1fr; align-items: center;
}
.grid-2--reverse { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 860px) {
  .grid-2, .grid-2--reverse { grid-template-columns: 1fr; gap: 40px; }
}

/* ABOUT */
.about__cards {
  display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px;
}
.about__card {
  position: relative; padding: 24px 28px 24px 34px;
  background: #fff; border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(40,40,43,.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
html[dir="rtl"] .about__card { padding: 24px 34px 24px 28px; }
.about__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(40,40,43,.1);
}
.about__card::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--brand-gold); border-radius: 0 var(--radius) var(--radius) 0;
}
html[dir="rtl"] .about__card::before { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
html[dir="ltr"] .about__card::before { left: 0; }

.about__card p { margin: 0; color: var(--brand-primary); line-height: 1.85; }
html[dir="rtl"] .about__card p { line-height: 2; }

.about__chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.about__chips span {
  padding: 7px 14px; border: 1px solid var(--brand-line);
  border-radius: 999px; font-size: .82rem; color: var(--brand-charcoal);
  background: rgba(169,169,169,.08);
}
.about__visual {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -30px rgba(40,40,43,.35);
}
.about__visual img { width: 100%; height: auto; display: block; }
.about__visual figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: var(--brand-ivory); font-size: .82rem; letter-spacing: .12em;
}

/* About section — logo centerpiece variant (no photo) */
.about__visual--logo {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(201,169,110,.18), transparent 65%),
    linear-gradient(135deg, #1c1c1f 0%, var(--brand-charcoal) 55%, #151517 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.about__visual--logo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 280px; mask-size: 280px;
  opacity: .07;
}
.about__logo {
  width: 70%; aspect-ratio: 1 / 1;
  color: var(--brand-gold);
  filter: drop-shadow(0 20px 60px rgba(201,169,110,.35));
  animation: aboutLogoFloat 6s ease-in-out infinite alternate;
  position: relative; z-index: 2;
}
@keyframes aboutLogoFloat {
  0%   { transform: translateY(0) scale(1);    filter: drop-shadow(0 20px 60px rgba(201,169,110,.35)); }
  100% { transform: translateY(-8px) scale(1.02); filter: drop-shadow(0 30px 80px rgba(201,169,110,.5)); }
}
.about__visual--logo figcaption {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: var(--brand-gold-2);
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .about__logo { animation: none; }
}

/* =================== VISION SPLIT =================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.split__card::before {
  content: ""; position: absolute; inset: 0;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 260px; mask-size: 260px;
  opacity: .06;
  pointer-events: none;
}
.split__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(40,40,43,.3); }
.split__card--alt {
  background: var(--brand-primary); color: var(--brand-ivory);
}
.split__card--alt .h3 { color: var(--brand-gold); }
.split__icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(201,169,110,.12); color: var(--brand-gold);
  margin-bottom: 22px;
}

/* =================== HORIZONTAL SCROLL — SECTORS =================== */
.hscroll {
  position: relative;
  margin-top: 40px;
  padding: 0 24px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-gold) transparent;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--brand-gold); border-radius: 3px; }
.hscroll__track {
  display: flex; gap: 24px; padding: 20px 0;
  width: max-content;
}
.sector-card {
  scroll-snap-align: start;
  flex: 0 0 360px;
  min-height: 460px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(201,169,110,.2);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  display: flex; flex-direction: column;
}
.sector-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-gold);
  background: linear-gradient(180deg, rgba(201,169,110,.08), rgba(201,169,110,.02));
}
.sector-card::before {
  content: ""; position: absolute; inset: auto -40px -40px auto;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.18), transparent 60%);
  pointer-events: none;
}
.sector-card__badge {
  display: inline-block; align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(201,169,110,.12); color: var(--brand-gold);
  border: 1px solid rgba(201,169,110,.3);
}
html[dir="rtl"] .sector-card__badge { text-transform: none; letter-spacing: .05em; }
.sector-card--core .sector-card__badge { color: var(--brand-gold-2); background: rgba(201,169,110,.22); }
.sector-card--dev .sector-card__badge { opacity: .75; }
.sector-card__num {
  font-family: var(--font-display); font-size: 4rem; font-weight: 600;
  color: rgba(201,169,110,.25); line-height: 1; margin-top: 12px;
}
.sector-card__title {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  margin: 10px 0 14px; color: var(--brand-ivory);
}
html[dir="rtl"] .sector-card__title { font-family: var(--font-ar-display); }
.sector-card p { color: rgba(245,241,232,.72); font-size: .95rem; }
.sector-card__list { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(201,169,110,.15); }
.sector-card__list li {
  font-size: .85rem; padding: 6px 0; color: rgba(245,241,232,.8);
  position: relative; padding-inline-start: 18px;
}
.sector-card__list li::before {
  content: "◆"; position: absolute; inset-inline-start: 0; color: var(--brand-gold);
  font-size: .7rem; top: 8px;
}
.hscroll__hint {
  text-align: center; margin-top: 16px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(201,169,110,.7);
}
html[dir="rtl"] .hscroll__hint { text-transform: none; letter-spacing: .05em; }

/* =================== WHY GRID =================== */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 32px 28px; background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  box-shadow: 0 24px 50px -28px rgba(40,40,43,.3);
}
.why-card__icon {
  font-size: 1.7rem; color: var(--brand-gold); margin-bottom: 14px;
  display: inline-flex; width: 52px; height: 52px;
  align-items: center; justify-content: center;
  background: rgba(201,169,110,.1); border-radius: 12px;
}
.why-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; color: var(--brand-primary); }
html[dir="rtl"] .why-card h3 { font-family: var(--font-ar-display); }
.why-card p { margin: 0; color: #5a5a5e; font-size: .95rem; }

/* =================== HERITAGE =================== */
.heritage__visual {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.heritage__visual img { width: 100%; }
.heritage__quote {
  margin-top: 28px; padding-inline-start: 24px;
  border-inline-start: 2px solid var(--brand-gold);
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--brand-gold-2);
  font-weight: 300; letter-spacing: .02em;
}
html[dir="rtl"] .heritage__quote { font-family: var(--font-ar-display); }

/* =================== PROCESS / TIMELINE =================== */
.timeline {
  display: grid; gap: 20px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; inset: 0 auto 0 28px;
  width: 1px; background: linear-gradient(180deg, var(--brand-gold), transparent);
  opacity: .5;
}
html[dir="rtl"] .timeline::before { inset: 0 28px 0 auto; }
.timeline__step {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 24px 0;
}
.timeline__num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-primary); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 10px 30px -10px rgba(201,169,110,.6);
  position: relative; z-index: 1;
}
.timeline__body {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,169,110,.18);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.timeline__body h3 {
  font-family: var(--font-display); color: var(--brand-ivory);
  margin: 0 0 6px; font-size: 1.3rem;
}
html[dir="rtl"] .timeline__body h3 { font-family: var(--font-ar-display); }
.timeline__tag {
  display: inline-block; padding: 4px 12px; margin-bottom: 12px;
  border: 1px solid rgba(201,169,110,.35); border-radius: 999px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-gold);
}
html[dir="rtl"] .timeline__tag { text-transform: none; letter-spacing: 0; }
.timeline__body p { margin: 0; color: rgba(245,241,232,.75); }

/* =================== CLIENTS =================== */
.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.client-tile {
  padding: 28px 22px; border: 1px solid var(--brand-line);
  border-radius: var(--radius); background: #fff;
  text-align: center; color: var(--brand-primary);
  font-family: var(--font-display); font-size: 1.02rem;
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}
html[dir="rtl"] .client-tile { font-family: var(--font-ar-display); }
.client-tile::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.client-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
  box-shadow: 0 18px 40px -24px rgba(40,40,43,.25);
}
.client-tile:hover::before { transform: scaleX(1); }

/* Snapshot */
.snapshot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 44px; border-radius: var(--radius-lg);
  background: var(--brand-primary); color: var(--brand-ivory);
  position: relative; overflow: hidden;
}
.snapshot::before {
  content: ""; position: absolute; inset: 0;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 300px; mask-size: 300px;
  opacity: .08; pointer-events: none;
}
@media (max-width: 800px) { .snapshot { grid-template-columns: 1fr; padding: 28px; } }
.snapshot .eyebrow { color: var(--brand-gold); margin-bottom: 20px; }
.snapshot dl { display: grid; gap: 14px; }
.snapshot dl > div {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: baseline;
  padding-bottom: 12px; border-bottom: 1px solid rgba(201,169,110,.15);
}
.snapshot dt { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,241,232,.6); }
html[dir="rtl"] .snapshot dt { text-transform: none; letter-spacing: 0; }
.snapshot dd { font-family: var(--font-display); font-size: 1.05rem; color: var(--brand-gold-2); }
html[dir="rtl"] .snapshot dd { font-family: var(--font-ar-display); }
.snapshot__list li {
  padding: 10px 0 10px 22px; position: relative;
  border-bottom: 1px solid rgba(201,169,110,.15);
}
html[dir="rtl"] .snapshot__list li { padding: 10px 22px 10px 0; }
.snapshot__list li::before {
  content: "→"; position: absolute; inset-inline-start: 0; color: var(--brand-gold);
}
html[dir="rtl"] .snapshot__list li::before { content: "←"; }

/* =================== GALLERY =================== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 3/4;
  background: #2e2e32;
  transition: transform .5s var(--ease);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter .5s var(--ease);
  filter: saturate(0.92) brightness(0.96);
  /* Continuous Ken Burns motion — slow pan + zoom */
  animation: kenBurns1 22s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}
.gallery__item--kb2 img { animation: kenBurns2 26s ease-in-out infinite alternate; transform-origin: top right; }
.gallery__item--kb3 img { animation: kenBurns3 24s ease-in-out infinite alternate; transform-origin: bottom left; }
.gallery__item--kb4 img { animation: kenBurns4 28s ease-in-out infinite alternate; transform-origin: top left; }

.gallery__item:hover img { filter: saturate(1.15) brightness(1.02); }

/* Ken Burns keyframes — each uses a slightly different path so the 4 tiles
   don't feel synchronized. Values are subtle so they stay elegant. */
@keyframes kenBurns1 {
  0%   { transform: scale(1.0)  translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-2%, -2%, 0); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1.05) translate3d(2%, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1%, 2%, 0); }
}
@keyframes kenBurns3 {
  0%   { transform: scale(1.08) translate3d(-1%, 2%, 0); }
  100% { transform: scale(1.16) translate3d(2%, -1%, 0); }
}
@keyframes kenBurns4 {
  0%   { transform: scale(1.03) translate3d(0, -1%, 0); }
  100% { transform: scale(1.13) translate3d(-2%, 2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item img { animation: none; }
}
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: var(--brand-ivory); font-family: var(--font-display);
  letter-spacing: .12em; font-size: 1rem;
}
html[dir="rtl"] .gallery__item figcaption { font-family: var(--font-ar-display); }
.gallery__item:nth-child(odd) { transform: translateY(20px); }
@media (max-width: 900px) { .gallery__item:nth-child(odd) { transform: none; } }

/* =================== CONTACT / CTA =================== */
.cta {
  text-align: center; max-width: 980px; margin: 0 auto;
  padding-bottom: 100px;
}
.cta__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2; color: var(--brand-ivory);
  margin: 0 0 14px;
}
html[dir="rtl"] .cta__title { font-family: var(--font-ar-display); line-height: 1.5; }
.cta__tagline {
  font-family: var(--font-display);
  color: var(--brand-gold); font-size: 1.4rem; margin-bottom: 50px;
  font-weight: 300; letter-spacing: .04em;
}
html[dir="rtl"] .cta__tagline { font-family: var(--font-ar-display); }

.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 44px; text-align: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  padding: 22px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,169,110,.18);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.contact-card:hover { border-color: var(--brand-gold); background: rgba(201,169,110,.06); }
.contact-card__label {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,241,232,.55); margin-bottom: 6px;
}
html[dir="rtl"] .contact-card__label { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.contact-card__value {
  display: block; color: var(--brand-gold-2);
  font-family: var(--font-display); font-size: 1.05rem;
}
html[dir="rtl"] .contact-card__value { font-family: var(--font-ar-display); }

.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.socials {
  display: flex; gap: 12px; justify-content: center;
}
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,169,110,.3);
  font-size: .82rem; letter-spacing: .04em;
  color: var(--brand-gold); text-transform: uppercase;
  transition: all .3s var(--ease);
}
.socials a:hover { background: var(--brand-gold); color: var(--brand-primary); transform: translateY(-3px); }

/* =================== FOOTER =================== */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(201,169,110,.15);
  padding: 28px 0;
}
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo { width: 152px; height: 152px; opacity: .9; color: var(--brand-white); }
.footer__meta {
  margin-inline-start: auto;
  font-size: .82rem; color: rgba(245,241,232,.5);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.footer__sep { opacity: .5; }

/* =================== REVEAL ANIMATIONS =================== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal--line { display: inline-block; overflow: hidden; padding-bottom: 0.18em; }
/* Arabic descenders (ي dots, ج tail, etc.) sit below the baseline —
   don't clip them in RTL mode or they'll render as ى / wrong glyphs. */
html[dir="rtl"] .reveal--line { overflow: visible; padding-bottom: 0; }
.reveal--right { transform: translateX(40px); }
.reveal--left  { transform: translateX(-40px); }
.reveal.is-visible { opacity: 1; transform: translate(0,0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================== RESPONSIVE — TABLET =================== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__logo { width: 64px; height: 64px; }
  .nav.is-scrolled .nav__logo { width: 52px; height: 52px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .timeline__step { grid-template-columns: 56px 1fr; gap: 16px; }
  .timeline::before { inset: 0 auto 0 20px; }
  html[dir="rtl"] .timeline::before { inset: 0 20px 0 auto; }
  .footer__logo { width: 96px; height: 96px; }
  .pattern-layer--hero { position: absolute; } /* iOS perf — avoid fixed bg */
  .hero { background-attachment: scroll; }
}

/* =================== RESPONSIVE — MOBILE =================== */
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 70px; min-height: auto; }
  .hero__logo { width: 120px; height: 120px; margin-bottom: 20px; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); letter-spacing: -0.025em; }
  .hero__lede { font-size: 1rem; }
  .hero__tagline { font-size: 1.1rem; margin-bottom: 32px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; width: 100%; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 24px; }
  .hero__meta-num { font-size: 1.6rem; }
  .hero__eyebrow { font-size: .68rem; letter-spacing: .2em; padding: 6px 12px; }

  .h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section__head { margin-bottom: 36px; }
  .lede { font-size: .98rem; }

  .nav { padding: 10px 0; }
  .nav__logo { width: 52px; height: 52px; }
  .nav.is-scrolled .nav__logo { width: 44px; height: 44px; }
  .nav__inner { gap: 12px; }
  .nav__actions .btn { display: none; }
  .lang-toggle { padding: 6px 10px; font-size: .75rem; }

  .split__card { padding: 32px 24px; }
  .why-card { padding: 26px 22px; }

  /* Sectors horizontal scroll — sized for thumb-swipe */
  .sector-card { flex: 0 0 84vw; min-height: 420px; padding: 28px 22px; }
  .sector-card__title { font-size: 1.4rem; }
  .sector-card__num { font-size: 3rem; }

  .timeline__num { width: 44px; height: 44px; font-size: .95rem; }
  .timeline__step { grid-template-columns: 60px 1fr; padding: 14px 0; }
  .timeline__body { padding: 18px 20px; }
  .timeline__body h3 { font-size: 1.1rem; }

  .snapshot { padding: 26px 22px; gap: 28px; }
  .snapshot dl > div { grid-template-columns: 1fr; gap: 4px; }
  .snapshot dt { font-size: .75rem; }
  .snapshot dd { font-size: .98rem; }

  .clients-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 50px; }
  .client-tile { padding: 20px 14px; font-size: .92rem; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__item figcaption { padding: 12px 14px; font-size: .85rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .cta__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .cta__tagline { font-size: 1.1rem; margin-bottom: 36px; }
  .cta { padding-bottom: 70px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; justify-content: center; }

  .footer { padding: 22px 0; }
  .footer__logo { width: 72px; height: 72px; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__meta { margin-inline-start: 0; justify-content: center; }
  .hero__scroll { display: none; }
}

/* =================== RESPONSIVE — VERY SMALL =================== */
@media (max-width: 380px) {
  .hero__title { font-size: 2.2rem; }
  .hero__logo { width: 100px; height: 100px; }
  .nav__logo { width: 44px; height: 44px; }
  .h2 { font-size: 1.5rem; }
  .lang-toggle__sep { display: none; }
}

/* =================== ARABIC / RTL TYPOGRAPHY SAFETY ===================
   Arabic letters connect; ANY letter-spacing breaks those connections
   and creates visible gaps between letters (a very common bug).
   This block neutralises every letter-spacing rule across the codebase
   when the document is in RTL/Arabic mode.
   ===================================================================== */
html[dir="rtl"],
html[dir="rtl"] *,
html[dir="rtl"] *::before,
html[dir="rtl"] *::after {
  letter-spacing: 0 !important;
  word-spacing: 0;
}

/* Arabic-specific tuning for elements that had heavy tracking in EN */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .hero__eyebrow,
html[dir="rtl"] .sector-card__badge,
html[dir="rtl"] .hscroll__hint,
html[dir="rtl"] .timeline__tag,
html[dir="rtl"] .snapshot dt,
html[dir="rtl"] .contact-card__label,
html[dir="rtl"] .hero__meta em,
html[dir="rtl"] .footer__meta,
html[dir="rtl"] .gallery__item figcaption,
html[dir="rtl"] .about__visual figcaption,
html[dir="rtl"] .nav__links {
  text-transform: none !important;
  font-size: inherit;
}

/* Boost legibility of small uppercase EN labels when displayed in AR */
html[dir="rtl"] .eyebrow            { font-size: .92rem; font-weight: 500; }
html[dir="rtl"] .hero__eyebrow      { font-size: .85rem; font-weight: 500; }
html[dir="rtl"] .sector-card__badge { font-size: .82rem; }
html[dir="rtl"] .timeline__tag      { font-size: .82rem; }
html[dir="rtl"] .snapshot dt        { font-size: .92rem; }
html[dir="rtl"] .contact-card__label{ font-size: .92rem; }
html[dir="rtl"] .gallery__item figcaption { font-size: 1.05rem; }

/* Display headings — fully reset negative tracking which is harmful in Arabic */
html[dir="rtl"] .hero__title,
html[dir="rtl"] .hero__title-gold,
html[dir="rtl"] .h2,
html[dir="rtl"] .h3,
html[dir="rtl"] .cta__title {
  letter-spacing: 0 !important;
  line-height: 1.35;
}
html[dir="rtl"] .hero__title { line-height: 1.25; }

/* Better text rendering for Arabic glyphs */
html[dir="rtl"] body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Content visibility helpers — Arabic-only / English-only blocks
   (used for sections / paragraphs that exist in one language only) */
html[dir="ltr"] .ar-only { display: none !important; }
html[dir="rtl"] .en-only { display: none !important; }

/* Backgrounds for the 3 new AR-only sections so text is readable */
.section--leadership { background: #fafafa; }
.section--leadership .h2 { color: var(--brand-charcoal); }
.section--leadership .lede { color: #55555a; }

.section--mgmt {
  background: var(--brand-charcoal);
  color: var(--brand-ivory);
}
.section--mgmt .h2 { color: var(--brand-ivory); }
.section--mgmt .lede { color: rgba(245,241,232,.78); }
.section--mgmt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--brand-gold);
  -webkit-mask-image: url("assets/pattern.svg");
          mask-image: url("assets/pattern.svg");
  -webkit-mask-size: 360px; mask-size: 360px;
  opacity: .05;
}

.section--bizmodel {
  background: linear-gradient(180deg, var(--brand-white), #f0f0f0);
}
.section--bizmodel .h2 { color: var(--brand-charcoal); }
.section--bizmodel .lede { color: #55555a; }

/* =================== SECTOR DETAIL PAGES =================== */
.sector-hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--brand-charcoal);
}
.sector-hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  animation: kenBurns1 30s ease-in-out infinite alternate;
  transform-origin: center center;
}
.sector-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%);
}
.sector-hero__content {
  position: relative; z-index: 2;
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding: 0 0 80px;
  color: var(--brand-ivory);
}
.sector-hero__badge {
  display: inline-block;
  padding: 7px 14px; border: 1px solid var(--brand-gold);
  border-radius: 999px; color: var(--brand-gold);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 24px;
}
html[dir="rtl"] .sector-hero__badge { text-transform: none; letter-spacing: 0; }
.sector-hero__num {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--brand-gold-2);
  opacity: .7; margin-bottom: 8px;
}
.sector-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.1; margin: 0 0 20px;
  font-weight: 600; color: var(--brand-ivory);
  letter-spacing: -0.02em;
}
html[dir="rtl"] .sector-hero__title { font-family: var(--font-ar-display); letter-spacing: 0; line-height: 1.25; }
.sector-hero__subtitle {
  font-size: 1.15rem; max-width: 60ch;
  color: rgba(245,241,232,.82);
}

.sector-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; color: var(--brand-ivory);
  font-size: .88rem; transition: all .3s var(--ease);
}
.sector-back:hover { border-color: var(--brand-gold); color: var(--brand-gold); }
html[dir="rtl"] .sector-back svg { transform: scaleX(-1); }

.sector-body {
  padding: 100px 0;
  background: var(--brand-white);
}
.sector-body__lede {
  font-size: 1.2rem; line-height: 1.8;
  max-width: 72ch; color: var(--brand-charcoal);
  margin-bottom: 48px;
}
.sector-services {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 40px;
}
@media (max-width: 700px) { .sector-services { grid-template-columns: 1fr; } }
.sector-service {
  padding: 22px 24px; background: #fafafa;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  position: relative; padding-inline-start: 52px;
  transition: all .3s var(--ease);
}
.sector-service::before {
  content: ""; position: absolute; inset-inline-start: 20px; top: 28px;
  width: 16px; height: 16px;
  background: var(--brand-gold); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201,169,110,.15);
}
.sector-service:hover { border-color: var(--brand-gold); transform: translateX(-4px); }
html[dir="ltr"] .sector-service:hover { transform: translateX(4px); }

/* Sector page inline gallery — 3 images */
.sector-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px;
}
@media (max-width: 900px) { .sector-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sector-gallery { grid-template-columns: 1fr; } }
.sector-gallery__item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: #f0f0f0;
  border: 1px solid var(--brand-line);
}
.sector-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.sector-gallery__item:hover img { transform: scale(1.06); }
.sector-gallery--empty { grid-template-columns: 1fr; }
.sector-gallery__empty {
  padding: 60px 24px; text-align: center;
  border: 1px dashed var(--brand-line); border-radius: var(--radius);
  background: #fafafa; color: #888;
  font-size: .95rem;
}
.sector-gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
  color: var(--brand-ivory); font-size: .92rem;
}

/* Link button on main-page sector cards */
.sector-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 20px;
  color: var(--brand-gold); font-size: .92rem;
  border-top: 1px solid rgba(201,169,110,.25);
  transition: gap .3s var(--ease);
}
.sector-card__link:hover { gap: 12px; }
html[dir="rtl"] .sector-card__link svg { transform: scaleX(-1); }

/* iOS safe-area + tap target tweaks */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
.btn { min-height: 44px; }       /* WCAG tap target */
.lang-toggle { min-height: 36px; }
