/* ============================================================
   QUANTRO AI — Homepage
   Premium navy / gold / cream luxury-tech system
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Brand-constant tokens ---------- */
:root {
  --gold:        #D3AE6C;
  --gold-bright: #E3C58A;
  --gold-deep:   #B8914F;
  --navy-band:   #112251;   /* final-cta band & footer — constant in both themes */
  --navy-deep:   #0C1733;
  --cream:       #F5F1EA;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-ar:      'IBM Plex Sans Arabic', system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 22px;

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

/* ---------- Light theme (default) ---------- */
:root, [data-theme="light"] {
  --bg:          #F5F1EA;
  --bg-alt:      #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #FBF8F2;
  --text:        #0C1733;
  --text-muted:  rgba(12,23,51,.62);
  --text-faint:  rgba(12,23,51,.40);
  --border:      #E5DFD0;
  --border-strong:#D8CDB4;
  --nav-solid:   rgba(255,255,255,.86);
  --hero-bg:     #F5F1EA;
  --halftone:    rgba(211,174,108,.16);
  --grid-line:   rgba(12,23,51,.05);
  --shadow-card: 0 1px 2px rgba(12,23,51,.04), 0 18px 40px -28px rgba(12,23,51,.22);
  --shadow-gold: 0 18px 48px -24px rgba(211,174,108,.55);
  --on-band-text: #F5F1EA;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg:          #0C1733;
  --bg-alt:      #112251;
  --surface:     #16275A;
  --surface-2:   #14224F;
  --text:        #F5F1EA;
  --text-muted:  rgba(245,241,234,.66);
  --text-faint:  rgba(245,241,234,.40);
  --border:      #3C507E;
  --border-strong:#4C619A;
  --nav-solid:   rgba(12,23,51,.80);
  --hero-bg:     #0C1733;
  --halftone:    rgba(211,174,108,.13);
  --grid-line:   rgba(245,241,234,.05);
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 22px 50px -28px rgba(0,0,0,.7);
  --shadow-gold: 0 22px 60px -26px rgba(211,174,108,.45);
  --on-band-text: #F5F1EA;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01","cv01";
  transition: background .5s var(--ease), color .5s var(--ease);
}
html[lang="ar"] body { font-family: var(--font-ar); letter-spacing: 0; }
html[lang="ar"] .eyebrow { font-family: var(--font-ar); letter-spacing: .04em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.07; letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .6em;
}
[data-theme="dark"] .eyebrow { color: var(--gold); }
.eyebrow::before { content:""; width: 22px; height: 1px; background: var(--gold); opacity: .8; }

.gold { color: var(--gold-deep); }
[data-theme="dark"] .gold { color: var(--gold); }

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-top: 18px; }
.section-head p { color: var(--text-muted); font-size: clamp(1.05rem,1.5vw,1.25rem); margin-top: 18px; max-width: 56ch; }

/* ---------- Sparkle motif ---------- */
.sparkle {
  display: inline-block; position: relative;
  background: var(--gold);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s, color .25s, border-color .25s;
}
html[lang="ar"] .btn { font-family: var(--font-ar); }
.btn-gold {
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 10px 26px -12px rgba(211,174,108,.7);
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(211,174,108,.85); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
[data-theme="dark"] .btn-ghost:hover { color: var(--gold); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
html[lang="ar"] .btn .arrow { transform: scaleX(-1); }
html[lang="ar"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: var(--nav-solid);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-spark { width: 20px; height: 20px; flex: none; background: var(--gold); clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%); }
.brand .wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; white-space: nowrap; }
.brand .wordmark b { font-weight: 700; color: var(--gold-deep); }
[data-theme="dark"] .brand .wordmark b { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: .95rem; font-weight: 500; white-space: nowrap;
  color: var(--text-muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--grid-line); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-btn { width: auto; padding-inline: 14px; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .06em; gap: 0; }
.nav-cta { padding: 12px 20px; font-size: .95rem; }
.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 132px; padding-bottom: clamp(72px,10vw,130px); overflow: hidden; background: var(--hero-bg); transition: background .5s var(--ease); }
.hero-halftone {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--halftone) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 62%);
}
.hero-glow {
  position: absolute; z-index: 0; top: -10%; right: -6%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(211,174,108,.20), transparent 62%);
  pointer-events: none; filter: blur(8px);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px,5vw,72px); align-items: center; }

.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); letter-spacing: -0.035em; }
html[lang="ar"] .hero h1 { font-size: clamp(2.4rem,5.4vw,4.6rem); }
.hero-sub { margin-top: 28px; font-size: clamp(1.12rem,1.5vw,1.36rem); color: var(--text-muted); max-width: 50ch; line-height: 1.55; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: .92rem; }
.hero-trust .sparkle { width: 13px; height: 13px; }

/* hero visual panel */
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-card); aspect-ratio: 4 / 4.4;
}
.hero-logo-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-logo-mark img { width: 78%; opacity: .95; grid-area: 1 / 1; }
/* Light theme → navy logo; dark theme → cream (light) logo. */
.hero-logo-mark .logo-cream { display: none; }
[data-theme="dark"] .hero-logo-mark .logo-navy { display: none; }
[data-theme="dark"] .hero-logo-mark .logo-cream { display: block; }
.hero-card .mark-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size: 38px 38px; }
.hero-float {
  position: absolute; padding: 14px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.hero-float .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 4px rgba(46,194,126,.18); }
.hero-float small { display: block; color: var(--text-faint); font-size: .74rem; font-family: var(--font-mono); letter-spacing: .04em; }
.hero-float strong { font-size: .95rem; font-weight: 600; }
.hero-float.a { top: 26px; left: -28px; }
.hero-float.b { bottom: 30px; right: -22px; }

/* ============================================================
   TRUST / STATS
   ============================================================ */
.trust { background: var(--bg-alt); border-block: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,40px); }
.stat { padding-block: clamp(48px,6vw,76px); position: relative; }
.stat:not(:last-child)::after { content:""; position: absolute; top: 50%; inset-inline-end: 0; transform: translateY(-50%); width: 1px; height: 56%; background: var(--border); }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem,4.4vw,3.6rem); letter-spacing: -.04em; color: var(--gold-deep); line-height: 1; }
[data-theme="dark"] .stat .num { color: var(--gold); }
.stat .num span { font-size: .55em; }
.stat .lbl { margin-top: 12px; color: var(--text-muted); font-size: .98rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.svc {
  position: relative; padding: 32px 30px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.svc::after {
  content:""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(211,174,108,.14), transparent 60%);
  transition: opacity .45s var(--ease-out);
}
.svc:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.svc:hover::after { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(211,174,108,.18), rgba(211,174,108,.06));
  border: 1px solid rgba(211,174,108,.35); color: var(--gold-deep);
}
[data-theme="dark"] .svc-icon { color: var(--gold); }
.svc-icon svg { width: 25px; height: 25px; }
.svc h3 { font-size: 1.35rem; margin-bottom: 10px; }
.svc p { color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
.svc .more { margin-top: 20px; display: inline-flex; align-items: center; gap: .5em; color: var(--gold-deep); font-weight: 600; font-size: .95rem; }
[data-theme="dark"] .svc .more { color: var(--gold); }
.svc .more .arrow { transition: transform .35s var(--ease-out); }
.svc:hover .more .arrow { transform: translateX(4px); }
html[lang="ar"] .svc .more .arrow { transform: scaleX(-1); }
html[lang="ar"] .svc:hover .more .arrow { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   HOW WE WORK
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; position: relative; }
.steps::before {
  content:""; position: absolute; top: 27px; inset-inline: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: .5;
}
.step { position: relative; }
.step .pin {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 2;
  background: var(--bg); border: 2px solid var(--gold); color: var(--gold-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 24px;
}
[data-theme="dark"] .step .pin { color: var(--gold); }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
/* Horizontal scrolling row: all cards on one line; scroll left/right when they overflow. */
.cases-rail { position: relative; }
.cases {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;            /* room for hover lift; avoids clipping first/last card */
  scrollbar-width: none;           /* arrows + swipe are the affordance */
}
.cases::-webkit-scrollbar { display: none; }
.case {
  flex: 0 0 clamp(300px, 31%, 380px); scroll-snap-align: start;
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); display: flex; flex-direction: column;
  /* Only transform/border animate per-frame (compositor-cheap). The lift's
     shadow is faded in on a pseudo-element below instead of animating
     box-shadow directly, which would repaint the blur every frame. */
  transition: transform .4s var(--ease-out), border-color .35s;
  transform: translateZ(0); backface-visibility: hidden;
}
/* Pre-rendered lift shadow; only its opacity changes on hover. */
.case::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-card); opacity: 0; transition: opacity .4s var(--ease-out);
}
.case:hover::after { opacity: 1; }

/* Prev/next arrows — shown only when the row overflows (.has-scroll set by JS). */
.cases-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: none;
  width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.cases-rail.has-scroll .cases-arrow { display: flex; }
.cases-arrow:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.cases-arrow:disabled { opacity: .35; cursor: default; }
.cases-arrow:disabled:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.cases-arrow.prev { inset-inline-start: -8px; }
.cases-arrow.next { inset-inline-end: -8px; }
html[lang="ar"] .cases-arrow { transform: translateY(-50%) scaleX(-1); }
.case:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.case-media { position: relative; background: var(--surface-2); border-bottom: 1px solid var(--border); }
/* placeholder (no media) keeps the original 16/10 framed look */
.case-media:not(:has(.case-cover)) { aspect-ratio: 16/10; }
.case-media .ph-label { position: absolute; bottom: 12px; inset-inline-start: 14px; font-family: var(--font-mono); font-size: .68rem; color: var(--text-faint); letter-spacing: .05em; }
.case-media .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--grid-line) 0 11px, transparent 11px 22px); }

/* cover (clickable) */
.case-cover {
  display: block; width: 100%; aspect-ratio: 16/10; position: relative;
  overflow: hidden; cursor: pointer; background: #0b1530; padding: 0; border: 0;
}
.case-cover img, .case-cover video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); will-change: transform; backface-visibility: hidden; }
.case:hover .case-cover img, .case:hover .case-cover video { transform: scale(1.04); }
.case-cover .media-count {
  position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(12,23,51,.7); color: var(--cream); font-size: .76rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.case-cover .media-count svg { width: 14px; height: 14px; }
.case-cover .media-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; display: grid; place-items: center;
  background: rgba(12,23,51,.55); color: #fff; border-radius: 50%; font-size: 1.1rem; padding-inline-start: 4px;
  pointer-events: none;
}
/* thumbnail strip */
.case-thumbs { display: flex; gap: 6px; padding: 6px; background: var(--surface-2); }
.case-thumb {
  position: relative; flex: 1; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 1px solid var(--border); background: #0b1530; padding: 0;
}
.case-thumb img, .case-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb .tp { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; display: grid; place-items: center; background: rgba(12,23,51,.55); color: #fff; border-radius: 50%; font-size: .6rem; }
.case-thumb .tmore { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,23,51,.66); color: var(--cream); font-weight: 700; font-size: .95rem; }
.case-thumb:hover { border-color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(7,12,24,.92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px);
}
.lightbox.open { display: flex; }
.lb-stage { max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-stage img, .lb-stage video { max-width: 92vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lb-close { position: absolute; top: 18px; inset-inline-end: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(245,241,234,.1); color: var(--cream); font-size: 1.2rem; }
.lb-close:hover { background: rgba(245,241,234,.2); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: rgba(245,241,234,.1); color: var(--cream); font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.lb-nav:hover { background: var(--gold); color: var(--navy-deep); }
.lb-prev { inset-inline-start: 18px; }
.lb-next { inset-inline-end: 18px; }
.lb-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.lb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(245,241,234,.3); padding: 0; }
.lb-dot.on { background: var(--gold); }

/* Mobile: the image is nearly full-width, so side arrows would overlap it.
   Move the prev/next buttons to the bottom bar (beside the dots) instead,
   and leave headroom below the image. */
@media (max-width: 640px) {
  .lb-stage { max-height: 64vh; }
  .lb-stage img, .lb-stage video { max-width: 94vw; max-height: 64vh; }
  .lb-nav {
    top: auto; bottom: 24px; transform: none;
    width: 46px; height: 46px; font-size: 1.6rem; z-index: 1;
  }
  .lb-prev { inset-inline-start: 24px; }
  .lb-next { inset-inline-end: 24px; }
  .lb-dots { bottom: 34px; }   /* sit between the two arrows */
}
.case-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.case .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.case .metric { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem,3.4vw,3rem); letter-spacing: -.04em; color: var(--gold-deep); line-height: 1; margin: 16px 0 12px; }
[data-theme="dark"] .case .metric { color: var(--gold); }
.case p { color: var(--text-muted); font-size: 1rem; flex: 1; }
.case .more { margin-top: 22px; display: inline-flex; align-items: center; gap: .5em; color: var(--text); font-weight: 600; font-size: .95rem; }
.case:hover .more { color: var(--gold-deep); }
[data-theme="dark"] .case:hover .more { color: var(--gold); }
.case .more .arrow { transition: transform .35s var(--ease-out); }
.case:hover .more .arrow { transform: translateX(4px); }
html[lang="ar"] .case .more .arrow, html[lang="ar"] .btn .arrow { transform: scaleX(-1); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote {
  position: relative; padding: 36px 32px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.quote .mark { position: absolute; top: 18px; inset-inline-end: 26px; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--gold); opacity: .35; }
.quote blockquote { font-size: 1.12rem; line-height: 1.55; color: var(--text); position: relative; z-index: 1; }
html[lang="ar"] .quote blockquote { font-size: 1.18rem; line-height: 1.7; }
.quote .who { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(150deg,var(--gold),var(--gold-deep)); display: grid; place-items: center; color: var(--navy-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.quote .who > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote .who b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.quote .who span { color: var(--text-faint); font-size: .9rem; line-height: 1.25; }

/* ============================================================
   WHY QUANTRO
   ============================================================ */
.why { background: var(--bg-alt); border-block: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,80px); align-items: start; }
.why-list { display: grid; gap: 4px; }
.why-item { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.why-item:last-child { border-bottom: 1px solid var(--border); }
.why-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(211,174,108,.18), rgba(211,174,108,.05)); border: 1px solid rgba(211,174,108,.32); color: var(--gold-deep); }
[data-theme="dark"] .why-ico { color: var(--gold); }
.why-ico svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 1.22rem; margin-bottom: 6px; }
.why-item p { color: var(--text-muted); font-size: 1rem; }
.why-aside { position: sticky; top: 120px; }
.why-aside .eyebrow { margin-bottom: 22px; }
.why-aside h2 { font-size: clamp(2rem,3.6vw,3rem); }
.why-aside p { color: var(--text-muted); margin-top: 20px; font-size: 1.12rem; }
.why-aside .btn { margin-top: 30px; }

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.tech { padding-block: clamp(56px,7vw,90px); overflow: hidden; }
.tech .lead { text-align: center; color: var(--text-faint); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 40px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem,2.4vw,1.9rem); color: var(--text-faint); letter-spacing: -.02em; white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--gold-deep); }
[data-theme="dark"] .marquee-track span:hover { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
html[lang="ar"] .marquee-track { animation-direction: reverse; }

/* ============================================================
   FINAL CTA BAND — constant navy in both themes
   ============================================================ */
.final { background: var(--navy-band); position: relative; overflow: hidden; }
.final-halftone {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(211,174,108,.18) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(90% 120% at 85% 50%, #000, transparent 60%);
          mask-image: radial-gradient(90% 120% at 85% 50%, #000, transparent 60%);
}
.final .wrap { position: relative; z-index: 1; padding-block: clamp(72px,9vw,120px); text-align: center; }
.final .eyebrow { color: var(--gold); justify-content: center; }
.final h2 { color: var(--cream); font-size: clamp(2.2rem,4.6vw,3.6rem); margin-top: 20px; max-width: 18ch; margin-inline: auto; }
.final p { color: rgba(245,241,234,.66); margin-top: 20px; font-size: 1.18rem; max-width: 50ch; margin-inline: auto; }
.final-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wa { background: rgba(245,241,234,.08); color: var(--cream); border: 1px solid rgba(245,241,234,.22); }
.btn-wa:hover { background: rgba(245,241,234,.14); transform: translateY(-2px); }
.btn-wa svg { width: 19px; height: 19px; }
.final .sparkle-deco { position: absolute; background: var(--gold); opacity: .8; }
.final .sd1 { width: 26px; height: 26px; top: 16%; left: 12%; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); opacity: .55; }
.final .sd2 { width: 16px; height: 16px; bottom: 22%; left: 22%; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); opacity: .4; }

/* ============================================================
   FOOTER — navy in both themes
   ============================================================ */
.footer { background: var(--navy-deep); color: var(--cream); }
.footer .wrap { padding-block: clamp(56px,7vw,84px) 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(245,241,234,.12); }
.footer-brand img { height: 92px; width: auto; margin-bottom: 6px; margin-left: -8px; }
.footer-brand p { color: rgba(245,241,234,.6); max-width: 34ch; font-size: 1rem; margin-top: 8px; }
.footer-brand .socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-brand .socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(245,241,234,.18); display: grid; place-items: center; color: rgba(245,241,234,.75); transition: .25s; }
.footer-brand .socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-brand .socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,241,234,.45); font-weight: 600; margin-bottom: 18px; }
html[lang="ar"] .footer-col h4 { letter-spacing: .04em; font-family: var(--font-ar); }
.footer-col a { display: block; color: rgba(245,241,234,.72); padding: 7px 0; font-size: .98rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; flex-wrap: wrap; }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal a, .footer-bottom .copy { color: rgba(245,241,234,.5); font-size: .9rem; }
.footer-bottom .legal a:hover { color: var(--gold); }
.footer-toggles { display: flex; gap: 8px; }
.footer-toggles .icon-btn { border-color: rgba(245,241,234,.18); color: rgba(245,241,234,.7); }
.footer-toggles .icon-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; color: var(--navy-deep);
  box-shadow: 0 12px 30px -8px rgba(211,174,108,.7); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 40px -10px rgba(211,174,108,.85); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content:""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: waPulse 2.4s var(--ease) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Sticky CTA bar — phones only (shown in the ≤1000px media query below). */
.mobile-cta-bar {
  display: none;
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 95;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-solid); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-cta-bar .btn { width: 100%; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .wa-float::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid, .quotes { grid-template-columns: repeat(2,1fr); }
  .case { flex-basis: clamp(280px, 60%, 420px); }   /* ~2 cards, next peeking */
  .steps { grid-template-columns: repeat(2,1fr); gap: 40px 28px; }
  .steps::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .why-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-cta.desktop { display: none; }
  /* Persistent CTA bar replaces the hidden nav CTA on phones. */
  .mobile-cta-bar { display: block; }
  .wa-float { inset-block-end: calc(26px + 64px); }   /* lift above the bar */
  body { padding-bottom: 64px; }                       /* keep content above the bar */
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2,1fr); gap: 0 24px; }
  .stat:nth-child(2)::after { display: none; }
  .stat { padding-block: 36px; }
  .svc-grid, .quotes { grid-template-columns: 1fr; }
  .case { flex-basis: 84%; }   /* one full card + a peek, signaling swipeability */
  .hero-float.a { left: -6px; }
  .hero-float.b { right: -6px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Phones only: the clamp() minimums above are tuned for tablets and stay too
   large on small screens, so lower them here. Layout/desktop are untouched. */
@media (max-width: 560px) {
  /* Headings & big numbers */
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  html[lang="ar"] .hero h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .section-head h2 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .stat .num { font-size: clamp(1.7rem, 6.5vw, 2.1rem); }
  .case .metric { font-size: clamp(1.6rem, 6vw, 1.95rem); }
  .final h2 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  .why-aside h2 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }

  /* Body & subtitles */
  .hero-sub { font-size: .95rem; margin-top: 18px; }
  .section-head p { font-size: .92rem; }
  .final p { font-size: .95rem; }
  .svc p, .case p { font-size: .88rem; }

  /* Buttons (incl. the sticky mobile CTA bar, which uses .btn) */
  .btn { padding: 11px 18px; font-size: .9rem; }

  /* Tighter vertical rhythm — less scrolling */
  .section { padding-block: clamp(36px, 10vw, 52px); }
  .section-head { margin-bottom: 22px; }
  .hero-cta { margin-top: 24px; }
}

@media (max-width: 1000px) {
  /* mobile menu */
  .nav.menu-open { background: var(--nav-solid); backdrop-filter: blur(16px); }
  .nav.menu-open .mobile-menu { display: flex; }
}

/* mobile menu panel */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 22px;
  border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 13px 6px; font-size: 1.05rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 16px; }
@media (min-width: 1001px) { .mobile-menu { display: none !important; } }

/* ---------- Contact form (on the navy final band) ---------- */
.contact-form {
  margin: 38px auto 0;
  max-width: 720px;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .final-cta { margin-top: 8px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field > span {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
html[lang="ar"] .cf-field > span { font-family: var(--font-ar); letter-spacing: .02em; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(245,241,234,.22);
  background: rgba(245,241,234,.06);
  color: var(--cream);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
html[lang="ar"] .contact-form input,
html[lang="ar"] .contact-form select,
html[lang="ar"] .contact-form textarea { font-family: var(--font-ar); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form select option { color: #0C1733; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(245,241,234,.4); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245,241,234,.1);
}
.contact-form input:disabled,
.contact-form textarea:disabled,
.contact-form button:disabled { opacity: .6; cursor: progress; }
/* honeypot — visually hidden */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-status { margin-top: 6px; font-size: .98rem; min-height: 1.4em; }
.cf-status.ok { color: var(--gold-bright); }
.cf-status.err { color: #ffb4a8; }

/* ---------- Where we work (embedded map) ---------- */
.map-embed {
  margin-top: clamp(28px, 4vw, 48px);
  width: 100%;
  /* full-bleed: break out of the centered .wrap above it */
  background: #0A1A2F;
  border-block: 1px solid var(--border);
  overflow: hidden;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(480px, 78vh, 860px);
  border: 0;
}

/* ---------- Our Story / timeline ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  list-style: none;
  padding-inline-start: 0;
}
/* the vertical spine */
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 9px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--border));
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding-bottom: clamp(28px, 4vw, 44px);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-marker { position: relative; }
.tl-dot {
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.tl-year {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-deep);
}
[data-theme="dark"] .tl-year { color: var(--gold); }
html[lang="ar"] .tl-year { font-family: var(--font-mono); }
.tl-body h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-top: 4px; }
.tl-body p { color: var(--text-muted); margin-top: 8px; max-width: 56ch; }

/* ---------- Theme switch: circular reveal (View Transitions) ----------
   Stack the old & new theme snapshots and let JS clip-reveal the new one
   from the toggle button. The body color crossfade is the fallback when
   View Transitions aren't supported. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;          /* JS drives the clip-path reveal instead */
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
/* Pause the per-element color transitions during the wipe so the snapshot
   reveal reads as one clean motion rather than a double animation. */
html.theme-transition * { transition: none !important; }

/* ---------- Legal modal (Privacy / Terms popups) ---------- */
.legal-modal {
  position: fixed; inset: 0; z-index: 210; display: none;
  background: rgba(7,12,24,.72); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
}
.legal-modal.open { display: flex; }
.legal-dialog {
  position: relative; width: 100%; max-width: 680px; max-height: 84vh;
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
  overflow: hidden;
}
.legal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(20px,4vw,34px); border-bottom: 1px solid var(--border);
}
.legal-head h3 { font-size: 1.35rem; }
.legal-close {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--surface-2); color: var(--text); font-size: 1.1rem;
  border: 1px solid var(--border);
}
.legal-close:hover { border-color: var(--gold); color: var(--gold-deep); }
[data-theme="dark"] .legal-close:hover { color: var(--gold); }
.legal-body {
  padding: 22px clamp(20px,4vw,34px) 30px; overflow-y: auto;
}
.legal-body p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.7; }
.legal-body h4 { margin: 20px 0 8px; font-size: 1.02rem; }
.legal-body h4:first-child { margin-top: 0; }
.legal-note { font-size: .85rem; color: var(--text-faint); font-style: italic; }

/* ============================================================
   VISUAL POLISH LAYER
   Gradient rings, micro-motion and focus states — all built on
   the existing gold/navy tokens, all reduced-motion aware.
   ============================================================ */

/* ---------- Accessible focus ring (keyboard navigation) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Service cards: gradient border ring on hover ---------- */
.svc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--gold-bright), transparent 45%, var(--gold-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .45s var(--ease-out);
  pointer-events: none; z-index: 1;
}
.svc:hover::before { opacity: 1; }

/* ---------- Testimonials: gold hairline + lift on hover ---------- */
.quote {
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.quote::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
html[dir="rtl"] .quote::before { background: linear-gradient(-90deg, var(--gold), transparent 70%); }
.quote:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.quote:hover::before { opacity: 1; }
.quote .mark { transition: opacity .35s; }
.quote:hover .mark { opacity: .55; }

/* ---------- Process timeline: line draws in, pins glow ---------- */
.step .pin { transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.step:hover .pin { box-shadow: 0 0 0 7px rgba(211,174,108,.16); transform: translateY(-2px); }

/* ---------- Footer: gold hairline echoing the eyebrow motif ---------- */
.footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent) 1;
}

/* ---------- Back to top (injected by app.js) ---------- */
.to-top {
  position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s,
              color .2s, border-color .2s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--gold-deep); border-color: var(--gold); transform: translateY(-2px); }
[data-theme="dark"] .to-top:hover { color: var(--gold); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { .to-top { inset-block-end: calc(26px + 64px); } }
@media (max-width: 720px)  { .to-top { display: none; } } /* phones: keep the edges clear */

/* ---------- Motion-only effects ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero stat cards drift gently; the glow breathes */
  .hero-float.a { animation: heroFloat 8s ease-in-out infinite alternate; }
  .hero-float.b { animation: heroFloat 10s ease-in-out 1.2s infinite alternate; }
  .hero-glow { animation: glowPulse 9s ease-in-out infinite alternate; }

  /* the process line draws across once its steps reveal (JS adds .line-in) */
  .steps::before {
    transform: scaleX(0); transform-origin: 0% 50%;
    transition: transform 1.1s var(--ease-out) .15s;
  }
  html[dir="rtl"] .steps::before { transform-origin: 100% 50%; }
  .steps.line-in::before { transform: scaleX(1); }
}
@keyframes heroFloat { to { transform: translateY(-8px); } }
@keyframes glowPulse { to { opacity: .65; transform: scale(1.06); } }
