/* ==========================================================================
   Wajeeh — Intelligent Mobility & Cross-Border Logistics Ecosystem
   Global stylesheet: design tokens, fluid typography, layout systems,
   and the animation primitives driven by js/app.js.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color — deep-space enterprise dark with a kinetic signal accent */
  --ink-0: #07090d;            /* page background            */
  --ink-1: #0c0f15;            /* raised surfaces            */
  --ink-2: #12161f;            /* cards                      */
  --ink-3: #1a202c;            /* hover surfaces             */
  --line:  rgba(235, 241, 255, 0.08);
  --line-strong: rgba(235, 241, 255, 0.16);
  --paper: #f2f5f9;            /* primary text               */
  --muted: #98a2b3;            /* secondary text             */
  --faint: #5b6472;            /* tertiary text / labels     */
  --accent: #4d8dff;           /* kinetic lime — CTAs, live data */
  --accent-ink: #10140a;       /* text on accent             */
  --accent-soft: rgba(77, 141, 255, 0.12);
  --teal: #35e0c8;             /* telemetry / tracking hue   */
  --violet: #8b7bff;           /* software / TMS hue         */
  --amber: #ffb454;            /* alerts / in-transit hue    */
  --danger: #ff6b6b;

  /* Typography — fluid scale (mobile-first, clamps up to 1440px+) */
  /* Google Sans Flex (variable, 300–800) carries the whole site — headings,
     body and UI. IBM Plex Sans Arabic covers Arabic, which Google Sans Flex
     does not include. */
  --font-display: "Google Sans Flex", "Google Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-body: "Google Sans Flex", "Google Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Google Sans Flex", system-ui, sans-serif;

  --fs-hero:  clamp(2.6rem, 1rem + 7.4vw, 6.75rem);
  --fs-h2:    clamp(1.9rem, 1rem + 3.6vw, 3.9rem);
  --fs-h3:    clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  --fs-h4:    clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --fs-lead:  clamp(1.05rem, 1rem + 0.55vw, 1.35rem);
  --fs-body:  clamp(0.95rem, 0.9rem + 0.2vw, 1.06rem);
  /* Body copy inside cards, feature rows and steps — sits between body and
     small so long-form paragraphs stay comfortably readable. */
  --fs-copy:  clamp(0.95rem, 0.9rem + 0.28vw, 1.08rem);
  --fs-small: 0.9rem;   /* UI chrome: buttons, nav, labels */
  --fs-micro: 0.74rem;

  /* Rhythm */
  --space-section: clamp(5rem, 3rem + 9vw, 11rem);
  --space-block:   clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --container: 90rem;

  /* Shape & depth */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.65);

  /* Motion — one easing family across the whole site */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* expo-ish out */
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
  --dur-fast: 0.35s;
  --dur-base: 0.7s;
  --dur-slow: 1.1s;

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   1b. LIGHT THEME — activated via <html data-theme="light">
   Same token names, remapped. Accent shifts to a deeper lime so text and
   borders keep AA contrast on pale surfaces; buttons flip to white-on-green.
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
  --ink-0: #f4f6f9;
  --ink-1: #ffffff;
  --ink-2: #ffffff;
  --ink-3: #e9edf3;
  --line: rgba(13, 20, 32, 0.09);
  --line-strong: rgba(13, 20, 32, 0.2);
  --paper: #0e1420;
  --muted: #4c5666;
  --faint: #7d8798;
  --accent: #0857e6;
  --accent-ink: #ffffff;
  --accent-soft: rgba(8, 87, 230, 0.12);
  --teal: #0b8d7c;
  --violet: #5d4ce0;
  --amber: #b26a00;
  --danger: #d43c3c;
  --shadow-card: 0 24px 60px -28px rgba(15, 25, 40, 0.25);
  color-scheme: light;
}

/* Surfaces with hardcoded dark styling get explicit light-mode remaps */
:root[data-theme="light"] .brand-mark { color: #10140a; background: linear-gradient(135deg, #4d8dff, #35e0c8); }
:root[data-theme="light"] .cta-band {
  background: linear-gradient(120deg, #dfeaff, #d9f0f6 60%, #eef1f6);
  border-color: rgba(8, 87, 230, 0.3);
}
:root[data-theme="light"] .demo-form input { background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] .orb--lime   { background: radial-gradient(circle closest-side, rgba(8, 102, 255, 0.20), transparent 72%); }
:root[data-theme="light"] .orb--teal   { background: radial-gradient(circle closest-side, rgba(11, 141, 124, 0.18), transparent 72%); }
:root[data-theme="light"] .orb--violet { background: radial-gradient(circle closest-side, rgba(93, 76, 224, 0.17), transparent 72%); }
:root[data-theme="light"] ::selection { background: #4d8dff; color: #10140a; }

/* Product mocks follow the active theme (light cards in light mode). */
:root[data-theme="light"] .dash { box-shadow: 0 24px 60px -30px rgba(15, 25, 40, 0.28); }
:root[data-theme="light"] .dash-map text { fill: var(--faint); }

/* Soften the theme switch — background/text only, never transforms */
body { transition: background-color 0.45s ease, color 0.45s ease; }

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;              /* fallback; JS lerp takes over on fine pointers */
  -webkit-text-size-adjust: 100%;
  /* Decorative bleeds (orbs, chips) must never create horizontal scroll —
     matters most in RTL, where left-overflow extends the scroll area */
  overflow-x: clip;
}

body {
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Accessible skip link + screen-reader-only utility (used for the AI/LLM
   entity summary so crawlers get a crisp definition of the platform) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -4rem; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
  font-weight: 600; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Focus visibility — never remove, only style */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); letter-spacing: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }

/* Eyebrow — the small labelled index above every section title */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px;
  background: var(--accent);
  transform-origin: left center;
}
.eyebrow em { font-style: normal; color: var(--accent); }

/* Oversized outline numerals used as section indices */
.giant-index {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}

/* --------------------------------------------------------------------------
   4. LAYOUT SYSTEMS
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-block); }

/* 12-column fluid grid — collapses gracefully, mobile-first */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 860px) {
  .grid-12 > * { grid-column: 1 / -1 !important; }
}

/* Section header pattern: title on the left, lead on the right */
.section-head {
  display: grid; gap: 1.5rem;
  margin-bottom: var(--space-block);
}
@media (min-width: 861px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
  .section-head .lead { justify-self: end; }
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 120;
  height: var(--header-h);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast) ease;
}
.site-header::before {
  /* Frosted layer fades in once the page is scrolled */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--ink-0) 78%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.site-header.is-scrolled::before { opacity: 1; border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav-bar {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; letter-spacing: 0.06em;
}
/* The Wajeeh mark — original artwork, CSS-cropped: the stacked wordmark in
   the source PNG sits below ~62% height, so a fixed-ratio box hides it.
   White variant on dark surfaces, brand-blue variant on light. */
.brand-logo {
  width: 46px; height: 29px;
  overflow: hidden; flex-shrink: 0;
}
.brand-logo img { width: 100%; height: auto; display: block; }
.brand-logo .logo-on-light { display: none; }
:root[data-theme="light"] .brand-logo .logo-on-dark  { display: none; }
:root[data-theme="light"] .brand-logo .logo-on-light { display: block; }

.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: grid; place-items: center;
  color: var(--accent-ink); font-size: 1rem; font-weight: 800;
}

.nav-links {
  display: none;
  align-items: center; gap: clamp(1rem, 2vw, 2.2rem);
  font-size: var(--fs-small); font-weight: 500;
}
.nav-links a {
  position: relative; padding: 0.4rem 0; color: var(--muted);
  transition: color var(--dur-fast) ease;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Language switch — pill toggle, also flips document dir via JS */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 3px; font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch button {
  padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
  color: var(--faint); transition: all var(--dur-fast) ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink-0); }
/* Touch devices: grow small controls to comfortable tap targets */
@media (pointer: coarse) {
  .lang-switch button { padding: 0.55rem 0.85rem; }
  .cta-alt-link { padding-block: 0.55rem; }
}
/* Small screens: the header CTA can't fit next to lang/theme/burger —
   the mobile menu carries its own Book-a-Demo button */
@media (max-width: 560px) {
  .nav-actions > .btn { display: none; }
}

/* Theme toggle — sun shown in dark mode (switch to light), moon in light */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              transform 0.5s var(--ease-out);
}
.theme-toggle:hover { color: var(--paper); border-color: var(--accent); transform: rotate(40deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Burger — mobile only */
.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--paper); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}
.nav-toggle span { margin-block: 4px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span   { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink-0);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-inout);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; }
.mobile-menu nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 600;
  padding-block: 0.45rem;
  color: var(--paper);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
/* Staggered entrance for menu items */
.mobile-menu nav a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu nav a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu nav a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu nav a:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu nav a:nth-child(5) { transition-delay: 0.34s; }
.mobile-menu nav a:nth-child(6) { transition-delay: 0.40s; }
.mobile-menu nav a:nth-child(7) { transition-delay: 0.46s; }
.mobile-menu .cta-row { margin-top: 2.5rem; }

@media (min-width: 1020px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* Scroll progress hairline under the header */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 130;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform-origin: inline-start;
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   6. BUTTONS & INTERACTIVE PRIMITIVES
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: var(--fs-small);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost   { border: 1px solid var(--line-strong); color: var(--paper); }
.btn--ghost:hover { border-color: var(--accent); }

/* Liquid fill sweep on primary buttons */
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--paper);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn > * , .btn { z-index: 1; }
.btn .btn-label { position: relative; z-index: 1; }
.btn--sm { padding: 0.6rem 1.2rem; }

.btn-arrow { transition: transform var(--dur-fast) var(--ease-out); position: relative; z-index: 1; }
.btn:hover .btn-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .btn-arrow { transform: translateX(-4px) scaleX(-1); }
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }

/* Underline-reveal text links */
.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: var(--fs-small); color: var(--paper);
}
.link-line::after {
  content: ""; position: absolute; bottom: -3px; inset-inline: 0; height: 1px;
  background: currentColor;
  transform: scaleX(1); transform-origin: inline-end;
  transition: transform 0.5s var(--ease-out);
}
.link-line:hover::after {
  transform: scaleX(0);
  animation: line-return 0.5s var(--ease-out) 0.25s forwards;
}
@keyframes line-return {
  from { transform: scaleX(0); transform-origin: inline-start; }
  to   { transform: scaleX(1); transform-origin: inline-start; }
}

/* --------------------------------------------------------------------------
   7. CUSTOM CURSOR (fine pointers only — JS gates activation)
   -------------------------------------------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  /* centering is baked into the JS transform — mixing the individual
     `translate` property with per-frame transforms janks in Safari */
}
.cursor-dot  { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(77, 141, 255, 0.55);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background 0.3s ease, border-color 0.3s ease;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(77, 141, 255, 0.08);
  border-color: var(--accent);
}
.cursor-ring.is-label {
  width: 84px; height: 84px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor-ring .cursor-text {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0; transition: opacity 0.2s ease;
}
.cursor-ring.is-label .cursor-text { opacity: 1; }

/* --------------------------------------------------------------------------
   8. PRELOADER + PAGE TRANSITION VEIL
   -------------------------------------------------------------------------- */
.veil {
  position: fixed; inset: 0; z-index: 500;
  background: var(--ink-0);
  display: grid; place-items: center;
  transition: clip-path 0.8s var(--ease-inout);
  clip-path: inset(0 0 0 0);
}
.veil.is-lifted { clip-path: inset(0 0 100% 0); pointer-events: none; }
.veil.is-covering { clip-path: inset(0 0 0 0); }
.veil-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem); letter-spacing: 0.14em;
  color: var(--paper);
  overflow: hidden;
}
.veil-word span { display: inline-block; animation: veil-rise 0.9s var(--ease-out) both; }
@keyframes veil-rise { from { transform: translateY(110%); } to { transform: none; } }

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  position: relative;
  isolation: isolate;
}

/* Ambient gradient orbs — GPU-cheap, drift slowly, parallaxed by JS */
/* Orbs are pre-blurred radial gradients, NOT filter: blur() — Safari
   repaints large filtered layers every animation frame, which makes any
   pointer-tied UI (cursor, magnetic buttons) stutter. Gradients composite
   for free and look identical at this softness. */
.orb {
  position: absolute; z-index: -2;
  border-radius: 50%;
  opacity: 0.55;
  animation: orb-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.orb--lime { width: 52vw; height: 52vw; background: radial-gradient(circle closest-side, rgba(77, 141, 255, 0.30), transparent 72%); top: -16%; inset-inline-end: -10%; }
.orb--teal { width: 42vw; height: 42vw; background: radial-gradient(circle closest-side, rgba(53, 224, 200, 0.24), transparent 72%); bottom: 0%; inset-inline-start: -12%; animation-delay: -6s; }
.orb--violet { width: 38vw; height: 38vw; background: radial-gradient(circle closest-side, rgba(139, 123, 255, 0.26), transparent 72%); top: 26%; inset-inline-start: 28%; animation-delay: -11s; }
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -5vh, 0) scale(1.15); }
}

/* Faint engineering grid over the whole hero */
.grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 8vw, 110px) clamp(48px, 8vw, 110px);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}

/* --------------------------------------------------------------------------
   HERO GRID TRUCKS — trucks trace glowing routes along the grid, reading the
   background as a top-down road network. Pure SVG (see hero markup); masked
   to fade at the edges so the animation loop reset is never visible.
   -------------------------------------------------------------------------- */
.grid-trucks {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  /* Soft vignette — fades the grid at the edges and hides each truck's loop */
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
/* The SVG draws the grid itself, so the trucks ride the exact visible lines */
.grid-trucks .grid-line { fill: none; stroke: var(--line); stroke-width: 1; }
.grid-trucks .route-hidden { fill: none; stroke: none; }  /* travel guide only */
/* Per-truck accent colour drives every part via --tk */
.grid-trucks .truck--a { --tk: var(--accent); }
.grid-trucks .truck--b { --tk: var(--teal); }
.grid-trucks .truck--c { --tk: var(--violet); }
.grid-trucks .truck--d { --tk: var(--accent); }
.grid-trucks .truck--e { --tk: var(--teal); }
/* JS positions these every frame; hint the compositor */
.grid-trucks .truck { will-change: transform; }
.grid-trucks .tk-glow  { fill: var(--tk); opacity: 0.16; }
.grid-trucks .tk-trail { fill: var(--tk); }
.grid-trucks .tk-body  { fill: var(--tk); opacity: 0.62; }   /* box trailer */
.grid-trucks .tk-cab   { fill: var(--tk); opacity: 0.95; }   /* cab (brighter) */
.grid-trucks .tk-glass { fill: #ffffff; opacity: 0.5; }      /* windshield */
.grid-trucks .tk-wheel { fill: var(--ink-0); opacity: 0.8; } /* dark wheels */
.grid-trucks .tk-light { fill: #ffffff; opacity: 0.9; }      /* headlights */
@media (prefers-reduced-motion: reduce) { .grid-trucks { display: none; } }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem; margin-bottom: 2rem;
}
.hero-kicker .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 141, 255, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(77, 141, 255, 0); }
}

.hero h1 { max-width: 12ch; }
.hero h1 .accent-word { color: var(--accent); }
/* Small action line under the H1 */
.hero-tagline {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
[dir="rtl"] .hero-tagline { letter-spacing: 0.02em; }

.hero-sub { margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

/* CTA escape hatch — a quiet text link under the button pair, so closing
   bands never stack three competing buttons */
.cta-alt {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.cta-alt-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: 0.4rem;
  color: var(--paper);
  font-weight: 600;
}
.cta-alt-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -3px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0.35);
  transform-origin: 0 50%;
  opacity: 0.55;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
[dir="rtl"] .cta-alt-link::after { transform-origin: 100% 50%; }
.cta-alt-link:hover::after { transform: scaleX(1); opacity: 1; }
.cta-alt-link .cta-alt-arrow { transition: transform var(--dur-base) var(--ease-out); }
.cta-alt-link:hover .cta-alt-arrow { transform: translateX(4px); }
[dir="rtl"] .cta-alt-link .cta-alt-arrow { transform: scaleX(-1); }
[dir="rtl"] .cta-alt-link:hover .cta-alt-arrow { transform: scaleX(-1) translateX(4px); }

/* Hero stat strip */
.hero-stats {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { background: var(--ink-0); padding: 1.4rem 1.2rem; }
.hero-stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat b .unit { color: var(--accent); font-size: 0.6em; margin-inline-start: 2px; }
.hero-stat span { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 1.2rem; inset-inline-end: var(--gutter);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: hint-drop 1.8s var(--ease-inout) infinite;
}
@keyframes hint-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   10. MARQUEE (logo/lane ticker)
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 3.5rem;
  padding-inline-end: 3.5rem;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  color: var(--faint); letter-spacing: 0.04em;
}
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* --------------------------------------------------------------------------
   11. CARDS & FEATURE PANELS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--ink-3); }

/* Radial glow that follows the pointer (JS sets --mx / --my) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(77, 141, 255, 0.07), transparent 60%);
  opacity: 0; transition: opacity var(--dur-fast) ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: var(--fs-copy); line-height: 1.72; }
.card .card-tag {
  position: absolute; top: 1.4rem; inset-inline-end: 1.4rem;
  font-family: var(--font-display); font-size: var(--fs-micro);
  letter-spacing: 0.16em; color: var(--faint);
}

/* Hue variants keyed to audience/product */
.card--teal .card-icon   { background: rgba(53, 224, 200, 0.12); color: var(--teal); }
.card--violet .card-icon { background: rgba(139, 123, 255, 0.12); color: var(--violet); }
.card--amber .card-icon  { background: rgba(255, 180, 84, 0.12); color: var(--amber); }

/* Feature list rows (used in split panels) */
.feature-row {
  display: flex; gap: 1.1rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row .num {
  font-family: var(--font-display); font-size: var(--fs-micro);
  color: var(--accent); letter-spacing: 0.1em; padding-top: 0.35rem;
  min-width: 2.2rem;
}
.feature-row h4 { margin-bottom: 0.3rem; }
.feature-row p { color: var(--muted); font-size: var(--fs-copy); line-height: 1.72; max-width: 56ch; }

/* --------------------------------------------------------------------------
   12. DASHBOARD MOCKS (pure HTML/CSS product UI)
   -------------------------------------------------------------------------- */
.dash {
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 0.78rem;
}
.dash-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.dash-chrome .wdot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.dash-chrome .dash-url {
  margin-inline-start: 0.6rem;
  background: var(--ink-2); border-radius: 6px;
  padding: 0.25rem 0.9rem; color: var(--faint);
  font-family: var(--font-display); letter-spacing: 0.05em; font-size: 0.68rem;
}
.dash-body { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 720px) { .dash-body { grid-template-columns: 1.15fr 0.85fr; } }
.dash-pane { background: var(--ink-1); padding: 1.1rem 1.2rem; min-width: 0; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
.dash-kpi {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 0.7rem 0.8rem;
}
.dash-kpi span { display: block; color: var(--faint); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }
.dash-kpi b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.dash-kpi .delta { font-size: 0.62rem; color: var(--accent); margin-inline-start: 0.3rem; }
.dash-kpi .delta.down { color: var(--danger); }

/* Trip rows */
.dash-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: 0; }
.dash-row .lane { font-weight: 600; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row .lane small { display: block; font-weight: 400; color: var(--faint); font-size: 0.64rem; }
.pill {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.pill--live   { background: rgba(53, 224, 200, 0.14); color: var(--teal); }
.pill--paid   { background: var(--accent-soft); color: var(--accent); }
.pill--transit{ background: rgba(255, 180, 84, 0.14); color: var(--amber); }
.pill--open   { background: rgba(139, 123, 255, 0.14); color: var(--violet); }

/* Mini route map */
.dash-map {
  position: relative; border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 30%, rgba(53, 224, 200, 0.06), transparent 50%),
    var(--ink-2);
  overflow: hidden; margin-bottom: 1rem;
}
.dash-map svg { width: 100%; height: auto; }
/* Map labels follow the site's display face (no hardcoded font attribute) */
.dash-map text { font-family: var(--font-display); }
.map-node { animation: pulse 2.4s ease-in-out infinite; }
.map-route {
  stroke-dasharray: 6 7;
  animation: route-flow 1.6s linear infinite;
}
@keyframes route-flow { to { stroke-dashoffset: -13; } }

/* Bars chart (animated in via .is-in from reveal observer) */
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 0.6rem; }
.dash-bars i {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(77, 141, 255, 0.25));
  transform: scaleY(0.06); transform-origin: bottom;
  transition: transform 1.1s var(--ease-out);
}
.dash-bars i:nth-child(even) { background: linear-gradient(180deg, var(--teal), rgba(53, 224, 200, 0.2)); }
.is-in .dash-bars i { transform: scaleY(var(--h, 0.5)); }
.dash-bars i:nth-child(1) { transition-delay: 0.05s; } .dash-bars i:nth-child(2) { transition-delay: 0.1s; }
.dash-bars i:nth-child(3) { transition-delay: 0.15s; } .dash-bars i:nth-child(4) { transition-delay: 0.2s; }
.dash-bars i:nth-child(5) { transition-delay: 0.25s; } .dash-bars i:nth-child(6) { transition-delay: 0.3s; }
.dash-bars i:nth-child(7) { transition-delay: 0.35s; } .dash-bars i:nth-child(8) { transition-delay: 0.4s; }
.dash-bars i:nth-child(9) { transition-delay: 0.45s; } .dash-bars i:nth-child(10){ transition-delay: 0.5s; }

.dash-title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.8rem;
}
.dash-title .live-tag { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--teal); font-size: 0.6rem; }
.dash-title .live-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s infinite;
}

/* Floating chips around dashboards */
.float-chip {
  position: absolute; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: color-mix(in srgb, var(--ink-2) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 0.7rem 1rem;
  font-size: 0.72rem; font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: chip-float 5s ease-in-out infinite alternate;
}
.float-chip small { display: block; font-weight: 400; color: var(--faint); font-size: 0.62rem; }
.float-chip .chip-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); flex-shrink: 0;
}
@keyframes chip-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (max-width: 719px) { .float-chip { display: none; } }

/* Live pricing widget (shipper section) */
.price-widget {
  background: var(--ink-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-m); padding: 1.2rem 1.3rem;
}
.price-widget .lane-row {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.price-widget .lane-row svg { color: var(--accent); flex-shrink: 0; }
.price-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em;
  margin-block: 0.5rem 0.2rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.price-value.tick-up { color: var(--accent); }
.price-value.tick-down { color: var(--teal); }
.price-meta { font-size: var(--fs-micro); color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   13. SPLIT SECTIONS, STICKY MEDIA, PANEL LAYOUTS
   -------------------------------------------------------------------------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 981px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--rev > .split-media { order: 2; }
  .split-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.split-media { position: relative; }

/* Industry tiles */
.industry-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 861px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
.industry-tile {
  background: var(--ink-1); padding: clamp(1.4rem, 3vw, 2.2rem);
  min-height: 11rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  transition: background var(--dur-fast) ease;
  position: relative; overflow: hidden;
}
.industry-tile:hover { background: var(--ink-2); }
.industry-tile .tile-index {
  font-family: var(--font-display); font-size: var(--fs-micro);
  color: var(--faint); letter-spacing: 0.16em;
}
.industry-tile h3 { font-size: var(--fs-h4); }
.industry-tile p { font-size: var(--fs-copy); color: var(--muted); line-height: 1.7; }
.industry-tile::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform 0.5s var(--ease-out);
}
.industry-tile:hover::after { transform: scaleX(1); }

/* ESG stat band */
.esg-band {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(53, 224, 200, 0.09), transparent),
    var(--ink-1);
  padding: clamp(2rem, 5vw, 4rem);
}
.esg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.esg-stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1;
  color: var(--teal); letter-spacing: -0.02em;
}
.esg-stat b .unit { font-size: 0.55em; }
.esg-stat span { font-size: var(--fs-copy); color: var(--muted); display: block; margin-top: 0.5rem; max-width: 26ch; line-height: 1.6; }

/* Process / workflow steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 861px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--ink-0); padding: 2rem 1.6rem; position: relative; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  display: block; margin-bottom: 1.2rem;
  transition: color 0.4s ease;
}
.step:hover::before { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-copy); color: var(--muted); line-height: 1.7; }

/* Milestone timeline — vertical spine with nodes (company roadmap) */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: ""; position: absolute; inset-block: 0.55rem 0.7rem;
  inset-inline-start: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--teal) 55%, var(--line-strong));
}
.tl-item {
  position: relative;
  padding-inline-start: 2.6rem;
  padding-bottom: 2.6rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {                              /* node dot on the spine */
  content: ""; position: absolute; inset-inline-start: 0; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-0); border: 2px solid var(--line-strong);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tl-item:hover::before { border-color: var(--teal); }
.tl-item.is-now::before {                       /* latest / current milestone */
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.tl-date {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: var(--fs-micro);
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.tl-item.is-now .tl-date { color: var(--accent); }
.tl-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.12rem 0.5rem; border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.tl-item h3 { font-size: var(--fs-h4); margin: 0.5rem 0 0.4rem; }
.tl-item p { font-size: var(--fs-copy); color: var(--muted); line-height: 1.7; max-width: 52ch; }
@media (min-width: 861px) {
  .timeline { max-width: 760px; }
}

/* --------------------------------------------------------------------------
   14. CTA BAND, FORM, FOOTER
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, #0a1a33, #072031 60%, #0c0f15);
  border: 1px solid rgba(77, 141, 255, 0.25);
  padding: clamp(2.5rem, 6vw, 5.5rem);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin: 1.2rem auto 0; }
.cta-band .hero-cta { justify-content: center; }

.demo-form {
  margin: 2.4rem auto 0; max-width: 720px;
  display: grid; gap: 0.8rem;
}
@media (min-width: 720px) { .demo-form { grid-template-columns: 1fr 1fr auto; } }
.demo-form input {
  background: rgba(7, 9, 13, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.4rem;
  color: var(--paper);
  font-size: max(1rem, var(--fs-small)); /* ≥16px or iOS Safari zooms the page on focus */
  transition: border-color var(--dur-fast) ease;
}
.demo-form input::placeholder { color: var(--faint); }
.demo-form input:focus { outline: none; border-color: var(--accent); }
.form-note { margin-top: 0.9rem; font-size: var(--fs-micro); color: var(--faint); }
.form-success {
  display: none; margin-top: 1.2rem;
  color: var(--accent); font-weight: 600; font-size: var(--fs-small);
}
.demo-form.is-done ~ .form-success, .form-success.is-visible { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-block) 0 2rem;
  margin-top: var(--space-section);
  position: relative; overflow: hidden;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 861px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h4 {
  font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1.2rem; font-family: var(--font-display);
}
.footer-col a {
  display: flex; align-items: center; gap: 0.55rem;
  padding-block: 0.35rem;
  color: var(--muted); font-size: var(--fs-small);
  transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.footer-col a svg { flex-shrink: 0; width: 15px; height: 15px; opacity: 0.75; }
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
[dir="rtl"] .footer-col a:hover { transform: translateX(-4px); }
/* Footer brand: smaller mark, roomier brief */
.site-footer .brand-logo { width: 34px; height: 21px; }
.site-footer .brand { font-size: 1.1rem; }

/* Header login link (desktop) */
.nav-login {
  display: none;
  font-size: var(--fs-small); font-weight: 600;
  color: var(--muted);
  transition: color var(--dur-fast) ease;
}
.nav-login:hover { color: var(--paper); }
@media (min-width: 1020px) { .nav-login { display: inline-block; } }

/* HubSpot form shell — the embed is an iframe; the shell carries the design */
.hs-form-shell {
  max-width: 760px;
  margin: 2.2rem auto 0;
  background: var(--ink-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: clamp(1.2rem, 3vw, 2rem);
  text-align: start;
}
.hs-form-shell iframe { width: 100% !important; }

/* Custom contact form (submits to HubSpot Forms API from app.js) */
.contact-form {
  max-width: 760px; margin: 2.4rem auto 0;
  text-align: start;
  display: grid; gap: 1.1rem;
}
.cf-row { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .cf-row { grid-template-columns: 1fr 1fr; } }
.cf-field { display: grid; gap: 0.45rem; }
.cf-field label, .cf-field .cf-label {
  font-family: var(--font-display);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(7, 9, 13, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 0.9rem 1.1rem;
  color: var(--paper);
  font-size: max(1rem, var(--fs-small)); /* ≥16px or iOS Safari zooms the page on focus */
  transition: border-color var(--dur-fast) ease;
}
:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form textarea { background: rgba(255, 255, 255, 0.8); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 110px; }
/* Segmented Shipper/Carrier control */
.cf-seg { display: flex; gap: 0.5rem; }
.cf-seg label { flex: 1; cursor: pointer; }
.cf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cf-seg span {
  display: grid; place-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600;
  color: var(--muted);
  transition: all var(--dur-fast) ease;
}
.cf-seg input:checked + span {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink);
}
.cf-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.cf-status { display: none; font-weight: 600; font-size: var(--fs-small); }
.cf-status.is-ok { display: block; color: var(--accent); }
.cf-status.is-err { display: block; color: var(--danger); }
/* Required-field marker */
.req { color: var(--danger); margin-inline-start: 2px; }
/* Honeypot — invisible to humans, irresistible to bots */
.cf-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Scrollytelling video panels (how-it-works on shippers/carriers) */
.video-panel { position: relative; }
.video-panel::after {
  content: attr(data-label);
  position: absolute; inset: 42px 0 0 0; z-index: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--fs-micro);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
  pointer-events: none;
}
.scrolly-video {
  position: relative; z-index: 1;
  display: block; width: 100%;
  aspect-ratio: 16 / 10; object-fit: cover;
  background: transparent;
}

/* Legal pages (privacy / terms) */
.legal { max-width: 50rem; }
.legal h2 { font-size: var(--fs-h3); margin: 2.6rem 0 0.9rem; }
.legal p, .legal li { color: var(--muted); font-size: var(--fs-body); line-height: 1.75; }
.legal ul { padding-inline-start: 1.3rem; margin-block: 0.7rem; }
.legal li { margin-block: 0.35rem; }
.legal .legal-updated {
  font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 2rem;
}

.footer-meta {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: var(--fs-micro); color: var(--faint);
}
/* Gigantic watermark wordmark at the very bottom */
.footer-wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4rem, 16vw, 15rem); line-height: 0.9; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  user-select: none; pointer-events: none;
  text-align: center; margin-top: 2rem; margin-bottom: -0.18em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. SOLUTIONS / TMS PAGE SPECIFICS
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(4rem, 10vh, 8rem));
  padding-bottom: var(--space-block);
  position: relative; isolation: isolate;
}
.page-hero h1 { max-width: 16ch; }

.tms-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tms-tab {
  padding: 0.5rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  transition: all var(--dur-fast) ease;
}
.tms-tab[aria-selected="true"] { background: var(--paper); color: var(--ink-0); border-color: var(--paper); }
.tms-panel { display: none; }
.tms-panel.is-active { display: block; animation: panel-in 0.5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Invoice mock */
.invoice-mock {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 1rem 1.1rem; font-size: 0.74rem;
}
.invoice-mock .inv-head { display: flex; justify-content: space-between; margin-bottom: 0.8rem; }
.invoice-mock .inv-line { display: flex; justify-content: space-between; padding-block: 0.45rem; border-bottom: 1px dashed var(--line); color: var(--muted); }
.invoice-mock .inv-total { display: flex; justify-content: space-between; padding-top: 0.7rem; font-weight: 700; font-family: var(--font-display); }

/* Pricing tiers */
.tiers { display: grid; gap: 1.2rem; }
@media (min-width: 861px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; }
.tier .tier-price {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  letter-spacing: -0.02em; margin-block: 1rem 0.2rem;
}
.tier .tier-price small { font-size: 0.9rem; color: var(--faint); font-weight: 400; }
.tier ul { list-style: none; margin-block: 1.4rem; flex: 1; }
.tier ul li {
  padding: 0.6rem 0 0.6rem 1.6rem; position: relative;
  font-size: var(--fs-copy); color: var(--muted); line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
[dir="rtl"] .tier ul li { padding: 0.55rem 1.6rem 0.55rem 0; }
.tier ul li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700;
}
.tier--featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(77, 141, 255, 0.06), var(--ink-2)); }
.tier--featured:hover { border-color: var(--accent); }
.tier .tier-badge {
  align-self: flex-start;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: start;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600;
  transition: color var(--dur-fast) ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-x {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; position: relative;
  transition: transform 0.4s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
}
.faq-q .faq-x::before, .faq-q .faq-x::after {
  content: ""; position: absolute; background: currentColor;
}
.faq-q .faq-x::before { width: 12px; height: 1.5px; }
.faq-q .faq-x::after  { width: 1.5px; height: 12px; transition: transform 0.4s var(--ease-out); }
.faq-item.is-open .faq-x { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-item.is-open .faq-x::after { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease-inout);
}
.faq-a p { padding: 0 0 1.6rem; color: var(--muted); max-width: 68ch; }

/* Integration logos strip */
.integration-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
}
@media (min-width: 720px) { .integration-grid { grid-template-columns: repeat(4, 1fr); } }
.integration-cell {
  background: var(--ink-1); padding: 1.6rem;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600;
  color: var(--faint); letter-spacing: 0.06em;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.integration-cell:hover { color: var(--paper); background: var(--ink-2); }
.integration-cell small { display: block; font-weight: 400; font-size: var(--fs-micro); margin-top: 0.2rem; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   15b. CUSTOMER LOGO STRIP (placeholder wordmarks — swap for real logos)
   -------------------------------------------------------------------------- */
.logo-strip { padding-block: 2.4rem; }
.logo-strip-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.4rem;
}
/* Client logos sit on a light plate: the supplied artwork is mixed-polarity
   (some marks are dark navy, one is pure white), so a neutral light surface is
   the only backdrop on which every brand's true colours stay legible — in both
   the dark and light themes. */
/* Tighter rhythm than the lane marquee — gap and trailing padding must match
   so the duplicated track still loops seamlessly. */
.logo-strip .marquee-track { gap: 1rem; padding-inline-end: 1rem; }
.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 138px; height: 68px;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.logo-item img {
  max-height: 42px; max-width: 122px; width: auto; height: auto;
  object-fit: contain;
  /* Scrolling: grey. Only the logo under the cursor returns to full colour. */
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.logo-item:hover img { filter: none; opacity: 1; }
.logo-item:hover { box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55); transform: translateY(-2px); }
/* Two supplied marks are white-on-transparent (built for dark backgrounds);
   inverting keeps them legible on the light plate. */
.logo-item--invert img { filter: grayscale(1) invert(1); }
.logo-item--invert:hover img { filter: invert(1); }

/* --------------------------------------------------------------------------
   15b2. NEW SAUDI RIYAL SYMBOL — inherits text color via mask.
   The glyph is an approximation; swap the mask URL for SAMA's official SVG.
   -------------------------------------------------------------------------- */
.sar {
  display: inline-block;
  width: 0.72em; height: 0.8em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 66'><g fill='none' stroke='black' stroke-width='7' stroke-linecap='round'><path d='M16 62 26 6'/><path d='M32 62 42 6'/><path d='M4 45 58 33'/><path d='M8 29 62 17'/><path d='M3 59 16 56'/></g></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 66'><g fill='none' stroke='black' stroke-width='7' stroke-linecap='round'><path d='M16 62 26 6'/><path d='M32 62 42 6'/><path d='M4 45 58 33'/><path d='M8 29 62 17'/><path d='M3 59 16 56'/></g></svg>") no-repeat center / contain;
}

/* "Coming soon" tag for features not yet live */
.soon-tag {
  display: inline-block;
  margin-inline-start: 0.5rem; vertical-align: middle;
  font-family: var(--font-display);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 180, 84, 0.15);
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.35);
}

/* --------------------------------------------------------------------------
   15c. WHY WAJEEH — before/after comparison panels
   -------------------------------------------------------------------------- */
.compare { display: grid; gap: 1.2rem; position: relative; }
@media (min-width: 861px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.compare-panel.is-old { background: var(--ink-1); }
.compare-panel.is-new {
  background: linear-gradient(180deg, rgba(77, 141, 255, 0.09), transparent 70%);
  border-color: rgba(77, 141, 255, 0.35);
}
.compare-panel h3 { margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.6rem; }
.compare-panel ul { list-style: none; display: grid; gap: 1rem; }
.compare-panel li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  font-size: var(--fs-small); color: var(--muted); line-height: 1.6;
}
.compare-panel .ic {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 700; margin-top: 0.1em;
}
.is-old .ic { background: rgba(255, 107, 107, 0.12); color: var(--danger); }
.is-new .ic { background: var(--accent-soft); color: var(--accent); }
.is-new li { color: var(--paper); }

/* Creative pass: the old world is crossed out and desaturated; a VS
   medallion pivots between the panels; a results strip closes the argument */
.compare-panel { transition: transform 0.5s var(--ease-out), border-color var(--dur-fast) ease; }
.compare-panel.is-old { filter: saturate(0.7); }
.compare-panel.is-old li {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 107, 0.55);
  text-decoration-thickness: 1px;
}
.compare-panel.is-old:hover { transform: rotate(-0.6deg); }
.compare-panel.is-new:hover { transform: translateY(-6px); }
.vs-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink-0);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.08em; color: var(--accent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ink-0) 55%, transparent);
}
@media (max-width: 860px) { .vs-badge { display: none; } }
.compare-result {
  margin-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.compare-result span {
  font-family: var(--font-display);
  font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
}
.compare-result b { color: var(--accent); }

/* --------------------------------------------------------------------------
   15d. FLEET / TRUCK-TYPE TILES (line-art trucks, drive forward on hover)
   -------------------------------------------------------------------------- */
.truck-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
@media (min-width: 720px) { .truck-grid { grid-template-columns: repeat(4, 1fr); } }
.truck-tile {
  background: var(--ink-1);
  padding: 1.6rem 1.4rem 1.4rem;
  transition: background var(--dur-fast) ease;
  overflow: hidden;
}
.truck-tile:hover { background: var(--ink-2); }
.truck-tile svg {
  width: 100%; max-width: 150px; height: auto;
  color: var(--muted);
  transition: transform 0.6s var(--ease-out), color var(--dur-fast) ease;
}
.truck-tile:hover svg { transform: translateX(10px); color: var(--accent); }
[dir="rtl"] .truck-tile svg { transform: scaleX(-1); }
[dir="rtl"] .truck-tile:hover svg { transform: scaleX(-1) translateX(10px); }
.truck-tile h3 { font-size: var(--fs-h4); margin-top: 1.1rem; }
.truck-tile p {
  font-size: var(--fs-micro); color: var(--faint);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   15e. CUSTOMER REVIEWS
   -------------------------------------------------------------------------- */
.review-grid { display: grid; gap: 1.2rem; }
@media (min-width: 861px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { display: flex; flex-direction: column; }
.review-stars {
  color: var(--amber);
  letter-spacing: 3px; font-size: 0.9rem;
  margin-bottom: 1rem;
}
.review-card blockquote {
  flex: 1;
  font-size: var(--fs-copy); line-height: 1.75; color: var(--paper);
  border: 0; margin: 0;
}
.review-card blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem; line-height: 0.6;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.review-who { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; }
.review-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--line-strong);
}
.review-who b { display: block; font-size: var(--fs-small); }
.review-who span { font-size: var(--fs-micro); color: var(--faint); }

/* --------------------------------------------------------------------------
   15f. SCROLLYTELLING PRODUCT TOUR — text steps drive a sticky media panel
   -------------------------------------------------------------------------- */
.scrolly { display: grid; gap: clamp(1.5rem, 3vw, 4rem); align-items: start; }
@media (min-width: 981px) {
  .scrolly { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.scrolly-media {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  display: grid;
}
.scrolly-panel {
  grid-area: 1 / 1;                 /* panels stack; active one fades in */
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.scrolly-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrolly-steps {
  display: flex; flex-direction: column;
  gap: clamp(4rem, 20vh, 10rem);
  padding-block: clamp(2rem, 10vh, 6rem);
}
.scrolly-step {
  opacity: 0.3;
  border-inline-start: 2px solid var(--line);
  padding-inline-start: clamp(1rem, 2vw, 1.6rem);
  transition: opacity 0.45s ease, border-color 0.45s ease;
}
.scrolly-step.is-active { opacity: 1; border-color: var(--accent); }
.scrolly-step .step-tag {
  font-family: var(--font-display);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.scrolly-step h3 { margin-bottom: 0.7rem; }
.scrolly-step > p { color: var(--muted); font-size: var(--fs-copy); line-height: 1.75; max-width: 50ch; }
.scrolly-step ul { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.scrolly-step li {
  font-size: var(--fs-copy); color: var(--muted); line-height: 1.6;
  padding-inline-start: 1.4rem; position: relative;
}
.scrolly-step li::before {
  content: "✓"; position: absolute; inset-inline-start: 0;
  color: var(--accent); font-weight: 700;
}
@media (max-width: 980px) {
  .scrolly-media { order: -1; top: calc(var(--header-h) + 0.5rem); z-index: 5; }
  /* keep the sticky mock compact on small screens */
  .scrolly-panel .dash-pane:nth-child(2) { display: none; }
  .scrolly-steps { padding-block: 1.5rem; gap: clamp(3rem, 12vh, 5rem); }
}

/* --------------------------------------------------------------------------
   16. SCROLL-REVEAL & TEXT-SPLIT ANIMATION STATES (driven by app.js)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Word-split headline: each word masked and slid up with stagger */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .wi {
  display: inline-block;
  transform: translateY(115%) rotate(2.5deg);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 0.055s);
  will-change: transform;
}
[data-split].is-in .wi { transform: none; }

/* Parallax elements get transform from JS; hint the compositor */
[data-parallax] { will-change: transform; }

/* --------------------------------------------------------------------------
   17. RTL & ARABIC TYPOGRAPHY
   -------------------------------------------------------------------------- */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: var(--font-arabic);
  letter-spacing: 0;                 /* Arabic script must never be letter-spaced */
}
[dir="rtl"] .eyebrow, [dir="rtl"] .hero-kicker, [dir="rtl"] .dash-title { letter-spacing: 0.02em; }
[dir="rtl"] .eyebrow::before { transform-origin: right center; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.25; }   /* Arabic needs taller leading */
[dir="rtl"] .giant-index, [dir="rtl"] .footer-wordmark, [dir="rtl"] .veil-word { letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   18. MOTION SAFETY & PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], [data-split] .wi { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .veil, .cursor-dot, .cursor-ring, .scroll-progress,
  .mobile-menu, .scroll-hint, .orb { display: none !important; }
  body { background: #fff; color: #000; }
}
