/* ==========================================================================
   Delta Gulf Prime — BLUEPRINT design language
   Structural / engineering-drawing aesthetic on top of variables.css tokens.
   Replaces base/components/sections/animations for the full site.
   Supports light/dark [data-theme] + RTL/LTR. Works with no JS (progressive).
   ========================================================================== */

:root {
  --f-disp-en: 'Cinzel', Georgia, serif;
  --f-disp-ar: 'Tajawal', system-ui, sans-serif;
  --f-body-en: 'Outfit', system-ui, sans-serif;
  --f-body-ar: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --edge: clamp(1.25rem, 1rem + 4vw, 5.5rem);
  --rule: rgba(200, 162, 76, 0.5);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--f-body-ar);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
body[dir="ltr"] { font-family: var(--f-body-en); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; border-radius: 2px; }
body.no-scroll { overflow: hidden; }
::selection { background: rgba(200, 162, 76, 0.28); }

/* language visibility (data-lang spans) */
[data-lang] { display: none; }
body[dir="rtl"] [data-lang="ar"], body[dir="ltr"] [data-lang="en"] { display: revert; }

/* ---------- helpers ---------- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--edge); }
.section { position: relative; z-index: 1; padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); }
.accent-gold, .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono {
  font-family: var(--f-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-purple); font-weight: 500;
}

/* ---------- section header ---------- */
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.sec-head .idx { font-family: var(--f-mono); font-size: 0.8rem; color: var(--brand-purple); letter-spacing: 0.1em; white-space: nowrap; }
.sec-head .htext { min-width: 0; }
.section-label {
  display: block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-purple); margin-bottom: 10px;
}
.section-title {
  font-family: var(--f-disp-ar); font-weight: 900; letter-spacing: -0.01em; line-height: 1.05;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
}
body[dir="ltr"] .section-title { font-family: var(--f-disp-en); font-weight: 600; letter-spacing: 0.02em; }
.section-subtitle { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); max-width: 60ch; margin-top: 14px; }
.sec-head .rule-h { flex: 1; height: 1px; align-self: center; min-width: 40px;
  background: linear-gradient(90deg, var(--rule), transparent); }
body[dir="rtl"] .sec-head .rule-h { background: linear-gradient(270deg, var(--rule), transparent); }
.section-intro { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  height: 54px; padding-inline: 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-base), border-color var(--duration-base), color var(--duration-base);
}
.btn-primary { background: var(--brand-gradient); color: #201a08; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(200,162,76,.5); }
.btn-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-primary); }
.btn-arrow svg { width: 18px; height: 18px; transition: transform var(--duration-fast) var(--ease-out); }
body[dir="rtl"] .btn-arrow svg { transform: scaleX(-1); }
.btn-arrow:hover { color: var(--brand-purple); }
body[dir="rtl"] .btn-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
body[dir="ltr"] .btn-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   BLUEPRINT BACKDROP (fixed grid + hex watermark)
   ========================================================================== */
.bp-grid-bg {
  position: fixed; inset: -2px; z-index: 0; pointer-events: none; will-change: transform;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.bp-hex {
  position: fixed; top: -6vw; inset-inline-end: -12vw; width: min(58vw, 700px);
  z-index: 0; opacity: 0.05; pointer-events: none; will-change: transform;
}
.bp-hex path { fill: none; stroke: var(--brand-gold); stroke-width: 1.1; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: var(--z-fixed); height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base), box-shadow var(--duration-base);
}
.navbar.is-scrolled {
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border-subtle); box-shadow: var(--shadow-sm);
}
.navbar .container { height: 100%; }
.navbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.navbar-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; transition: var(--transition-transform); }
.navbar-logo:hover { transform: scale(1.03); }
.navbar-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.navbar-logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.navbar-logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--f-disp-ar); font-weight: 700; font-size: 0.95rem; letter-spacing: 0; }
body[dir="ltr"] .logo-name { font-family: var(--f-disp-en); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.logo-tag { font-family: var(--f-mono); font-size: 0.55rem; letter-spacing: 0.34em; color: var(--text-tertiary); margin-top: 4px; }

.navbar-nav { display: flex; align-items: center; gap: clamp(1rem, .5rem + 1.5vw, 2.4rem); }
.navbar-link { position: relative; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); padding-block: 6px; transition: color var(--duration-fast); }
.navbar-link::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 100%; height: 1px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: inline-start; transition: transform var(--duration-base) var(--ease-out); }
.navbar-link:hover { color: var(--text-primary); }
.navbar-link:hover::after { transform: scaleX(1); }

.navbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--radius-full); border: 1px solid var(--border-default); display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast); }
.icon-btn:hover { border-color: var(--brand-gold); color: var(--brand-purple); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.lang-toggle { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 600; }

.mobile-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-full); border: 1px solid var(--border-default); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mobile-toggle span { width: 18px; height: 2px; background: var(--text-primary); transition: transform var(--duration-fast), opacity var(--duration-fast); }
.mobile-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-fixed) - 1); background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6);
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all var(--duration-base) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu .navbar-link { font-size: 1.4rem; font-family: var(--f-disp-ar); }
body[dir="ltr"] .mobile-menu .navbar-link { font-family: var(--f-disp-en); }

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */
.page-loader {
  position: fixed; inset: 0; z-index: var(--z-toast); background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity var(--duration-slow) var(--ease-out), visibility var(--duration-slow);
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 84px; height: 84px; animation: bp-pulse 1.8s var(--ease-in-out) infinite; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.loader-text { margin-top: 22px; font-family: var(--f-disp-en); font-size: var(--text-xs); letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
@keyframes bp-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .8; } }

/* ==========================================================================
   REVEAL + LINE-DRAW  (progressive: hidden only when html.js-ready)
   ========================================================================== */
html.js-ready [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
html.js-ready [data-reveal="left"] { transform: translateX(-40px); }
html.js-ready [data-reveal="right"] { transform: translateX(40px); }
html.js-ready [data-reveal="scale"] { transform: scale(.94); filter: none; }
[data-reveal].is-visible { opacity: 1 !important; transform: none !important; filter: none !important; }

html.js-ready .draw path, html.js-ready .draw line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.4s var(--ease-out); }
.draw.is-drawn path, .draw.is-drawn line { stroke-dashoffset: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 104px; padding-bottom: 48px; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }

.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.kicker .tick { width: 46px; height: 1px; background: var(--brand-gold); }

.hero-title { font-family: var(--f-disp-ar); font-weight: 900; font-size: clamp(3rem, 1.6rem + 8vw, 6.8rem); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 26px; }
body[dir="ltr"] .hero-title { font-family: var(--f-disp-en); font-weight: 700; letter-spacing: 0.01em; line-height: 1.02; }
.hero-title .line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero-title .line-inner { display: block; }
html.js-ready .hero-title .line-inner { transform: translateY(115%); transition: transform 0.95s var(--ease-out); }
.hero-title.is-visible .line:nth-child(1) .line-inner { transform: none; transition-delay: 0.05s; }
.hero-title.is-visible .line:nth-child(2) .line-inner { transform: none; transition-delay: 0.17s; }

.hero-description { max-width: 46ch; color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* hero technical spec readout */
.hero-spec { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--border-subtle); max-width: 460px; }
.hero-spec-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline; }
.hero-spec-row .k { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--brand-purple); }
.hero-spec-row .v { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }
.hero-spec-row .v[dir="ltr"] { font-family: var(--f-mono); letter-spacing: 0.02em; }

/* hero framed photo (technical plate) */
.hero-plate { position: relative; }
.plate-frame { position: relative; border: 1px solid var(--border-default); padding: 12px; background: var(--bg-card); box-shadow: var(--shadow-lg); }
.plate-photo { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-tertiary); }
.plate-photo img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.plate-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(19,20,24,.5)); }
.plate-frame .corner { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--brand-gold); }
.plate-frame .corner.tl { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; }
.plate-frame .corner.tr { top: -1px; inset-inline-end: -1px; border-inline-start: 0; border-bottom: 0; }
.plate-frame .corner.bl { bottom: -1px; inset-inline-start: -1px; border-inline-end: 0; border-top: 0; }
.plate-frame .corner.br { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; }
.hero-plate .coord { position: absolute; z-index: 2; }
.hero-plate .coord.n { top: 20px; inset-inline-start: 24px; }
.hero-plate .coord.e { bottom: 24px; inset-inline-end: 24px; }
.hero-plate .scalebar { position: absolute; bottom: 24px; inset-inline-start: 24px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.hero-plate .scalebar .bar { width: 58px; height: 6px; border: 1px solid var(--brand-gold); border-block: 0; position: relative; }
.hero-plate .scalebar .bar::before, .hero-plate .scalebar .bar::after { content: ''; position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--brand-gold); }
.hero-plate .scalebar .bar::before { inset-inline-start: 0; }
.hero-plate .scalebar .bar::after { inset-inline-end: 0; }
.hero-plate .coord .mono, .hero-plate .scalebar .mono { color: #E7CE8B; text-shadow: 0 1px 6px rgba(0,0,0,.55); direction: ltr; unicode-bidi: isolate; display: inline-block; }

.scroll-indicator { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-tertiary); }
.scroll-indicator-line { width: 1px; height: 42px; background: linear-gradient(var(--brand-gold), transparent); animation: bp-scroll 2s var(--ease-in-out) infinite; }
@keyframes bp-scroll { 0%,100% { transform: scaleY(.5); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ==========================================================================
   MISSION — blueprint pull quote
   ========================================================================== */
.mission-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.mission-quote { font-family: var(--f-disp-ar); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.3; letter-spacing: -0.01em; }
body[dir="ltr"] .mission-quote { font-family: var(--f-disp-en); font-weight: 600; }
.mission-quote::before { content: ''; display: block; width: 54px; height: 3px; background: var(--brand-gradient); margin-bottom: 22px; }
.mission-content { display: grid; gap: 20px; position: relative; padding-inline-start: 26px; }
.mission-content::before { content: ''; position: absolute; inset-block: 6px; inset-inline-start: 0; width: 1px; background: linear-gradient(var(--brand-gold), transparent); }
.mission-content p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.about-visual { position: relative; }
.about-visual > img { width: 100%; aspect-ratio: 3/2.4; object-fit: cover; border: 1px solid var(--border-default); box-shadow: var(--shadow-lg); }
.about-visual::before, .about-visual::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--brand-gold); z-index: 2; }
.about-visual::before { top: -6px; inset-inline-start: -6px; border-inline-end: 0; border-bottom: 0; }
.about-visual::after { bottom: -6px; inset-inline-end: -6px; border-inline-start: 0; border-top: 0; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.about-stat { background: var(--bg-primary); padding: 20px 16px; text-align: center; }
.about-stat-value { font-family: var(--f-disp-en); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1; color: var(--text-primary); }
.about-stat-label { margin-top: 8px; font-size: 0.78rem; color: var(--text-tertiary); }
.about-text { display: grid; gap: 18px; }
.about-text p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* ==========================================================================
   VISION 2030
   ========================================================================== */
.vision-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.vision-visual { position: relative; border: 1px solid var(--border-default); padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--brand-gradient-soft); overflow: hidden; }
.vision-visual::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); background-size: 28px 28px; }
.vision-number-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-purple); }
.vision-number-label svg { color: var(--brand-gold); }
.vision-number { position: relative; z-index: 1; font-family: var(--f-disp-en); font-weight: 700; font-size: clamp(4rem, 2.5rem + 8vw, 9rem); line-height: 1; letter-spacing: -0.02em; -webkit-text-stroke: 1.5px var(--brand-gold); color: transparent; margin-top: 8px; }
.vision-content { display: grid; gap: 16px; }
.vision-content p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* ==========================================================================
   SERVICES — spec sheet 01..07
   ========================================================================== */
.services-header { max-width: 820px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.services-grid { position: relative; border-top: 1px solid var(--border-subtle); }
.spec-row {
  position: relative; display: grid; grid-template-columns: 82px 1fr auto; gap: clamp(1rem, .5rem + 2vw, 3rem);
  align-items: center; padding-block: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-base) var(--ease-out), padding-inline var(--duration-base) var(--ease-out);
}
.spec-row::before { content: ''; position: absolute; bottom: -1px; inset-inline-start: 0; width: 100%; height: 1px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: inline-start; transition: transform var(--duration-slow) var(--ease-out); }
.spec-row:hover { background: var(--brand-gradient-soft); padding-inline: 18px; }
.spec-row:hover::before { transform: scaleX(1); }
.spec-n { font-family: var(--f-mono); font-weight: 700; font-size: 1.05rem; color: var(--brand-purple); }
.spec-body h3 { font-family: var(--f-disp-ar); font-weight: 700; font-size: clamp(1.15rem, .9rem + 1vw, 1.7rem); line-height: 1.15; }
body[dir="ltr"] .spec-body h3 { font-family: var(--f-disp-en); font-weight: 600; }
.spec-body p { color: var(--text-tertiary); font-size: 0.95rem; margin-top: 7px; max-width: 64ch; line-height: var(--leading-relaxed); }
.spec-plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-default); display: grid; place-items: center; color: var(--text-secondary); flex-shrink: 0; transition: all var(--duration-base) var(--ease-out); }
.spec-plus svg { width: 20px; height: 20px; }
.spec-row:hover .spec-plus { background: var(--brand-gold); color: #201a08; border-color: var(--brand-gold); transform: rotate(90deg); }

/* ==========================================================================
   STRUCTURE — org chart (verbatim content), blueprint nodes
   ========================================================================== */
.structure-tree { display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 2.6rem); position: relative; }
.structure-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.75rem, .4rem + 1.4vw, 1.4rem); width: 100%; }
.structure-node {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-default);
  padding: 16px 22px; min-width: 150px; text-align: center;
  transition: border-color var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
}
.structure-node::before { content: ''; position: absolute; top: -1px; inset-inline-start: -1px; width: 10px; height: 10px; border-top: 2px solid var(--brand-gold); border-inline-start: 2px solid var(--brand-gold); }
.structure-node:hover { border-color: var(--brand-gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.structure-node.is-root { background: var(--brand-gradient); border: none; padding-inline: 40px; }
.structure-node.is-root .structure-node-title { color: #201a08; }
.structure-node.is-root .structure-node-subtitle { color: rgba(32,26,8,.7); }
.structure-node.is-root::before { display: none; }
.structure-node-title { font-family: var(--f-disp-ar); font-weight: 700; font-size: 1rem; }
body[dir="ltr"] .structure-node-title { font-family: var(--f-body-en); }
.structure-node-subtitle { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-purple); margin-top: 5px; }
.structure-row::before { content: ''; position: absolute; }
.structure-tree .structure-row + .structure-row { position: relative; }
.structure-tree .structure-row::after { content: ''; position: absolute; top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.6rem)); left: 50%; width: 1px; height: clamp(1.5rem, 1rem + 2vw, 2.6rem); background: var(--rule); }
.structure-tree > .structure-node.is-root { z-index: 1; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 1.6rem); }
.team-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-default); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; transition: border-color var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base); }
.team-card::before { content: ''; position: absolute; top: -1px; inset-inline-start: -1px; width: 12px; height: 12px; border-top: 2px solid var(--brand-gold); border-inline-start: 2px solid var(--brand-gold); }
.team-card:hover { border-color: var(--brand-gold); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card-icon-ring { width: 58px; height: 58px; border: 1px solid var(--border-default); border-radius: 50%; display: grid; place-items: center; color: var(--brand-purple); }
.team-card-icon svg { width: 26px; height: 26px; }
.team-card-badge { display: inline-block; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-purple); margin-bottom: 8px; }
.team-card-name { font-family: var(--f-disp-ar); font-weight: 700; font-size: 1.2rem; }
body[dir="ltr"] .team-card-name { font-family: var(--f-disp-en); font-weight: 600; font-size: 1.05rem; }
.team-card-role { color: var(--text-tertiary); font-size: 0.9rem; margin-top: 4px; }
.team-card-contact { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.team-card-contact-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); direction: ltr; transition: color var(--duration-fast); }
.team-card-contact-link svg { width: 15px; height: 15px; color: var(--brand-purple); }
.team-card-contact-link:hover { color: var(--brand-purple); }

/* ==========================================================================
   PROJECTS — horizontal gallery
   ========================================================================== */
.projects .section-intro { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.projects-hint { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; }
.projects-hint .drag { width: 34px; height: 1px; background: var(--brand-gold); position: relative; }
.projects-hint .drag::after { content: ''; position: absolute; inset-inline-end: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid var(--brand-gold); border-inline-end: 1px solid var(--brand-gold); transform: rotate(45deg); }
body[dir="rtl"] .projects-hint .drag::after { inset-inline-end: auto; inset-inline-start: 0; transform: rotate(225deg); }
.projects-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 420px);
  gap: clamp(1rem, .5rem + 2vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 6px 22px; padding-inline: var(--edge); margin-inline: calc(-1 * var(--edge));
  scrollbar-width: thin; scrollbar-color: var(--brand-gold) transparent;
}
.projects-grid::-webkit-scrollbar { height: 4px; }
.projects-grid::-webkit-scrollbar-thumb { background: var(--brand-gold); border-radius: 2px; }
.project-card { scroll-snap-align: start; position: relative; }
.project-card > img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--border-default); background: var(--bg-tertiary); transition: transform 1.1s var(--ease-out); }
.project-card:hover > img { transform: scale(1.05); }
.project-card-overlay { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 42%, rgba(15,16,20,.86)); pointer-events: none; }
.project-card-category { align-self: flex-start; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #201a08; background: var(--brand-gradient); padding: 4px 11px; border-radius: var(--radius-full); margin-bottom: auto; }
.project-card-title { color: #F5F1E8; font-family: var(--f-disp-ar); font-weight: 700; font-size: 1.35rem; margin-top: 12px; }
body[dir="ltr"] .project-card-title { font-family: var(--f-disp-en); font-weight: 600; }
.project-card-location { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: rgba(231,206,139,.92); }
.project-card-location svg { width: 13px; height: 13px; }

/* ==========================================================================
   CLIENTS — marquee ticker
   ========================================================================== */
.clients-marquee { position: relative; overflow: hidden; border-block: 1px solid var(--border-subtle); padding-block: 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track { display: flex; gap: 0; width: max-content; animation: bp-marquee 40s linear infinite; }
body[dir="rtl"] .clients-track { animation-direction: reverse; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.client-logo { display: inline-flex; align-items: center; padding-inline: clamp(1.5rem, 1rem + 2vw, 3rem); font-family: var(--f-disp-ar); font-weight: 500; font-size: clamp(1rem, .9rem + .6vw, 1.4rem); color: var(--text-tertiary); white-space: nowrap; position: relative; transition: color var(--duration-fast); }
body[dir="ltr"] .client-logo { font-family: var(--f-body-en); }
.client-logo:hover { color: var(--brand-purple); }
.client-logo::after { content: '·'; position: absolute; inset-inline-end: 0; color: var(--brand-gold); }
@keyframes bp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body[dir="rtl"] @keyframes bp-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-inner { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact-cta { font-family: var(--f-disp-ar); font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em; margin-block: 8px 32px; }
body[dir="ltr"] .contact-cta { font-family: var(--f-disp-en); font-weight: 600; }
.contact-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.contact-branch { border-inline-start: 2px solid var(--brand-gold); padding-inline-start: 14px; }
.contact-branch-city { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-purple); margin-bottom: 6px; }
.contact-branch-address { color: var(--text-secondary); font-size: 0.9rem; line-height: var(--leading-normal); }
.contact-details { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); margin-bottom: 26px; }
.contact-detail { background: var(--bg-primary); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; flex-wrap: wrap; }
.contact-detail-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.contact-detail-label .whatsapp-icon { color: var(--brand-gold); }
.contact-detail-value { font-size: 0.92rem; font-weight: 500; color: var(--text-primary); }
.contact-detail-value a:hover { color: var(--brand-purple); }
.contact-map { border: 1px solid var(--border-default); overflow: hidden; aspect-ratio: 16/10; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2); }
[data-theme="dark"] .contact-map iframe { filter: invert(0.92) hue-rotate(180deg) grayscale(0.3) contrast(0.95); }

.contact-form { background: var(--bg-card); border: 1px solid var(--border-default); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow-md); position: relative; }
.contact-form::before { content: ''; position: absolute; top: -1px; inset-inline-end: -1px; width: 16px; height: 16px; border-top: 2px solid var(--brand-gold); border-inline-end: 2px solid var(--brand-gold); }
.contact-form h3 { font-family: var(--f-disp-ar); font-weight: 700; font-size: var(--text-2xl); margin-bottom: var(--space-8); }
body[dir="ltr"] .contact-form h3 { font-family: var(--f-disp-en); font-weight: 600; }
.botcheck { display: none !important; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-textarea { width: 100%; background: var(--bg-primary); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 13px 15px; font: inherit; font-size: 0.95rem; color: var(--text-primary); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgba(200,162,76,.16); }
.form-textarea { min-height: 130px; resize: vertical; }
.captcha-box { margin-bottom: 8px; }
.captcha-box strong { color: var(--brand-purple); font-family: var(--f-mono); }
.captcha-error { display: block; color: #d9534f; font-size: 0.8rem; margin-top: 8px; }
.contact-form .btn { width: 100%; margin-top: var(--space-4); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border-subtle); padding-top: clamp(3rem, 2rem + 3vw, 5rem); padding-bottom: 40px; background: var(--bg-secondary); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand-logo .navbar-logo-mark { width: 44px; height: 44px; }
.footer-brand-description { color: var(--text-tertiary); font-size: 0.9rem; line-height: var(--leading-relaxed); max-width: 42ch; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social { width: 40px; height: 40px; border: 1px solid var(--border-default); border-radius: 50%; display: grid; place-items: center; color: var(--text-secondary); transition: all var(--duration-fast); }
.footer-social svg { width: 17px; height: 17px; }
.footer-social:hover { border-color: var(--brand-gold); color: var(--brand-purple); transform: translateY(-3px); }
.footer-col-title { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-tertiary); font-size: 0.9rem; transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--brand-purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border-subtle); font-size: 0.8rem; color: var(--text-tertiary); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top { position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: var(--z-sticky); width: 48px; height: 48px; border-radius: 50%; background: var(--brand-gradient); color: #201a08; display: grid; place-items: center; box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--duration-base) var(--ease-out); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .navbar-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero-inner, .mission-inner, .about-inner, .vision-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-plate { max-width: 420px; }
  .vision-inner { gap: 2rem; }
  .contact-branches { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-stats { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 54px 1fr auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .structure-tree .structure-row::after { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-ready [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html.js-ready .hero-title .line-inner { transform: none !important; transition: none !important; }
  html.js-ready .draw path, html.js-ready .draw line { stroke-dashoffset: 0 !important; transition: none !important; }
  .clients-track { animation: none !important; }
  .scroll-indicator-line { animation: none !important; }
  .loader-logo { animation: none !important; }
}
