@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
/* YARDX Logistic — main stylesheet
   Layout concept: a precise 12-col grid on wide light surfaces; charcoal bands for contrast;
   red reserved for actions, numerals and thin directional lines taken from the logo's X. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand (official values from COLOR.pdf) */
  --red: #E41718;
  --ink: #1B1C1D;
  --gray: #C5C6C8;
  --paper: #F6F6F6;
  --white: #FFFFFF;
  /* derived neutrals (cool bias of the brand charcoal) */
  --ink-2: #26282A;
  --ink-3: #323437;
  --muted: #55585C;         /* 7:1 on paper */
  --muted-dark: #A7A9AD;    /* 7.6:1 on ink */
  --line: #DCDDDF;
  --line-dark: #3A3C3F;
  --red-tint: #FBE3E3;

  --font: 'IBM Plex Sans Arabic', 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --fs-display: clamp(2.35rem, 1.2rem + 4.6vw, 5.25rem);
  --fs-h1: clamp(2rem, 1.25rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.65rem, 1.15rem + 2vw, 2.85rem);
  --fs-h3: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --fs-lead: clamp(1.05rem, .98rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  --maxw: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 5rem + 4vw, 152px);
  --header-h: 84px;
  --cut: clamp(28px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="en"] body { line-height: 1.6; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.18; font-weight: 800; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon.flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
.skip-link { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
bdi { unicode-bidi: isolate; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em; border: 1.5px solid transparent; border-radius: 2px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon.flip { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon.flip { transform: scaleX(-1) translateX(3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #C81314; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.55); backdrop-filter: none; }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn:disabled { opacity: .6; cursor: progress; }

.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--red); padding-bottom: 3px; }
.text-link:hover .icon.flip { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .icon.flip { transform: scaleX(-1) translateX(3px); }
.text-link .icon { transition: transform .25s var(--ease); color: var(--red); }
.text-link-light { color: var(--white); }

/* ---------- eyebrow ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin-bottom: 18px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-xs); }
.eyebrow-num { color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.eyebrow-line { width: 36px; height: 2px; background: var(--red); flex: none; }
.dark .eyebrow { color: var(--white); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { position: relative; display: block; width: clamp(118px, 10vw, 148px); flex: none; }
.brand img { width: 100%; height: auto; transition: opacity .3s; }
.brand-light { position: absolute; inset: 0; opacity: 0; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: clamp(12px, 2vw, 32px); }
.main-nav a { position: relative; display: block; padding: 8px 0; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 2px; }
.lang-link:hover { border-color: var(--ink); }
.lang-link[lang="en"] { letter-spacing: .06em; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }

/* overlay state over hero video */
.site-header.is-overlay { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; }
.site-header.is-overlay:not(.is-solid) .brand-dark { opacity: 0; }
.site-header.is-overlay:not(.is-solid) .brand-light { opacity: 1; }
.site-header.is-overlay:not(.is-solid) .main-nav a,
.site-header.is-overlay:not(.is-solid) .lang-link,
.site-header.is-overlay:not(.is-solid) .menu-btn { color: var(--white); border-color: rgba(255,255,255,.4); }
.site-header.is-overlay:not(.is-solid)::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(to bottom, rgba(14,15,16,.55), rgba(14,15,16,0)); pointer-events: none; z-index: -1; }
.site-header.is-solid { background: var(--white); border-color: var(--line); box-shadow: 0 1px 0 rgba(27,28,29,.04), 0 10px 30px -18px rgba(27,28,29,.25); }

/* mobile menu */
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--white); overflow-y: auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mobile-nav-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-nav-top img { width: 118px; }
.mobile-nav-top .menu-btn { display: inline-flex; }
.mobile-nav ul { padding-block: 16px; }
.mobile-nav li a { display: flex; align-items: center; min-height: 60px; font-size: 1.35rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav li a[aria-current="page"] { color: var(--red); }
.mobile-nav-actions { display: grid; gap: 12px; padding-block: 16px; }

@media (max-width: 1099px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 767px) { :root { --header-h: 68px; } .brand { width: 108px; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 92svh, 1000px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media, .hero-media > * { position: absolute; inset: 0; }
.hero-poster img, .hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { background:
  linear-gradient(to top, rgba(14,15,16,.86) 0%, rgba(14,15,16,.45) 38%, rgba(14,15,16,.08) 70%, rgba(14,15,16,.25) 100%); }
[dir="rtl"] .hero-shade { background:
  linear-gradient(to top, rgba(14,15,16,.86) 0%, rgba(14,15,16,.45) 38%, rgba(14,15,16,.08) 70%, rgba(14,15,16,.25) 100%),
  linear-gradient(to left, rgba(14,15,16,.35), rgba(14,15,16,0) 55%); }
[dir="ltr"] .hero-shade { background:
  linear-gradient(to top, rgba(14,15,16,.86) 0%, rgba(14,15,16,.45) 38%, rgba(14,15,16,.08) 70%, rgba(14,15,16,.25) 100%),
  linear-gradient(to right, rgba(14,15,16,.35), rgba(14,15,16,0) 55%); }
.hero-content { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(56px, 9vh, 112px); }
.hero h1 { font-size: clamp(2.1rem, .9rem + 3.7vw, 4.6rem); font-weight: 800; max-width: 22ch; line-height: 1.15; }
html[lang="en"] .hero h1 { max-width: 20ch; line-height: 1.05; }
.hero h1 .hl { display: block; overflow: hidden; padding-block: .08em; margin-block: -.08em; }
.hero h1 .hl-in { display: block; }
.hero-rule { display: block; width: clamp(48px, 6vw, 88px); height: 3px; background: var(--red); margin-block: clamp(14px, 1.6vw, 22px) 0; transform-origin: var(--origin-start, right); }
html[dir="ltr"] { --origin-start: left; --origin-end: right; }
html[dir="rtl"] { --origin-start: right; --origin-end: left; }
.hero-text { margin-top: 22px; max-width: 56ch; font-size: var(--fs-lead); line-height: 1.75; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.video-toggle { position: absolute; z-index: 2; inset-inline-end: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(20px, 4vh, 40px); width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(14,15,16,.35); color: var(--white); cursor: pointer; }
.video-toggle:hover { background: rgba(14,15,16,.6); }
.video-toggle .vt-play, .video-toggle[aria-pressed="true"] .vt-pause { display: none; }
.video-toggle[aria-pressed="true"] .vt-play { display: inline-flex; }
@media (max-width: 767px) {
  .hero { min-height: max(600px, 100svh); }
  .hero-actions .btn { flex: 1 1 100%; }
  .video-toggle { bottom: auto; top: calc(var(--header-h) + 12px); }
}

/* ---------- facts ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 32px); border-inline-start: 1px solid var(--line); }
.fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fact dd { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fact-text dd { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.fact-unit { font-size: .55em; color: var(--red); font-weight: 700; }
.fact dt { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.fact::before { content: ''; order: 3; width: 22px; height: 3px; background: var(--red); margin-bottom: 8px; }
@media (max-width: 899px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding-inline: 16px; }
  .fact:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section + .section:not(.dark):not(.coverage-band) { padding-top: 0; }
.dark { background: var(--ink); color: var(--white); }
.dark + .section { padding-top: var(--section) !important; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: var(--fs-lead); max-width: 60ch; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head-row > p { margin-top: 0; max-width: 46ch; }
.h-sm { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.h-xs { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }

/* diagonal cuts derived from the X in the logo */
.cut-start, .cut-end { overflow: hidden; }
[dir="rtl"] .cut-start, [dir="ltr"] .cut-end { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
[dir="ltr"] .cut-start, [dir="rtl"] .cut-end { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* reveal (visible by default; enhanced only when JS adds .js-reveal) */
/* content is always visible; entering images only settle from a slight zoom */

@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.is-in picture img { animation: none; } }

/* ---------- about teaser ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.about-media { grid-column: 1 / span 7; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text { grid-column: 8 / span 5; }
.about-text h2 { font-size: var(--fs-h2); margin-bottom: 24px; }
.about-text p { color: var(--muted); }
.about-text p + p { margin-top: 14px; }
.about-text .text-link { margin-top: 28px; }
@media (max-width: 899px) { .about-media, .about-text { grid-column: 1 / -1; } }

/* ---------- services (home) ---------- */
.svc-card { position: relative; background: var(--white); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(27,28,29,.45); }
.svc-link { position: absolute; inset: 0; z-index: 2; }
.svc-link:focus-visible { outline-offset: -3px; }
.svc-media { overflow: hidden; }
.svc-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-body { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; flex: 1; border-top: 3px solid var(--ink); }
.svc-body .text-link { margin-top: auto; align-self: flex-start; }
.svc-body p { color: var(--muted); font-size: var(--fs-sm); }
.svc-num { font-weight: 800; color: var(--red); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.svc-card h3 { font-size: var(--fs-h3); }
.svc-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(16px, 2vw, 28px); }
.svc-card-lg .svc-media img { aspect-ratio: 3 / 2; }
.svc-card-lg h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); }
.svc-card-lg .svc-body { border-top-color: var(--red); }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.svc-grid .text-link { font-size: var(--fs-sm); }
@media (max-width: 1099px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .svc-featured, .svc-grid { grid-template-columns: 1fr; } }

/* ---------- journey ---------- */
.journey-section { background: var(--white); padding-top: var(--section) !important; }
.journey { position: relative; }
.journey-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; position: relative; }
.journey-steps::before { content: ''; position: absolute; inset-inline: 0; top: 23px; height: 1px; background: repeating-linear-gradient(to right, var(--ink) 0 6px, transparent 6px 12px); }
.journey-step { position: relative; padding-inline-end: clamp(12px, 2vw, 28px); }
.journey-num { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--ink); color: var(--white); font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; margin-bottom: 20px; }
.journey-step:last-child .journey-num { background: var(--red); }
.journey-step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.journey-step p { color: var(--muted); font-size: var(--fs-sm); }
.journey-safety { margin-top: 32px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1.5px solid var(--red); background: linear-gradient(90deg, var(--red-tint), var(--white)); }
[dir="rtl"] .journey-safety { background: linear-gradient(270deg, var(--red-tint), var(--white)); }
.journey-safety .icon { width: 32px; height: 32px; color: var(--red); }
.journey-safety strong { display: block; font-size: var(--fs-h3); }
.journey-safety span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 899px) {
  .journey-steps { grid-template-columns: 1fr; gap: 0; }
  .journey-steps::before { inset-inline-start: 23px; inset-inline-end: auto; top: 0; bottom: 0; width: 1px; height: auto; background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 12px); }
  .journey-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding-bottom: 24px; }
  .journey-num { grid-row: span 2; margin: 0; }
  .journey-safety { align-items: flex-start; }
}
.scope .journey-steps::before { top: 23px; }

/* ---------- infrastructure (home) ---------- */
.infra-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); align-items: start; }
.infra-media { grid-column: 1 / span 7; position: relative; padding-bottom: clamp(60px, 10vw, 140px); }
.infra-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.infra-detail { position: absolute; bottom: 0; inset-inline-end: clamp(-12px, -1vw, 0px); width: 46%; border: 6px solid var(--ink); }
.infra-detail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.infra-text { grid-column: 8 / span 5; }
.infra-text h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.infra-text > p { color: var(--muted-dark); }
.infra-list { margin-block: 32px; display: grid; gap: 0; }
.infra-list li { display: flex; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line-dark); }
.infra-list .icon { color: var(--red); width: 24px; height: 24px; margin-top: 3px; }
.infra-list strong { display: block; font-weight: 700; }
.infra-list span { color: var(--muted-dark); font-size: var(--fs-sm); }
@media (max-width: 899px) { .infra-media, .infra-text { grid-column: 1 / -1; } }

/* ---------- coverage map ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.coverage-text { grid-column: 1 / span 5; }
.coverage-text h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.coverage-text p { color: var(--muted); }
.map-figure { grid-column: 6 / -1; margin: 0; }
.coverage-map { width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); }
.map-context path { fill: #ECEDEE; stroke: #D3D4D6; stroke-width: .8; }
.map-gcc path { fill: var(--white); stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 5 4; }
.map-ksa { fill: url(#hatch); stroke: var(--red); stroke-width: 2; }
.map-routes path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.map-routes circle { fill: var(--ink); }
.map-labels text { font-family: var(--font); font-size: 17px; font-weight: 700; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--white); stroke-width: 4px; }
.map-labels .map-label-ksa { font-size: 24px; font-weight: 800; }
.map-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 20px; }
.legend-item { display: flex; gap: 12px; align-items: flex-start; }
.legend-item strong { display: block; font-size: var(--fs-sm); }
.legend-item span { font-size: var(--fs-xs); color: var(--muted); }
.swatch { width: 28px; height: 20px; flex: none; margin-top: 4px; }
.swatch-storage { background: repeating-linear-gradient(45deg, var(--red-tint) 0 4px, rgba(228,23,24,.55) 4px 6px); border: 2px solid var(--red); }
.swatch-transport { border: 2px dashed var(--red); background: var(--white); }
.map-note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 899px) { .coverage-text, .map-figure { grid-column: 1 / -1; } }
@media (max-width: 479px) { .map-legend { grid-template-columns: 1fr; } }
.coverage-band { background: var(--white); }

/* ---------- why ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); align-items: center; }
.why-media { grid-column: 1 / span 5; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.why-text { grid-column: 6 / -1; }
.why-text h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.why-text > p { color: var(--muted); margin-bottom: 8px; }
.why-list { counter-reset: w; margin-top: 20px; }
.why-list li { counter-increment: w; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-block: 18px; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list li::before { content: counter(w, decimal-leading-zero); font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.why-list strong { display: block; font-size: var(--fs-h3); }
.why-list span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 899px) { .why-media, .why-text { grid-column: 1 / -1; } .why-media img { aspect-ratio: 16 / 10; } }
.why-alt { padding-top: var(--section) !important; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding-block: clamp(64px, 8vw, 120px); }
.cta-lines { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(45%, 560px); height: 100%; opacity: .9; }
[dir="ltr"] .cta-lines { transform: scaleX(-1); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner > div { max-width: 640px; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.cta-band p { color: var(--muted-dark); font-size: var(--fs-lead); }
@media (max-width: 767px) { .cta-lines { width: 100%; opacity: .35; } .cta-inner .btn { width: 100%; } }

/* ---------- footer ---------- */
.site-footer { background: #141516; color: var(--white); padding-top: clamp(56px, 6vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted-dark); font-size: var(--fs-sm); max-width: 36ch; }
.footer-tagline { margin-top: 14px; color: var(--white) !important; font-weight: 600; }
.site-footer h2 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 16px; color: var(--white); }
html[lang="en"] .site-footer h2 { text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--red); }
.footer-lang { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-dark); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; color: var(--muted-dark); font-size: var(--fs-xs); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--white); padding-top: clamp(40px, 5vw, 80px); }
.page-hero-text { max-width: 880px; padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: 22px; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 62ch; }
.page-hero-media img { width: 100%; height: clamp(240px, 42vw, 560px); object-fit: cover; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-inline-end: 6px; color: var(--gray); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero + .section { padding-top: var(--section) !important; }

/* about page */
.prose-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.prose { grid-column: 1 / span 7; font-size: 1.125rem; }
.prose p + p { margin-top: 18px; }
.mini-facts { grid-column: 9 / -1; margin: 0; display: grid; gap: 0; align-content: start; }
.mini-facts div { padding-block: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column-reverse; }
.mini-facts dd { margin: 0; font-weight: 800; font-size: 1.6rem; line-height: 1.2; }
.mini-facts dd span { color: var(--red); font-size: .6em; }
.mini-facts dt { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 899px) { .prose, .mini-facts { grid-column: 1 / -1; } }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); }
.vm-item { border-top: 3px solid var(--red); padding-top: 28px; }
.vm-item .icon { width: 36px; height: 36px; color: var(--red); margin-bottom: 18px; }
.vm-item h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.vm-item p { color: var(--muted-dark); font-size: var(--fs-lead); }
@media (max-width: 767px) { .vm-grid { grid-template-columns: 1fr; } }
.belief { background: var(--white); }
.belief-grid { max-width: 980px; }
.belief blockquote { margin: 0; font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.15rem); font-weight: 600; line-height: 1.55; border-inline-start: 3px solid var(--red); padding-inline-start: clamp(18px, 3vw, 40px); }

/* services page */
.svc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc-row:first-child { padding-top: 0; }
.svc-row-media { grid-column: 1 / span 6; }
.svc-row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-row-body { grid-column: 7 / -1; }
.svc-row-alt .svc-row-media { grid-column: 7 / -1; grid-row: 1; }
.svc-row-alt .svc-row-body { grid-column: 1 / span 6; grid-row: 1; }
.svc-row h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.2rem); margin-block: 8px 16px; }
.svc-row-body > p { color: var(--muted); }
.tick-list { display: grid; gap: 10px; margin-block: 22px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: var(--red); margin-top: 4px; }
.row-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
@media (max-width: 899px) { .svc-row-media, .svc-row-body, .svc-row-alt .svc-row-media, .svc-row-alt .svc-row-body { grid-column: 1 / -1; grid-row: auto; } }

/* service detail */
.svc-hero { padding-bottom: 0; }
.svc-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); align-items: end; }
.svc-hero-grid .page-hero-text { grid-column: 1 / span 6; }
.svc-hero-media { grid-column: 7 / -1; align-self: stretch; }
.svc-hero-media img { width: 100%; height: 100%; min-height: 320px; max-height: 600px; object-fit: cover; }
@media (max-width: 899px) { .svc-hero-grid .page-hero-text, .svc-hero-media { grid-column: 1 / -1; } .svc-hero-media { margin-inline: calc(-1 * var(--gutter)); } .svc-hero-media img { min-height: 0; aspect-ratio: 4 / 3; height: auto; } }
.scope .h-sm { margin-bottom: 36px; }
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.scope-item { padding: 28px clamp(16px, 2vw, 28px) 28px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .scope-item { padding: 28px 0 28px clamp(16px, 2vw, 28px); }
.scope-item + .scope-item { padding-inline-start: clamp(16px, 2vw, 28px); border-inline-start: 1px solid var(--line); }
.scope-grid .scope-item:nth-child(3n+1) { border-inline-start: 0; padding-inline-start: 0; }
.scope-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--red-tint); color: var(--red); margin-bottom: 16px; }
.scope-item h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.scope-item p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 899px) { .scope-grid { grid-template-columns: 1fr 1fr; } .scope-grid .scope-item:nth-child(3n+1) { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(16px, 2vw, 28px); } .scope-grid .scope-item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; } }
@media (max-width: 559px) { .scope-grid { grid-template-columns: 1fr; } .scope-grid .scope-item { border-inline-start: 0 !important; padding-inline-start: 0 !important; } }
.route { margin-top: 48px; }
.route ol { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.route li span { display: inline-block; padding: 12px 18px; background: var(--white); border: 1px solid var(--line); font-weight: 700; }
.route li:last-child span { border-color: var(--red); color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.route-arrow .icon { color: var(--red); }
.benefits-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 48px; }
.benefits-grid h2 { grid-column: 1 / span 4; font-size: var(--fs-h2); }
.benefits-grid ul { grid-column: 5 / -1; display: grid; gap: 0; }
.benefits-grid li { display: flex; gap: 14px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line-dark); font-size: var(--fs-h3); font-weight: 600; }
.benefits-grid li .icon { color: var(--red); }
.benefits-note { grid-column: 5 / -1; color: var(--muted-dark); font-size: var(--fs-sm); border-inline-start: 2px solid var(--red); padding-inline-start: 14px; }
@media (max-width: 899px) { .benefits-grid h2, .benefits-grid ul, .benefits-note { grid-column: 1 / -1; } }
.others-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.others-list a { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 16px 20px; background: var(--white); text-decoration: none; font-weight: 700; border-bottom: 2px solid transparent; transition: border-color .2s; }
.others-list a:hover { border-color: var(--red); }
.others-list a .icon { margin-inline-start: auto; color: var(--red); }

/* infrastructure page */
.infra-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.infra-group { background: var(--white); padding-bottom: 8px; }
.infra-group-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.infra-group h2 { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); padding: 24px 24px 0; }
.infra-group h2 .icon { color: var(--red); width: 28px; height: 28px; }
.infra-group .tick-list { padding-inline: 24px; font-size: var(--fs-sm); }
@media (max-width: 1023px) { .infra-groups { grid-template-columns: 1fr; } .infra-group { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } .infra-group-media { grid-row: span 2; height: 100%; } .infra-group-media img { height: 100%; } }
@media (max-width: 639px) { .infra-group { display: block; } .infra-group-media { height: auto; } .infra-group-media img { height: auto; aspect-ratio: 3 / 2; } }
.solutions h2 { font-size: var(--fs-h2); margin-bottom: 40px; max-width: 20ch; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.solutions-grid article { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.solutions-grid .icon { width: 32px; height: 32px; color: var(--red); margin-bottom: 16px; }
.solutions-grid h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.solutions-grid p { color: var(--muted-dark); font-size: var(--fs-sm); }
@media (max-width: 899px) { .solutions-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); align-items: start; }
.quote-form { grid-column: 1 / span 8; background: var(--white); padding: clamp(20px, 3.5vw, 48px); display: grid; gap: 22px; }
.contact-aside { grid-column: 9 / -1; display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1023px) { .quote-form, .contact-aside { grid-column: 1 / -1; } .contact-aside { position: static; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-bottom: 2px solid var(--gray); border-radius: 0; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
[dir="rtl"] .field select { background-position: 16px 50%, 22px 50%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-bottom-color: var(--ink); box-shadow: 0 0 0 2px rgba(27,28,29,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--red); background: #FFF7F7; }
.field-error { color: #B3100F; font-size: var(--fs-xs); font-weight: 600; }
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.extra-fields { border: 1px dashed var(--gray); padding: 18px; margin: 0; min-width: 0; }
.extra-fields legend { padding-inline: 8px; font-weight: 700; font-size: var(--fs-sm); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: 14px 16px; border-inline-start: 3px solid var(--red); background: #FFF4F4; font-weight: 600; color: #8E0C0C; }
.form-status:empty { display: none; }
.form-status { padding: 16px 18px; font-weight: 600; }
.form-status.is-ok { background: #EEF7F0; border-inline-start: 3px solid #1E7B3A; color: #14532A; }
.form-status.is-err { background: #FFF4F4; border-inline-start: 3px solid var(--red); color: #8E0C0C; }
.form-status a { font-weight: 800; }
.contact-card { background: var(--ink); color: var(--white); padding: clamp(24px, 3vw, 36px); display: grid; gap: 6px; }
.contact-card .h-xs { color: var(--muted-dark); margin-top: 12px; }
.contact-card .h-xs:first-child { margin-top: 0; }
.contact-value a { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: var(--white); border-bottom: 1px solid var(--red); }
.contact-card .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); margin-top: 6px; justify-self: start; }
.contact-card .btn-outline:hover { background: var(--white); color: var(--ink); }
.contact-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.nf { text-align: center; padding-block: 64px; }
.nf img { margin: 0 auto 24px; width: 180px; }
.nf-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; color: var(--red); line-height: 1; }
.nf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; text-align: start; }
.nf-cols h1, .nf-cols h2 { font-size: 1.5rem; margin-bottom: 8px; }
.nf-cols p { color: var(--muted); margin-bottom: 18px; }
@media (max-width: 639px) { .nf-cols { grid-template-columns: 1fr; } }

@media print { .site-header, .hero-media, .video-toggle, .cta-band, .site-footer { display: none; } }
@media (max-width: 639px) { .map-labels text { font-size: 28px; stroke-width: 6px; } .map-labels .map-label-ksa { font-size: 38px; } }
/* collapse every 12-column grid to a single track on narrow screens */
@media (max-width: 899px) {
  .about-grid, .infra-grid, .coverage-grid, .why-grid, .prose-grid, .svc-row, .svc-hero-grid, .benefits-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid > *, .infra-grid > *, .coverage-grid > *, .why-grid > *, .prose-grid > *, .svc-row > *, .svc-hero-grid > *, .benefits-grid > *, .contact-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
}
@media (max-width: 1023px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   MOTION SYSTEM
   - Everything here is gated by prefers-reduced-motion: no-preference.
   - Scroll reveals only apply to elements the script marks (below the fold),
     so content above the fold is never hidden and the page reads without JS.
   - Only opacity / transform / clip-path / stroke-dashoffset are animated.
   ===================================================================== */
:root { --e-out: cubic-bezier(.16, 1, .3, 1); --e-io: cubic-bezier(.65, 0, .35, 1); --d: .9s; }

/* scroll progress */
.scroll-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: var(--origin-start); }

/* button fill sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: var(--origin-end); transition: transform .55s var(--e-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: var(--origin-start); }
.btn-red::before { background: var(--ink); }
.btn-red:hover { background: var(--red); }
.btn-dark::before { background: var(--red); }
.btn-dark:hover { background: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { background: transparent; }
.btn-ghost::before { background: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn:active { transform: scale(.98); }

/* link underline draw */
.text-link { border-bottom: 0; background: linear-gradient(var(--red), var(--red)) no-repeat; background-size: 100% 1.5px; background-position: 100% 100%; transition: background-size .5s var(--e-out); }
.text-link:hover { background-size: 0% 1.5px; }
[dir="rtl"] .text-link { background-position: 0 100%; }

/* service cards: red rule draws across the top edge of the body */
.svc-body { position: relative; }
.svc-body::before { content: ''; position: absolute; inset-inline: 0; top: -3px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: var(--origin-start); transition: transform .6s var(--e-out); }
.svc-card:hover .svc-body::before { transform: scaleX(1); }
.svc-card .svc-media img { transition: transform 1.2s var(--e-out), filter .6s; }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-card .text-link .icon { transition: transform .4s var(--e-out); }
.svc-card:hover .text-link .icon.flip { transform: translateX(5px); }
[dir="rtl"] .svc-card:hover .text-link .icon.flip { transform: scaleX(-1) translateX(5px); }
.svc-num { display: inline-flex; align-items: center; gap: 8px; }
.svc-num::after { content: ''; width: 18px; height: 1.5px; background: currentColor; transition: width .5s var(--e-out); }
.svc-card:hover .svc-num::after, .svc-row:hover .svc-num::after { width: 40px; }

.others-list a { position: relative; overflow: hidden; isolation: isolate; transition: color .4s; }
.others-list a::before { content: ''; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: translateY(101%); transition: transform .5s var(--e-out); }
.others-list a:hover { color: var(--white); border-color: var(--red); }
.others-list a:hover::before { transform: none; }
.others-list a:hover .svc-num { color: var(--white); }

.why-list li, .infra-list li { position: relative; }
.why-list li::after { content: ''; position: absolute; inset-inline-start: 0; top: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: var(--origin-start); transition: transform .7s var(--e-out); }
.why-list li:hover::after { transform: scaleX(1); }
.why-list li strong { transition: transform .5s var(--e-out); }
.why-list li:hover strong { transform: translateX(calc(var(--dirx, 1) * 6px)); }
[dir="rtl"] { --dirx: -1; }

/* header hide on scroll down / show on scroll up */
.site-header { transition: transform .5s var(--e-out), background-color .3s, border-color .3s, box-shadow .3s; }
.site-header.is-hidden { transform: translateY(-100%); }

/* map: hatch + dashed GCC outlines + routes */
.map-routes path { stroke-dasharray: 1; stroke-dashoffset: 0; stroke-width: 1.2; opacity: .75; }

/* cross-document page transitions (Chrome, Edge, Safari 18.2+) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.scroll-progress { view-transition-name: progress; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .35s var(--e-io) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--e-out) .1s both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }

  /* ---- hero intro (pure CSS, starts immediately, no JS needed) ---- */
  .hero-poster img { animation: hero-zoom 2.6s var(--e-out) backwards; }
  .hero h1 .hl-in { animation: line-up 1.1s var(--e-out) backwards; }
  .hero h1 .hl:nth-of-type(1) .hl-in { animation-delay: .15s; }
  .hero h1 .hl:nth-of-type(2) .hl-in { animation-delay: .32s; }
  .hero-rule { animation: rule-in 1s var(--e-out) .55s backwards; }
  .hero-text { animation: fade-up 1s var(--e-out) .6s backwards; }
  .hero-actions > * { animation: fade-up .9s var(--e-out) backwards; }
  .hero-actions > :nth-child(1) { animation-delay: .75s; }
  .hero-actions > :nth-child(2) { animation-delay: .85s; }
  .page-home .site-header { animation: drop-in .9s var(--e-out) .2s backwards; }
  .page-hero .page-hero-text > * { animation: fade-up .9s var(--e-out) backwards; }
  .page-hero .page-hero-text > :nth-child(2) { animation-delay: .08s; }
  .page-hero .page-hero-text > :nth-child(3) { animation-delay: .16s; }
  .page-hero .page-hero-text > :nth-child(4) { animation-delay: .24s; }
  .page-hero .page-hero-text > :nth-child(5) { animation-delay: .32s; }
  .page-hero-media, .svc-hero-media { animation: wipe-in 1.4s var(--e-io) .2s backwards; }
  .page-hero-media img, .svc-hero-media img { animation: hero-zoom 2.2s var(--e-out) .2s backwards; }

  @keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
  @keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes drop-in { from { transform: translateY(-100%); } to { transform: none; } }
  @keyframes wipe-in { from { clip-path: polygon(0 0, 100% 0, 100% 0, 100% 0, 0 0); } }

  /* ---- scroll reveals (classes set by main.js on below-the-fold elements) ---- */
  [data-reveal] { --delay: calc(var(--i, 0) * 90ms); }
  [data-reveal="up"] { opacity: 0; transform: translateY(40px); transition: opacity var(--d) var(--e-out) var(--delay), transform var(--d) var(--e-out) var(--delay); }
  [data-reveal="up"].in { opacity: 1; transform: none; }
  [data-reveal="fade"] { opacity: 0; transition: opacity 1.2s var(--e-out) var(--delay); }
  [data-reveal="fade"].in { opacity: 1; }

  /* image wipe: curtain opens from the reading-start edge, image settles */
  [data-reveal="wipe"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--e-io) var(--delay); }
  [dir="rtl"] [data-reveal="wipe"] { clip-path: inset(0 0 0 100%); }
  [data-reveal="wipe"].in { clip-path: inset(0 0 0 0); }
  [data-reveal="wipe"] img { transform: scale(1.18); transition: transform 1.8s var(--e-out) var(--delay); }
  [data-reveal="wipe"].in img { transform: none; }
  /* elements that keep their diagonal cut after the wipe */
  [dir="rtl"] .cut-start[data-reveal="wipe"].in, [dir="ltr"] .cut-end[data-reveal="wipe"].in { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
  [dir="ltr"] .cut-start[data-reveal="wipe"].in, [dir="rtl"] .cut-end[data-reveal="wipe"].in { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
  [dir="rtl"] .cut-start[data-reveal="wipe"]:not(.in), [dir="rtl"] .cut-end[data-reveal="wipe"]:not(.in) { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
  [dir="ltr"] .cut-start[data-reveal="wipe"]:not(.in), [dir="ltr"] .cut-end[data-reveal="wipe"]:not(.in) { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 0 100%); }

  /* headings: word-by-word rise behind a mask */
  [data-reveal="words"] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em; margin-block: -.1em; }
  [data-reveal="words"] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--e-out) calc(var(--wi) * 55ms); }
  [data-reveal="words"].in .w > span { transform: none; }

  /* journey: connector draws, numbers light up in sequence */
  .journey[data-reveal] .journey-steps::before { transform: scaleX(0); transform-origin: var(--origin-start); transition: transform 1.8s var(--e-io) .1s; }
  .journey[data-reveal].in .journey-steps::before { transform: scaleX(1); }
  .journey[data-reveal] .journey-step { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--e-out), transform .8s var(--e-out); }
  .journey[data-reveal].in .journey-step { opacity: 1; transform: none; }
  .journey[data-reveal] .journey-num { transform: scale(.4) rotate(-45deg); transition: transform .8s var(--e-out); }
  .journey[data-reveal].in .journey-num { transform: none; }
  .journey[data-reveal].in .journey-step:nth-child(1), .journey[data-reveal].in .journey-step:nth-child(1) .journey-num { transition-delay: .15s; }
  .journey[data-reveal].in .journey-step:nth-child(2), .journey[data-reveal].in .journey-step:nth-child(2) .journey-num { transition-delay: .45s; }
  .journey[data-reveal].in .journey-step:nth-child(3), .journey[data-reveal].in .journey-step:nth-child(3) .journey-num { transition-delay: .75s; }
  .journey[data-reveal].in .journey-step:nth-child(4), .journey[data-reveal].in .journey-step:nth-child(4) .journey-num { transition-delay: 1.05s; }
  .journey[data-reveal].in .journey-step:nth-child(5), .journey[data-reveal].in .journey-step:nth-child(5) .journey-num { transition-delay: 1.35s; }
  .journey[data-reveal].in .journey-step:nth-child(6), .journey[data-reveal].in .journey-step:nth-child(6) .journey-num { transition-delay: 1.65s; }
  .journey[data-reveal] .journey-safety { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--e-io) .4s; }
  [dir="rtl"] .journey[data-reveal] .journey-safety { clip-path: inset(0 0 0 100%); }
  .journey[data-reveal].in .journey-safety { clip-path: inset(0 0 0 0); }
  @media (max-width: 899px) {
    .journey[data-reveal] .journey-steps::before { transform: scaleY(0); transform-origin: top; }
    .journey[data-reveal].in .journey-steps::before { transform: scaleY(1); }
  }
  .journey-safety .icon { animation: pulse-soft 3s ease-in-out infinite; }
  @keyframes pulse-soft { 50% { transform: scale(1.12); } }

  /* facts: red bars grow, values rise */
  .fact[data-reveal]::before { transform: scaleX(0); transform-origin: var(--origin-start); transition: transform .9s var(--e-out) calc(var(--delay) + .2s); }
  .fact[data-reveal].in::before { transform: scaleX(1); }

  /* map */
  .coverage-map[data-reveal] .map-ksa { opacity: 0; transform: scale(.96); transform-origin: 40% 50%; transform-box: fill-box; transition: opacity 1.2s var(--e-out), transform 1.4s var(--e-out); }
  .coverage-map[data-reveal].in .map-ksa { opacity: 1; transform: none; }
  .coverage-map[data-reveal] .map-gcc path { opacity: 0; transition: opacity 1s var(--e-out) .5s; }
  .coverage-map[data-reveal].in .map-gcc path { opacity: 1; }
  .coverage-map .map-gcc path { animation: march 1.6s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -18; } }
  .coverage-map[data-reveal] .map-routes path { stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 2.2s var(--e-io) .8s, opacity .3s .8s; }
  .coverage-map[data-reveal].in .map-routes path { stroke-dashoffset: 0; opacity: .75; }
  .coverage-map[data-reveal] .map-labels { opacity: 0; transition: opacity 1s var(--e-out) 1.6s; }
  .coverage-map[data-reveal].in .map-labels { opacity: 1; }
  .map-routes circle { transform-box: fill-box; transform-origin: center; animation: hub 2.4s var(--e-out) infinite; }
  @keyframes hub { 0% { opacity: 1; } 70% { opacity: .35; } 100% { opacity: 1; } }

  /* CTA lines draw */
  .cta-lines[data-reveal] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--e-io); }
  .cta-lines[data-reveal] path:nth-child(2) { transition-delay: .25s; }
  .cta-lines[data-reveal] path:nth-child(3) { transition-delay: .5s; }
  .cta-lines[data-reveal].in path { stroke-dashoffset: 0; }

  /* scroll-linked parallax (transform set by main.js) */
  [data-parallax] { will-change: transform; }
}
/* Arabic hero tuning so each line stays on one row */
html[lang="ar"] .hero h1 { font-size: clamp(2rem, .7rem + 4.2vw, 4.8rem); max-width: 28ch; line-height: 1.3; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.35; }
.infra-group-media, .svc-media, .svc-row-media, .contact-media, .about-media, .why-media, .infra-main, .page-hero-media, .svc-hero-media { overflow: hidden; }
