/* ==========================================================================
   ARWA for Business Services: customs clearance
   One bilingual page (Arabic RTL by default, English LTR).
   Light theme: white and light-blue surfaces, navy text, yellow as a small accent.
   Logical properties everywhere so the same rules serve both directions.
   ========================================================================== */

:root {
  --navy-900: #0f1f45;
  --navy-800: #1d1b5e;
  --blue-700: #1b5c9e;
  --blue-600: #2474c0;
  --blue-500: #33a9e0;
  --blue-300: #8fd3f4;
  --sky-200: #cfe9f8;
  --sky-100: #e6f4fc;
  --sky-50: #f3f9fe;
  --yellow: #fdc010;
  --green: #3ddc97;

  --ink: #12224a;
  --ink-soft: #4a5a78;
  --ink-mute: #7d8aa3;
  --line: #dcebf6;
  --paper: var(--sky-50);
  --white: #ffffff;

  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* type scale: every section uses these, so sizes match from section to section */
  --fs-h1: clamp(2rem, 3.4vw, 3rem);
  --fs-h2: clamp(1.8rem, 3vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-sub: clamp(1.1rem, 1.4vw, 1.25rem);
  --fs-lead: clamp(1.02rem, 1.1vw, 1.12rem);

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 84px;
  --radius: 24px;
  --radius-lg: 36px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 40px 80px -40px rgba(36, 116, 192, .35);
  --sign: -1; /* flips direction-dependent transforms */
}
[dir="ltr"] { --sign: 1; }
/* Tajawal is the Arabic face. English is set in EB Garamond, a classic Oxford-style serif;
   Tajawal stays in the stack for the odd Arabic character (the language switch) */
[lang="en"] { --font: "EB Garamond", "Tajawal", Georgia, "Times New Roman", serif; }
/* Garamond's small lowercase reads smaller than the sans it replaced: running text is scaled
   to a comfortable x-height, headings keep their set sizes */
[lang="en"] body { font-size-adjust: .47; }
[lang="en"] :is(h1, h2, h3, .cta__form-title) { font-size-adjust: none; font-weight: 600; }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[lang="en"] body { line-height: 1.7; }
main, footer { overflow-x: clip; } /* clip (not hidden) keeps Lenis and pinning intact */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.35; text-wrap: balance; color: var(--navy-900); }
[lang="en"] h1, [lang="en"] h2 { letter-spacing: -0.005em; line-height: 1.12; }
em { font-style: normal; }
::selection { background: var(--blue-500); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0.02em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* one rhythm for every section: neighbours share this padding, so the gap between two sections stays even */
.section { position: relative; padding-block: clamp(64px, 7vw, 104px); }

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 10001;
  background: var(--blue-600); color: var(--white); padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .95rem; font-weight: 700; color: var(--blue-600);
  margin-block-end: 14px;
}
.section-title { font-size: var(--fs-h2); margin-block-end: 22px; }
.section-head--center .section-title { margin-block-end: 0; }
.eyebrow--light { color: var(--blue-600); }

.pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue-600); --fg: var(--white); --hover: var(--blue-700); --hover-fg: var(--white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  background: var(--bg); color: var(--fg);
  transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--hover-fg); }
.btn:hover::before { transform: translateY(0); }
.btn__arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(4px); }
.btn--primary { box-shadow: 0 18px 36px -18px rgba(36, 116, 192, .7); }
.btn--ghost { --bg: rgba(255,255,255,.6); --fg: var(--blue-700); --hover: var(--blue-600); border: 1px solid rgba(36,116,192,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--light { --bg: var(--white); --fg: var(--blue-600); --hover: var(--sky-100); --hover-fg: var(--blue-700); }
.btn--sm { padding: 12px 22px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 120%, var(--sky-100) 0%, var(--white) 60%);
  color: var(--ink);
}
.preloader__inner { width: min(360px, 80vw); display: grid; gap: 22px; justify-items: center; }
.preloader__mark { width: 84px; }
/* the particle logo story: wider than the counter row below it */
.preloader__logo { display: none; width: min(560px, 90vw); height: clamp(150px, 24vw, 210px); margin-inline: calc((min(360px, 80vw) - min(560px, 90vw)) / 2); }
.preloader--3d .preloader__logo { display: block; }
.preloader--3d .preloader__mark { display: none; }
.preloader__meta { width: 100%; display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-mute); direction: ltr; }
.preloader__count { color: var(--blue-600); }
.preloader__bar { width: 100%; height: 2px; background: var(--sky-100); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-600)); transform: scaleX(0); transform-origin: left; }

/* ---------- Language curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 9500; visibility: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--white), var(--sky-100) 50%, var(--blue-300));
  clip-path: inset(100% 0 0 0);
}
.curtain img { width: 72px; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 9999; pointer-events: none; display: none; opacity: 0; transition: opacity .4s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--blue-600); }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(36,116,192,.55); transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s, border-color .4s; }
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(51,169,224,.15); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-300), var(--blue-600)); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .scroll-progress span { transform-origin: right; background: linear-gradient(-90deg, var(--blue-300), var(--blue-600)); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  color: var(--ink);
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s, box-shadow .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(36,116,192,.35);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  height: 100%; max-width: calc(var(--container) + 120px); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
/* ---------- Header logo (inline SVG) with looping effects ----------
   the bird glides, its wing beats softly, the yellow tip glows, and a light
   sweeps across the wordmark every few seconds */
.header__brand { display: block; line-height: 0; }
.logo-svg { height: 44px; width: auto; overflow: visible; }
.logo-svg__bird { animation: logo-glide 4.8s ease-in-out infinite; }
.logo-svg__bird, .logo-svg__wing, .logo-svg__tip { transform-box: fill-box; }
.logo-svg__wing { transform-origin: 70% 90%; animation: logo-flap 2.4s ease-in-out infinite; }
.logo-svg__tip { animation: logo-glow 2.4s ease-in-out infinite; }
.logo-svg__r { animation: logo-r 6s ease-in-out infinite; }
.logo-svg__shine { animation: logo-shine 5.5s cubic-bezier(.45, 0, .2, 1) infinite; }
.header__brand:hover .logo-svg__wing { animation-duration: .9s; }
@keyframes logo-glide { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes logo-flap { 0%, 100% { rotate: 0deg; } 50% { rotate: -7deg; } }
@keyframes logo-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25) drop-shadow(0 0 10px rgba(253, 192, 16, .9)); } }
@keyframes logo-r { 0%, 100% { fill: #33a9e0; } 50% { fill: #2474c0; } }
@keyframes logo-shine { 0% { translate: 0 0; } 45%, 100% { translate: 1350px 0; } }
/* seven links: the padding tightens on narrower desktops so every label stays on one line */
.header__nav { --nav-pad: clamp(8px, .95vw, 14px); display: flex; gap: 4px; margin-inline: auto; }
.header__nav a {
  position: relative; padding: 8px var(--nav-pad); font-size: .95rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  transition: color .3s;
}
.header__nav a::after {
  content: ""; position: absolute; inset-inline: var(--nav-pad); bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue-500);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.header__nav a:hover, .header__nav a.is-active { color: var(--blue-600); }
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 92px; height: 42px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--sky-200); background: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600;
}
.lang__opt { position: relative; z-index: 1; display: grid; place-items: center; transition: color .5s var(--ease); color: var(--ink-soft); }
.lang__pill {
  position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--blue-600);
  transition: transform .7s var(--ease);
}
[lang="ar"] .lang__opt[data-l="ar"], [lang="en"] .lang__opt[data-l="en"] { color: var(--white); }
[lang="en"] .lang__pill { transform: translateX(100%); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--sky-200); background: rgba(255,255,255,.7); position: relative; color: var(--blue-700); }
.burger span { position: absolute; inset-inline: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 999; display: none; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: linear-gradient(180deg, var(--white), var(--sky-100)); color: var(--navy-900);
  clip-path: circle(0% at var(--mx, 90%) 40px);
}
.menu__nav { display: grid; gap: 6px; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; line-height: 1.4; }
.menu__nav .mono { font-size: .8rem; color: var(--blue-500); font-weight: 400; }
.menu__foot { display: grid; gap: 8px; color: var(--ink-mute); }

/* ---------- Hero ----------
   The photo is the hero: it is shown whole and uncropped in a frame with the image's
   own 16:9 ratio, boxed to the content width with rounded corners. */
.hero {
  position: relative; isolation: isolate;
  padding-block: var(--header-h) 0; /* the video ends cleanly at the next section */
  background: var(--white);
  color: var(--ink);
}
.hero__frame {
  position: relative; overflow: hidden;
  /* full width, edge to edge, in the photo's own ratio so nothing is cropped */
  width: 100%; aspect-ratio: 16 / 9;
  background: var(--sky-100);
}
.hero__photo { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
/* .hero__ship carries the entrance zoom */
.hero__ship { position: absolute; inset: 0; will-change: transform; }
/* the frame matches the video's 16:9, so cover never crops it */
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* a deep frosted veil over the side of the video that carries the text, in the
   theme's navy → indigo → blue, the video blurred softly behind it */
.hero__shade { position: absolute; inset: 0; pointer-events: none; }
.hero__shade::before {
  --mist: linear-gradient(to left, rgba(0,0,0,.92) 0%, rgba(0,0,0,.86) 26%, rgba(0,0,0,.62) 42%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.07) 64%, transparent 72%);
  /* reaches past the frame (clipped there) so the blur has no bright seam at the edge */
  content: ""; position: absolute; inset: -40px;
  background: linear-gradient(160deg, rgba(15,31,69,.94), rgba(29,27,94,.88) 48%, rgba(27,92,158,.82));
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  -webkit-mask-image: var(--mist); mask-image: var(--mist);
  opacity: var(--veil, 1); /* darkness set in the control panel */
}
/* English: the text is on the left, so the veil comes in from the left edge */
[dir="ltr"] .hero__shade::before {
  --mist: linear-gradient(to right, rgba(0,0,0,.92) 0%, rgba(0,0,0,.86) 26%, rgba(0,0,0,.62) 42%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.07) 64%, transparent 72%);
}

/* the text block sits over the faded side of the photo (right in Arabic, left in
   English), its lines centred under the logo */
.hero { --hero-edge: max(var(--gutter), calc((100% - var(--container) - 120px) / 2 + var(--gutter))); }
.hero__bar {
  position: absolute; z-index: 2; top: var(--header-h); inset-inline-start: var(--hero-edge);
  height: calc(100vw * 9 / 16); width: min(560px, 40%);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
/* the 3D logo animation (story3d.js) at the top of the text column */
/* wider and taller than the column so the turning mark is never cut off at the canvas edge */
.hero__logo3d { display: block; width: calc(100% + 120px); height: clamp(140px, 14vw, 210px); margin: -20px -60px clamp(0px, .6vw, 8px); pointer-events: none; }
.hero__title {
  font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy-900);
  margin-block-end: 0;
}
[dir="rtl"] .hero__title { letter-spacing: 0; } /* tracking breaks the joins between Arabic letters */
.hero__tagline { font-size: var(--fs-sub); font-weight: 500; color: var(--blue-600); line-height: 1.7; max-width: 640px; }
/* a short brand-gradient rule, mirrored from a yellow point in the middle (as in About) */
.hero__rule {
  position: relative; display: block; width: 180px; height: 2px; margin-block: 22px;
  background: linear-gradient(90deg, transparent, var(--blue-600) 30%, var(--yellow) 50%, var(--blue-600) 70%, transparent);
}
.hero__rule i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; rotate: 45deg; border-radius: 2px; background: var(--yellow); }
/* over the dark veil (desktop) the text turns light */
@media (min-width: 1101px) {
  /* the logo and text sit a little above the middle of the video */
  .hero__bar { padding-bottom: clamp(48px, 7vw, 130px); }
  .hero__title { color: var(--white); }
  .hero__tagline { color: var(--sky-200); }
  .hero__rule { background: linear-gradient(90deg, transparent, var(--blue-300) 30%, var(--yellow) 50%, var(--blue-300) 70%, transparent); }
}
/* below the width where the text fits over the photo, it sits under it on the light page,
   with the logo animation at its top */
@media (max-width: 1100px) {
  .hero__bar { position: relative; top: auto; inset-inline-start: auto; height: auto; width: auto; margin: 28px var(--gutter) 0; }
  .hero__shade::before { display: none; }
  .hero { padding-bottom: clamp(32px, 6vw, 48px); } /* room under the text below the video */
  /* the logo animation stays with the text, above the title, not over the photo */
  .hero__logo3d { width: min(100%, 460px); height: clamp(110px, 30vw, 180px); margin: -8px auto 4px; }
}
.hero__title em {
  color: var(--blue-600);
  background: linear-gradient(transparent 68%, rgba(253, 192, 16, .45) 68% 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- ScrollReveal (port of the React Bits component) ---------- */
.scroll-reveal-text { display: block; }
.scroll-reveal-word, .scroll-reveal-piece { display: inline-block; }

/* ---------- About ---------- */
/* full width: the paragraph reads as one centred statement over soft brand light */
.about { overflow: hidden; isolation: isolate; background: var(--white); padding-block: clamp(80px, 9vw, 140px); }
.about::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 60% at 4% 38%, var(--sky-100), transparent 72%),
    radial-gradient(38% 60% at 96% 66%, rgba(143, 211, 244, .32), transparent 72%),
    radial-gradient(30% 35% at 50% 22%, rgba(253, 192, 16, .08), transparent 70%);
  /* fade out at the top and bottom so the glow never meets the next section with an edge */
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.about::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: radial-gradient(rgba(36, 116, 192, .2) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 50%, #000, transparent);
}
.about__inner { text-align: center; }
.about__inner .section-title { margin-block-end: 18px; }
/* the hero rule, mirrored from the middle: blue → yellow diamond → blue */
.about__rule {
  position: relative; display: block; width: min(220px, 50%); height: 2px; margin: 0 auto clamp(28px, 3.6vw, 48px); border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-600) 30%, var(--yellow) 50%, var(--blue-600) 70%, transparent);
}
.about__rule i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; rotate: 45deg; border-radius: 2px; background: var(--yellow); }
/* two paragraphs in sequence: who we are, then what we do;
   justified so each reads as a tidy block, the last line centred */
.about__body {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 2.05; color: var(--navy-900);
  text-align: justify; text-align-last: center;
}
.about__body + .about__body { margin-block-start: clamp(20px, 2.4vw, 32px); }
.about__body strong { color: var(--blue-600); font-weight: inherit; white-space: nowrap; }
[lang="en"] .about__body { line-height: 1.6; hyphens: auto; } /* hyphenation keeps justified English from opening wide gaps */

/* ---------- Body copy: justified across the site ----------
   in centred blocks the last line stays centred; hyphenation keeps English free of wide gaps */
.hero__tagline, .section-head__lead, .srow p, .vcard p, .band__lead, .cta__lead { text-align: justify; hyphens: auto; }
.hero__tagline, .section-head--center .section-head__lead, .cta__lead { text-align-last: center; }
/* smart-justify.js: where justifying would tear a paragraph apart, it keeps its normal alignment */
:is(.hero__tagline, .section-head__lead, .srow p, .vcard p, .band__lead, .cta__lead, .about__body).no-justify { text-align: start; hyphens: manual; }
:is(.hero__tagline, .section-head--center .section-head__lead, .cta__lead, .about__body).no-justify { text-align: center; }

/* ---------- Growth story ----------
   Full width: the 3D ship (ship3d.js) fills the section, and the chapters sit on
   the inline-start side over a soft white fade, the same build as the hero. With
   WebGL the section pins and the ship grows as you scroll; otherwise the photo
   shows with the last chapter. */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 24px) 48px; background: var(--sky-100);
}
.band__grid { position: relative; z-index: 1; width: 100%; }
.band__content { max-width: 520px; }
.band__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 28px; }
.band__top .eyebrow { margin: 0; }
/* chapters stack in one grid cell; without the 3D ship only the last one shows */
.band__chapters { display: grid; align-items: start; gap: 28px; }
.band--3d .band__chapter { grid-area: 1 / 1; }
.band__lead { font-size: var(--fs-sub); line-height: 1.9; color: var(--ink); max-width: 520px; }
.band__lead a { color: var(--blue-600); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.band__lead a:hover { color: var(--blue-700); }
.band__heading { font-size: var(--fs-h2); font-weight: 700; color: var(--navy-900); margin-block-end: 18px; }
.band__text { font-size: var(--fs-sub); color: var(--blue-600); max-width: 460px; }
.band__bars { display: none; gap: 8px; margin-block-start: 30px; max-width: 320px; }
/* each bar is a button: a tall invisible hit area around a thin visible line */
.band__bars button { flex: 1; position: relative; height: 22px; cursor: pointer; }
.band__bars button::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(36,116,192,.18); transition: background-color .3s, height .3s, margin .3s; }
.band__bars button:hover::before, .band__bars button:focus-visible::before { background: rgba(36,116,192,.38); height: 5px; margin-top: -2.5px; }
.band__bars i { position: absolute; inset-inline: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; pointer-events: none; background: linear-gradient(90deg, var(--blue-300), var(--blue-600)); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .band__bars i { transform-origin: right; background: linear-gradient(-90deg, var(--blue-300), var(--blue-600)); }

/* the scene fills the whole section */
.band__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.band__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
/* white fade behind the text (inline-start), plus soft blends into the sections above and below */
.band__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 14%, rgba(243,249,254,0) 86%, rgba(243,249,254,.9) 100%),
    linear-gradient(to left, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 28%, rgba(255,255,255,0) 52%);
}
[dir="ltr"] .band__stage::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 14%, rgba(243,249,254,0) 86%, rgba(243,249,254,.9) 100%),
    linear-gradient(to right, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 28%, rgba(255,255,255,0) 52%);
}
.band--3d .band__canvas { display: block; }
.band--3d .band__stage img { display: none; }
.band--3d .band__bars { display: flex; }

@media (max-width: 991px) {
  /* the ship takes the top of the screen, the text sits at the bottom */
  .band { align-items: flex-end; padding-block-end: 40px; }
  .band__stage::after, [dir="ltr"] .band__stage::after {
    background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 44%, rgba(255,255,255,.9) 62%, rgba(243,249,254,.98) 100%);
  }
  .band__coords { top: calc(var(--header-h) + 12px); bottom: auto; }
  .band__top { margin-block-end: 16px; }
  .band__bars { margin-block-start: 22px; }
}

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin-block-end: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); margin-block-end: 20px; }
.section-head__lead { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.95; max-width: 620px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-head__lead { margin-inline: auto; }

/* ---------- Services ----------
   Editorial layout: the heading stays pinned on one side while the service
   cards stack on the other. Each card is a link to the quote form. */
.services { background: var(--sky-50); }
.services__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.services__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.services__intro h2 { font-size: var(--fs-h2); margin-block-end: 20px; }
.services__intro .section-head__lead { margin-block-end: 36px; }
/* Each service is a card; scroll-stack.js pins them so they stack as you scroll */
.services__list { position: relative; }
.scroll-stack__slot { position: sticky; }
.srow {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-areas: "num" "body";
  align-content: space-between; gap: 28px;
  min-height: clamp(240px, 26vw, 300px); padding: clamp(28px, 3vw, 44px);
  border-radius: 28px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 -12px 40px -22px rgba(36,116,192,.35), 0 30px 60px -36px rgba(15,31,69,.35);
  transform-origin: 50% 0; will-change: transform;
}
/* soft light-blue glow in the corner, brighter on hover */
.srow::before {
  content: ""; position: absolute; z-index: -1; inset-inline-end: -20%; top: -40%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, var(--sky-100), transparent); opacity: .7;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.srow:hover::before, .srow:focus-visible::before { opacity: 1; transform: scale(1.15); }
/* the card underneath darkens slightly as the next one covers it */
.scroll-stack-card__shade { position: absolute; inset: 0; border-radius: inherit; background: var(--navy-900); opacity: var(--scroll-stack-dim, 0); pointer-events: none; }
.srow__num {
  grid-area: num; align-self: start;
  font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(36,116,192,.35);
  transition: color .5s var(--ease), -webkit-text-stroke-color .5s;
}
.srow:hover .srow__num { color: var(--blue-600); -webkit-text-stroke-color: var(--blue-600); }
.srow__body { grid-area: body; }
.srow h3 { font-size: var(--fs-h3); margin-block-end: 10px; transition: color .4s; }
.srow:hover h3 { color: var(--blue-600); }
.srow p { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.9; max-width: 520px; }



/* ---------- Vision ---------- */
.vision { background: var(--white); overflow: hidden; }
.vision__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; z-index: 1; }
.vcard {
  position: relative; overflow: hidden; padding: clamp(36px, 4.5vw, 64px); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--blue-500), var(--blue-600) 75%); color: var(--white);
  min-height: 380px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.vcard::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 0 60px rgba(255,255,255,.06), 0 0 0 120px rgba(255,255,255,.04);
}
.vcard__icon { width: 64px; height: 64px; color: var(--white); margin-block-end: auto; }
.vcard__icon svg { width: 100%; height: 100%; }
.vcard h3 { font-size: var(--fs-h3); margin-block-end: 14px; color: var(--white); }
.vcard p { color: rgba(255,255,255,.9); font-size: var(--fs-lead); line-height: 1.95; }
/* the second card is the white counterpart */
.vcard:nth-child(2) { background: linear-gradient(150deg, var(--white), var(--sky-50)); color: var(--ink); border: 1px solid var(--line); }
.vcard:nth-child(2)::after { border-color: rgba(36,116,192,.14); box-shadow: 0 0 0 60px rgba(36,116,192,.04), 0 0 0 120px rgba(36,116,192,.03); }
.vcard:nth-child(2) .vcard__icon { color: var(--blue-500); }
.vcard:nth-child(2) h3 { color: var(--navy-900); }
.vcard:nth-child(2) p { color: var(--ink-soft); }
.vision__mark { position: absolute; width: 46vw; max-width: 720px; inset-inline-start: -10vw; bottom: -12vw; opacity: .06; pointer-events: none; }

/* ---------- Big CTA ----------
   A floating gradient panel: dot grid, watermark mark, a shipping route that
   draws itself on scroll with a point travelling along it, centred content. */
.cta { position: relative; padding-block: clamp(64px, 7vw, 104px); background: var(--white); }
.cta__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(72px, 9vw, 128px) clamp(24px, 6vw, 96px);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(143,211,244,.35), transparent 60%),
    linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 55%, var(--blue-700) 100%);
  color: var(--white); text-align: center;
  box-shadow: 0 60px 120px -60px rgba(36,116,192,.75);
  will-change: transform;
}
.cta__dots {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
  mask: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
}
.cta__mark {
  position: absolute; z-index: -1; width: clamp(280px, 38vw, 560px);
  inset-inline-end: -6%; bottom: -18%; opacity: .1;
  filter: brightness(0) invert(1); pointer-events: none;
}
.cta__content { position: relative; max-width: 820px; margin-inline: auto; }
.cta__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-block-end: 26px;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cta__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.35; color: var(--white); margin-block-end: 20px; }
[lang="en"] .cta__title { line-height: 1.15; }
.cta__title em { color: var(--sky-200); }
.cta__lead { font-size: var(--fs-lead); line-height: 1.95; color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 40px; }



.cta__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: start; }
.cta__list a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: 18px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .4s var(--ease), color .4s;
}
.cta__list a:hover { background: var(--white); color: var(--blue-700); }
.cta__list svg { width: 22px; height: 22px; flex: none; }
.cta__list small { display: block; font-size: .8rem; opacity: .8; line-height: 1.4; }
.cta__list strong { font-weight: 600; line-height: 1.5; }

/* the message form, in the same frosted style as the contact cards */
.cta__form { margin-block-start: 28px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; text-align: start;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.26); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cta__form-title { font-size: var(--fs-h3); font-weight: 700; color: var(--white); margin-block-end: 18px; text-align: center; }
.cta__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cta__input { width: 100%; padding: 15px 18px; border-radius: 14px; font: inherit; font-size: .98rem; color: var(--white);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); transition: background-color .3s, border-color .3s; }
.cta__input::placeholder { color: rgba(255,255,255,.72); }
.cta__input:focus { outline: none; background: rgba(255,255,255,.2); border-color: var(--white); }
.cta__input--wide { grid-column: 1 / -1; }
textarea.cta__input { resize: vertical; min-height: 120px; line-height: 1.7; }
/* phone numbers and emails are typed left to right, even on the Arabic page */
.cta__input--ltr { direction: ltr; }
[dir="rtl"] .cta__input--ltr:placeholder-shown { direction: rtl; }
.cta__hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cta__send { margin-block-start: 16px; width: 100%; }
.cta__send:disabled { opacity: .7; cursor: progress; }
.cta__status { min-height: 1.6em; margin-block-start: 12px; font-size: .95rem; text-align: center; }
.cta__status[data-kind="ok"] { color: var(--white); font-weight: 600; }
.cta__status[data-kind="error"] { color: #ffe08a; }
@media (max-width: 640px) { .cta__fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, var(--sky-100), var(--sky-50)); color: var(--ink-soft); padding-block: clamp(64px, 8vw, 96px) 32px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; align-items: start; margin-block-end: 48px; }
.footer__brand img { height: 44px; width: auto; margin-block-end: 22px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--blue-600); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block-start: 24px; border-top: 1px solid var(--sky-200); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .menu { display: flex; }
  .header__actions { margin-inline-start: auto; }
}
@media (max-width: 991px) {
  .vision__grid { grid-template-columns: 1fr; }
  .cta__list { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* hero text card: tighter and smaller on phones so the card stays short */
  .hero__bar { margin-top: 22px; }
  .hero__title { font-size: 1.6rem; }
  .hero__tagline { font-size: 1rem; line-height: 1.65; }
  .hero__rule { margin-block: 16px; width: 140px; }
  :root { --header-h: 72px; }
  .logo-svg { height: 34px; }
  .srow { min-height: 220px; gap: 20px; padding: 24px; border-radius: 22px; }
  .srow__num { font-size: 2rem; }
  .footer__grid { grid-template-columns: 1fr; }
}

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