/* ================================================================
   Amanah Development
   Cream hero with a perspective-grid tunnel, a floating dark nav,
   then a dark product zone: showcase window, bento offers, work,
   process, FAQ and a glowing footer.

   Layers, in order:
     1. Tokens          6. Hero, tunnel & showcase
     2. Base            7. Dark zone: offer, work, process, FAQ, CTA
     3. Icon system     8. Footer
     4. Loader          9. Reveal & responsive
     5. Nav & buttons
   ================================================================ */

/* ============ 1. TOKENS ============ */
:root {
  --brand: #d6dbe3;
  --brand-2: #e5e8ed;
  --brand-light: #c3c8d0;
  --brand-dark: #6b7280;
  --navy: #0d0e11;

  --cream: #f2f3f5;
  --ink: #0d0d10;
  --night: #07080a;
  --night-2: rgba(17,18,21,.72);
  --night-3: #141518;
  --line-dark: rgba(255,255,255,.08);
  --line-dark-2: rgba(255,255,255,.14);
  --fg-dark: #f4f4f6;
  --fg-dark-soft: #9aa1ad;
  --fg-dark-mute: #6c717b;

  --grad: linear-gradient(135deg, #e5e8ed 0%, #d6dbe3 50%, #0d0e11 100%);
  --grad-light: linear-gradient(135deg, rgba(229,232,237,.12), rgba(214,219,227,.06));

  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 16px;
}

/* Theme tokens — used by the apply page, which keeps its own light/dark switch */
html[data-theme="light"] {
  --bg: #f2f3f5;
  --bg-soft: #e9eaed;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --text: #0d0d10;
  --text-soft: #52525b;
  --muted: #8b8b94;
  --border: #dcdee2;
  --border-strong: #c5c8cd;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,.16);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.35);
}
html[data-theme="dark"] {
  --bg: #09090b;
  --bg-soft: #111114;
  --surface: #121216;
  --surface-2: #18181c;
  --text: #f4f4f6;
  --text-soft: #a1a1aa;
  --muted: #6b6b74;
  --border: #232329;
  --border-strong: #34343c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.85);
}

/* ============ 2. BASE ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.no-scroll,
html.no-scroll body { overflow: hidden; height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg, var(--cream));
  color: var(--text, var(--ink));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* The homepage is designed as one fixed composition: cream on top, dark below */
/* Pages: a fixed animated canvas sits behind every dark section */
html:has(body.home) { background: var(--night); }
body.home { background: transparent; color: var(--fg-dark); }
html[data-lang="ar"] body { font-family: 'Cairo', var(--sans); }
html[dir="rtl"] { direction: rtl; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(214,219,227,.25); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
html[data-lang="ar"] :is(h1, h2, h3, h4) { font-family: 'Cairo', var(--sans); letter-spacing: 0; line-height: 1.3; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* shared with the apply page */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}
.lead { font-size: 18px; line-height: 1.65; color: var(--text-soft); margin: 0; }
.muted { color: var(--muted); }

/* ============ 3. ICON SYSTEM ============ */
.ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-24 { width: 24px; height: 24px; }
.ico-20 { width: 20px; height: 20px; }
.ico-18 { width: 18px; height: 18px; }
.ico-16 { width: 16px; height: 16px; stroke-width: 1.9; }
.ico-12 { width: 12px; height: 12px; stroke-width: 2.4; }
.ico-fill { fill: currentColor; stroke: none; }

html[dir="rtl"] .btn .ico:not(.ico-fill),
html[dir="rtl"] .project-overlay .ico,
html[dir="rtl"] .project-arrow .ico,
html[dir="rtl"] .sc-visit .ico { transform: scaleX(-1); }

/* ============ BRAND MARK ============ */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; transition: transform .5s var(--ease); }
.logo-mark svg { width: 34px; height: 34px; display: block; }
.logo:hover .logo-mark { transform: scale(1.06); }
.logo-mark.sm, .logo-mark.sm svg { width: 30px; height: 30px; }
.logo-wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .26em;
  white-space: nowrap;
  line-height: 1;
}
.logo-wordmark .logo-name,
.logo-wordmark .logo-sub { font: inherit; letter-spacing: inherit; text-transform: uppercase; color: inherit; }

/* ============ 4. LOADER ============ */
/*
 * Quiet and short: the mark draws, the name fades up, a hairline fills,
 * then the panel slides away. Everything animates with transform and
 * opacity only, so it stays smooth on slow machines.
 *
 *   0.00  shield draws        0.55  "A" + crossbar
 *   0.60  name fades up       JS    hairline fills to 100%
 *   exit  contents lift, panel slides up
 */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #08090b;
  color: #eceef1;
  font-family: var(--sans);
  transform: translateY(0);
  transition: transform .9s cubic-bezier(.77, 0, .18, 1) .15s;
  will-change: transform;
}
.loader::after {
  /* soft light behind the mark */
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  left: 50%; top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214,219,227,.18), transparent);
  pointer-events: none;
}
.loader.hidden { transform: translateY(-100%); pointer-events: none; }
.loader.gone { display: none; }

.ld-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.loader.hidden .ld-inner { opacity: 0; transform: translateY(-24px); }

.ld-mark { width: 64px; height: 64px; overflow: visible; margin-bottom: 26px; }
.lg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lg-shield { animation: ldDraw 1s cubic-bezier(.65, 0, .35, 1) .05s forwards; }
.lg-a      { animation: ldDraw .6s cubic-bezier(.65, 0, .35, 1) .55s forwards; }
.lg-bar    { animation: ldDraw .35s ease-out .95s forwards; }

.ld-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: ldUp .7s cubic-bezier(.22, 1, .36, 1) .6s forwards;
}
.ld-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .42em;
  margin-right: -.42em; /* optical centring for tracked caps */
  color: #f5f6f8;
}
.ld-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .5em;
  margin-right: -.5em;
  color: rgba(238,240,243,.6);
}

.ld-line {
  width: 140px;
  height: 1px;
  margin-top: 30px;
  background: rgba(160,165,174,.18);
  overflow: hidden;
  opacity: 0;
  animation: ldUp .5s ease .8s forwards;
}
.loader-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #e5e8ed, #eef0f3);
}

/* Fonts load first so the name never swaps typeface mid-intro */
.loader:not(.run) *, .loader:not(.run) *::before { animation-play-state: paused !important; }

/* Repeat view in the same visit: finished mark, brief hold, slide away */
html.loader-quick .loader * { animation: none !important; }
html.loader-quick .lg-draw { stroke-dashoffset: 0; }
html.loader-quick :is(.ld-word, .ld-line) { opacity: 1; transform: none; }
html.loader-quick .loader { transition-delay: 0s; }

@keyframes ldDraw { to { stroke-dashoffset: 0; } }
@keyframes ldUp   { to { opacity: 1; transform: none; } }

/* ============ 5. NAV & BUTTONS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  transform-origin: left;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, #9aa1ad, #c3c8d0, #ffffff);
  box-shadow: 0 0 12px rgba(195,200,208,.8);
}
html[dir="rtl"] .scroll-progress { transform-origin: right; }

/* Animated background behind the dark sections.
   Only transform and opacity animate, so the browser composites it on
   the GPU instead of repainting the page every frame. */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
}
.b1 { left: -25vmax; top: -20vmax; background: radial-gradient(closest-side, rgba(214,219,227,.30), transparent 70%); animation: drift1 28s ease-in-out infinite alternate; }
.b2 { right: -30vmax; top: 10vh;   background: radial-gradient(closest-side, rgba(154,161,173,.20), transparent 70%); animation: drift2 34s ease-in-out infinite alternate; }
.b3 { left: 10vw; bottom: -40vmax; background: radial-gradient(closest-side, rgba(170,175,185,.24), transparent 70%); animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(30vw, 25vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-35vw, 30vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(25vw, -35vh, 0) scale(1.2); } }

.bg-grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(160,165,174,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,165,174,.055) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  will-change: transform;
  animation: gridPan 12s linear infinite;
}
@keyframes gridPan { to { transform: translate3d(80px, 80px, 0); } }

/* light streaks that cross the screen now and then */
.beam {
  position: absolute;
  width: 40vw;
  height: 1px;
  top: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(223,227,232,.75), transparent);
  opacity: 0;
  will-change: transform, opacity;
  animation: beam 9s linear infinite;
}
.bm1 { top: 22%; animation-delay: 0s; }
.bm2 { top: 58%; animation-delay: 3.2s; animation-duration: 11s; }
.bm3 { top: 84%; animation-delay: 6.4s; animation-duration: 10s; }
@keyframes beam {
  0%   { transform: translate3d(-45vw, 0, 0) rotate(-8deg); opacity: 0; }
  10%  { opacity: .9; }
  45%  { opacity: .9; }
  60%  { transform: translate3d(110vw, -12vh, 0) rotate(-8deg); opacity: 0; }
  100% { transform: translate3d(110vw, -12vh, 0) rotate(-8deg); opacity: 0; }
}

/* soft spotlight that follows the cursor */
.bg-spot {
  position: absolute;
  left: 0; top: 0;
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(195,200,208,.13), transparent);
  will-change: transform;
  transform: translate3d(-999px, -999px, 0);
}

.nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
  padding: 0 10px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  border: 1px solid rgba(13,13,16,.07);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(13,14,17,.25);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
          backdrop-filter: saturate(1.6) blur(18px);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s, box-shadow .45s, max-width .6s var(--ease);
}
html[dir="rtl"] .nav-bar { padding: 0 20px 0 10px; }
.nav.on-dark .nav-bar {
  background: rgba(9,10,12,.72);
  color: #fff;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}
.nav.scrolled .nav-bar { max-width: 1060px; }

.nav-links { display: flex; gap: 6px; font-size: 14.5px; font-weight: 500; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: .78;
  transition: opacity .25s, background .25s;
}
.nav-links a:hover { opacity: 1; background: rgba(13,13,16,.05); }
.nav.on-dark .nav-links a:hover { background: rgba(255,255,255,.07); }
.nav-links a[aria-current="page"] { opacity: 1; background: rgba(214,219,227,.1); color: var(--brand); }
.nav.on-dark .nav-links a[aria-current="page"] { background: rgba(195,200,208,.14); color: #eef0f3; }
.nav-links .nav-mobile-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch { position: relative; }
.lang-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid currentColor;
  border-color: rgba(127,127,140,.28);
  background: transparent;
  color: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.flag-ico { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-btn .chev { opacity: .7; transition: transform .3s var(--ease); }
.lang-switch.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #111215;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .3s var(--ease), visibility .2s;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.lang-menu li:hover { background: rgba(255,255,255,.07); }
.lang-menu li.active { color: var(--brand-light); font-weight: 600; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .25s;
}
/* light sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn .ico:not(.ico-fill) { transition: transform .35s var(--ease); }
.btn:hover .ico:not(.ico-fill) { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .ico:not(.ico-fill) { transform: scaleX(-1) translateX(3px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn.full { width: 100%; }

.btn-blue { background: var(--brand-2); color: #fff; box-shadow: 0 10px 24px -10px rgba(214,219,227,.9), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-blue:hover { background: #ffffff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 28px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover { background: #1c1d21; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(13,13,16,.12); }
.btn-ghost:hover { background: #fff; border-color: rgba(13,13,16,.25); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eceef1; }
.btn-outline-light { background: rgba(255,255,255,.03); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-outline-light:hover { background: rgba(255,255,255,.09); }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #ffffff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(127,127,140,.28);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.text-link {
  min-height: 44px; /* comfortable tap target */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-light);
}
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.text-link:hover span { background-size: 100% 1.5px; }
.text-link .ico { transition: transform .35s var(--ease); }
.text-link:hover .ico { transform: translateX(4px); }
html[dir="rtl"] .text-link .ico { transform: scaleX(-1); }
html[dir="rtl"] .text-link:hover .ico { transform: scaleX(-1) translateX(4px); }

/* ============ 6. LIGHT HEADERS (home hero + page heroes) ============ */
.light-top {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
/* the cream panel ends in a soft curve into the dark page */
.light-top::after {
  content: '';
  position: absolute;
  left: -5%; right: -5%; bottom: -1px;
  height: 90px;
  background: var(--night);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(13,14,17,.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 75%);
}
.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(30% 35% at 72% 40%, rgba(229,232,237,.30), transparent 70%),
    radial-gradient(25% 30% at 88% 70%, rgba(154,161,173,.22), transparent 70%),
    radial-gradient(30% 30% at 20% 10%, rgba(170,175,185,.12), transparent 70%);
  will-change: transform;
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-4%,3%,0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(3%,-2%,0) rotate(-4deg) scale(1.02); }
}

.hero { padding: 150px 0 150px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(13,13,16,.08);
  box-shadow: 0 2px 8px rgba(13,14,17,.06);
  font-size: 13.5px;
  font-weight: 500;
  color: #3f3f46;
}
html[dir="rtl"] .hero-pill { padding: 4px 4px 4px 14px; }
html[dir="rtl"] .float-chip { padding: 7px 7px 7px 16px; }
.pill-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
}
.light-top h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
}
.light-top h1 span { display: block; }
.h1-accent {
  background: linear-gradient(90deg, #9aa1ad, #e5e8ed 40%, #9aa1ad 60%, #9aa1ad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-bottom: .08em;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.hero-lead { max-width: 540px; margin: 26px 0 0; font-size: 18.5px; line-height: 1.6; color: #50545c; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(13,13,16,.09); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.hero-stats span { font-size: 13.5px; color: #6b7280; }

/* contour art */
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: center; width: 100%; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.contours .ring {
  fill: none;
  stroke: #d6dbe3;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: .14;
  animation: ringWave 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * .22s);
}
.contours .ring:nth-child(3n) { stroke-dasharray: 3 6; }
@keyframes ringWave { 0%, 100% { opacity: .1; } 18% { opacity: .75; } 40% { opacity: .16; } }
.contours .orbit { transform-origin: 200px 200px; transform-box: view-box; fill: #e5e8ed; }
.contours .o1 { animation: spin 16s linear infinite; }
.contours .o2 { animation: spin 22s linear infinite reverse; }
.contours circle { stroke: rgba(195,200,208,.35); stroke-width: 7; paint-order: stroke; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 22%;
  translate: -50% -50%;
  filter: drop-shadow(0 10px 30px rgba(214,219,227,.45));
  animation: markFloat 6s ease-in-out infinite;
  will-change: translate;
}
.hero-mark svg { width: 100%; height: auto; display: block; }
@keyframes markFloat { 50% { translate: -50% -56%; } }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(13,13,16,.07);
  box-shadow: 0 14px 30px -12px rgba(13,14,17,.3);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  /* levitate: each chip bobs on its own rhythm (transform only; scroll parallax uses `translate`) */
  --lift: 14px;
  animation: levitate 5.5s ease-in-out infinite;
  will-change: transform;
  transition: scale .4s var(--ease), box-shadow .4s var(--ease);
}
.float-chip .ico {
  color: #fff;
  width: 24px; height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e8ed, #9aa1ad);
  box-shadow: 0 4px 10px -2px rgba(214,219,227,.55);
}
.float-chip:hover { scale: 1.06; box-shadow: 0 24px 40px -14px rgba(214,219,227,.45); }
/* a soft shadow on the "ground" that shrinks as the chip rises */
.float-chip::after {
  content: '';
  position: absolute;
  left: 18%; right: 18%;
  bottom: -20px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13,14,17,.28), transparent);
  animation: levitateShadow 5.5s ease-in-out infinite;
  animation-delay: inherit;
  animation-duration: inherit;
  pointer-events: none;
  z-index: -1;
}
.chip-b { --lift: 18px; animation-duration: 6.5s; animation-delay: -2.2s; }
.chip-c { --lift: 12px; animation-duration: 4.8s; animation-delay: -1.1s; }
@keyframes levitate {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
  50%      { transform: translate3d(0, calc(var(--lift) * -1), 0) rotate(1.2deg); }
}
@keyframes levitateShadow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
  50%      { transform: translate3d(0, var(--lift), 0) scale(.65); opacity: .35; }
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.chip-a { top: 12%; left: 2%; }
.chip-b { top: 46%; right: -2%; }
.chip-c { bottom: 12%; left: 10%; }

/* page heroes (subpages) */
.page-hero { padding: 170px 0 150px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 900px; font-size: clamp(40px, 5.4vw, 72px); }
.crumb { margin: 0 0 22px; font-size: 13.5px; color: #6b7280; display: flex; gap: 8px; }
.crumb a:hover { color: var(--brand); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.jump a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(13,13,16,.08);
  font-size: 14px;
  font-weight: 500;
  transition: background .25s, transform .3s var(--ease);
}
.jump a:hover { background: #fff; transform: translateY(-2px); }

/* ============ 7. DARK SECTIONS ============ */
main { position: relative; }
.section { padding: 120px 0; position: relative; }
.section-head { margin: 0 0 64px; }
.section-head.center { text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.section h2, .statement-section h2 { font-size: clamp(34px, 4.4vw, 60px); color: #fff; letter-spacing: -0.04em; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.kicker::before { content: ''; width: 22px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--brand-light)); }
html[data-lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; }
.section-lead { margin: 18px 0 0; font-size: 17.5px; line-height: 1.7; color: var(--fg-dark-soft); }
.section-head.center .section-lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.section-head.split .section-lead { margin: 0; }

/* glass card base used across sections */
.glass {
  background: linear-gradient(180deg, rgba(22,23,27,.7), rgba(10,11,13,.7));
  border: 1px solid rgba(160,165,174,.12);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

/* --- Stacking service cards --- */
.stack { display: grid; gap: 26px; }
.stack-card {
  position: sticky;
  top: calc(110px + var(--i) * 22px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  min-height: 400px;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(160deg, #121418 0%, #0c0d10 100%);
  border: 1px solid rgba(160,165,174,.13);
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.9);
  transform-origin: center top;
  transform: scale(var(--sc, 1));
  overflow: hidden;
}
.stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #07080a;
  opacity: var(--dim, 0);
  pointer-events: none;
  z-index: 2;
}
.stack-card::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  right: -180px; top: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229,232,237,.2), transparent);
  pointer-events: none;
}
.stack-card.is-blue { background: radial-gradient(120% 120% at 100% 0%, #3a3d44 0%, #d6dbe3 40%, #16181c 100%); border-color: rgba(255,255,255,.15); }
.stack-card.is-blue::before { display: none; }
.stack-num, .svc .stack-num {
  display: inline-block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(160,165,174,.25);
  color: var(--fg-dark-soft);
  margin-bottom: 22px;
}
.is-blue .stack-num { border-color: rgba(255,255,255,.4); color: #fff; }
.stack-card h3 { font-size: clamp(28px, 3vw, 40px); color: #fff; letter-spacing: -0.035em; margin-bottom: 14px; }
.stack-card p { margin: 0; color: var(--fg-dark-soft); font-size: 16.5px; line-height: 1.65; max-width: 440px; }
.is-blue p { color: rgba(255,255,255,.88); }
.is-blue .text-link { color: #fff; }

/* service photos */
.photo {
  position: relative;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #0e0f12;
  border: 1px solid rgba(160,165,174,.14);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.stack-card:hover .photo img, .svc:hover .photo img { transform: scale(1.12); }
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,8,10,.55));
  pointer-events: none;
}
.photo-chip {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
}
.photo-chip .ico { color: var(--brand); }
html[dir="rtl"] .photo-chip { left: auto; right: 16px; }

/* --- Statement: words light up as you scroll --- */
.statement-section { padding: 80px 0 40px; }
.statement {
  margin: 0;
  max-width: 1050px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #fff;
}
html[data-lang="ar"] .statement { font-family: 'Cairo', var(--sans); letter-spacing: 0; line-height: 1.5; }
.statement .w { opacity: .14; transition: opacity .4s, color .4s; }
.statement .w.lit { opacity: 1; }
.statement .w.hl.lit { color: #d0d4da; }

/* --- Case studies --- */
.cases { display: grid; gap: 28px; }
.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18,19,22,.92), rgba(9,10,12,.92));
  border: 1px solid rgba(229,232,237,.22);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
  transform: scale(var(--cs, 1));
  transition: border-color .4s;
}
.case:hover { border-color: rgba(195,200,208,.5); }
.case::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 0% 0%, rgba(214,219,227,.22), transparent 70%);
  pointer-events: none;
}
.case-info { position: relative; display: flex; flex-direction: column; padding: 38px 34px 32px; border-right: 1px solid rgba(160,165,174,.12); }
html[dir="rtl"] .case-info { border-right: 0; border-left: 1px solid rgba(160,165,174,.12); }
.case-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge-live, .badge-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge-live { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #4ade80; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s ease-in-out infinite; }
.badge-tag { background: rgba(255,255,255,.06); border: 1px solid rgba(160,165,174,.2); color: #e4e6ea; }
.case h3 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; letter-spacing: -0.03em; margin-bottom: 14px; }
.case-desc { margin: 0 0 24px; color: var(--fg-dark-soft); font-size: 15.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-meta { margin: 0; display: grid; }
.case-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(160,165,174,.12); font-size: 14.5px; }
.case-meta dt { color: var(--fg-dark-mute); }
.case-meta dd { margin: 0; color: #fff; font-weight: 600; }
.case-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(160,165,174,.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-url { color: var(--fg-dark-soft); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-go {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-2);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(214,219,227,.9);
  transition: transform .35s var(--ease), background .25s;
}
.case-go:hover { transform: translate(2px, -2px) scale(1.06); background: #ffffff; }
html[dir="rtl"] .case-go .ico { transform: scaleX(-1); }

.case-stage {
  position: relative;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 60% 100%, rgba(214,219,227,.28), transparent 70%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px;
}
.case-browser {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #101114;
  border: 1px solid rgba(160,165,174,.2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  transform: translateY(var(--ty, 0px));
}
.cb-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #18191d; flex-shrink: 0; }
.cb-bar > span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.cb-url { flex: 1; margin: 0 10% 0 14px; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.05); font-size: 11.5px; color: var(--fg-dark-soft); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-screen { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: #fff; }
.cb-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 4s ease-in-out; }
.case:hover .cb-screen img { object-position: center 30%; }
.case-phone {
  flex-shrink: 0;
  width: 24%;
  max-width: 190px;
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 34px;
  background: #0c0d0f;
  border: 1px solid rgba(160,165,174,.3);
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.9), inset 0 0 0 2px #1d1f23;
  transform: translateY(var(--py, 0px));
  position: relative;
}
.case-phone::before { content: ''; position: absolute; top: 16px; left: 50%; width: 30%; height: 5px; translate: -50% 0; border-radius: 4px; background: #25272c; z-index: 1; }
.cp-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.cp-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* --- Process timeline with scroll-filled line --- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 40px; }
.timeline-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(160,165,174,.15); border-radius: 2px; overflow: hidden; }
.timeline-line span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--fill, 0)); background: linear-gradient(90deg, #9aa1ad, #c3c8d0, #ffffff); box-shadow: 0 0 14px rgba(195,200,208,.8); }
html[dir="rtl"] .timeline-line span { transform-origin: right; }
.timeline .step {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,23,27,.7), rgba(10,11,13,.7));
  border: 1px solid rgba(160,165,174,.12);
}
.timeline .step::before {
  content: '';
  position: absolute;
  top: -46px; left: 26px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #0c0d10;
  border: 2px solid rgba(160,165,174,.4);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
html[dir="rtl"] .timeline .step::before { left: auto; right: 26px; }
.timeline .step.done::before { background: #c3c8d0; border-color: #dfe3e8; box-shadow: 0 0 16px #c3c8d0; }
.step-num {
  font-family: var(--display);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 26px;
  background: linear-gradient(180deg, #dfe3e8, rgba(195,200,208,.1));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.timeline .step h4 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.timeline .step p { margin: 0; color: var(--fg-dark-soft); font-size: 15px; }

/* --- Services page --- */
.svc-list .container { display: grid; gap: 130px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; scroll-margin-top: 110px; }
.svc:nth-child(even) .svc-art { order: 2; }
.svc-art .photo { height: 440px; border-radius: 28px; }
.svc-copy h2 { margin-bottom: 0; }
.svc-sub { margin: 30px 0 14px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dark-mute); }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: #e4e6ea; font-size: 15.5px; }
html[dir="rtl"] .ticks li { padding-left: 0; padding-right: 32px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(229,232,237,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
html[dir="rtl"] .ticks li::before { left: auto; right: 0; }

.included-grid, .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inc, .value-card {
  position: relative;
  padding: 32px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,23,27,.7), rgba(10,11,13,.7));
  border: 1px solid rgba(160,165,174,.12);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, border-color .3s;
  overflow: hidden;
}
.inc::after, .value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(195,200,208,.16), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.inc:hover, .value-card:hover { border-color: rgba(195,200,208,.35); }
.inc:hover::after, .value-card:hover::after { opacity: 1; }
.inc-ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(229,232,237,.14);
  border: 1px solid rgba(195,200,208,.25);
  color: #dfe3e8;
  margin-bottom: 22px;
}
.inc h4, .value-card h3 { font-size: 19px; color: #fff; margin-bottom: 8px; letter-spacing: -0.02em; }
.value-card h3 { font-size: 24px; }
.inc p, .value-card p { margin: 0; font-size: 15px; color: var(--fg-dark-soft); }

/* --- About --- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.story-mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 32px; background: radial-gradient(circle at 50% 50%, rgba(214,219,227,.35), transparent 65%), #0c0d10; border: 1px solid rgba(160,165,174,.14); overflow: hidden; }
.story-mark svg { width: 46%; filter: drop-shadow(0 0 40px rgba(229,232,237,.6)); animation: markFloat2 6s ease-in-out infinite; will-change: transform; }
@keyframes markFloat2 { 50% { transform: translateY(-10px); } }
.story-word { position: absolute; bottom: 24px; font-family: 'Cairo', sans-serif; font-size: 22px; font-weight: 700; color: rgba(238,240,243,.7); }
.story-copy .statement { font-size: clamp(26px, 3vw, 40px); }
.story-copy .section-lead { margin-top: 30px; }

/* --- FAQ --- */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro .btn { margin-top: 30px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; background: linear-gradient(180deg, rgba(22,23,27,.7), rgba(10,11,13,.7)); border: 1px solid rgba(160,165,174,.12); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(195,200,208,.35); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 22px 24px; cursor: pointer; font-size: 17px; font-weight: 600; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span:nth-child(2) { flex: 1; }
.faq-n { font-size: 13px; font-weight: 500; color: var(--fg-dark-mute); font-variant-numeric: tabular-nums; }
.faq-item summary .ico { color: var(--fg-dark-soft); transition: transform .4s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); color: var(--brand-light); }
.faq-item p { margin: 0; padding: 0 24px 24px 55px; color: var(--fg-dark-soft); font-size: 15.5px; line-height: 1.7; animation: faqIn .5s var(--ease); }
html[dir="rtl"] .faq-item p { padding: 0 55px 24px 24px; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* --- Contact --- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, rgba(22,23,27,.7), rgba(10,11,13,.7)); border: 1px solid rgba(160,165,174,.12); transition: border-color .3s, transform .4s var(--ease); }
.contact-list li:hover { border-color: rgba(195,200,208,.35); transform: translateX(4px); }
.contact-list strong { display: block; font-size: 13px; font-weight: 500; color: var(--fg-dark-mute); }
.contact-list a, .contact-list span { font-weight: 600; color: #fff; }
.contact-list a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.contact-list li { position: relative; }
.contact-list li a::after { content: ''; position: absolute; inset: 0; } /* whole row is tappable */
.ci-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(229,232,237,.14); color: #dfe3e8; flex-shrink: 0; }
.ci-ico .ico { width: 20px; height: 20px; }
.ci-ico.whatsapp { background: rgba(37,211,102,.14); color: #4ade80; }

.apply-panel, .cta-card { position: relative; overflow: hidden; isolation: isolate; }
.apply-panel { padding: 44px 40px; border-radius: 28px; background: linear-gradient(160deg, #9aa1ad, #4b5260 70%, #2a2e35); color: #eceef1; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 40px 80px -30px rgba(214,219,227,.6); }
.apply-panel .kicker { color: #eef0f3; }
.apply-panel .kicker::before { background: linear-gradient(90deg, transparent, #eef0f3); }
.apply-panel h3 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.apply-panel > p { color: rgba(236,238,241,.82); margin: 0 0 26px; font-size: 15.5px; }
.apply-panel .ticks li { color: #fff; }
.apply-panel .ticks li::before { background-color: rgba(255,255,255,.16); }
.apply-alt { margin: 20px 0 0; font-size: 14px; color: rgba(232,234,238,.7); text-align: center; }
.apply-alt a { display: inline-block; padding: 10px 2px; color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* --- CTA --- */
.cta-section { padding-top: 40px; }
.cta-card {
  text-align: center;
  padding: 100px 32px;
  border-radius: 36px;
  background: radial-gradient(80% 120% at 50% 120%, #d6dbe3 0%, #4b5260 40%, #0f1013 80%);
  border: 1px solid rgba(195,200,208,.3);
  box-shadow: 0 50px 100px -40px rgba(214,219,227,.6);
}
.cta-card::before {
  content: '';
  position: absolute;
  width: 160%;
  aspect-ratio: 1;
  left: -30%; top: -80%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(223,227,232,.22) 75%, transparent 90%);
  will-change: transform;
  animation: spin 14s linear infinite;
}
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 75%);
}
.cta-card h2 { max-width: 760px; margin: 0 auto; }
.cta-card .section-lead { max-width: 520px; margin-left: auto; margin-right: auto; color: rgba(232,234,238,.8); }
.cta-card .kicker { color: #eef0f3; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 38px; }

/* ============ 8. FOOTER ============ */
.footer { position: relative; color: var(--fg-dark-soft); padding: 40px 0 34px; overflow: hidden; }
.footer-glow {
  position: absolute;
  left: 50%; top: 0;
  width: min(1100px, 90%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, #e5e8ed 30%, #ffffff 50%, #e5e8ed 70%, transparent);
  box-shadow: 0 0 40px 6px rgba(229,232,237,.45);
}
.footer-big {
  margin: 30px 0 50px;
  font-family: var(--display);
  font-size: clamp(80px, 19vw, 280px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .8;
  text-align: center;
  background: linear-gradient(180deg, rgba(223,227,232,.30) 0%, rgba(195,200,208,.08) 60%, transparent 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: 18px 0 0; max-width: 340px; font-size: 15px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(160,165,174,.12); }
.footer-bottom p { margin: 0; font-size: 13.5px; color: var(--fg-dark-mute); }

/* ============ 9. REVEAL & RESPONSIVE ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* headings: words rise one after another */
.split-words .sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split-words .sw > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.split-words.in .sw > span { transform: none; }
.split-words.reveal { transform: none; }

@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }
  .timeline .step::before { display: none; }
  .case { grid-template-columns: 300px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px); left: 24px; right: 24px;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(9,10,12,.97);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .35s var(--ease), visibility .25s;
  }
  .nav-links a { padding: 14px 6px; font-size: 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links a[aria-current="page"] { background: none; color: #dfe3e8; }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links .nav-mobile-cta { display: flex; justify-content: center; margin-top: 14px; border: 0; border-radius: 999px; background: var(--brand-2); color: #fff; font-weight: 600; opacity: 1; }

}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .case { grid-template-columns: 1fr; }
  .case-info { border-right: 0; border-bottom: 1px solid rgba(160,165,174,.12); }
  html[dir="rtl"] .case-info { border-left: 0; }
  .section { padding: 90px 0; }
  .section-head.split { grid-template-columns: 1fr; gap: 16px; }
  .stack-card { grid-template-columns: 1fr; padding: 30px; gap: 26px; top: calc(90px + var(--i) * 14px); }
  .photo { height: 240px; }
  .svc, .story { grid-template-columns: 1fr; gap: 36px; }
  .svc:nth-child(even) .svc-art { order: 0; }
  .svc-art .photo { height: 300px; }
  .svc-list .container { gap: 90px; }
  .included-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .faq-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { padding: 0 12px; top: 10px; }
  .nav-bar { height: 58px; padding: 0 8px 0 14px; gap: 10px; }
  html[dir="rtl"] .nav-bar { padding: 0 14px 0 8px; }
  .nav-links { left: 12px; right: 12px; }
  .logo { gap: 9px; }
  .logo-mark, .logo-mark svg { width: 28px; height: 28px; }
  .logo-wordmark { font-size: 11px; letter-spacing: .16em; }
  .lang-btn { padding: 0 9px; height: 38px; gap: 5px; }
  .lang-btn #langLabel { display: none; }
  .nav-actions { gap: 6px; }
  .menu-btn { width: 38px; height: 38px; }

  .hero { padding: 116px 0 110px; }
  .page-hero { padding: 120px 0 110px; }
  .hero-pill { font-size: 12px; }
  .light-top h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 24px; }
  .float-chip { font-size: 12.5px; padding: 6px 13px 6px 6px; }
  .chip-b { right: 0; }

  .stack-card { padding: 24px; border-radius: 22px; }
  .case-info { padding: 28px 22px; }
  .case-meta div { grid-template-columns: 100px 1fr; }
  .case-stage { padding: 24px 16px; gap: 12px; }
  .case-phone { width: 26%; border-radius: 22px; padding: 5px; }
  .cp-screen { border-radius: 17px; }
  .included-grid, .values-grid, .timeline { grid-template-columns: 1fr; }
  .faq-item summary { padding: 18px; font-size: 16px; gap: 12px; }
  .faq-item p, html[dir="rtl"] .faq-item p { padding: 0 18px 20px; }
  .apply-panel { padding: 32px 22px; }
  .cta-card { padding: 70px 20px; border-radius: 26px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split-words .sw > span { transform: none; }
  .stack-card { position: relative; top: 0; }
}

/* Smallest phones (320–360px): keep the menu button inside the bar */
@media (max-width: 360px) {
  .nav-bar { padding: 0 6px 0 12px; gap: 6px; }
  html[dir="rtl"] .nav-bar { padding: 0 12px 0 6px; }
  .logo { gap: 7px; }
  .logo-mark, .logo-mark svg { width: 24px; height: 24px; }
  .logo-wordmark { font-size: 9.5px; letter-spacing: .12em; }
}

/* ============ ERROR PAGES ============ */
.error-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 130px 0 150px;
}
.err-wrap { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.err-art { display: block; width: 100%; max-width: 560px; margin: 0 auto 26px; overflow: visible; }
.err-lines { fill: none; stroke: #c7cad0; stroke-width: 1.4; }
.err-panel { fill: rgba(229,232,237,.10); }
.err-dots { fill: none; stroke: #c7cad0; stroke-width: 1.4; }
.err-code {
  font-family: var(--display);
  font-size: 74px;
  font-weight: 600;
  letter-spacing: -0.02em;
  fill: none;
  stroke: #a6abb4;
  stroke-width: 1.4;
}
.err-arc, .err-bar {
  fill: none;
  stroke: #d6dbe3;
  stroke-width: 16;
  stroke-linecap: butt;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: errDraw 1.1s var(--ease) .3s forwards;
}
.err-bar { animation-delay: .6s; }
@keyframes errDraw { to { stroke-dashoffset: 0; } }
.err-mark rect { fill: #fff; stroke: #e1e3e7; stroke-width: 1.4; filter: drop-shadow(0 18px 30px rgba(13,14,17,.18)); }
.err-mark { animation: errFloat 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.err-shadow { fill: rgba(13,14,17,.14); animation: errShadow 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes errFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes errShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .5; } }
/* server errors: the mark tilts like it lost its footing */
.err-server .err-mark { animation-name: errWobble; }
@keyframes errWobble { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-12px) rotate(-4deg); } }

.err-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}
.error-page h1 { font-size: clamp(34px, 5vw, 56px); }
.error-page .hero-lead { margin: 18px auto 0; max-width: 520px; }
.error-page .hero-cta { justify-content: center; }

@media (max-width: 640px) {
  .error-page { padding: 100px 0 110px; }
  .err-code { font-size: 64px; }
}

/* ============ 10. Animated background (bg.js) ============ */
/* (the scroll-linked hue shift was dropped: a filter on a full-screen layer repaints it every frame) */
.bg-canvas,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bg-canvas { z-index: 1; }
.hero-canvas { z-index: -1; }
.blob-wrap {
  position: absolute;
  inset: 0;
  translate: 0 var(--sy, 0px);
  will-change: transform;
}
.bg-fx .bg-grid { rotate: var(--tilt, 0deg); }

/* ============ 11. Liquid metal card borders (cards.js) ============ */
@property --lm-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --lm-b { syntax: '<angle>'; inherits: false; initial-value: 180deg; }
@property --lm-c { syntax: '<angle>'; inherits: false; initial-value: 150deg; }

/* Liquid chrome tokens — shared by cards (.metal) and buttons (section 12).
   Three layers move at different rates so the reflections never repeat
   the same way twice: a bright highlight orbiting the edge (--lm-a),
   softer streaks orbiting the other way (--lm-b), and the chrome bands
   underneath swaying back and forth (--lm-c).
   --lm-border  ring thickness
   --lm-speed   one orbit of the main highlight (bigger = slower);
                the other layers are timed from it
   --lm-chrome  stops for the chrome bands: light, dark, light
   --lm-shine   stops for the main highlight, with faint warm/violet/cyan
                tints for the rainbow sheen
   --lm-flow    stops for the counter-rotating soft streaks */
:root {
  --lm-border: 1.6px;
  --lm-speed: 7s;
  --lm-chrome: #f7f9fc 0%, #b4bcc9 14%, #5a616d 30%, #1f232a 42%, #8e97a7 55%, #f1f4f8 64%, #6b7381 78%, #2a2e36 88%, #d9dee6 100%;
  --lm-flow:
    transparent 0deg, rgba(255,255,255,.55) 28deg, transparent 58deg,
    transparent 150deg, rgba(255,255,255,.4) 172deg, rgba(190,220,255,.35) 184deg, transparent 205deg,
    transparent 290deg, rgba(255,240,225,.4) 310deg, transparent 332deg;
  --lm-shine:
    transparent 0deg, transparent 40deg,
    rgba(255,255,255,.95) 62deg, rgba(255,220,190,.75) 72deg, rgba(205,190,255,.6) 82deg,
    transparent 104deg, transparent 220deg,
    rgba(255,255,255,.8) 240deg, rgba(175,235,245,.6) 252deg,
    transparent 274deg, transparent 360deg;
}

.metal {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: var(--lm-border);
  pointer-events: none;
  background:
    conic-gradient(from var(--lm-a), var(--lm-shine)),
    conic-gradient(from var(--lm-b), var(--lm-flow)),
    linear-gradient(var(--lm-c), var(--lm-chrome));
  -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 exclude, linear-gradient(#000 0 0);
  opacity: .7;
  animation:
    lmA var(--lm-speed) linear infinite,
    lmB calc(var(--lm-speed) * 1.7) linear infinite reverse,
    lmC calc(var(--lm-speed) * .9) ease-in-out infinite alternate;
  transition: opacity .5s var(--ease);
}
.metal-glow {
  padding: 2px;
  filter: blur(4px);
  opacity: .12;
}
.photo .metal { opacity: .55; }
.photo .metal-glow { opacity: .08; }
.stack-card:hover .metal:not(.metal-glow) { opacity: 1; }
.stack-card:hover .metal-glow { opacity: .22; }
.stack-card:hover .photo .metal:not(.metal-glow),
.svc:hover .photo .metal:not(.metal-glow) { opacity: .95; }
@keyframes lmA { to { --lm-a: 360deg; } }
@keyframes lmB { to { --lm-b: 540deg; } }
@keyframes lmC { to { --lm-c: 250deg; } }

.stack-card { border-color: transparent; }
.photo { border-color: transparent; will-change: transform; }

/* spotlight that follows the cursor inside the card */
.card-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(223,227,232,.13), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.stack-card:hover .card-spot { opacity: 1; }
.stack-copy, .stack-card .photo { position: relative; z-index: 1; }

/* chips become polished chrome */
.photo-chip {
  background: linear-gradient(115deg, #f8fafc 0%, #cbd5e1 30%, #ffffff 48%, #94a3b8 70%, #e2e8f0 100%);
  background-size: 250% 100%;
  animation: chipSheen 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(17,18,21,.18);
}
@keyframes chipSheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* number pill picks up a metal edge too */
.stack-num {
  border-color: transparent;
  background:
    linear-gradient(#15171b, #15171b) padding-box,
    linear-gradient(120deg, #64748b, #f1f5f9, #c3c8d0, #475569) border-box;
}
.is-blue .stack-num {
  background:
    linear-gradient(#2b2e34, #2b2e34) padding-box,
    linear-gradient(120deg, #cbd5e1, #ffffff, #dfe3e8, #e2e8f0) border-box;
}

@media (prefers-reduced-motion: reduce) {
  .metal, .photo-chip { animation: none; }
}

/* ============ 12. Liquid metal buttons ============
   A thin chrome ring drawn by ::before (masked to the edge) using the
   tokens in section 11. Opt in with these selectors, or add .btn-metal
   to any .btn. Override per button, e.g. style="--lm-border:2px". */
.btn-metal,
.btn-dark,
.btn-blue,
.btn-light,
.btn-outline-light,
.lang-btn,
.menu-btn {
  position: relative;
  isolation: isolate;
  border-width: 0;
}
.btn-metal::before,
.btn-dark::before,
.btn-blue::before,
.btn-light::before,
.btn-outline-light::before,
.lang-btn::before,
.menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: var(--lm-border);
  pointer-events: none;
  background:
    conic-gradient(from var(--lm-a), var(--lm-shine)),
    conic-gradient(from var(--lm-b), var(--lm-flow)),
    linear-gradient(var(--lm-c), var(--lm-chrome));
  -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 exclude, linear-gradient(#000 0 0);
  opacity: .85;
  animation:
    lmA var(--lm-speed) linear infinite,
    lmB calc(var(--lm-speed) * 1.7) linear infinite reverse,
    lmC calc(var(--lm-speed) * .9) ease-in-out infinite alternate;
  transition: opacity .3s var(--ease);
}
.btn:hover::before,
.lang-btn:hover::before,
.menu-btn:hover::before { opacity: 1; }

/* the dark button is the reference look: near-black glass with a soft top reflection */
.btn-metal,
.btn-dark {
  background: linear-gradient(180deg, #1a1b20 0%, #0c0c0f 55%, #08080a 100%);
  color: #e8eaef;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -8px 16px -10px rgba(255,255,255,.06),
    0 12px 28px -14px rgba(0,0,0,.85);
}
.btn-metal:hover,
.btn-dark:hover { background: linear-gradient(180deg, #22242b 0%, #111216 55%, #0a0a0c 100%); }

/* keyboard focus stays obvious on top of the ring */
.btn:focus-visible,
.lang-btn:focus-visible,
.menu-btn:focus-visible { outline: 2px solid #dfe3e8; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .lang-btn::before, .menu-btn::before { animation: none; }
}
@media (forced-colors: active) {
  .btn::before, .lang-btn::before, .menu-btn::before, .metal { display: none; }
}

/* ============ 13. Black & silver theme fixes ============
   The palette swap turned the blue accents silver. These rules fix the
   places where silver now sits under white text or on a light surface. */

/* light surfaces (hero, light nav, chrome chips, apply page) use graphite accents */
.photo-chip { --brand: #1f2228; --brand-2: #2b2e34; --brand-light: #3a3d44; }

/* primary buttons: polished silver with dark text */
.btn-blue,
.btn-primary,
.case-go,
.nav-links .nav-mobile-cta {
  background: linear-gradient(180deg, #ffffff 0%, #e4e7ec 45%, #c4c9d1 100%);
  color: #0a0b0d;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), inset 0 1px 0 #fff;
}
.btn-blue:hover,
.btn-primary:hover,
.case-go:hover { background: linear-gradient(180deg, #ffffff 0%, #eef0f3 45%, #d3d7dd 100%); }
.btn-light { background: #f4f5f7; color: #0a0b0d; }
.btn-light:hover { background: #ffffff; }

/* the "featured" service card becomes brushed graphite instead of blue */
.stack-card.is-blue {
  background: radial-gradient(120% 120% at 100% 0%, #3a3d44 0%, #1f2126 45%, #111215 100%);
  border-color: transparent;
}

/* hero headline accent: liquid chrome text */
.h1-accent {
  background: linear-gradient(100deg, #0a0b0d 0%, #4b5260 22%, #c9ced6 38%, #5a606b 50%, #0a0b0d 68%, #6b7280 84%, #0a0b0d 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
}

/* active nav link on the dark nav */
.nav.on-dark .nav-links a[aria-current="page"] { color: #fff; }

/* ============ 15. Liquid chrome loading screen ============ */
.loader {
  background:
    radial-gradient(60% 50% at 50% 45%, #15171b 0%, #08090b 70%),
    #08090b;
}
/* faint grid that fades out toward the edges */
.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 60%);
  pointer-events: none;
}
.loader::after { background: radial-gradient(closest-side, rgba(214,219,227,.10), transparent); }

.ld-emblem {
  position: relative;
  width: 132px; height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.ld-emblem .ld-mark { margin: 0; width: 60px; height: 60px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }

/* liquid chrome ring: same three-layer chrome as the borders */
.ld-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background:
    conic-gradient(from var(--lm-a), var(--lm-shine)),
    conic-gradient(from var(--lm-b), var(--lm-flow)),
    linear-gradient(var(--lm-c), var(--lm-chrome));
  -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 exclude, linear-gradient(#000 0 0);
  animation:
    lmA 2.4s linear infinite,
    lmB 4s linear infinite reverse,
    lmC 2.2s ease-in-out infinite alternate,
    ldPop .9s cubic-bezier(.22, 1, .36, 1) both;
  box-shadow: 0 0 40px -6px rgba(214,219,227,.25);
}
/* glass disc behind the mark */
.ld-emblem::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, transparent 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
/* silver ripples spreading out */
.ld-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(230,233,238,.35);
  opacity: 0;
  animation: ldRipple 2.4s cubic-bezier(.22, 1, .36, 1) .4s infinite;
}
.ld-ripple.r2 { animation-delay: 1.6s; }

/* wordmark in moving chrome */
.ld-name {
  background: linear-gradient(100deg, #8e95a1 0%, #ffffff 25%, #6b7280 45%, #f4f6fa 65%, #8e95a1 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: chromeSweep 2.6s linear infinite;
}

/* progress line with a bright moving head */
.ld-line { width: 180px; height: 2px; border-radius: 2px; background: rgba(160,165,174,.14); overflow: visible; position: relative; }
.loader-bar {
  border-radius: 2px;
  background: linear-gradient(90deg, #4a505c, #d9dee6 70%, #ffffff);
  box-shadow: 0 0 12px rgba(255,255,255,.45);
}
.ld-pct {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(238,240,243,.55);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: ldUp .5s ease .9s forwards;
}
.ld-pct small { font-size: 10px; margin-left: 2px; }

/* exit: the content lifts and blurs while the screen slides away */
.loader.hidden .ld-inner { filter: blur(6px); transform: translateY(-30px) scale(.96); }

@keyframes ldPop    { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes ldRipple { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes chromeSweep { to { background-position: -250% 0; } }

html.loader-quick .ld-pct { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ld-ring, .ld-ripple, .ld-name { animation: none; }
  .ld-ripple { display: none; }
}

/* ============ 16. Glass nav ============ */
.nav-bar {
  position: relative;
  height: 62px;
  padding: 0 8px 0 18px;
  -webkit-backdrop-filter: saturate(1.4) blur(26px);
          backdrop-filter: saturate(1.4) blur(26px);
}
.nav.on-dark .nav-bar {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)), rgba(10,11,14,.52);
  border-color: rgba(255,255,255,.11);
  box-shadow:
    0 24px 60px -24px rgba(0,0,0,.8),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.35);
}
/* thin liquid chrome edge, kept faint so the glass stays the focus */
.nav-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background:
    conic-gradient(from var(--lm-a), var(--lm-shine)),
    linear-gradient(var(--lm-c), var(--lm-chrome));
  -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 exclude, linear-gradient(#000 0 0);
  opacity: .28;
  animation: lmA calc(var(--lm-speed) * 2) linear infinite, lmC calc(var(--lm-speed) * 1.8) ease-in-out infinite alternate;
}
.nav.on-dark .nav-links { gap: 2px; font-size: 14px; }
.nav.on-dark .nav-links a { opacity: .7; padding: 8px 13px; transition: opacity .25s, background .25s, color .25s; }
.nav.on-dark .nav-links a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav.on-dark .nav-links a[aria-current="page"] {
  opacity: 1;
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.nav.on-dark .lang-btn,
.nav.on-dark .menu-btn { background: rgba(255,255,255,.04); }
.nav.on-dark .nav-cta { box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,.08); }

/* ============ 18. Dark zone background, refined ============ */
.bg-fx .beam { display: none; }
.bg-fx .bg-grid {
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.3px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 70%);
  animation: none;
  opacity: .5;
}
.bg-fx .blob { width: 80vmax; height: 80vmax; }
.bg-fx .b1 { background: radial-gradient(closest-side, rgba(214,219,227,.10), transparent 70%); }
.bg-fx .b2 { background: radial-gradient(closest-side, rgba(160,165,174,.07), transparent 70%); }
.bg-fx .b3 { background: radial-gradient(closest-side, rgba(120,126,138,.09), transparent 70%); }
.bg-fx .bg-canvas { opacity: .7; }
/* fine film grain so the large dark areas do not band */
.bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .03;
  pointer-events: none;
}
/* a soft hairline between the dark sections */
.section::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: min(1100px, 90%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
.section#services::before { display: none; }

@media (max-width: 900px) {
  .hero-dark { padding: 124px 0 90px; }
  .hero-dark .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-showcase { justify-self: center; width: 100%; padding: 10px 6% 40px 10%; }
  .hero-dark .float-chip { font-size: 12px; }
  .hero-dark h1 { font-size: clamp(38px, 10.5vw, 50px); }
  .hero-showcase { max-width: 520px; padding: 10px 0 50px; }
  .hero-window { transform: rotateY(-6deg) rotateX(3deg); }
  .hero-dark .chip-a { left: 0; }
  .hero-dark .chip-b { right: 0; }
  .hero-dark .chip-c { right: 8px; }
  .hero-dark .hero-stats { gap: 24px; }
}

/* ============ 17. Dark mode: hero and page headers ============
   Every page opens with a .light-top header. In the light theme
   (theme-light.css) it is the original cream panel; in the dark theme
   it turns into this black stage with a spotlight and a moving floor. */
:root:not([data-mode="light"]) .light-top {
  background: radial-gradient(90% 60% at 50% 0%, #15171b 0%, #08090b 60%);
  color: #fff;
}
:root:not([data-mode="light"]) .light-top::after { display: none; }
:root:not([data-mode="light"]) .light-top .container { position: relative; z-index: 2; }
:root:not([data-mode="light"]) .light-top h1 { color: #fff; }
:root:not([data-mode="light"]) .light-top .hero-lead { color: #a3a8b1; }
:root:not([data-mode="light"]) .light-top .crumb,
:root:not([data-mode="light"]) .light-top .crumb a { color: #7c828c; }
:root:not([data-mode="light"]) .light-top .crumb a:hover { color: #fff; }
/* the gradient starts and ends on the same silver and is exactly two
   tiles wide, so shifting it by -200% lands on an identical frame: no jump */
:root:not([data-mode="light"]) .light-top .h1-accent {
  background: linear-gradient(100deg, #b4bac4 0%, #ffffff 18%, #b4bac4 36%, #e9ecf0 54%, #9aa1ad 72%, #ffffff 86%, #b4bac4 100%);
  background-size: 200% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shine 9s linear infinite;
}
:root:not([data-mode="light"]) .light-top .hero-pill {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  color: #c7cad0;
}
:root:not([data-mode="light"]) .light-top .pill-tag { background: linear-gradient(180deg, #ffffff, #c4c9d1); color: #0a0b0d; }
:root:not([data-mode="light"]) .light-top .jump a {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  color: #e4e7ec;
}
:root:not([data-mode="light"]) .light-top .jump a:hover { background: rgba(255,255,255,.1); }

/* hero buttons swap to silver + glass on black */
:root:not([data-mode="light"]) .light-top .btn-dark {
  background: linear-gradient(180deg, #ffffff 0%, #e4e7ec 45%, #c4c9d1 100%);
  color: #0a0b0d;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), inset 0 1px 0 #fff;
}
:root:not([data-mode="light"]) .light-top .btn-ghost {
  background: rgba(255,255,255,.04);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
:root:not([data-mode="light"]) .light-top .btn-ghost:hover { background: rgba(255,255,255,.09); }

/* background layers */
:root:not([data-mode="light"]) .hero-dots {
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
}
:root:not([data-mode="light"]) .hero-aurora {
  background:
    radial-gradient(30% 35% at 72% 40%, rgba(214,219,227,.10), transparent 70%),
    radial-gradient(25% 30% at 88% 70%, rgba(160,165,174,.08), transparent 70%);
}
.hero-spot, .hero-glow, .hero-floor { display: none; }
:root:not([data-mode="light"]) .hero-spot {
  display: block;
  position: absolute;
  /* a soft overhead pool of light that fades out on every side; the old
     conic fan ran into the box's edges and left hard vertical seams */
  inset: 0;
  background: radial-gradient(ellipse 42% 80% at 50% -8%, rgba(255,255,255,.075) 0%, rgba(255,255,255,.03) 45%, transparent 75%);
  pointer-events: none;
}
:root:not([data-mode="light"]) .hero-glow {
  display: block;
  position: absolute;
  left: 50%; top: -320px;
  width: 1300px; height: 800px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214,219,227,.11), transparent 70%);
  pointer-events: none;
}
:root:not([data-mode="light"]) .hero-floor {
  display: block;
  position: absolute;
  left: -30%; right: -30%; bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 85%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 85%, transparent 100%);
  animation: floorRun 4s linear infinite;
  opacity: .5;
  pointer-events: none;
}
@keyframes floorRun { to { background-position: 0 90px; } }
:root:not([data-mode="light"]) .light-top + .section::before { display: none; }
:root:not([data-mode="light"]) .light-top { border-bottom: 1px solid rgba(255,255,255,.08); }

/* shield art in silver */
:root:not([data-mode="light"]) .contours .ring { stroke: #e6e9ef; }
:root:not([data-mode="light"]) .contours .orbit { fill: #ffffff; }
:root:not([data-mode="light"]) .contours circle { stroke: rgba(255,255,255,.2); }
:root:not([data-mode="light"]) .hero-mark { filter: drop-shadow(0 10px 30px rgba(255,255,255,.18)); }
:root:not([data-mode="light"]) .light-top .float-chip {
  background: rgba(16,17,20,.82);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
:root:not([data-mode="light"]) .light-top .float-chip .ico { background: linear-gradient(180deg, #ffffff, #c4c9d1); color: #0a0b0d; box-shadow: none; }
:root:not([data-mode="light"]) .light-top .float-chip::after { background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }

/* small print under the buttons */
.hero-note { max-width: 540px; margin: 22px 0 0; font-size: 15px; line-height: 1.65; color: #6b7280; }
.hero-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
:root:not([data-mode="light"]) .hero-note { color: #7c828c; }
:root:not([data-mode="light"]) .hero-note a { color: #e4e7ec; text-decoration-color: rgba(228,231,236,.4); }

/* ============ 19. Faster reveals ============ */
.reveal { transform: translateY(22px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.section h2 { position: relative; }
.section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -14px;
  width: 64px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: .8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease) .2s;
}
.section-head.center h2::after { left: 50%; translate: -50% 0; transform-origin: center; }
.section h2.is-seen::after { transform: scaleX(1); }

/* ============ 20. Theme switch button ============ */
.mode-btn {
  position: relative;
  isolation: isolate;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.04);
  color: inherit;
  cursor: pointer;
}
.mode-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--lm-border);
  pointer-events: none;
  background:
    conic-gradient(from var(--lm-a), var(--lm-shine)),
    conic-gradient(from var(--lm-b), var(--lm-flow)),
    linear-gradient(var(--lm-c), var(--lm-chrome));
  -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 exclude, linear-gradient(#000 0 0);
  opacity: .85;
  animation: lmA var(--lm-speed) linear infinite, lmB calc(var(--lm-speed) * 1.7) linear infinite reverse, lmC calc(var(--lm-speed) * .9) ease-in-out infinite alternate;
}
.mode-btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease), opacity .3s; }
.mode-btn:hover svg { transform: rotate(-20deg) scale(1.08); }
.mode-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 900px) { .mode-btn { width: 38px; height: 38px; } }

/* a short cross-fade while the palette swaps */
html.mode-switching *,
html.mode-switching *::before,
html.mode-switching *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important;
}
@media (prefers-reduced-motion: reduce) { .mode-btn::before { animation: none; } }
/* phones: room for the theme switch beside the language and menu buttons */
@media (max-width: 520px) {
  .nav { padding: 0 12px; }
  .nav-bar { gap: 8px; padding: 0 6px 0 14px; }
  .nav-actions { gap: 5px; }
  .logo-wordmark { font-size: 11px; letter-spacing: .12em; }
  .lang-btn { padding: 0 10px; }
  .lang-btn #langLabel, .lang-btn .chev { display: none; }
  .mode-btn, .menu-btn, .lang-btn { width: 36px; height: 36px; }
  .lang-btn { width: auto; }
}
/* dark theme: the nav is dark glass from the first frame (before script.js adds .on-dark) */
:root:not([data-mode="light"]) .nav .nav-bar {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)), rgba(10,11,14,.52);
  color: #fff;
  border-color: rgba(255,255,255,.11);
}

/* ============ 21. Smoothness (smooth.js) ============ */
/* Lenis: page keeps its natural height; scrolling stops cleanly when locked */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* chrome rings stop animating while their element is off screen */
.lm-off > .metal,
.lm-off .metal,
.lm-off::before,
.lm-off::after { animation-play-state: paused !important; }

/* fewer layers kept on the GPU when nothing is moving them */
.photo { will-change: auto; }
.blob { will-change: auto; }
.blob-wrap { will-change: transform; }

/* links, buttons and cards ease instead of snapping */
a, button { -webkit-tap-highlight-color: transparent; }
.text-link, .nav-links a, .footer a { transition: color .25s var(--ease), opacity .25s var(--ease), background .25s var(--ease); }

/* ============ 22. Scroll performance ============ */
/* While the page is moving (smooth.js adds .is-scrolling) the purely
   decorative loops hold still; they resume where they left off. Each of
   these repaints its element every frame, so pausing them frees the frame
   for the scroll. */
html.is-scrolling .metal,
html.is-scrolling .btn::before,
html.is-scrolling .lang-btn::before,
html.is-scrolling .menu-btn::before,
html.is-scrolling .mode-btn::before,
html.is-scrolling .nav-bar::after,
html.is-scrolling .h1-accent,
html.is-scrolling .hero-floor,
html.is-scrolling .hero-aurora,
html.is-scrolling .contours .ring,
html.is-scrolling .contours .orbit,
html.is-scrolling .float-chip,
html.is-scrolling .float-chip::after,
html.is-scrolling .photo-chip,
html.is-scrolling .stack-num,
html.is-scrolling .bg-fx .blob { animation-play-state: paused !important; }

/* the glow copies of the rings were blurred every frame; gone */
.metal-glow { display: none; }

/* lighter glass: a smaller blur is far cheaper to redraw over moving content */
.nav-bar {
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
:root:not([data-mode="light"]) .light-top .float-chip {
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  background: rgba(16,17,20,.94);
}

/* elements that move on scroll get their own layer, so moving them never repaints */
.stack-card { will-change: transform; }
.hero-content, .hero-art { will-change: transform, opacity; }

/* hero floor: move the grid with a transform instead of repainting it */
:root:not([data-mode="light"]) .hero-floor { animation: none; overflow: hidden; background: none; }
:root:not([data-mode="light"]) .hero-floor::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -90px; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 90px 90px;
  animation: floorSlide 4s linear infinite;
  will-change: transform;
}
@keyframes floorSlide { to { transform: translate3d(0, 90px, 0); } }
html.is-scrolling .hero-floor::before { animation-play-state: paused; }
