/* ============================================================================
   شركة وسام البيع التقني — Wisam Tech Co. company profile. Platforms only.

   A deliberate counterpoint to the dark glass-and-video site: warm paper,
   hairline rules, editorial type. The colour system is carried over from the
   Wisam Sales Trading sheet (preview.html) so the two properties read as
   siblings — same warm neutrals, same restraint — with that site's indigo
   swapped for the teal of the Wisam Tech mark.

   Bilingual, Arabic first. Every directional rule below uses logical
   properties (inset-inline-*, margin-inline-*, padding-inline-*) so the whole
   layout mirrors when dir flips to ltr — there is no separate RTL stylesheet.

   Colour carries meaning in exactly one place: each platform keeps its own
   app-icon hue, so the lineup stays legible at a glance.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Palette. Warm neutrals do the work; teal is reserved for interactive things
   and section labels. Contrast on the two page grounds (paper / sand):
     ink   14.25 / 12.86      muted   5.17 / 4.66
     ink-2  7.65 /  —         teal    5.79 / 5.22
   White on teal 5.99, white on deep 15.67. All AA for body text.
   --teal-bright is the logo cyan: decoration and dark grounds only, never
   text on a light background.
   ---------------------------------------------------------------------------- */
:root {
  --paper:      #FCFBF8;   /* warm white */
  --paper-2:    #F3EFE7;   /* sand — alternating section ground */
  --white:      #FFFFFF;

  --ink:        #1E2A2D;   /* headings */
  --ink-2:      #47535A;   /* body */
  --muted:      #636C74;   /* secondary text, AA on both grounds */

  --teal:       #0B6E76;   /* brand accent */
  --teal-dk:    #075257;
  --teal-bright:#14BCD6;   /* the mark's cyan — decoration only */
  --teal-tint:  #E4F0F1;

  --rule:       #E4DED3;
  --rule-soft:  #EFEAE1;
  --deep:       #14262A;   /* footer — charcoal with a teal cast */

  /* Platform hues, sampled from each app icon so the page agrees with the art. */
  --p-takhlees: #2E90EA;
  --p-tawseel:  #1B8A3C;
  --p-takhzeen: #EE7F13;
  --p-tawfir:   #E01B1B;
  --p-express:  #EFA318;
  --p-tawfiry:  #B7145A;
  --done:       #1E9E57;   /* journey complete */

  --body:    "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ui:      "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* English swaps the display face to the serif; Arabic has no serif companion
   in this superfamily, so it keeps the sans throughout. */
html[lang="en"] { --display: "IBM Plex Serif", Georgia, "Times New Roman", serif; }

/* The fixed rail, and the gutter the page reserves for it. */
:root { --rail: 0px; }
@media (min-width: 1000px) { :root { --rail: 74px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 600;
}
html[lang="en"] h1, html[lang="en"] h2,
html[lang="en"] h3, html[lang="en"] h4 { letter-spacing: -.015em; }

h1 { font-size: clamp(2.05rem, 1.3rem + 3.4vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); }

/* Arabic needs more leading, and no tightened tracking. */
html[lang="ar"] h1 { line-height: 1.32; }
html[lang="ar"] h2 { line-height: 1.38; }
html[lang="ar"] h3 { line-height: 1.5; }

p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a  { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

.wrap { margin-inline-start: var(--rail); }
.container { width: 100%; max-width: 1020px; margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 2.5rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-block-start: -100%; inset-inline-start: 1rem; z-index: 300;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 8px 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { inset-block-start: 0; }

/* Small caps-style labels. Uppercasing and wide tracking are Latin
   conventions and damage Arabic, so they are applied per-language. */
.label {
  font-family: var(--ui); font-size: .73rem; font-weight: 600;
}
html[lang="en"] .label { text-transform: uppercase; letter-spacing: .14em; }
html[lang="ar"] .label { letter-spacing: 0; font-size: .82rem; }

/* ===========================================================  RAIL  ======= */
.rail {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60;
  width: var(--rail); display: none;
  border-inline-end: 1px solid var(--rule);
  background: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
}
@media (min-width: 1000px) { .rail { display: flex; } }

.rail a { display: grid; place-items: center; width: 30px; height: 30px; text-decoration: none; position: relative; }
.rail a::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #C6CFD0; transition: background-color .25s, box-shadow .25s, transform .25s;
}
.rail a:hover::after { background: var(--teal); }
.rail a.is-active::after { background: var(--teal); transform: scale(1.15); box-shadow: 0 0 0 4px rgba(11, 110, 118, .14); }
.rail a span {
  position: absolute; inset-inline-start: calc(100% + 10px); white-space: nowrap;
  font-size: .72rem; font-weight: 600; color: var(--ink); background: var(--paper);
  padding: .25em .55em; border: 1px solid var(--rule); border-radius: 5px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }
.rail__progress { position: absolute; inset-block-start: 0; inset-inline-end: -1px; width: 2px; background: var(--teal); height: 0; }

/* =========================================================  HEADER  ======= */
.top {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-stuck { border-bottom-color: var(--rule); }
/* At the top of the page the bar is tall and the logo large, sitting fully
   inside it. Once the page scrolls (.is-stuck, set in main.js) the bar, the
   logo and the wordmark all ease down to a compact size together. */
.top {
  --bar: 76px;  --mark: 3.1rem;
  --bar-stuck: 60px; --mark-stuck: 2.2rem;
}
@media (min-width: 760px) {
  .top { --bar: 100px; --mark: 4.4rem; --bar-stuck: 68px; --mark-stuck: 2.5rem; }
}
.top__inner {
  display: flex; align-items: center; gap: .8rem; min-height: var(--bar);
  transition: min-height .4s cubic-bezier(.22,1,.36,1);
}
.top.is-stuck .top__inner { min-height: var(--bar-stuck); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }

.brand__mark { display: block; flex: none; }
.brand__mark img {
  width: var(--mark); height: var(--mark);
  transition: width .4s cubic-bezier(.22,1,.36,1), height .4s cubic-bezier(.22,1,.36,1);
}
.top.is-stuck .brand__mark img { width: var(--mark-stuck); height: var(--mark-stuck); }

.brand b {
  font-family: var(--display); font-size: 1.18rem; font-weight: 600;
  color: var(--ink); white-space: nowrap;
  transition: font-size .4s cubic-bezier(.22,1,.36,1);
}
.top.is-stuck .brand b { font-size: 1.02rem; }
@media (max-width: 460px) { .brand b { display: none; } }

.nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 860px) { .nav { display: flex; margin-inline-start: auto; } }
.nav a {
  font-family: var(--ui); font-size: .87rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none; position: relative; padding-block: .3em;
  transition: color .2s; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline: 0;
  height: 1px; background: var(--teal); transform: scaleX(0);
  transform-origin: center; transition: transform .25s;
}
.nav a:hover { color: var(--teal); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--teal); }

.top__actions { display: flex; align-items: center; gap: .7rem; margin-inline-start: auto; }
@media (min-width: 860px) { .top__actions { margin-inline-start: 1.5rem; } }

/* "Contact us" — the company's feedback form on wisamtrading.sa, opened in a
   new tab. A pill in the header and footer; a white pill in the contact strip. */
.top__contact {
  display: inline-flex; align-items: center; flex: none; white-space: nowrap;
  font-family: var(--ui); font-size: .8rem; font-weight: 600; text-decoration: none;
  padding: .55em 1.15em; border-radius: 100px;
  background: var(--teal-tint); color: var(--teal-dk);
  transition: background-color .2s, color .2s;
}
.top__contact:hover { background: var(--teal); color: #fff; }
/* two-state language switch — no dropdown, only two languages exist */
.langsw {
  display: inline-flex; flex: none; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 100px; background: var(--white);
}
/* each language is its own page, so the switch is two links */
.langsw a {
  font-family: var(--ui); font-size: .76rem; font-weight: 600; text-decoration: none;
  padding: .45em .9em; background: transparent; color: var(--muted);
  transition: background-color .2s, color .2s; white-space: nowrap;
}
.langsw a.is-on { background: var(--teal); color: #fff; }
.langsw a:not(.is-on):hover { background: var(--teal-tint); color: var(--teal-dk); }

/* ==========================================================  HERO  ======== */
/* A full-bleed slideshow: the company first, then one slide per platform.
   Slides are stacked in one grid cell, so the hero takes the height of its
   tallest slide and never jumps between them; only opacity changes.
   The photo sits under a bottom-up scrim, so white text stays readable on
   any picture, in either reading direction. */
.hero {
  --interval: 6.5s;          /* time each slide stays up; the dot bar fills over it */
  position: relative; overflow: hidden;
  background: var(--deep); color: #fff;
}

.hero__slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(520px, 82vh, 760px);
  padding-block: clamp(5.5rem, 12vw, 8rem) clamp(5.5rem, 9vw, 6.5rem);
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

.slide__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform: scale(1.06); transition: transform 7s ease-out;
}
.slide.is-active .slide__img { transform: scale(1); }

.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 24, 27, .92) 0%, rgba(12, 24, 27, .62) 42%, rgba(12, 24, 27, .18) 100%);
}
/* the platform's own hue, as a hairline along the bottom of its slide */
.slide::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 3px;
  background: var(--hue, var(--teal-bright));
}

.slide__body { position: relative; }

/* --- slide 1: the company ------------------------------------------------ */
.hero .eyebrow {
  color: var(--teal-bright); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .85rem; max-width: 46rem;
}
.hero .eyebrow::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .28); }

.hero h1 { color: #fff; max-width: 21ch; margin-bottom: .4em; }
html[lang="ar"] .hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--teal-bright); }
html[lang="en"] .hero h1 em { font-style: italic; }

.hero__lead {
  font-size: clamp(1rem, .96rem + .35vw, 1.15rem);
  color: rgba(255, 255, 255, .84); max-width: 60ch; line-height: 1.85;
}

/* the company's five objectives, from the profile document */
.hero__goals { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; max-width: 46rem; }
.hero__goals li {
  font-family: var(--ui); font-size: .8rem; font-weight: 500; color: #fff;
  padding: .38em .95em; border-radius: 100px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}

/* --- slides 2…7: one platform each --------------------------------------- */
.slide__brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.slide__icon {
  width: 60px; height: 60px; flex: none; border-radius: 15px; overflow: hidden;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .55);
}
.slide__icon img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.14); }

.slide__kicker {
  color: rgba(255, 255, 255, .88); margin: 0;
  display: inline-flex; align-items: center; gap: .55rem;
}
.slide__kicker::before { content: ""; width: 22px; height: 2px; background: var(--hue, var(--teal-bright)); }

.slide__title {
  font-family: var(--display); font-weight: 600; color: #fff;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.15;
  margin-bottom: .45rem;
}
html[lang="ar"] .slide__title { line-height: 1.35; }
html[lang="en"] .slide__title { letter-spacing: -.015em; }

.slide__line { font-size: clamp(1.02rem, .96rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 44ch; }

.slide__more {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem;
  font-family: var(--ui); font-size: .88rem; font-weight: 600; color: #fff;
  text-decoration: none; padding: .62em 1.25em; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); transition: background-color .2s, border-color .2s;
}
.slide__more::after { content: "←"; }
html[dir="ltr"] .slide__more::after { content: "→"; }
.slide__more:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

/* --- controls ------------------------------------------------------------ */
.hero__controls {
  position: absolute; inset-inline: 0; inset-block-end: clamp(1.4rem, 3.5vw, 2.2rem); z-index: 2;
  display: flex; align-items: center; gap: .6rem;
}
.hero__controls[hidden] { display: none; }

.hero__dots { display: flex; align-items: center; gap: .4rem; margin-inline-end: auto; }
.hero__dot {
  position: relative; overflow: hidden; padding: 0; cursor: pointer;
  width: 26px; height: 4px; border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .32); transition: width .3s, background-color .2s;
}
/* a larger, invisible hit area around the thin bar */
.hero__dot::before { content: ""; position: absolute; inset: -12px -3px; }
.hero__dot:hover { background: rgba(255, 255, 255, .55); }
.hero__dot.is-active { width: 46px; }
.hero__dot::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0);
}
html[dir="rtl"] .hero__dot::after { transform-origin: right; }
html[dir="ltr"] .hero__dot::after { transform-origin: left; }
/* the active bar fills over the interval; when it finishes, the script
   advances the slide — so pausing the animation pauses the slideshow */
.hero__dot.is-active::after { animation: hero-fill var(--interval) linear forwards; }
/* hovering, or tabbing into the controls, holds the current slide */
@media (hover: hover) { .hero:hover .hero__dot.is-active::after { animation-play-state: paused; } }
.hero:has(:focus-visible) .hero__dot.is-active::after { animation-play-state: paused; }
.hero.is-paused .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
@keyframes hero-fill { to { transform: scaleX(1); } }

.hero__btn {
  width: 42px; height: 42px; flex: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .38); transition: background-color .2s, border-color .2s;
}
.hero__btn:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.hero__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__pause svg { fill: currentColor; stroke: none; }
.hero__pause .i-play, .hero.is-paused .hero__pause .i-pause { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
/* arrows point along the reading direction */
html[dir="rtl"] .hero__prev svg, html[dir="rtl"] .hero__next svg { transform: scaleX(-1); }

.hero :focus-visible { outline-color: var(--teal-bright); }

@media (max-width: 560px) {
  .hero__btn { width: 38px; height: 38px; }
  .hero__dot { width: 18px; }
  .hero__dot.is-active { width: 32px; }
}

/* Reduced motion: no zoom, and the slideshow starts paused (see main.js).
   The global rule further down shortens every animation to nothing; the
   dot timer is exempt, or a resumed slideshow would race through slides. */
@media (prefers-reduced-motion: reduce) {
  .slide__img { transform: none !important; }
  .hero .hero__dot.is-active::after { animation-duration: var(--interval) !important; }
}

/* =======================================================  SECTIONS  ======= */
.sec { padding-block: clamp(3.2rem, 7vw, 5.6rem); }
/* Section grounds, taken from the brand mark's teal and cyan. The page
   alternates light and dark: hero (photo) → services (light teal) → who we
   serve (deep teal) → platforms (cool white) → footer (deep). --sec-bg is
   the flat colour of each ground, for anything that has to match it. */
.sec--teal {
  --sec-bg: #EAF5F6;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(20, 188, 214, .12), transparent 60%),
    linear-gradient(180deg, #E4F2F3 0%, #F2F9F9 100%);
}
.sec--dark {
  --sec-bg: #0F3236;
  position: relative; color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(20, 188, 214, .22), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(20, 188, 214, .12), transparent 60%),
    linear-gradient(160deg, #0E3B40 0%, #14262A 100%);
}
.sec--light {
  --sec-bg: #F6FAFA;
  background:
    radial-gradient(70% 420px at 50% 0%, rgba(20, 188, 214, .09), transparent 70%),
    #F6FAFA;
}

/* Section heading, after codelink.com.sa: the section's name as a large,
   bold, centred title with a short teal bar under it, then a one-line
   tagline and the intro paragraph, all centred. */
.sec__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .55rem; max-width: 46rem; margin: 0 auto clamp(2.4rem, 5vw, 3.4rem);
}
.sec__head h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); font-weight: 700; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.sec__head h2::after {
  content: ""; width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
}
.sec__tagline { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin: .5rem 0 0; }
.sec__head p:not(.sec__tagline) { color: var(--muted); font-size: 1.05rem; }
.sec--dark .sec__head h2, .sec--dark .sec__tagline { color: #fff; }
.sec--dark .sec__head p:not(.sec__tagline) { color: rgba(255, 255, 255, .72); }

/* =======================================================  SERVICES  ====== */
/* What Wisam Tech provides: a numbered list beside a large photo. Opening a
   service (click, or hover on desktop — main.js) expands its description and
   crossfades the photo to match. From 900px the photo panel sits beside the
   list and stays in view; below that the list is a plain accordion and each
   item carries its own photo. */
.svc-split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .svc-split { grid-template-columns: 1.05fr .95fr; } }

.svc-item { border-bottom: 1px solid #CFE3E5; }
.svc-item:first-child { border-top: 1px solid #CFE3E5; }
.svc-head {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem .2rem; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--ink); text-align: start;
}
.svc-num { min-width: 2.4rem; font: 700 1rem var(--ui); color: #A9C2C5; transition: color .3s; }
.svc-title {
  flex: 1; font-family: var(--display); font-weight: 700; line-height: 1.4;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); transition: color .3s;
}
.svc-pm {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #CFE3E5; background: #fff;
  transition: transform .4s ease, background-color .3s, border-color .3s;
}
.svc-pm::before, .svc-pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--teal); transition: background-color .3s;
}
.svc-pm::after { transform: rotate(90deg); }
.svc-head:hover .svc-title { color: var(--teal); }
.svc-item.is-open .svc-num, .svc-item.is-open .svc-title { color: var(--teal); }
.svc-item.is-open .svc-pm { transform: rotate(45deg); background: var(--teal); border-color: var(--teal); }
.svc-item.is-open .svc-pm::before, .svc-item.is-open .svc-pm::after { background: #fff; }

.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease; }
.svc-item.is-open .svc-body { grid-template-rows: 1fr; }
.svc-body > div { overflow: hidden; padding-inline-start: 3.4rem; }
.svc-body p { color: var(--muted); margin: 0 0 .9rem; max-width: 46ch; }
.svc-more {
  display: inline-block; margin-bottom: 1.4rem; cursor: default; text-decoration: none;
  font-family: var(--ui); font-size: .9rem; font-weight: 700; color: var(--teal);
}
.svc-more::after { content: " ←"; }
html[dir="ltr"] .svc-more::after { content: " →"; }

/* the photo inside each item — phones only */
.svc-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: 0 0 1rem; }

/* the big photo beside the list — wide screens only */
.svc-media { display: none; }
@media (min-width: 900px) {
  .svc-thumb { display: none; }
  .svc-media {
    display: block; position: sticky; top: 110px;
    aspect-ratio: 4 / 5; max-height: 560px; width: 100%;
    border-radius: 26px; overflow: hidden; background: var(--deep);
    box-shadow: 0 30px 60px -34px rgba(20, 38, 42, .55);
  }
  .svc-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity .7s ease, transform 1.2s cubic-bezier(.22,1,.36,1);
  }
  .svc-media img.is-on { opacity: 1; transform: none; }
  .svc-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(14, 59, 64, .35), transparent 45%);
  }
}
/* Card grids come in one card after another once the grid is in view.
   The grid carries .reveal; its cards run a keyframe with a staggered delay,
   holding only their start state, so the stagger never blocks hover. */
.js .stagger.reveal { opacity: 1; transform: none; }
.js .stagger.reveal > * { opacity: 0; }
.js .stagger.reveal.is-visible > * {
  opacity: 1;
  animation: card-rise .8s cubic-bezier(.22,1,.36,1) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes card-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .stagger.reveal > * { opacity: 1; } }

/* ====================================================  PLATFORMS  ======== */
/* Small type pieces each journey stop uses. */
.platform__kicker { color: var(--hue, var(--teal)); font-size: .7rem; }
html[lang="ar"] .platform__kicker { font-size: .8rem; }

/* The same platform name in the other language. The name itself is wrapped in
   <bdi> by the language switch, which isolates it and picks its direction from
   its own script — so trailing punctuation stays put — while this block keeps
   the page's direction and so aligns to the page's own reading edge. */
.platform__alt { font-size: .93rem; color: var(--muted); margin-bottom: .5rem; }

/* =======================================================  JOURNEY  ======= */
/* One consignment through the six platforms, top to bottom, along a road.
   main.js eases --journey (0 → 1) and --journey-y (the same, in px) after the
   scroll position, so the road's colour and the vehicle glide rather than
   jump. It also sets data-stage, which picks the vehicle: the stage changes as
   the vehicle passes each hand-off label. Stops get .is-reached as they come
   into view (photo wipes open, text rises in) and .is-passed once the vehicle
   reaches their node. Without JS the road is fully coloured, the vehicle is
   hidden and nothing is held back.
   Phone: the road runs along the reading edge. From 900px: the road is centred,
   stops alternate sides, and the journey widens past the text column. */
.journey {
  --spine: 30px;               /* road centre, from the inline-start edge */
  --road: 10px;                /* road width */
  --gutter: 4.7rem;            /* phone: room beside the road */
  --stage-hue: var(--p-takhlees);
  position: relative; margin-top: clamp(2.5rem, 6vw, 4rem);
}
.journey[data-stage="tawseel"]  { --stage-hue: var(--p-tawseel); }
.journey[data-stage="takhzeen"] { --stage-hue: var(--p-takhzeen); }
.journey[data-stage="tawfir"]   { --stage-hue: var(--p-tawfir); }
.journey[data-stage="tawfiry"]  { --stage-hue: var(--p-tawfiry); }
.journey[data-stage="express"]  { --stage-hue: var(--p-express); }
.journey[data-stage="done"]     { --stage-hue: var(--done); }

@media (min-width: 900px) {
  .journey {
    --spine: 50%; --road: 14px;
    /* break out of the 1020px text column, up to 1280px */
    --wide: min(1320px, calc(100vw - var(--rail) - 4rem));
    margin-inline: calc((100% - var(--wide)) / 2);
  }
}

/* --- the road ------------------------------------------------------------- */
.journey__line {
  position: absolute; inset-block: 0; inset-inline-start: var(--spine);
  width: var(--road); margin-inline-start: calc(var(--road) / -2);
  border-radius: var(--road); background: #46555A;
}
/* The coloured part of the road. main.js paints it in segments, one per
   stage in that platform's colour, changing behind each hand-off card
   (--road-paint); it is then revealed down to the vehicle with a clip. */
.journey__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--road-paint, linear-gradient(to bottom, var(--teal), var(--teal-bright)));
  clip-path: inset(0 0 calc((1 - var(--journey, 1)) * 100%) 0);
}
/* dashed lane marking, over both the grey and the coloured part */
.journey__line::after {
  content: ""; position: absolute; inset-block: 6px; left: 50%; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .9) 0 9px, transparent 9px 20px);
}

/* the vehicle */
.journey__marker {
  --size: 48px;
  /* above the stop dots, below the hand-off cards: it slides behind them */
  position: absolute; top: 0; left: 50%; z-index: 2;
  width: var(--size); height: var(--size);
  transform: translate(-50%, calc(var(--journey-y, 0px) - 50%));
  border-radius: 50%; background: var(--stage-hue); color: #fff;
  box-shadow: 0 0 0 5px var(--sec-bg, var(--paper)), 0 10px 24px -8px rgba(30, 42, 45, .55);
  transition: background-color .45s ease;
  display: none;
}
.js .journey__marker { display: block; }
@media (min-width: 900px) { .journey__marker { --size: 64px; } }

.journey__marker .mk {
  position: absolute; inset: 18%; width: 64%; height: 64%;
  fill: currentColor; --gap: var(--stage-hue);
  opacity: 0; transform: scale(.55) rotate(-8deg);
  transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.journey[data-stage="takhlees"] .mk--takhlees,
.journey[data-stage="tawseel"]  .mk--tawseel,
.journey[data-stage="takhzeen"] .mk--takhzeen,
.journey[data-stage="tawfir"]   .mk--tawfir,
.journey[data-stage="tawfiry"]  .mk--tawfiry,
.journey[data-stage="express"]  .mk--express,
.journey[data-stage="done"]     .mk--done { opacity: 1; transform: none; }
/* vehicles face the way the page reads */
html[dir="rtl"] .journey__marker .mk:not(.mk--done),
html[dir="rtl"] .stop__handoff svg { scale: -1 1; }

.journey__stops { position: relative; }

/* --- a stop --------------------------------------------------------------- */
.stop { position: relative; padding-block: 1.6rem; padding-inline-start: var(--gutter); }

.stop__node {
  position: absolute; z-index: 1; inset-inline-start: var(--spine); inset-block-start: 2.9rem;
  width: 26px; height: 26px; margin-inline-start: -13px; border-radius: 50%;
  background: #fff; border: 3px solid #46555A;
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.stop.is-passed .stop__node {
  background: var(--hue); border-color: #fff;
  box-shadow: 0 0 0 4px var(--hue), 0 0 0 11px color-mix(in srgb, var(--hue) 22%, transparent);
}

.stop__media {
  margin: 0 0 1.6rem; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--paper-2);
  box-shadow: 0 28px 60px -34px rgba(30, 42, 45, .6);
}
.stop__media img { width: 100%; height: 100%; object-fit: cover; }

.stop__body { position: relative; isolation: isolate; }
.stop__num {
  position: absolute; z-index: -1; inset-block-start: -1.8rem; inset-inline-end: 0;
  font-family: var(--display); font-weight: 600; line-height: 1;
  font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--hue) 15%, transparent);
}
.stop__brand { display: flex; align-items: center; gap: .85rem; }
.stop__icon {
  width: 58px; height: 58px; flex: none; border-radius: 15px; overflow: hidden;
  background: #fff; border: 1px solid var(--rule);
  display: grid; place-items: center;
}
.stop__icon img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.14); }
.stop .platform__kicker { margin: 0; }
.stop h3 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.3rem); margin: .9rem 0 .1rem; }
.stop__desc { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }

/* the hand-off to the next platform, sitting on the road; its icon is the
   vehicle that takes over (in the next platform's colour, --next) */
.stop__handoff { position: relative; z-index: 3; margin: 1.5rem 0 0; }
.stop__handoff > span,
.journey__end > span {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ui); font-size: .86rem; font-weight: 600; color: var(--ink);
  padding: .5em 1.2em .5em .8em; border-radius: 100px;
  background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 8px 22px -14px rgba(30, 42, 45, .45);
}
.stop__handoff svg { width: 30px; height: 30px; flex: none; fill: var(--next); --gap: #fff; }

/* The hand-off card is taller than the vehicle and covers the road, so the
   vehicle disappears behind it and comes out the other side as the next one. */
.stop__handoff > span {
  min-height: 68px; gap: .85rem;
  font-size: .95rem; line-height: 1.5;
  padding: .7rem 1.3rem .7rem .7rem; border-radius: 22px;
  border-color: color-mix(in srgb, var(--next) 30%, var(--rule));
  box-shadow: 0 16px 34px -18px rgba(30, 42, 45, .5);
}
.stop__handoff svg {
  width: 52px; height: 52px; padding: 8px; border-radius: 16px;
  background: color-mix(in srgb, var(--next) 12%, #fff);
}
/* phone: the card starts at the page edge so it spans the road */
@media (max-width: 899px) {
  .stop__handoff { margin-inline-start: calc(-1 * var(--gutter) + 2px); }
}

/* the finish card sits just past the end of the road; once the vehicle
   arrives (.is-done, set in main.js) it turns green and pulses once */
.journey__end { margin: 1.6rem 0 0; }
.journey__end > span {
  font-size: .95rem; padding: .7em 1.4em .7em 1em;
  background: #fff; border-color: color-mix(in srgb, var(--done) 40%, var(--rule)); color: var(--ink);
  transition: background-color .5s ease, border-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.journey__end svg {
  width: 30px; height: 30px; flex: none; padding: 4px; border-radius: 50%;
  fill: #fff; background: color-mix(in srgb, var(--done) 45%, #C9D0D1);
  transition: background-color .5s ease;
}
.journey__end.is-done > span {
  background: var(--done); border-color: var(--done); color: #fff;
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--done) 70%, transparent);
  animation: end-pop .6s cubic-bezier(.34, 1.56, .64, 1);
}
.journey__end.is-done svg { background: rgba(255, 255, 255, .25); }
@keyframes end-pop { 40% { transform: scale(1.06); } }

/* --- wide screens: centred road, alternating sides, bigger photos --------- */
@media (min-width: 900px) {
  .stop {
    display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center;
    padding: 1.8rem 0;
  }
  .stop__node { position: relative; inset: auto; margin: 0; grid-column: 2; grid-row: 1; justify-self: center; }
  .stop__media { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 16 / 10; }
  .stop__body  { grid-column: 3; grid-row: 1; }
  .stop:nth-child(even) .stop__media { grid-column: 3; }
  .stop:nth-child(even) .stop__body  { grid-column: 1; }
  .stop__handoff { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: 1.8rem; }
  .stop__handoff > span { min-height: 88px; font-size: 1.02rem; padding: .9rem 1.8rem .9rem .9rem; border-radius: 26px; }
  .stop__handoff svg { width: 64px; height: 64px; padding: 10px; border-radius: 20px; }
  .journey__end { text-align: center; margin-top: 2.8rem; }
}

/* --- reveal on scroll (only when scripting can undo it) ------------------- */
.js .stop__media { clip-path: inset(0 0 100% 0 round 20px); transition: clip-path 1.2s cubic-bezier(.22,1,.36,1); }
.js .stop__media img { transform: scale(1.15); transition: transform 1.8s cubic-bezier(.22,1,.36,1); }
.js .stop.is-reached .stop__media { clip-path: inset(0 0 0 0 round 20px); }
.js .stop.is-reached .stop__media img { transform: none; }

.js .stop__body > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.js .stop__body > .stop__num { transform: translateY(50px); }
.js .stop__body > :nth-child(2) { transition-delay: .1s; }
.js .stop__body > :nth-child(3) { transition-delay: .2s; }
.js .stop__body > :nth-child(4) { transition-delay: .26s; }
.js .stop__body > :nth-child(5) { transition-delay: .34s; }
.js .stop.is-reached .stop__body > * { opacity: 1; transform: none; }

.js .stop__handoff { opacity: 0; transform: translateY(12px); transition: opacity .6s ease .45s, transform .7s cubic-bezier(.22,1,.36,1) .45s; }
.js .stop.is-reached .stop__handoff { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .stop__media { clip-path: none; }
  .js .stop__media img, .js .stop__body > *, .js .stop__handoff { opacity: 1; transform: none; }
}

/* =========================================================  REACH  ======= */
/* Who we serve: the industries we work in as photo cards, then a contact strip. */



/* Industries, after mis.com.sa's sector cards: a tall photo under a dark
   bottom gradient, the sector's name, and a short ✓ list of what we bring to
   it. With a mouse the list fades in on hover or focus while the photo
   zooms gently; on touch screens the list is always shown. */
/* The cards run in one row that drifts sideways on its own — no scrollbar.
   The set is repeated three times and the track slides by exactly one set,
   so the loop has no seam; it moves along the reading direction, pauses
   while hovered or tabbed into (so a card's list can be read), and fades
   out at both edges. With reduced motion the row stands still and wraps. */
.marquee {
  --gap: clamp(.8rem, 1.6vw, 1.1rem);
  --speed: 55s;
  overflow: hidden;
  padding-block: .4rem 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed) linear infinite; }
.marquee__set { display: flex; gap: var(--gap); padding-inline-end: var(--gap); }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% / 3)); } }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(calc(100% / 3)); } }

.marquee .sector { width: clamp(250px, 72vw, 290px); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee__set { flex-wrap: wrap; justify-content: center; padding-inline: 1.15rem; max-width: 1280px; margin-inline: auto; }
  .marquee__set[aria-hidden="true"] { display: none; }
}

.sector {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(300px, 34vw, 380px); border-radius: 20px; background: var(--deep);
  outline-offset: 4px;
}
.sector img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform 1s cubic-bezier(.25,1,.5,1);
}
.sector::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(12, 24, 27, 0) 25%, rgba(12, 24, 27, .45) 55%, rgba(12, 24, 27, .94) 100%);
  transition: background-color .5s ease;
}
/* a thin teal line that grows along the bottom on hover */
.sector::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
  transform: scaleX(0); transition: transform .5s ease;
}
.sector__body { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.4rem 1.3rem 1.5rem; color: #fff; }
.sector h4 {
  color: #fff; margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.4;
}
.sector__list { overflow: hidden; transition: max-height .6s ease, opacity .5s ease, margin-top .5s ease; }
.sector__list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-family: var(--ui); font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .88);
}
.sector__list li + li { margin-top: .45rem; }
.sector__list li::before {
  content: "✓"; display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; margin-top: .1rem; border-radius: 50%;
  font-size: .7rem; font-weight: 700; color: var(--teal-bright); background: rgba(20, 188, 214, .18);
}

@media (hover: hover) {
  .sector__list { max-height: 0; opacity: 0; }
  .sector:hover img, .sector:focus-visible img { transform: scale(1.07); }
  .sector:hover::after, .sector:focus-visible::after { transform: scaleX(1); }
  .sector:hover .sector__list, .sector:focus-visible .sector__list { max-height: 12rem; opacity: 1; margin-top: .9rem; }
}
@media (hover: none) { .sector__list { margin-top: .9rem; } }

/* contact strip */
.who__cta { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.who__cta a {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.3rem, 3vw, 2rem); border-radius: 20px;
  text-decoration: none; color: #fff;
  /* bright on the deep-teal ground of its section */
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(120deg, #13A9C0 0%, #0B6E76 100%);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .6);
  font-family: var(--display); font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 600;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.who__cta a:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .7); }
.cta-btn {
  flex: none; font-family: var(--ui); font-size: .95rem; font-weight: 700;
  padding: .75em 1.6em; border-radius: 100px; background: #fff; color: var(--teal-dk);
  transition: background-color .2s, color .2s;
}
.cta-btn::after { content: " ←"; }
html[dir="ltr"] .cta-btn::after { content: " →"; }
.who__cta a:hover .cta-btn { background: var(--deep); color: #fff; }

/* ==========================================================  JOIN  ======== */
/* Join us page: a short dark banner, then the application form as a stack of
   white cards on the light-teal ground — the path picker first, then the
   chosen path's fields (js/join.js shows one path at a time). */
.join-hero {
  position: relative; color: #fff;
  padding-block: clamp(3.2rem, 7vw, 5rem);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(20, 188, 214, .28), transparent 60%),
    linear-gradient(160deg, #0E3B40 0%, #14262A 100%);
}
.join-hero .eyebrow { color: var(--teal-bright); margin-bottom: 1rem; }
.join-hero h1 { color: #fff; max-width: 20ch; margin-bottom: .45em; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); }
.join-hero h1 em { font-style: normal; color: var(--teal-bright); }
html[lang="en"] .join-hero h1 em { font-style: italic; }
.join-hero__lead { color: rgba(255, 255, 255, .82); max-width: 62ch; font-size: clamp(1rem, .96rem + .3vw, 1.12rem); margin: 0; }

.join-form { max-width: 980px; margin-inline: auto; display: grid; gap: 1.1rem; }
.join-step {
  margin: 0; min-width: 0; padding: clamp(1.2rem, 3vw, 1.8rem);
  background: #fff; border: 1px solid #CFE3E5; border-radius: 22px;
  box-shadow: 0 10px 30px -24px rgba(20, 38, 42, .4);
}
.join-step legend {
  float: inline-start; width: 100%; padding: 0; margin-bottom: 1.1rem;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink);
}
.join-step legend + * { clear: both; }
.req { color: #B4462B; font-weight: 700; }

/* fields */
.fields { display: grid; gap: 1rem 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .fields { grid-template-columns: 1fr 1fr; } .fld--wide { grid-column: 1 / -1; } }
.fld { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.fld > label, .fld__label { font-family: var(--ui); font-weight: 600; font-size: .9rem; color: var(--ink); }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  padding: .72em .9em; border-radius: 12px; border: 1px solid #C9D9DB; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 6.5em; line-height: 1.7; }
.fld input[type="file"] { padding: .55em .7em; background: #F6FAFA; cursor: pointer; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 110, 118, .15);
}
.fld input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
.fld__hint { font-size: .8rem; color: var(--muted); }

.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--ink-2); cursor: pointer; padding-inline: .3rem; }
.consent input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: .3em; flex: none; }

.join-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.btn-primary {
  font-family: var(--ui); font-size: 1rem; font-weight: 700; color: #fff; cursor: pointer;
  padding: .85em 2.2em; border: 0; border-radius: 100px;
  background: linear-gradient(120deg, #13A9C0, var(--teal));
  box-shadow: 0 14px 28px -16px rgba(11, 110, 118, .8);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.join-status { margin: 0; flex: 1 1 280px; font-weight: 600; font-size: .95rem; }
.join-status.is-ok, .join-status.is-error { padding: .8em 1.1em; border-radius: 14px; }
.join-status.is-ok { color: #14532D; background: #DCF3E4; border: 1px solid #A7DDB9; }
.join-status.is-error { color: #7A1F12; background: #FCE6E1; border: 1px solid #F1B7AA; }

/* a field people never see; bots fill it in */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* ========================================================  FOOTER  ======= */
.foot { background: var(--deep); color: rgba(255,255,255,.72); padding-block: clamp(2.8rem, 6vw, 4.2rem) 2rem; }
.foot__grid { display: grid; gap: clamp(2rem, 4vw, 2.6rem) 1.5rem; grid-template-columns: 1fr 1fr; }
.foot__brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
}
.foot h4 { color: #fff; margin: 0 0 1rem; font-family: var(--ui); font-weight: 600; font-size: .73rem; }
html[lang="en"] .foot h4 { text-transform: uppercase; letter-spacing: .12em; }
html[lang="ar"] .foot h4 { font-size: .85rem; }
.foot a { text-decoration: none; color: rgba(255,255,255,.72); }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot li + li { margin-top: .5rem; }
.foot ul { font-size: .9rem; }
.foot__logo { display: inline-block; margin-bottom: 1.2rem; }
/* the horizontal logo with white lettering, made for this dark ground */
.foot__logo img { height: 66px; width: auto; max-width: 100%; }
.foot__brand p { font-size: .9rem; color: rgba(255,255,255,.68); max-width: 34ch; margin-bottom: 1rem; }
.foot .foot__phone { display: flex; width: fit-content; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .95rem; color: #fff; }
.foot__phone svg { width: 18px; height: 18px; fill: none; stroke: var(--teal-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot .foot__contact {
  display: inline-block; font-family: var(--ui); font-size: .9rem; font-weight: 600;
  padding: .6em 1.3em; border-radius: 100px; text-decoration: none;
  color: var(--teal-bright); background: rgba(20, 188, 214, .1); border: 1px solid rgba(20, 188, 214, .4);
  transition: background-color .2s, color .2s;
}
.foot .foot__contact:hover { background: var(--teal-bright); color: var(--deep); text-decoration: none; }
.foot__vision-h { margin-top: 1.8rem !important; }

/* The Vision 2030 lockup has a transparent ground and grey artwork, so it sits
   straight on the dark footer (its grey reads ~6.4:1 there) with no plaque. */
.vision { width: 120px; height: auto; margin-top: -.4rem; }

.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: clamp(2.2rem, 5vw, 3.2rem); padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--ui); font-size: .79rem; color: rgba(255,255,255,.6);
}

/* ========================================================  REVEAL  =======
   Gated on .js, which the inline script in <head> sets. Without scripting the
   rule never applies, so the page renders fully visible rather than leaving
   every revealed section stuck at opacity 0. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
