/* =========================================================
   Time To Care — Design Tokens & Base
   Palette and typography per Part 3 of the brief.
   ========================================================= */

:root {
  /* Brand palette */
  --navy:        #0A2540;
  --navy-2:      #0F2C4D;
  --navy-deep:   #061a2e;
  --teal:        #1AA9B5;
  --glow:        #5FD4DC;
  --gold:        #D4A24C;
  --white:       #FFFFFF;
  --offwhite:    #F4F8FB;
  --gray-soft:   #EEF3F7;
  --ink:         #1A1A1A;
  --ink-muted:   #5A6A7A;

  /* Type — pairings per Part 3 §14 */
  --font-en-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-en-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-en-script:  "Caveat", "Inter Tight", cursive;

  --font-ar-display: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-ar-body:    "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-ar-script:  "El Messiri", "IBM Plex Sans Arabic", serif;

  /* Spacing rhythm */
  --section-y: clamp(72px, 12vw, 180px);
  --gutter: clamp(20px, 4vw, 56px);
  --max-w: 1440px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-en-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* AR-side font + reading rhythm (brief §14) */
html[lang="ar"] body { font-family: var(--font-ar-body); font-size: 18px; line-height: 1.75; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 { font-family: var(--font-ar-display); }

/* Language visibility */
html[lang="en"] .t-ar { display: none !important; }
html[lang="ar"] .t-en { display: none !important; }

/* Standard headings — Inter Tight, tight tracking on display */
h1, h2, h3, h4 {
  font-family: var(--font-en-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* Eyebrow label */
/* Eyebrow base — fully handled by Phase 6 (search PHASE 6 below) */

/* Container */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section primitives */
section {
  position: relative;
  padding: var(--section-y) 0;
}
section.dark { background: var(--navy); color: var(--white); }
section.light { background: var(--offwhite); color: var(--ink); }
section.light .eyebrow { color: var(--teal); }
/* ::before inherits via currentColor — no extra rule needed */

/* ===== Header / Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 37, 64, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(95, 212, 220, 0.10);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-en-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[lang="ar"] .brand { font-family: var(--font-ar-display); }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(95, 212, 220, 0.45));
  transition: filter 300ms var(--ease);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 0 14px rgba(95, 212, 220, 0.7));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
  opacity: .8;
  margin-top: 4px;
}
html[lang="ar"] .brand-text small { letter-spacing: 0.08em; font-size: 11px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
  margin-inline-end: 16px;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  transition: color 200ms var(--ease);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex: none;
}
.nav-links a:hover { color: var(--glow); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  transform: scaleX(0);
  transition: transform 300ms var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 720px) {
  .nav-cta-group { gap: 8px; }
  .lang-toggle span { padding: 6px 10px; }
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 5px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  min-height: 44px;
}
.lang-toggle:hover { border-color: var(--glow); color: var(--white); }
.lang-toggle span {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.lang-toggle .active {
  background: var(--white);
  color: var(--navy);
}

/* Phone pill (desktop only) */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}
.nav-phone svg { width: 14px; height: 14px; }
@media (max-width: 1280px) { .nav-phone { display: none; } }

/* WhatsApp inline button */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  flex: none;
  min-height: 44px;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.btn-wa svg { width: 16px; height: 16px; }
.btn-wa::after {
  /* gold gradient sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(212,162,76,0.0) 35%, rgba(212,162,76,0.9) 50%, rgba(212,162,76,0.0) 65%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease);
  z-index: -1;
}
.btn-wa:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 18px 40px -16px rgba(26,169,181,0.6); }
.btn-wa:hover::after { transform: translateX(110%); }

/* Mobile menu trigger */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.menu-toggle:hover, .menu-toggle:focus-visible {
  background: rgba(255,255,255,0.06);
  border-color: var(--glow);
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .nav .brand-text small { display: none; }
  /* Top nav button: keep compact (icon-only) */
  .nav .btn-wa { padding: 10px 14px; font-size: 13px; }
  .nav .btn-wa span.t-en, .nav .btn-wa span.t-ar { display: none; }
  .nav { height: 64px; }
  .nav .wrap { gap: 12px; }
  /* But hero/CTA buttons should always show text */
  .hero .btn-wa, .final-cta .btn-wa, .how-cta .btn-wa {
    padding: 16px 28px;
    font-size: 15px;
    min-height: 52px;
  }
  .hero .btn-wa span.t-en, .hero .btn-wa span.t-ar,
  .final-cta .btn-wa span.t-en, .final-cta .btn-wa span.t-ar,
  .how-cta .btn-wa span.t-en, .how-cta .btn-wa span.t-ar {
    display: inline;
  }
  /* Compact brand on mobile */
  .brand-mark { width: 36px; height: 36px; }
  .brand-text .t-en, .brand-text .t-ar { font-size: 16px; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 46, 0.96);
  backdrop-filter: blur(20px);
  z-index: 60;
  display: none;
  padding: 80px 32px 32px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: -0.02em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  background:
    radial-gradient(80% 60% at 15% 25%, rgba(26,169,181,0.12) 0%, transparent 60%),
    radial-gradient(70% 60% at 90% 80%, rgba(95,212,220,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #061a2e 0%, #0A2540 50%, #0F2C4D 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero canvas.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-width: 0;
  min-height: 78vh;
}
@media (max-width: 900px) {
  .hero-grid { 
    grid-template-columns: minmax(0, 1fr); 
    gap: 24px; 
    min-height: auto;
  }
  /* On mobile: text first, helix as quieter visual below */
  .hero-text { padding-top: 8px; order: 1; }
  .hero-visual {
    aspect-ratio: 1.4 / 1;
    max-height: 38vh;
    min-height: 240px;
    order: 2;
    opacity: 0.9;
  }
}
@media (max-width: 540px) {
  .hero-visual {
    aspect-ratio: 1.2 / 1;
    max-height: 32vh;
    min-height: 200px;
    opacity: 0.85;
  }
  .hero { padding: 96px 0 56px; }

  .hero-body {
    font-size: 15.5px;
    line-height: 1.7;
  }
  html[lang="ar"] .hero-body {
    font-size: 16px;
    line-height: 1.85;
  }
  .hero-tagline {
    font-size: clamp(19px, 5.5vw, 24px);
  }
  html[lang="ar"] .hero-tagline {
    font-size: clamp(20px, 6vw, 26px);
  }
  .hero-sub-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* RTL: keep helix on the right edge of screen, text on the left -- per brief */
html[lang="ar"] .hero-grid { /* same grid, dir handles flow */ }

.hero-text { max-width: 640px; min-width: 0; }
.hero-display {
  font-family: var(--font-en-display);
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 24px 0 0;
  position: relative;
}
html[lang="ar"] .hero-display {
  font-family: var(--font-ar-display);
  font-size: clamp(54px, 10vw, 140px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* letter-reveal */
.hero-display .word { display: inline-block; white-space: nowrap; }
.hero-display .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), filter 700ms var(--ease-out);
}
.hero-display.reveal .ch { opacity: 1; transform: translateY(0); filter: blur(0); }
/* Arabic headline: keep words whole, allow line break BETWEEN words */
html[lang="ar"] .hero-display { word-spacing: 0.05em; }
html[lang="ar"] .hero-display .ch { white-space: nowrap; }

.hero-sub-eyebrow {
  display: inline-block;
  font-family: var(--font-en-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms 200ms var(--ease-out), transform 700ms 200ms var(--ease-out);
}
html[lang="ar"] .hero-sub-eyebrow {
  font-family: var(--font-ar-body);
  letter-spacing: 0.08em;
  font-size: 13px;
}
.hero.in .hero-sub-eyebrow { opacity: 1; transform: none; }

.hero-tagline {
  margin-top: 28px;
  font-family: var(--font-en-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
  max-width: 560px;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  transition: opacity 900ms 900ms var(--ease-out), filter 900ms 900ms var(--ease-out), transform 900ms 900ms var(--ease-out);
}
html[lang="ar"] .hero-tagline {
  font-family: var(--font-ar-display);
  font-style: normal;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.7;
}
.hero.in .hero-tagline { opacity: 1; filter: blur(0); transform: none; }

.hero-body {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms 1100ms var(--ease-out), transform 700ms 1100ms var(--ease-out);
}
html[lang="ar"] .hero-body { font-size: 18px; line-height: 1.9; max-width: 540px; }
.hero.in .hero-body { opacity: 1; transform: none; }

.hero-ctas {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms 1300ms var(--ease-out), transform 700ms 1300ms var(--ease-out);
}
@media (max-width: 540px) {
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }
  .hero-ctas .btn-wa,
  .hero-ctas .btn-secondary {
    justify-content: center;
    width: 100%;
    min-height: 56px;
    font-size: 16px;
  }
}
.hero.in .hero-ctas { opacity: 1; transform: none; }

/* Trust microcopy under hero CTAs */
.hero-trust {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms 1500ms var(--ease-out), transform 800ms 1500ms var(--ease-out);
}
.hero-trust .trust-dot {
  width: 10px;
  height: 10px;
  animation: trustPulse 2.5s ease-in-out infinite;
}
@keyframes trustPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}
html[lang="ar"] .hero-trust {
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
}
.hero.in .hero-trust { opacity: 1; transform: none; }
@media (max-width: 540px) {
  .hero-trust { font-size: 11.5px; flex-wrap: wrap; }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: var(--glow); color: var(--white); }
.btn-secondary .arrow { transition: transform 250ms var(--ease); }
.btn-secondary:hover .arrow { transform: translateX(4px); }
html[lang="ar"] .btn-secondary:hover .arrow { transform: translateX(-4px); }

/* Hero visual side: 3D helix canvas + ribbon SVG overlay */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  max-height: 72vh;
  min-height: 520px;
}
.hero-visual canvas.helix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-visual .ribbon {
  position: absolute;
  inset: -10% -20% -10% -20%;
  width: 140%;
  height: 120%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.hero-visual .ribbon path { fill: none; stroke-linecap: round; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 4;
}
.scroll-hint .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--glow), transparent);
  background-size: 100% 200%;
  animation: scrollLine 2.6s infinite var(--ease);
}
@keyframes scrollLine {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}
html[lang="ar"] .scroll-hint { letter-spacing: 0.16em; }

/* ===== Strand Divider (FORM 4) ===== */
.strand-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}
.strand-divider svg { width: 100%; height: 100%; display: block; overflow: visible; }
.strand-divider .ds {
  stroke: var(--glow);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0 0 4px rgba(95,212,220,0.6));
  transition: stroke-dashoffset 1600ms var(--ease-out);
}
.strand-divider.in .ds { stroke-dashoffset: 0; }
.strand-divider .ds-rung {
  stroke: var(--gold);
  stroke-width: 0.6;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.strand-divider.in .ds-rung { opacity: 0.7; }
section.light + .strand-divider .ds,
.strand-divider.on-light .ds { stroke: var(--teal); filter: none; opacity: 0.6; }

/* ===== Section 2 — Stress ===== */
.stress {
  background: radial-gradient(120% 80% at 50% 0%, rgba(15,44,77,0.85) 0%, var(--navy) 60%);
}
.stress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .stress-grid { grid-template-columns: 1fr; } }
.stress-text { max-width: 540px; }
.stress h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 24px;
}
html[lang="ar"] .stress h2 {
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.2;
}
.stress-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.stress-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1.55;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stress-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.stress-list .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 10px;
  flex: none;
  box-shadow: 0 0 12px rgba(212,162,76,0.6);
}
.stress-emph {
  margin-top: 32px;
  font-size: 22px;
  color: var(--white);
  font-weight: 500;
}
.stress-transition {
  margin-top: 24px;
  font-family: var(--font-en-script);
  font-size: 32px;
  color: var(--glow);
  font-style: italic;
}
html[lang="ar"] .stress-transition {
  font-family: var(--font-ar-script);
  font-style: normal;
  font-size: 30px;
  font-weight: 500;
}

/* Stress visual: split scene (washed-out grey on one side, warm color on other), DNA ribbon between */
.stress-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(10,37,64,0.6), rgba(10,37,64,0.6)),
    linear-gradient(90deg, #2a3038 0%, #2a3038 50%, #b08962 50%, #d2a878 100%);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.stress-visual .panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stress-visual .panel-cold,
.stress-visual .panel-warm {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  background: #0a1218;
}
.stress-visual .panel-warm::after {
  /* warm window light bar — kept as accent on top of image */
  content: "";
  position: absolute;
  top: 18%;
  right: 18%;
  width: 18%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,210,150,0.22), rgba(255,210,150,0));
  filter: blur(20px);
  z-index: 2;
  pointer-events: none;
}
.stress-visual .ribbon-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* SVG art for stress visual (placeholder until Midjourney photos are added) */
.stress-visual .panel-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.stress-visual .panel-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.stress-visual .panel-art-warm::after {
  /* Subtle teal halo on warm panel */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 40% at 60% 50%, rgba(95,212,220,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.stress-visual .stamp { z-index: 3; }
.stress-visual .stamp {
  position: absolute;
  top: 16px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.stress-visual .stamp.left { left: 18px; }
.stress-visual .stamp.right { right: 18px; color: rgba(255,220,180,0.75); }

/* ===== Section 3 — Promise ===== */
.promise {
  background:
    radial-gradient(80% 50% at 50% 60%, rgba(26,169,181,0.08) 0%, transparent 60%),
    var(--navy);
  overflow: hidden;
}
.promise .wrap { display: grid; gap: 64px; align-items: center; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .promise .wrap { grid-template-columns: 1fr; } }
.promise h2 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
}
.promise h2 .accent {
  display: block;
  font-family: var(--font-en-script);
  color: var(--gold);
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-style: italic;
}
html[lang="ar"] .promise h2 {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
}
html[lang="ar"] .promise h2 .accent {
  font-family: var(--font-ar-script);
  font-style: normal;
  font-size: 0.78em;
  font-weight: 500;
}

.promise p {
  margin-top: 28px;
  color: rgba(255,255,255,0.72);
  font-size: 20px;
  line-height: 1.7;
  max-width: 480px;
}
html[lang="ar"] .promise p { font-size: 20px; line-height: 1.9; }

/* ===== Promise visual: editorial photograph treatment ===== */
.hands-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06) inset;
  isolation: isolate;
}

/* The image fills the frame */
.hands-frame > img,
.hands-frame .promise-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  /* Subtle color grading — match brand palette */
  filter: saturate(0.95) contrast(1.04) brightness(0.98);
  transition: transform 1200ms var(--ease-out), filter 800ms var(--ease);
}

/* Subtle zoom on hover (desktop only) */
@media (hover: hover) and (min-width: 900px) {
  .hands-frame:hover .promise-photo {
    transform: scale(1.03);
    filter: saturate(1.02) contrast(1.07) brightness(1);
  }
}

/* Brand tint — soft navy lift on top and bottom edges */
.promise-photo-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0.10) 0%,
    rgba(10, 37, 64, 0.0) 25%,
    rgba(10, 37, 64, 0.0) 65%,
    rgba(10, 37, 64, 0.45) 100%
  );
  pointer-events: none;
}

/* Cinematic vignette — focuses gaze on the subjects */
.promise-photo-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    80% 70% at 50% 50%,
    transparent 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

/* Teal brand glow — top-right corner */
.promise-photo-glow-teal {
  position: absolute;
  top: -20%;
  inset-inline-end: -20%;
  width: 60%;
  height: 60%;
  z-index: 4;
  background: radial-gradient(
    circle at center,
    rgba(95, 212, 220, 0.18) 0%,
    rgba(95, 212, 220, 0.0) 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: promiseGlowTeal 9s ease-in-out infinite;
}
@keyframes promiseGlowTeal {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Gold brand glow — bottom-left corner */
.promise-photo-glow-gold {
  position: absolute;
  bottom: -15%;
  inset-inline-start: -15%;
  width: 55%;
  height: 55%;
  z-index: 4;
  background: radial-gradient(
    circle at center,
    rgba(212, 162, 76, 0.20) 0%,
    rgba(212, 162, 76, 0.0) 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: promiseGlowGold 11s ease-in-out infinite;
}
@keyframes promiseGlowGold {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* Very subtle film grain */
.promise-photo-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Reduced motion: kill glow animations */
@media (prefers-reduced-motion: reduce) {
  .promise-photo-glow-teal,
  .promise-photo-glow-gold,
  .promise-photo {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Section 4 — Two Worlds ===== */
.two-worlds {
  background: var(--navy);
  padding: 0;
}
.two-worlds .header {
  padding: clamp(28px, 4vw, 56px) 0 56px;
  text-align: center;
}
.two-worlds h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.two-worlds h2 span { color: var(--glow); }
.two-worlds .body {
  max-width: 620px;
  margin: 24px auto 0;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  text-align: center;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  min-height: 600px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; min-height: auto; } }

.pillar {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 88px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 540px;
}
.pillar.care {
  background:
    linear-gradient(180deg, rgba(244,248,251,0.0) 0%, rgba(244,248,251,1) 60%),
    linear-gradient(120deg, #fde8cd 0%, #f4e1c3 50%, #efe7d8 100%);
  color: var(--ink);
}
.pillar.care::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 30% 30%, rgba(255,210,150,0.5) 0%, transparent 60%),
    radial-gradient(60% 50% at 70% 70%, rgba(212,162,76,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.pillar.dna {
  background:
    radial-gradient(70% 60% at 80% 30%, rgba(26,169,181,0.18) 0%, transparent 70%),
    radial-gradient(60% 50% at 30% 80%, rgba(95,212,220,0.16) 0%, transparent 60%),
    linear-gradient(160deg, #061a2e 0%, #0A2540 60%, #0F2C4D 100%);
  color: var(--white);
}
.pillar.dna canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Soft edge mask — image fades into the navy background instead of being cropped harshly */
  -webkit-mask-image: radial-gradient(
    ellipse 75% 65% at 50% 40%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0) 100%
  );
          mask-image: radial-gradient(
    ellipse 75% 65% at 50% 40%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

/* On mobile, the pillar is full-width but shorter — keep canvas balanced */
@media (max-width: 900px) {
  .pillar.dna canvas {
    -webkit-mask-image: radial-gradient(
      ellipse 60% 55% at 50% 35%,
      rgba(0, 0, 0, 1) 30%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0) 100%
    );
            mask-image: radial-gradient(
      ellipse 60% 55% at 50% 35%,
      rgba(0, 0, 0, 1) 30%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}
.pillar > * { position: relative; z-index: 2; }
.pillar .pillar-label {
  font-family: var(--font-en-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
}
html[lang="ar"] .pillar .pillar-label { font-family: var(--font-ar-body); letter-spacing: 0.12em; font-size: 12px; }
.pillar.care .pillar-label { color: #8b6a3a; }
.pillar.dna .pillar-label { color: var(--glow); }
.pillar h3 {
  font-size: clamp(36px, 4.4vw, 56px);
  margin-top: 14px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.pillar p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 460px;
}
.pillar.care p { color: rgba(26,26,26,0.7); }
.pillar.dna p { color: rgba(255,255,255,0.7); }
.pillar .link {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  padding: 8px 2px;
  min-height: 44px;
  width: max-content;
  transition: gap 250ms var(--ease);
}
.pillar.care .link { color: #8b6a3a; }
.pillar.dna .link { color: var(--glow); }
.pillar .link:hover { gap: 16px; }

/* Vertical strand between pillars */
.pillars-strand {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 900px) { .pillars-strand { display: none; } }

/* ===== Section 5 — Service Highlights ===== */
.services {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.services canvas.particles { position: absolute; inset: 0; opacity: 0.5; z-index: 0; }
.services .wrap { position: relative; z-index: 2; }
.services .head {
  display: block;
  margin-bottom: 56px;
}
.services h2 {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 14px;
  max-width: 720px;
  line-height: 1.05;
}
.services .head .right {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  max-width: 360px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px 26px 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 350ms var(--ease), border-color 350ms var(--ease), background 350ms var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.svc::before {
  /* hover echo: DNA filament glow */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at var(--mx, 50%) var(--my, 0%), rgba(95,212,220,0.20) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 350ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: rgba(95,212,220,0.35);
  background: linear-gradient(180deg, rgba(95,212,220,0.06) 0%, rgba(255,255,255,0.015) 100%);
}
.svc:hover::before { opacity: 1; }
.svc .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(95,212,220,0.18), rgba(26,169,181,0.06));
  border: 1px solid rgba(95,212,220,0.22);
  display: grid; place-items: center;
  color: var(--glow);
  transition: transform 350ms var(--ease);
}
.svc:hover .icon { transform: rotate(-4deg) scale(1.06); }
.svc .icon svg { width: 20px; height: 20px; }
.svc h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-top: 6px;
}
html[lang="ar"] .svc h3 { font-size: 20px; line-height: 1.45; }
.svc p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.55;
}
html[lang="ar"] .svc p { font-size: 15px; line-height: 1.75; }
.svc .more {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 250ms var(--ease), gap 250ms var(--ease);
}
html[lang="ar"] .svc .more { letter-spacing: 0.08em; font-size: 13px; }
.svc:hover .more { opacity: 1; gap: 14px; }

/* Tag for genomic vs care */
.svc .tag {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  z-index: 2;
}
.svc .tag.gold { color: var(--gold); border-color: rgba(212,162,76,0.3); }
.svc .tag.teal { color: var(--glow); border-color: rgba(95,212,220,0.3); }
html[lang="ar"] .svc .tag { letter-spacing: 0.06em; font-size: 11px; }

/* Genomic cards — distinct visual treatment (gold accent + DNA pattern background) */
.svc.genomic-card {
  background:
    linear-gradient(180deg, rgba(212,162,76,0.04) 0%, rgba(212,162,76,0.01) 100%),
    linear-gradient(180deg, rgba(15,44,77,0.4) 0%, rgba(10,26,46,0.6) 100%);
  border-color: rgba(212,162,76,0.12);
}
/* Subtle DNA helix decoration in the background */
.svc.genomic-card::after {
  content: "";
  position: absolute;
  top: -10px;
  inset-inline-end: -20px;
  width: 90px;
  height: 90px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><path d='M 15 5 Q 35 15, 20 35 Q 5 55, 35 65 Q 65 75, 50 50 Q 35 25, 60 15' stroke='%23D4A24C' stroke-width='1' fill='none' opacity='0.5'/><path d='M 15 5 Q 5 25, 35 35 Q 65 45, 50 60 Q 35 75, 60 70' stroke='%235FD4DC' stroke-width='1' fill='none' opacity='0.4'/><circle cx='20' cy='25' r='1.5' fill='%23D4A24C'/><circle cx='40' cy='40' r='1.5' fill='%235FD4DC'/><circle cx='55' cy='55' r='1.5' fill='%23D4A24C'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  transition: opacity 350ms var(--ease), transform 500ms var(--ease);
}
.svc.genomic-card:hover::after {
  opacity: 0.55;
  transform: rotate(8deg) scale(1.1);
}
.svc.genomic-card:hover {
  border-color: rgba(212,162,76,0.45);
  background:
    linear-gradient(180deg, rgba(212,162,76,0.10) 0%, rgba(212,162,76,0.02) 100%),
    linear-gradient(180deg, rgba(15,44,77,0.5) 0%, rgba(10,26,46,0.7) 100%);
}
.svc.genomic-card .icon {
  background: linear-gradient(135deg, rgba(212,162,76,0.18), rgba(180,130,50,0.06));
  border-color: rgba(212,162,76,0.25);
  color: var(--gold);
}
.svc.genomic-card .more {
  color: var(--gold);
}
.svc.genomic-card::before {
  background: radial-gradient(120% 80% at var(--mx, 50%) var(--my, 0%), rgba(212,162,76,0.20) 0%, transparent 60%);
}
.svc.genomic-card > * { position: relative; z-index: 1; }
.svc.genomic-card .tag { 
  position: absolute;  /* keep absolute positioning */
  z-index: 2; 
}

/* ===== Trust Strip — Why Choose Us ===== */
.trust-strip {
  background: var(--navy);
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; gap: 28px; } }

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 0;
}
.trust-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95,212,220,0.15), rgba(26,169,181,0.04));
  border: 1px solid rgba(95,212,220,0.22);
  display: grid;
  place-items: center;
  color: var(--glow);
  transition: transform 350ms var(--ease), border-color 350ms var(--ease);
}
.trust-card:hover .trust-icon {
  transform: rotate(-6deg) scale(1.05);
  border-color: rgba(95,212,220,0.45);
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-content { flex: 1; }
.trust-content h3 {
  font-family: var(--font-en-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
html[lang="ar"] .trust-content h3 {
  font-family: var(--font-ar-display);
  font-size: 20px;
  font-weight: 600;
}
.trust-content p {
  color: rgba(255,255,255,0.6);
  font-size: 14.5px;
  line-height: 1.7;
}
html[lang="ar"] .trust-content p { font-size: 15.5px; line-height: 1.85; }

/* ===== Section 6 — How It Works (dark, cinematic) ===== */
.how-it-works {
  background: radial-gradient(120% 70% at 50% 0%, rgba(15,44,77,0.6) 0%, var(--navy) 60%);
  position: relative;
  overflow: hidden;
}
.how-it-works canvas.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.how-it-works .wrap { position: relative; z-index: 2; }
.how-it-works .head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 80px;
}
.how-it-works .head h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 22px;
  color: var(--white);
}
html[lang="ar"] .how-it-works .head h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.25;
  font-weight: 700;
}
.how-it-works .head h2 .accent {
  font-family: var(--font-en-script);
  font-style: italic;
  font-weight: 400;
  color: var(--glow);
}
html[lang="ar"] .how-it-works .head h2 .accent {
  font-family: var(--font-ar-script);
  font-style: normal;
  font-weight: 600;
  color: var(--glow);
}
.how-it-works .head .body {
  margin-top: 22px;
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  line-height: 1.7;
}
html[lang="ar"] .how-it-works .head .body { font-size: 19px; line-height: 1.9; }

/* The animated connecting DNA path (desktop only) */
.how-path {
  position: relative;
  height: 120px;
  margin-bottom: -64px;
  pointer-events: none;
  z-index: 1;
}
.how-path svg { width: 100%; height: 100%; display: block; overflow: visible; }
.how-path .how-line {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  transition: stroke-dashoffset 2200ms var(--ease-out);
}
.how-it-works.in .how-path .how-line { stroke-dashoffset: 0; }
.how-path .how-rungs line {
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.how-it-works.in .how-path .how-rungs line { opacity: 0.4; }
.how-path .how-nodes circle {
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.how-it-works.in .how-path .how-nodes circle { opacity: 0.9; }
.how-it-works.in .how-path .how-nodes circle:nth-child(1) { transition-delay: 800ms; }
.how-it-works.in .how-path .how-nodes circle:nth-child(2) { transition-delay: 1200ms; }
.how-it-works.in .how-path .how-nodes circle:nth-child(3) { transition-delay: 1600ms; }
.how-it-works.in .how-path .how-nodes circle:nth-child(4) { transition-delay: 2000ms; }

/* Hide animated path on mobile (use vertical stack) */
@media (max-width: 900px) { .how-path { display: none; } }

/* Step cards */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  position: relative;
  z-index: 2;
}
@media (max-width: 1000px) { .how-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (max-width: 540px) { .how-steps { grid-template-columns: 1fr; gap: 28px; } }

.how-step {
  position: relative;
  text-align: center;
  padding: 24px 18px 8px;
}
.how-step .step-num {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(95,212,220,0.06), rgba(95,212,220,0.0));
}
.how-step .step-num span {
  font-family: var(--font-en-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--glow);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
.how-step .step-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: stepRingPulse 4s ease-in-out infinite;
}
@keyframes stepRingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}
.how-step .step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--glow);
  opacity: 0.85;
}
.how-step .step-icon svg { width: 100%; height: 100%; }
.how-step h3 {
  font-family: var(--font-en-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}
html[lang="ar"] .how-step h3 {
  font-family: var(--font-ar-display);
  font-size: 24px;
  font-weight: 600;
}
.how-step p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.7;
  max-width: 220px;
  margin: 0 auto;
}
html[lang="ar"] .how-step p { font-size: 16px; line-height: 1.85; max-width: 240px; }

/* Gold-themed steps (last two) */
.how-step.gold-step .step-num {
  background: linear-gradient(180deg, rgba(212,162,76,0.08), rgba(212,162,76,0.0));
}
.how-step.gold-step .step-num span { color: var(--gold); }
.how-step.gold-step .step-icon { color: var(--gold); }

/* Inline CTA at end of How It Works */
.how-cta {
  margin-top: 80px;
  text-align: center;
}
.how-cta .how-cta-text {
  font-family: var(--font-en-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
}
html[lang="ar"] .how-cta .how-cta-text {
  font-family: var(--font-ar-display);
  font-style: normal;
  font-size: 24px;
}
.how-cta .btn-wa {
  padding: 16px 32px;
  font-size: 16px;
}

/* ===== Section 7 — What We Believe (light) ===== */
.believe {
  background: var(--offwhite);
  color: var(--ink);
  position: relative;
}
.believe .head { 
  text-align: center; 
  max-width: 760px; 
  margin: 0 auto 72px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.believe .head .eyebrow {
  margin-bottom: 8px;
  /* Centered eyebrow needs a balanced "line on both sides" feel via margin */
}
.believe h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 28px;
  color: var(--navy);
  line-height: 1.15;
}
.believe h2 .people {
  font-family: var(--font-en-script);
  font-weight: 400;
  font-style: italic;
  color: var(--teal);
}
html[lang="ar"] .believe h2 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  margin-top: 32px;
  line-height: 1.35;
}
html[lang="ar"] .believe h2 .people {
  font-family: var(--font-ar-script);
  font-style: normal;
  font-weight: 600;
}
.believe .body {
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 620px;
}
html[lang="ar"] .believe .body {
  font-size: 19px;
  line-height: 1.95;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 540px)  { .values-grid { grid-template-columns: 1fr; gap: 16px; } }

.value {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 30px;
  border: 1px solid rgba(10,37,64,0.06);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-align: start;
}
.value:hover {
  border-color: rgba(26,169,181,0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(26,169,181,0.35);
}
.value .ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(26,169,181,0.10);
  border: 1px solid rgba(26,169,181,0.3);
  display: grid; place-items: center;
  color: var(--teal);
  flex: none;
  margin-bottom: 24px;
}
.value .ring svg { width: 24px; height: 24px; }
.value h3,
.value h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
html[lang="ar"] .value h3,
html[lang="ar"] .value h4 {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
}
.value p {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
}
html[lang="ar"] .value p {
  font-size: 15.5px;
  line-height: 1.9;
  margin-top: 12px;
}

/* Gold shimmer divider */
.gold-shimmer {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  width: min(720px, 60vw);
  opacity: 0.5;
}

/* ===== Section 7 — Final CTA ===== */
.final-cta {
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(26,169,181,0.18) 0%, transparent 60%),
    radial-gradient(50% 60% at 50% 80%, rgba(95,212,220,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #061a2e 0%, #0A2540 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta canvas.particles { position: absolute; inset: 0; opacity: 0.7; z-index: 0; }
.final-cta .wrap { position: relative; z-index: 2; }
.final-cta .symbol {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  position: relative;
  display: grid;
  place-items: center;
}
.final-cta .symbol svg,
.final-cta .symbol img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(95,212,220,0.5));
  animation: symbolFloat 6s ease-in-out infinite;
}
@keyframes symbolFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.final-cta h2 {
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 940px;
  margin: 0 auto;
}
.final-cta .body {
  margin-top: 22px;
  color: rgba(255,255,255,0.7);
  font-size: 19px;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.65;
}
.final-cta .saudi {
  margin-top: 36px;
  font-family: var(--font-en-script);
  font-style: italic;
  font-size: 32px;
  color: var(--gold);
}
html[lang="ar"] .final-cta .saudi {
  font-family: var(--font-ar-script);
  font-style: normal;
  font-size: 36px;
  font-weight: 500;
}
.final-cta .cta-stack {
  margin-top: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.final-cta .btn-wa {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 12px;
}
.final-cta .or-call {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.final-cta .or-call a {
  color: var(--glow);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(95,212,220,0.4);
  padding-bottom: 1px;
  margin-inline: 6px;
}

/* ===== Footer ===== */
footer.foot {
  background: #061a2e;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: var(--white); margin-bottom: 18px; }
.foot-tag {
  font-family: var(--font-en-script);
  color: var(--glow);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  margin-top: 16px;
}
html[lang="ar"] .foot-tag {
  font-family: var(--font-ar-script);
  font-style: normal;
  font-size: 22px;
}
.foot-saudi {
  margin-top: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.foot .foot-heading {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
  font-family: var(--font-en-display);
}
html[lang="ar"] .foot .foot-heading { font-family: var(--font-ar-display); letter-spacing: 0.08em; font-size: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { 
  font-size: 14px; 
  color: rgba(255,255,255,0.65); 
  transition: color 200ms var(--ease);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  line-height: 1.4;
}
.foot ul a:hover { color: var(--glow); }
.foot .contact-line { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.7); }
.foot .contact-line a { 
  color: var(--glow); 
  font-variant-numeric: tabular-nums;
  display: inline-block;
  padding: 10px 0;
  min-height: 44px;
  line-height: 1.6;
}
.foot-social {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.foot-social a {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.65);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}
.foot-social a:hover { 
  color: var(--navy); 
  background: var(--glow); 
  border-color: var(--glow);
  transform: translateY(-2px);
}
.foot-social svg { width: 18px; height: 18px; }

.foot-bottom {
  border-top: 1px solid rgba(212,162,76,0.18);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.foot-bottom .links { display: flex; gap: 8px; align-items: center; }
.foot-bottom .links a { 
  padding: 12px 14px; 
  border-radius: 6px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.foot-bottom .links a:hover { 
  color: var(--glow);
  background: rgba(255,255,255,0.04);
}
@media (max-width: 600px) {
  .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .foot-bottom .links { flex-wrap: wrap; }
}

/* ===== WhatsApp floating button (FORM 5: hover echo) ===== */
.wa-float-wrap {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 40;
  width: 60px;
  height: 60px;
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}
.wa-float-wrap.hidden {
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  pointer-events: none;
}
.wa-float {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid; place-items: center;
  cursor: pointer;
  border: 0;
  box-shadow: 0 20px 40px -12px rgba(26,169,181,0.55), 0 0 0 0 rgba(95,212,220,0.6);
  animation: waPulse 8s infinite var(--ease);
  transition: transform 250ms var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }
@keyframes waPulse {
  0%, 90%, 100% { box-shadow: 0 20px 40px -12px rgba(26,169,181,0.55), 0 0 0 0 rgba(95,212,220,0.6); }
  92% { box-shadow: 0 20px 40px -12px rgba(26,169,181,0.55), 0 0 0 12px rgba(95,212,220,0.0); }
}
.wa-float .tip {
  position: absolute;
  inset-inline-end: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
  border: 1px solid rgba(95,212,220,0.25);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
}
html[dir="rtl"] .wa-float .tip { transform: translateY(-50%) translateX(-8px); }
.wa-float:hover .tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Close (X) button on the corner of the floating WhatsApp button */
.wa-float-close {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  opacity: 0.85;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.45);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease);
}
.wa-float-close:hover,
.wa-float-close:focus-visible {
  opacity: 1;
  transform: scale(1.12);
  background: #d23a3a;
  outline: none;
}
.wa-float-close svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* Hover echo for buttons + cards (FORM 5) — subtle DNA filament */
.echo-host { position: relative; }
.echo-host .echo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120% 80% at var(--ex,50%) var(--ey,50%), rgba(95,212,220,0.25), transparent 60%);
  transition: opacity 300ms var(--ease);
}
.echo-host:hover .echo { opacity: 1; }

/* ===== Scroll reveal utility ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal-up.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }

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

/* RTL — small tweaks */
html[dir="rtl"] .nav-links a::after { background: linear-gradient(-90deg, transparent, var(--glow), transparent); }
html[dir="rtl"] .btn-wa svg { transform: scaleX(-1); }
html[dir="rtl"] .scroll-hint .line { /* same */ }

/* Tabular numerics everywhere phone numbers appear */
.tnum { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ===== Global Focus Visible (a11y) ===== */
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-wa:focus-visible,
.btn-secondary:focus-visible,
.menu-toggle:focus-visible,
.lang-toggle:focus-visible {
  outline-offset: 4px;
}
/* Remove default focus on mouse, keep on keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ===== Broken image handling (broken-only, not all images) ===== */
img {
  /* Hide the browser's default broken-image icon and alt text noise */
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: center;
}

/* ===== Selection color ===== */
::selection {
  background: rgba(95, 212, 220, 0.3);
  color: var(--white);
}
section.light ::selection,
.believe ::selection {
  background: rgba(26, 169, 181, 0.2);
  color: var(--navy);
}

/* ===== Smooth scroll with offset for sticky header ===== */
html {
  scroll-padding-top: 72px;
  scroll-behavior: smooth;
}

/* Direct offset on every section that's an anchor target — more reliable */
section[id] {
  scroll-margin-top: 72px;
}

@media (max-width: 720px) {
  html { scroll-padding-top: 60px; }
  section[id] { scroll-margin-top: 60px; }
}

/* ===== Body loading state — prevent FOUC ===== */
.fonts-loading body { 
  opacity: 0.98;
}
.fonts-loaded body { 
  opacity: 1;
  transition: opacity 200ms ease;
}

/* ===== Mobile menu close button + layout improvement ===== */
.mobile-menu {
  padding-top: 100px;
}
.mobile-menu a {
  min-height: 56px;
  display: flex;
  align-items: center;
}
.mobile-menu .menu-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.mobile-menu .menu-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--glow);
}
.mobile-menu .menu-close svg { width: 22px; height: 22px; }

/* ===== High-DPI screen sharpening ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-display, h1, h2 {
    -webkit-font-smoothing: antialiased;
  }
}

/* ===== Print styles ===== */
@media print {
  .nav, .wa-float, .wa-float-wrap, .scroll-hint,
  canvas, .strand-divider, .ribbon-overlay, .how-path {
    display: none !important;
  }
  body { background: white; color: black; }
  section { padding: 24px 0; page-break-inside: avoid; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}

/* ====================================================================
   ============ PHASE 4: STRESS-PHOTO (Editorial Image Treatment) ============
   Cinematic photo treatment with brand-aligned color grading,
   vignette, dual brand glows, film grain, and editorial captions.
   ==================================================================== */

.stress-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow: hidden;
  margin: 0;
  background: #050E1A;
  box-shadow:
    0 60px 140px -40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(95, 212, 220, 0.10) inset;
  isolation: isolate;
}

/* Image fills the figure */
.stress-photo > img,
.stress-photo .stress-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  /* Match brand: slightly desaturate + warm contrast lift */
  filter: saturate(0.92) contrast(1.05) brightness(0.96);
  transition: transform 1200ms var(--ease-out), filter 800ms var(--ease);
}

/* Subtle parallax-feel: very slow zoom on hover (desktop only) */
@media (hover: hover) and (min-width: 900px) {
  .stress-photo:hover img {
    transform: scale(1.03);
    filter: saturate(1) contrast(1.08) brightness(1);
  }
}

/* Brand tint overlay — subtle navy lift on top + bottom */
.stress-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0.12) 0%,
    rgba(10, 37, 64, 0.0) 30%,
    rgba(10, 37, 64, 0.0) 65%,
    rgba(10, 37, 64, 0.45) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Cinematic vignette — darkens edges, focuses on center */
.stress-photo-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 70% at 50% 50%,
    transparent 55%,
    rgba(5, 14, 26, 0.55) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Teal brand glow — top-right corner */
.stress-photo-glow-teal {
  position: absolute;
  top: -20%;
  inset-inline-end: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle at center,
    rgba(95, 212, 220, 0.18) 0%,
    rgba(95, 212, 220, 0.0) 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 4;
  animation: stressGlowTeal 8s ease-in-out infinite;
}
@keyframes stressGlowTeal {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Gold brand glow — bottom-left corner */
.stress-photo-glow-gold {
  position: absolute;
  bottom: -15%;
  inset-inline-start: -15%;
  width: 55%;
  height: 55%;
  background: radial-gradient(
    circle at center,
    rgba(212, 162, 76, 0.22) 0%,
    rgba(212, 162, 76, 0.0) 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 4;
  animation: stressGlowGold 10s ease-in-out infinite;
}
@keyframes stressGlowGold {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* Very subtle film grain — gives it that cinematic, editorial feel */
.stress-photo-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 5;
}

/* Editorial caption strip — magazine spread style */
.stress-photo-caption {
  position: absolute;
  inset-inline: 22px;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
  margin: 0;
}

.stress-photo-caption .cap-left,
.stress-photo-caption .cap-right {
  font-family: var(--font-en-body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.stress-photo-caption .cap-right {
  letter-spacing: 0.2em;
}

html[lang="ar"] .stress-photo-caption .cap-left,
html[lang="ar"] .stress-photo-caption .cap-right {
  font-family: var(--font-ar-body);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: none;
}

/* Mobile tweaks */
@media (max-width: 540px) {
  .stress-photo-caption {
    inset-inline: 16px;
    bottom: 14px;
    gap: 10px;
  }
  .stress-photo-caption .cap-left,
  .stress-photo-caption .cap-right {
    font-size: 9px;
    letter-spacing: 0.24em;
  }
  html[lang="ar"] .stress-photo-caption .cap-left,
  html[lang="ar"] .stress-photo-caption .cap-right {
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }
}

/* Reduced motion: kill glow animations */
@media (prefers-reduced-motion: reduce) {
  .stress-photo-glow-teal,
  .stress-photo-glow-gold {
    animation: none !important;
  }
  .stress-photo img {
    transition: none !important;
  }
}

/* ====================================================================
   ============ PHASE 3 ADDITIONS ============
   ==================================================================== */

/* ===== Mobile gap tweaks for CTAs (#8) ===== */
@media (max-width: 540px) {
  /* Hero CTAs: more breathing room between buttons on mobile */
  .hero-ctas {
    margin-top: 28px;
    gap: 12px;
  }

  /* How-it-works CTA: better spacing */
  .how-cta {
    margin-top: 56px;
    padding: 0 16px;
  }
  .how-cta .btn-wa {
    width: 100%;
    justify-content: center;
    min-height: 56px;
  }

  /* Final CTA stack: tighter gap on mobile */
  .final-cta .cta-stack {
    margin-top: 32px;
    gap: 18px;
    width: 100%;
    align-items: stretch;
  }
  .final-cta .btn-wa {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: 16px;
  }
  .final-cta .or-call {
    text-align: center;
    line-height: 1.8;
  }
  .final-cta .or-call a {
    display: inline-block;
    padding: 6px 4px;
    margin-top: 4px;
  }
}

/* Even narrower phones: tighten further to avoid CTA squeeze */
@media (max-width: 380px) {
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn-wa,
  .hero-ctas .btn-secondary {
    padding: 14px 18px;
    font-size: 15px;
  }
  /* Slightly smaller hero headline on very small phones */
  .hero-display { font-size: clamp(40px, 13vw, 54px); }
  html[lang="ar"] .hero-display { font-size: clamp(42px, 13.5vw, 58px); }
}

/* ===== Lazy canvas — fade-in once loaded (#5) ===== */
canvas[data-lazy-canvas] {
  opacity: 0;
  transition: opacity 800ms var(--ease-out, ease-out);
}
canvas[data-lazy-canvas].loaded {
  opacity: 0.9;
}
.how-it-works canvas[data-lazy-canvas].loaded { opacity: 0.6; }
.final-cta canvas[data-lazy-canvas].loaded { opacity: 0.7; }

/* ===== Mobile menu close button — already styled, ensure visible ===== */
.mobile-menu .menu-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
}
html[dir="rtl"] .mobile-menu .menu-close {
  right: 24px;
  left: auto;
}

/* ===== Honor reduced motion globally (a11y polish) ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  canvas[data-lazy-canvas] { opacity: 0.4 !important; }
}


/* ====================================================================
   ============ PHASE 5: TYPOGRAPHY & SPACING HARMONIZATION ============
   Professional UI/UX audit: harmonize sizes, line-heights, weights,
   and spacing across both Arabic and English throughout the site.
   ==================================================================== */

/* ----- Type scale tuning ----- 
   Arabic glyphs are visually larger at the same px size than Latin.
   Arabic needs more line-height and slightly smaller font-size to feel balanced.
   Reference: Material Design + IBM Plex Arabic recommendations.
*/

/* ===== H2 — All section headlines unified ===== */
.stress h2,
.two-worlds h2,
.how-it-works .head h2,
.believe h2,
.final-cta h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
html[lang="ar"] .stress h2,
html[lang="ar"] .two-worlds h2,
html[lang="ar"] .how-it-works .head h2,
html[lang="ar"] .believe h2,
html[lang="ar"] .final-cta h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* Promise has its own larger style (hero-tier headline) */
.promise h2 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.1;
}
html[lang="ar"] .promise h2 {
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.35;
  font-weight: 700;
}

/* ===== H3 — Pillar / card titles ===== */
.pillar h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[lang="ar"] .pillar h3 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.45;
  font-weight: 700;
}

.trust-content h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}
html[lang="ar"] .trust-content h3 {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
}

.value h3,
.value h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}
html[lang="ar"] .value h3,
html[lang="ar"] .value h4 {
  font-size: 21px;
  line-height: 1.55;
  font-weight: 700;
}

/* ===== H4 — Service card titles ===== */
.svc h4 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[lang="ar"] .svc h4 {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
}

.how-step h4 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}
html[lang="ar"] .how-step h4 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

/* ===== Body text — paragraphs ===== */
.stress-text p,
.promise p,
.two-worlds .body,
.how-it-works .head .body,
.believe .body,
.final-cta .body {
  font-size: 17px;
  line-height: 1.6;
}
html[lang="ar"] .stress-text p,
html[lang="ar"] .promise p,
html[lang="ar"] .two-worlds .body,
html[lang="ar"] .how-it-works .head .body,
html[lang="ar"] .believe .body,
html[lang="ar"] .final-cta .body {
  font-size: 17px;
  line-height: 1.9;
}

/* Pillar body */
.pillar p {
  font-size: 16px;
  line-height: 1.65;
}
html[lang="ar"] .pillar p {
  font-size: 16.5px;
  line-height: 1.9;
}

/* Service & value card body */
.svc p,
.value p,
.how-step p,
.trust-content p {
  font-size: 14.5px;
  line-height: 1.6;
}
html[lang="ar"] .svc p,
html[lang="ar"] .value p,
html[lang="ar"] .how-step p,
html[lang="ar"] .trust-content p {
  font-size: 15px;
  line-height: 1.85;
}

/* Stress list items */
.stress-list li {
  font-size: 17px;
  line-height: 1.55;
}
html[lang="ar"] .stress-list li {
  font-size: 17px;
  line-height: 1.85;
}

/* Stress emphasis lines */
.stress-emph {
  font-size: 20px;
  line-height: 1.4;
}
html[lang="ar"] .stress-emph {
  font-size: 20px;
  line-height: 1.7;
}
.stress-transition {
  font-size: 28px;
}
html[lang="ar"] .stress-transition {
  font-size: 26px;
  line-height: 1.5;
}

/* ===== Hero — refined sizes ===== */
.hero-display {
  font-size: clamp(48px, 8.5vw, 120px);
}
html[lang="ar"] .hero-display {
  font-size: clamp(54px, 9.5vw, 130px);
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
}
html[lang="ar"] .hero-tagline {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.65;
}

.hero-body {
  font-size: 16px;
  line-height: 1.65;
}
html[lang="ar"] .hero-body {
  font-size: 17px;
  line-height: 1.9;
}

/* ===== Spacing harmony — margins between elements ===== */
section { padding: clamp(64px, 10vw, 160px) 0; }

.believe .head {
  margin-bottom: 60px;
}
@media (max-width: 720px) {
  .believe .head { margin-bottom: 44px; }
}

.how-it-works .head {
  margin-bottom: 68px;
}
@media (max-width: 720px) {
  .how-it-works .head { margin-bottom: 48px; }
}

/* Eyebrow margin-bottom adjusted */
.head .eyebrow {
  margin-bottom: 6px;
}

/* H2 margin-top after eyebrow */
.head h2,
.stress h2,
.promise h2 {
  margin-top: 20px;
}
html[lang="ar"] .head h2,
html[lang="ar"] .stress h2,
html[lang="ar"] .promise h2 {
  margin-top: 24px;
}

/* Body margin-top after h2 */
.head .body,
.stress-text .stress-list,
.promise p {
  margin-top: 24px;
}
html[lang="ar"] .head .body,
html[lang="ar"] .promise p {
  margin-top: 28px;
}

/* ===== Mobile refinements ===== */
@media (max-width: 720px) {
  /* Stress section: tighten spacing */
  .stress-text { max-width: 100%; }
  .stress h2 { font-size: clamp(30px, 8vw, 44px); }
  html[lang="ar"] .stress h2 { font-size: clamp(30px, 8vw, 44px); }
  .stress-list { margin-top: 24px; }
  .stress-list li { padding: 12px 0; font-size: 15.5px; }
  html[lang="ar"] .stress-list li { font-size: 16px; }
  .stress-emph { font-size: 17px; margin-top: 24px; }
  html[lang="ar"] .stress-emph { font-size: 17px; }
  .stress-transition { font-size: 22px; }
  html[lang="ar"] .stress-transition { font-size: 20px; }
  
  /* Promise section */
  .promise h2 { font-size: clamp(34px, 9vw, 50px); }
  html[lang="ar"] .promise h2 { font-size: clamp(32px, 8.5vw, 46px); }
  .promise p { font-size: 16px; }
  html[lang="ar"] .promise p { font-size: 16px; }
  
  /* Hero refinements */
  .hero-display { font-size: clamp(40px, 13vw, 64px); }
  html[lang="ar"] .hero-display { font-size: clamp(44px, 14vw, 70px); }
  .hero-tagline { font-size: 18px; }
  html[lang="ar"] .hero-tagline { font-size: 19px; }
  .hero-body { font-size: 15px; }
  html[lang="ar"] .hero-body { font-size: 16px; }
  
  /* Section h2 unified mobile size */
  .two-worlds h2, .how-it-works .head h2, .believe h2, .final-cta h2 {
    font-size: clamp(30px, 8vw, 44px);
  }
  html[lang="ar"] .two-worlds h2,
  html[lang="ar"] .how-it-works .head h2,
  html[lang="ar"] .believe h2,
  html[lang="ar"] .final-cta h2 {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.45;
  }
  
  /* Service / value cards on mobile */
  .svc h4, .value h3, .value h4 { font-size: 17px; }
  html[lang="ar"] .svc h4, 
  html[lang="ar"] .value h3,
  html[lang="ar"] .value h4 { font-size: 18px; }
  .svc p, .value p { font-size: 14px; }
  html[lang="ar"] .svc p,
  html[lang="ar"] .value p { font-size: 14.5px; }
  
  /* How-step cards mobile */
  .how-step { padding: 20px 14px 8px; }
  .how-step h4 { font-size: 17px; }
  html[lang="ar"] .how-step h4 { font-size: 18px; }
  
  /* Trust cards mobile */
  .trust-content h3 { font-size: 17px; }
  html[lang="ar"] .trust-content h3 { font-size: 18px; }
  
  /* Pillar mobile */
  .pillar { padding: clamp(36px, 7vw, 64px) clamp(20px, 5vw, 48px); min-height: 480px; }
  .pillar h3 { font-size: clamp(24px, 7vw, 32px); }
  html[lang="ar"] .pillar h3 { font-size: clamp(22px, 6.5vw, 30px); }
}

/* Even smaller phones */
@media (max-width: 380px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  
  .hero-display { font-size: 36px; }
  html[lang="ar"] .hero-display { font-size: 40px; }
}

/* ===== Larger desktop: scale up appropriately ===== */
@media (min-width: 1600px) {
  .hero-display { font-size: 132px; }
  html[lang="ar"] .hero-display { font-size: 140px; }
}

/* ===== Eyebrow consistency ===== */
.eyebrow {
  font-size: 11.5px;
}
html[lang="ar"] .eyebrow {
  font-size: 12.5px;
}
@media (max-width: 540px) {
  .eyebrow { font-size: 10.5px; }
  html[lang="ar"] .eyebrow { font-size: 11.5px; }
}

/* ===== Buttons — consistent sizing ===== */
.btn-wa,
.btn-secondary {
  font-size: 14.5px;
  padding: 14px 24px;
}
html[lang="ar"] .btn-wa,
html[lang="ar"] .btn-secondary {
  font-size: 15px;
}

@media (max-width: 540px) {
  .btn-wa, .btn-secondary {
    padding: 14px 20px;
    font-size: 14px;
  }
  html[lang="ar"] .btn-wa,
  html[lang="ar"] .btn-secondary { font-size: 14.5px; }
}

/* ===== Smooth font weight rendering ===== */
html[lang="ar"] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== Fix accent inline behavior ===== */
.how-it-works .head h2 .accent,
.believe h2 .people {
  display: inline;
  white-space: normal;
}

/* ====================================================================
   ============ PHASE 6: VISUAL CONSISTENCY PASS ============
   The Final Polish: Unified eyebrows, perfect spacing, harmonized widths.
   Goal: Every section feels part of one premium healthcare brand.
   ==================================================================== */

/* ===== 6.1 EYEBROW — Unified "Pure Label" pattern ===== 
   No horizontal line. Strong uppercase. Premium gold tone.
   Same across ALL sections for absolute consistency. */

.eyebrow {
  display: inline-block;
  font-family: var(--font-en-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  padding: 0;
  margin: 0;
  /* Remove gap since there's no ::before anymore */
  gap: 0;
}
.eyebrow::before {
  /* Kill the decorative line completely */
  content: none !important;
  display: none !important;
}

html[lang="ar"] .eyebrow {
  font-family: var(--font-ar-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: none;
  font-weight: 700;
}

/* Light sections use teal for the eyebrow */
section.light .eyebrow {
  color: var(--teal);
}

/* ===== 6.2 SPACING SYSTEM — Golden Ratio ===== 
   Unified vertical rhythm using consistent multipliers. */

/* eyebrow → h2 */
.head .eyebrow,
.stress-text .eyebrow,
.promise-content .eyebrow {
  margin-bottom: 16px;
}
html[lang="ar"] .head .eyebrow,
html[lang="ar"] .stress-text .eyebrow,
html[lang="ar"] .promise-content .eyebrow {
  margin-bottom: 18px;
}

/* h2 — reset all top-margins that were inconsistent */
.head h2,
.stress h2,
.promise h2,
.believe h2,
.how-it-works .head h2,
.two-worlds h2,
.final-cta h2 {
  margin-top: 0;
}

/* h2 → body */
.head .body,
.stress-text .stress-list,
.promise p,
.believe .body,
.two-worlds .body,
.how-it-works .head .body,
.final-cta .body {
  margin-top: 20px;
}
html[lang="ar"] .head .body,
html[lang="ar"] .stress-text .stress-list,
html[lang="ar"] .promise p,
html[lang="ar"] .believe .body,
html[lang="ar"] .two-worlds .body,
html[lang="ar"] .how-it-works .head .body,
html[lang="ar"] .final-cta .body {
  margin-top: 24px;
}

/* head → grid (centered sections) */
.believe .head,
.how-it-works .head {
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .believe .head,
  .how-it-works .head { margin-bottom: 36px; }
}

/* ===== 6.3 MAX-WIDTH SYSTEM — Optimal reading lengths ===== */

/* Split-layout sections: text column is narrower */
.stress-text,
.promise-content {
  max-width: 540px;
}
.stress-text .stress-list,
.promise-content p {
  max-width: 540px;
}

/* Centered sections: head is wider but constrained */
.believe .head,
.how-it-works .head,
.two-worlds > .wrap > .head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Services uses its own grid layout (don't override) */
.services .head {
  /* Keep original grid layout — see .services .head above */
}

.believe .body,
.how-it-works .head .body,
.two-worlds .body {
  max-width: 620px;
  margin-inline: auto;
}

/* ===== 6.4 H2 — Unified size tiers ===== */

/* Tier 1: Hero-class (Promise — biggest emotional statement) */
.promise h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
html[lang="ar"] .promise h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.005em;
  line-height: 1.35;
}

/* Tier 2: Section-class (Believe, Two Worlds — major statements) */
.believe h2,
.two-worlds h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
html[lang="ar"] .believe h2,
html[lang="ar"] .two-worlds h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.005em;
  line-height: 1.35;
}

/* Tier 3: Standard-class (Stress, How, Services, Final CTA) */
.stress h2,
.how-it-works .head h2,
.services .head h2,
.final-cta h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
html[lang="ar"] .stress h2,
html[lang="ar"] .how-it-works .head h2,
html[lang="ar"] .services .head h2,
html[lang="ar"] .final-cta h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

/* ===== 6.5 BODY TEXT — Unified reading experience ===== */

.head .body,
.stress-text p,
.promise p,
.believe .body,
.two-worlds .body,
.how-it-works .head .body,
.final-cta .body {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

html[lang="ar"] .head .body,
html[lang="ar"] .stress-text p,
html[lang="ar"] .promise p,
html[lang="ar"] .believe .body,
html[lang="ar"] .two-worlds .body,
html[lang="ar"] .how-it-works .head .body,
html[lang="ar"] .final-cta .body {
  font-size: 17px;
  line-height: 1.9;
}

/* Light section body — different color */
.believe .body {
  color: var(--ink-muted);
}

/* ===== 6.6 ACCENT — Same magic across all sections ===== */

.promise h2 .accent,
.believe h2 .people,
.how-it-works .head h2 .accent,
.two-worlds h2 span {
  /* Don't override colors — each section keeps its own */
  /* Just ensure inline rendering */
  display: inline;
  white-space: normal;
}

/* ===== 6.7 SECTION PADDING — Tighter, fits better on screen ===== */

section {
  padding: clamp(56px, 7vw, 112px) 0;
}

@media (max-width: 720px) {
  section {
    padding: clamp(48px, 10vw, 72px) 0;
  }
}

/* ===== 6.8 MOBILE — Refined eyebrow and spacing ===== */

@media (max-width: 720px) {
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
  }
  html[lang="ar"] .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  
  .head .eyebrow,
  .stress-text .eyebrow,
  .promise-content .eyebrow {
    margin-bottom: 18px;
  }
  
  .head .body,
  .stress-text .stress-list,
  .promise p {
    margin-top: 22px;
  }
  html[lang="ar"] .head .body,
  html[lang="ar"] .stress-text .stress-list,
  html[lang="ar"] .promise p {
    margin-top: 24px;
  }
}

/* ===== 6.9 PROMISE — Special centered layout fix ===== 
   Promise had its own structure — ensure it follows the rules */

.promise .promise-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== 6.10 PILLAR HEADS — Match the same eyebrow style ===== */

.pillar .pillar-label {
  font-family: var(--font-en-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
html[lang="ar"] .pillar .pillar-label {
  font-family: var(--font-ar-body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: none;
  font-weight: 700;
}

/* ===== 6.11 FINAL CTA — Ensure proper centering ===== */

.final-cta {
  text-align: center;
}
.final-cta .head,
.final-cta .wrap > * {
  margin-inline: auto;
}

/* ====================================================================
   ============ PHASE 6.5: NAV CENTERING + FINAL POLISH ============
   ==================================================================== */

/* ===== Centered navbar (links absolute-centered) ===== */
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* Brand stays on the start side */
.nav .brand {
  z-index: 2;
}

/* Nav-links absolutely centered in the viewport */
.nav-links {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 1;
}

/* In RTL the translate sign reverses */
html[dir="rtl"] .nav-links,
html[lang="ar"] .nav-links {
  transform: translate(50%, -50%);
}

/* CTA group stays on the end side */
.nav .nav-cta-group {
  z-index: 2;
  margin-inline-start: auto;
}

/* On smaller screens, fall back to flex flow */
@media (max-width: 1100px) {
  .nav-links {
    position: static;
    transform: none !important;
    margin-inline-start: auto !important;
    margin-inline-end: 16px !important;
    gap: 20px;
  }
  .nav .nav-cta-group { margin-inline-start: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
}

/* ===== Services head: eyebrow has more presence ===== */
/* The services head uses grid layout — make the eyebrow more prominent */
.services .head {
  align-items: center;
}

.services .head .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
}

html[lang="ar"] .services .head .right {
  align-items: flex-start;
  text-align: start;
}

/* Services eyebrow gets a touch more weight */
.services .head .eyebrow {
  margin-bottom: 14px;
  font-size: 12.5px;
}
html[lang="ar"] .services .head .eyebrow {
  font-size: 13.5px;
}

/* ===== Promise section: ensure eyebrow alignment with H2 ===== */
.promise .promise-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== Final unified eyebrow override (highest specificity) ===== */
section .eyebrow,
.head .eyebrow,
.stress-text .eyebrow,
.promise .eyebrow {
  display: inline-block !important;
  gap: 0 !important;
}

section .eyebrow::before,
.head .eyebrow::before,
.stress-text .eyebrow::before,
.promise .eyebrow::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  background: none !important;
}

/* ===== Make the nav slightly more compact ===== */
.nav { height: 72px; }
@media (max-width: 720px) {
  .nav { height: 60px; }
}

/* ====================================================================
   ============ OFFICIAL LOGO SYSTEM ============
   Full logo (icon + wordmark) on desktop nav & footer.
   Icon-only on mobile nav. Favicon = icon only.
   ==================================================================== */

/* --- Navbar logo --- */
.brand {
  gap: 0;
}
.brand-logo-full {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 300ms var(--ease);
}
.brand-logo-icon {
  height: 38px;
  width: auto;
  display: none;
}
.brand:hover .brand-logo-full,
.brand:hover .brand-logo-icon {
  opacity: 0.85;
}

/* On mobile: show icon only, hide full logo */
@media (max-width: 600px) {
  .brand-logo-full { display: none; }
  .brand-logo-icon { display: block; height: 44px; }
}

/* --- Footer logo --- */
.foot-brand-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.foot-brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.foot-brand-logo .brand-text {
  margin-top: 4px;
}
html[lang="ar"] .foot-brand-logo {
  align-items: flex-start;
}

/* Ensure footer small text still styled */
.foot-brand-logo .brand-text small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--glow);
  opacity: 0.75;
}

/* ====================================================================
   ============ SCROLL PROGRESS INDICATOR ============
   Thin luxury bar at very top, fills as you scroll.
   ==================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--glow) 0%, var(--teal) 45%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(95, 212, 220, 0.5);
  transition: width 120ms linear;
  transform-origin: left center;
}
/* In RTL, fill from the right */
html[dir="rtl"] .scroll-progress-bar {
  margin-inline-start: auto;
  transform-origin: right center;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar { transition: none; }
}


/* ====================================================================
   ============ CINEMATIC PRELOADER (Particle Magic) ============
   Particles converge into a DNA helix, logo reveals, light sweep.
   ==================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(26,169,181,0.08) 0%, transparent 65%),
    linear-gradient(180deg, #04111f 0%, #07203a 55%, #0A2540 100%);
  opacity: 1;
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Canvas holds the particle system */
.preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Logo stage — sits above canvas */
.preloader-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}
.preloader-logo {
  width: clamp(150px, 28vw, 220px);
  height: auto;
  opacity: 0;
  transform: scale(0.82);
  filter: blur(10px) drop-shadow(0 0 28px rgba(95,212,220,0.0));
  /* Logo reveals in scene 3 (after particles converge) */
  animation: plLogoReveal 1400ms 1900ms var(--ease-out) forwards;
}
@keyframes plLogoReveal {
  0%   { opacity: 0; transform: scale(0.82); filter: blur(10px) drop-shadow(0 0 0 rgba(95,212,220,0)); }
  55%  { opacity: 1; transform: scale(1.04); filter: blur(0) drop-shadow(0 0 30px rgba(95,212,220,0.45)); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 22px rgba(95,212,220,0.30)); }
}

/* Light sweep across the screen at the reveal moment */
.preloader-sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(168,229,227,0.12) 46%,
    rgba(255,255,255,0.22) 50%,
    rgba(168,229,227,0.12) 54%,
    transparent 70%);
  background-size: 250% 100%;
  background-position: -120% 0;
  opacity: 0;
  animation: plSweep 1100ms 2200ms var(--ease-out) forwards;
}
@keyframes plSweep {
  0%   { background-position: -120% 0; opacity: 0; }
  35%  { opacity: 1; }
  100% { background-position: 120% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: plLogoReveal 500ms 200ms ease forwards; }
  .preloader-sweep { display: none; }
}

body.preloading { overflow: hidden; }
