/* =========================================================================
   NASAQ — styles.css
   Palette: white / one blue (#2563EB) / near-black. Restraint = premium.
   Fonts: Inter (Latin) + IBM Plex Sans Arabic. RTL-aware via logical props.
   Animate transform/opacity only (60fps).
   ========================================================================= */

/* ----------------------------- Fonts (self-hosted) ----------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/public/vendor/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/public/vendor/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ----------------------------- Tokens ----------------------------------- */
:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;   /* primary */
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --ink:      #0a0a0f;   /* near-black text */
  --ink-2:    #43474f;   /* secondary text */
  --ink-3:    #6b7280;   /* muted */
  --line:     rgba(10, 12, 25, 0.08);
  --line-2:   rgba(10, 12, 25, 0.12);

  --bg:       #ffffff;
  --bg-soft:  #f7f9fc;
  --bg-tint:  #f4f7ff;

  --wa:       #25d366;   /* WhatsApp green */
  --wa-dark:  #1ebe5a;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 22px;
  --radius-sm: 14px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(37, 99, 235, 0.28);
  --shadow-blue: 0 20px 45px -18px rgba(37, 99, 235, 0.45);

  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font: var(--font-arabic);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Motion-pass easing (reveals, micro-interactions) — ease-out, per spec */
  --ease-motion: cubic-bezier(0.16, 1, 0.3, 1);
  --blue-glow: #67c9f2;
  --nav-h: 72px;
}

html[lang="en"] { --font: var(--font-latin); }

/* ----------------------------- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* fallback for browsers that don't understand `clip` */
  overflow-x: clip; /* Safari/iPad doesn't always propagate body's overflow-x: clip to the viewport */
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* fallback for browsers that don't understand `clip` (e.g. pre-iPadOS 16 Safari) */
  overflow-x: clip; /* clip (not hidden) so it doesn't break position:sticky, where supported */
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--blue-100); color: var(--ink); }

/* Thin brand-blue scrollbar (WebKit + Firefox) */
html { scrollbar-width: thin; scrollbar-color: var(--blue-400) var(--bg-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: 999px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

/* Fixed, inert, ~2.5% noise overlay over light sections (cheap: one composited layer) */
.grain-global {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Offset anchor jumps for the fixed navbar */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: inset-block-start .2s var(--ease);
}
.skip-link:focus { inset-block-start: 16px; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------- Typography --------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 7px 14px;
  border-radius: 999px;
  margin-block-end: 22px;
}
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; font-weight: 600; }

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  max-width: 20ch;
}
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.28; font-weight: 700; }

.section-sub {
  margin-block-start: 20px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 52ch;
}

.section-head { margin-block-end: clamp(48px, 6vw, 80px); max-width: 760px; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 24px; border-radius: 12px;
  white-space: nowrap;
  /* box-shadow is never animated (paint cost) — hover "glow"/shadow states are
     pre-rendered pseudo-elements whose opacity crossfades in instead. */
  transition: transform .2s var(--ease-motion), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
/* Shadow-only pseudo (no fill) — its opacity crossfades in on hover instead
   of animating box-shadow directly. Safe re: stacking since it paints nothing
   solid, only a blur that extends past its own box. */
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity .25s var(--ease-motion); pointer-events: none;
}
.btn-lg { padding: 17px 30px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary::after { box-shadow: 0 26px 50px -16px rgba(37, 99, 235, 0.6); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost::after { box-shadow: var(--shadow-md); }
.btn-ghost:active { transform: scale(0.97); }

.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 20px 40px -16px rgba(37, 211, 102, 0.5); }
.btn-whatsapp::after { box-shadow: 0 26px 46px -14px rgba(37, 211, 102, 0.62); }
.btn-whatsapp:active { transform: scale(0.97); }

/* Hover lift/scale + pseudo-shadow crossfade — pointer devices only (no sticky :hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-700); transform: scale(1.03); }
  .btn-primary:hover::after { opacity: 1; }
  .btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-700); transform: scale(1.03); }
  .btn-ghost:hover::after { opacity: 1; }
  .btn-whatsapp:hover { background: var(--wa-dark); transform: scale(1.03); }
  .btn-whatsapp:hover::after { opacity: 1; }
  /* will-change only while the interaction is live, not permanently */
  .btn:hover, .btn:active { will-change: transform; }
}

/* ----------------------------- Navbar ----------------------------------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-block-end: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-block-end-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 24, 40, 0.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { color: var(--blue-600); display: inline-flex; }
.brand-word { font-family: var(--font-latin); font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 10px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(10,12,25,0.04); }
.nav-links a.is-active { color: var(--blue-700); background: var(--blue-50); }

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

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.lang-toggle::before { content: "🌐"; font-size: 14px; line-height: 1; }
.lang-toggle:hover { border-color: var(--blue-400); color: var(--blue-700); background: var(--blue-50); }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.nav-burger span {
  position: absolute; inset-inline: 10px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-burger span:nth-child(1) { inset-block-start: 14px; }
.nav-burger span:nth-child(2) { inset-block-start: 20px; }
.nav-burger span:nth-child(3) { inset-block-start: 26px; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ======================= CINEMATIC HERO (base = fallback) =================
   The rules below render a clean, static, stacked layout — used on mobile, for
   prefers-reduced-motion, and when JS is off. The pinned full-screen scroll
   choreography is layered on top under `.cine.cine-on` + (min-width: 721px). */
.cine { position: relative; }
.cine-track { position: relative; }
.cine-stage { position: relative; display: flex; flex-direction: column; }

/* 3D background container — a framed showcase image in the fallback */
.cine-bg {
  order: 2; position: relative; width: 100%; max-width: 1040px;
  margin: clamp(40px, 6vw, 72px) auto 0; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 50px 90px -42px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(10, 12, 25, 0.06);
}
/* Parallax: JS drives --driftx/--drifty (mouse, damped/lerped, desktop only)
   and --scrolly (real scroll parallax, fallback mode only) via custom
   properties set on #cine-bg; children inherit them. scale(1.06) is a fixed
   safety bleed so a few px of drift never reveals the frame edge. transform
   only — never top/left — so this never triggers layout. */
.cine-poster, .cine-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(var(--driftx, 0px), calc(var(--drifty, 0px) + var(--scrolly, 0px)), 0) scale(1.06);
}
.cine-video { opacity: 0; transition: opacity 1s var(--ease); }
.cine-video.on { opacity: 1; }

/* Decorative layers — shown only in enhanced mode */
.cine-scrim, .cine-hint, .cine-dots { display: none; }
.cine .grain {
  display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Stage layers — stacked in the fallback */
.cine-layer { position: static; width: 100%; }
.cine-headline { order: 1; padding: calc(var(--nav-h) + clamp(40px, 8vh, 90px)) var(--pad) 0; text-align: center; }
.cine-headline .cine-inner { max-width: 900px; margin-inline: auto; }

.cine-stats {
  order: 3; max-width: 1040px; margin: clamp(48px, 7vw, 88px) auto 0; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px);
}
.side-stack { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.side-stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.side-stat .stat-num { display: block; margin-block-end: 6px; }

.cine-services { order: 4; padding: clamp(72px, 10vw, 150px) 0 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.carousel-wrap { max-width: 1200px; margin-inline: auto; }
.tri-heading { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 52px); text-align: center; padding-inline: var(--pad); }
.tri-heading .section-title, .tri-heading .section-sub { margin-inline: auto; }

/* Services carousel — drag/swipe, slides start-to-end (right-to-left in RTL) */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: clamp(16px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px var(--pad) 28px;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.s-card {
  position: relative;
  flex: 0 0 auto; width: min(280px, 78vw); scroll-snap-align: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-sm); text-align: start;
  transition: transform .2s var(--ease-motion), border-color .2s var(--ease-motion);
}
/* Shadow-only pseudo — opacity crossfades in on hover instead of animating box-shadow */
.s-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s var(--ease-motion); pointer-events: none;
}
.s-card-icon {
  width: 78px; height: 78px; border-radius: 18px; margin: 0 0 20px;
  background: linear-gradient(160deg, var(--blue-50), #fff); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .2s var(--ease-motion);
}
.s-card-icon img { width: 52px; height: 52px; object-fit: contain; }
.s-card-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; margin-block-end: 10px; }
.s-card-body { color: var(--ink-2); font-size: 0.98rem; margin-block-end: 16px; }
.s-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-600); }
.s-card-link::after { content: "→"; transition: transform .2s var(--ease-motion); }
html[dir="rtl"] .s-card-link::after { content: "←"; }

.carousel-arrow {
  position: absolute; inset-block-start: 40%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink);
  transition: transform .2s var(--ease-motion), background-color .2s var(--ease);
}
.carousel-arrow--prev { inset-inline-start: -4px; }
.carousel-arrow--next { inset-inline-end: -4px; }
@media (max-width: 760px) { .carousel-arrow { display: none; } }

/* Hover lift/scale — pointer devices only (no sticky :hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .carousel-track:not(.is-dragging) .s-card:hover { transform: translateY(-5px); border-color: transparent; will-change: transform; }
  .carousel-track:not(.is-dragging) .s-card:hover::after { opacity: 1; }
  .carousel-track:not(.is-dragging) .s-card:hover .s-card-icon { transform: scale(1.08); }
  .s-card-link:hover::after { transform: translateX(4px); }
  html[dir="rtl"] .s-card-link:hover::after { transform: translateX(-4px); }
  .carousel-arrow:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
}

.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: var(--ink);
  margin-block: 8px 26px;
}
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.22; font-weight: 700; }

/* Word stagger reveal (JS wraps words in .w > .w-i, sets per-word transition-
   delay). Hidden state only when JS is active — no-JS/no-IO renders instantly. */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.08em; margin-block: -0.08em; }
.hero-title .w-i { display: inline-block; transition: transform .55s var(--ease-motion), opacity .55s var(--ease-motion); }
html.js .hero-title .w-i { transform: translateY(20px); opacity: 0; }
html.js .hero-title.in .w-i { transform: translateY(0); opacity: 1; }

/* Gradient treatment on the headline's key phrase (AI / الذكاء الاصطناعي) */
.hero-title .w-i.grad {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-glow));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Subheadline + CTAs fade up after the headline finishes (JS sets --sub-delay
   from the actual word count so this stays in sync with any copy change). */
.hero-sub, .hero-cta {
  transition: opacity .5s var(--ease-motion), transform .5s var(--ease-motion);
  transition-delay: var(--sub-delay, 0.7s);
}
html.js .hero-sub, html.js .hero-cta { opacity: 0; transform: translateY(18px); }
html.js .hero-title.in ~ .hero-sub, html.js .hero-title.in ~ .hero-cta { opacity: 1; transform: none; }

.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--ink-2);
  max-width: 52ch;
  margin-inline: auto;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 34px; justify-content: center; }

/* WhatsApp mini-demo. Hidden by default (fallback/narrow) — only shown in the
   pinned cinematic on wide desktop, where a corner card has room to breathe
   without ever crowding the centered headline/CTAs. Fades with the headline
   stage. JS skips building it entirely when it won't be visible.
   Sizing/position/breakpoint are solved together: .cine-inner is a centered
   900px-max box, so at typical wide-desktop widths only ~190–320px of clear
   side margin exists — the card has to be narrow enough, hugging the true
   corner closely enough, for that margin at the chosen breakpoint. */
.chat-demo {
  display: none; position: absolute; z-index: 4;
  inset-block-end: 8vh; inset-inline-end: 4vw; width: 220px;
  background: rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 14px 14px 12px;
  opacity: 0; transition: opacity .4s var(--ease-motion);
}
.chat-demo-head { display: flex; align-items: center; gap: 8px; margin-block-end: 10px; padding-inline-start: 2px; }
.chat-demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.chat-demo-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.chat-demo-body { display: flex; flex-direction: column; gap: 8px; min-height: 160px; }

.chat-bubble {
  max-width: 84%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4;
  opacity: 0; transform: scale(0.95);
  transition: opacity .3s var(--ease-motion), transform .3s var(--ease-motion);
  align-self: flex-start; /* cross-axis start/end respects dir automatically */
}
.chat-bubble.in { opacity: 1; transform: none; }
.chat-bubble--customer { background: #eef0f3; color: var(--ink); align-self: flex-start; border-end-start-radius: 4px; }
.chat-bubble--agent { background: var(--wa); color: #fff; align-self: flex-end; border-end-end-radius: 4px; }

.chat-typing { display: flex; gap: 4px; align-items: center; padding: 10px 12px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.85); animation: chatBounce 1.1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* 1500px clears the 900px centered headline box with this card's width/inset
   (with margin) — computed, not guessed: 900 + 2*(220 + 0.04*VW) <= VW. */
@media (min-width: 1500px) {
  .cine.cine-on .chat-demo { display: block; }
  .cine.cine-on .cine-headline.is-active .chat-demo { opacity: 1; }
}

.stat-num {
  font-family: var(--font-latin);
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em;
  color: var(--blue-600); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }

/* ---- Enhanced: pinned full-screen scroll choreography (JS + wide screens) ---- */
.cine-dots { position: absolute; z-index: 3; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(-50%); gap: 9px; }
.cine-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(10, 12, 25, 0.22); transition: background .3s var(--ease), transform .3s var(--ease); }
.cine-dot.is-on { background: var(--blue-600); transform: scale(1.35); }
@keyframes hintdot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(15px); opacity: 0; } }

@media (min-width: 901px) {
  .cine.cine-on { height: var(--cine-h, 360vh); }
  .cine.cine-on .cine-track { height: 100%; }
  .cine.cine-on .cine-stage { position: sticky; top: 0; height: 100vh; display: block; overflow: hidden; isolation: isolate; }

  .cine.cine-on .cine-bg { order: 0; position: absolute; inset: 0; z-index: 0; margin: 0; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .cine.cine-on .cine-scrim {
    display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      radial-gradient(120% 78% at 50% 42%, rgba(255,255,255,0.5), rgba(255,255,255,0) 62%),
      linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.04) 26%, rgba(255,255,255,0.04) 72%, rgba(255,255,255,0.4));
  }
  .cine.cine-on .grain { display: block; }
  .cine.cine-on .cine-dots { display: flex; }

  .cine.cine-on .cine-layer {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-h) + 24px) clamp(28px, 5vw, 72px) 64px;
    margin: 0; max-width: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .6s var(--ease), visibility .6s;
  }
  .cine.cine-on .cine-layer.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Stage 1 — headline */
  .cine.cine-on .cine-headline { padding-block: 0; }
  .cine.cine-on .cine-headline::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(44% 40% at 50% 47%, rgba(255,255,255,0.68), rgba(255,255,255,0) 72%);
  }
  .cine.cine-on .cine-hint { display: block; position: absolute; inset-block-end: 26px; inset-inline-start: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(10,12,25,0.25); border-radius: 16px; }
  .cine.cine-on .cine-hint-dot { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 2px; background: var(--blue-600); animation: hintdot 1.8s var(--ease) infinite; }
  .cine.cine-on .cine-headline:not(.is-active) .cine-hint { opacity: 0; }

  /* Stage 2 — stats as frosted chip stacks on the left/right sides */
  .cine.cine-on .cine-stats {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 clamp(24px, 5vw, 72px); margin: 0; max-width: none; width: 100%;
  }
  .cine.cine-on .side-stack { display: grid; gap: 14px; }
  .cine.cine-on .side-stat {
    width: max-content; max-width: 30vw; text-align: start;
    background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.75); box-shadow: var(--shadow-md);
    border-radius: 18px; padding: 14px 20px;
    transform: translateY(16px); opacity: 0;
    transition: transform .6s var(--ease), opacity .6s var(--ease);
  }
  .cine.cine-on .side-stat .stat-num { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-block-end: 2px; }
  .cine.cine-on .side-stat .stat-label { font-size: 12.5px; }
  .cine.cine-on .cine-stats.is-active .side-stat { transform: none; opacity: 1; }
  .cine.cine-on .side-stack--left .side-stat:nth-child(1) { transition-delay: .04s; }
  .cine.cine-on .side-stack--left .side-stat:nth-child(2) { transition-delay: .11s; }
  .cine.cine-on .side-stack--left .side-stat:nth-child(3) { transition-delay: .18s; }
  .cine.cine-on .side-stack--right .side-stat:nth-child(1) { transition-delay: .08s; }
  .cine.cine-on .side-stack--right .side-stat:nth-child(2) { transition-delay: .15s; }
  .cine.cine-on .side-stack--right .side-stat:nth-child(3) { transition-delay: .22s; }

  /* Stage 3 — services carousel, full-width, frosted glass cards */
  .cine.cine-on .cine-services { padding: 0; width: 100%; }
  .cine.cine-on .carousel-wrap { width: 100%; }
  .cine.cine-on .tri-heading {
    transform: translateY(14px); opacity: 0;
    transition: transform .6s var(--ease), opacity .6s var(--ease);
  }
  .cine.cine-on .cine-services.is-active .tri-heading { transform: none; opacity: 1; }
  .cine.cine-on .tri-heading .section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

  .cine.cine-on .carousel {
    transform: translateY(24px); opacity: 0;
    transition: transform .6s var(--ease) .1s, opacity .6s var(--ease) .1s;
  }
  .cine.cine-on .cine-services.is-active .carousel { transform: none; opacity: 1; }
  .cine.cine-on .s-card {
    background: rgba(255,255,255,0.76); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.75); box-shadow: var(--shadow-lg);
  }
}

/* ----------------------------- Sections --------------------------------- */
.section { padding-block: clamp(88px, 12vw, 160px); position: relative; }

/* How it works */
.how { background: var(--bg-soft); overflow: hidden; }
.how-texture {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("public/images/texture.webp");
  background-size: cover; background-position: center;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}
.how .container { position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-block-start: 26px; border-block-start: 2px solid var(--line-2); }
/* Line "draws in" via scaleX (not width, per no-layout-animation constraint).
   transform-origin sits at the reading-start edge so it flips with direction:
   left in LTR, right in RTL. Stays 44% wide at rest — only the reveal scales. */
.step::after {
  content: ""; position: absolute; inset-block-start: -2px; inset-inline-start: 0; width: 44%; height: 2px;
  background: var(--blue-600); transform: scaleX(0); transform-origin: 0% 50%;
  transition: transform .5s var(--ease-motion);
  transition-delay: calc(var(--i, 0) * 200ms + .15s);
}
html[dir="rtl"] .step::after { transform-origin: 100% 50%; }
.step.in::after { transform: scaleX(1); }
.step-num {
  font-family: var(--font-latin);
  display: inline-block; font-size: 15px; font-weight: 700; color: var(--blue-600);
  letter-spacing: 0.1em; margin-block-end: 16px;
}
.step-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-block-end: 12px; }
.step-body { color: var(--ink-2); font-size: 1.02rem; max-width: 34ch; }

/* Founders */
.founders { background: var(--bg); }
.founder-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.founder {
  position: relative;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, var(--bg-tint), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  transition: transform .2s var(--ease-motion);
}
/* Shadow-only pseudo — opacity crossfades in on hover instead of animating box-shadow */
.founder::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-md); opacity: 0; transition: opacity .2s var(--ease-motion); pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .founder:hover { transform: translateY(-5px); will-change: transform; }
  .founder:hover::after { opacity: 1; }
}
.founder-photo {
  flex: none; width: clamp(96px, 12vw, 132px); aspect-ratio: 1; border-radius: 24px;
  background: linear-gradient(150deg, var(--blue-100), var(--blue-500));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), var(--shadow-md);
  overflow: hidden;
}
img.founder-photo { object-fit: cover; }
.founder-initials { font-family: var(--font-latin); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.founder-name { font-family: var(--font-latin); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.founder-role {
  display: inline-block; margin-block: 4px 12px; font-size: 13px; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100); padding: 4px 12px; border-radius: 999px;
}
.founder-bio { color: var(--ink-2); font-size: 1rem; }

/* Contact */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-copy .btn-whatsapp { margin-block-start: 30px; }

.contact-form {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-md);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; padding-inline-start: 15px; padding-inline-end: 42px;
}
html[dir="rtl"] .field select { background-position: left 16px center; }
html[dir="ltr"] .field select { background-position: right 16px center; }
.form-note { font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: var(--wa-dark); }
.form-note.err { color: #dc2626; }

/* ------------------------------ Footer ---------------------------------- */
.footer { background: var(--ink); color: #cbd0da; padding-block: clamp(48px, 6vw, 72px) 30px; }
.footer .brand-word { color: #fff; }
.footer .brand-mark { color: var(--blue-500); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block-end: 34px; border-block-end: 1px solid rgba(255,255,255,0.1); }
.footer-tag { margin-block-start: 14px; max-width: 34ch; color: #9aa2b1; font-size: 15px; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #cbd0da; font-size: 15px; transition: color .2s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a.is-active { color: #fff; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { display: flex; align-items: center; gap: 8px; color: #cbd0da; font-size: 15px; transition: color .2s var(--ease); }
.footer-social a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block-start: 24px; font-size: 14px; color: #8b93a3; }
.lang-toggle--footer { color: #cbd0da; border-color: rgba(255,255,255,0.18); }
.lang-toggle--footer:hover { color: #fff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

/* ------------------------- Reveal on scroll ----------------------------- */
/* Hidden state applies only when JS is active (progressive enhancement). */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; }
/* staggered children via --i */
.step.reveal, .founder.reveal { transition-delay: calc(var(--i, 0) * 110ms); }

/* --------------------------- RTL specifics ------------------------------ */
html[dir="rtl"] body { text-align: right; }

/* ---------------------------- Responsive -------------------------------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { border-block-start: none; border-inline-start: 2px solid var(--line-2); padding-block-start: 0; padding-inline-start: 22px; padding-block-end: 30px; }
  /* Vertical line: always draws top-to-bottom (direction doesn't flip a
     vertical axis), so transform-origin stays fixed regardless of dir. */
  .step::after {
    inset-block-start: 0; inset-inline-start: -2px; width: 2px; height: 42%;
    transform: scaleY(0); transform-origin: 50% 0%;
    transition: transform .5s var(--ease-motion);
    transition-delay: calc(var(--i, 0) * 200ms + .15s);
  }
  .step.in::after { transform: scaleY(1); }
  .founder-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-block-end: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
    box-shadow: var(--shadow-md);
  }
  body.nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .cine-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-inner { flex-direction: column; gap: 26px; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .btn-lg { padding: 15px 22px; }
}

/* ------------------------- Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html.js .hero-title .w-i { transform: none !important; }
  html.js .hero-sub, html.js .hero-cta { opacity: 1 !important; transform: none !important; }
  .cine-video { display: none; }
  /* Chat demo: render the full static conversation immediately, no bounce/pop */
  .chat-demo { opacity: 1 !important; }
  .chat-bubble { opacity: 1 !important; transform: none !important; }
  .chat-typing { display: none !important; }
}

/* ----------------------------- Booking modal ----------------------------- */
.booking-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.booking-modal.is-open { display: block; }
.booking-overlay { position: absolute; inset: 0; background: rgba(10, 12, 25, 0.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s var(--ease); }
.booking-modal.is-open .booking-overlay { opacity: 1; }

.booking-panel {
  position: absolute; inset-inline: 0; inset-block-start: 50%; transform: translateY(calc(-50% + 16px));
  margin-inline: auto; width: min(480px, calc(100% - 32px)); max-height: min(640px, calc(100vh - 48px));
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 36px); overflow-y: auto;
  opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.booking-modal.is-open .booking-panel { opacity: 1; transform: translateY(-50%); }

.booking-close {
  position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
  width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.booking-close:hover { background: var(--bg-soft); color: var(--ink); }

.booking-step { display: none; }
.booking-step.is-active { display: block; }
.booking-title { font-size: 20px; font-weight: 700; margin-block-end: 20px; padding-inline-end: 40px; }

.booking-back { color: var(--blue-600); font-weight: 600; font-size: 14.5px; margin-block-end: 14px; }
.booking-back:hover { text-decoration: underline; }

/* Day carousel */
.booking-days-wrap { display: flex; align-items: center; gap: 8px; }
.booking-days {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding-block: 2px;
}
.booking-days::-webkit-scrollbar { display: none; }
.booking-day {
  scroll-snap-align: start; flex: 0 0 auto; width: 68px; padding: 12px 6px;
  display: grid; gap: 4px; justify-items: center; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.booking-day:hover { border-color: var(--blue-400); }
.booking-day.is-selected { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.booking-day-weekday { font-size: 12px; color: var(--ink-3); }
.booking-day.is-selected .booking-day-weekday { color: rgba(255,255,255,0.8); }
.booking-day-num { font-size: 18px; font-weight: 700; }
.booking-day-month { font-size: 11px; color: var(--ink-3); }
.booking-day.is-selected .booking-day-month { color: rgba(255,255,255,0.8); }
.booking-day-arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink-2);
}
.booking-day-arrow:hover { border-color: var(--blue-400); color: var(--blue-600); }

/* Time slots */
.booking-times { display: flex; flex-wrap: wrap; gap: 10px; min-height: 44px; }
.booking-time {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.booking-time:hover { border-color: var(--blue-400); }
.booking-time.is-selected { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.booking-times-empty, .booking-times-error { font-size: 14.5px; color: var(--ink-3); }

.booking-summary { font-size: 14.5px; color: var(--ink-2); margin-block-end: 18px; }
.booking-note { font-size: 14.5px; font-weight: 600; min-height: 1.2em; margin-block-start: 12px; }
.booking-note.ok { color: var(--wa-dark); }
.booking-note.err { color: #dc2626; }

.booking-success-icon {
  width: 52px; height: 52px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; margin-block-end: 16px;
}
