/* ==========================================================================
   United Energy Engineering — main stylesheet
   Corporate style inspired by enterprise group sites: solid brand bar,
   framed hero, tall image cards, square corners. Bilingual (RTL/LTR) via
   logical properties.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --navy: #282F8E;          /* logo colour */
    --navy-700: #1F2577;
    --navy-800: #181D63;
    --navy-900: #10143F;
    --ink: #0D1030;
    --red: #D42F25;           /* 4.9:1 with white */
    --red-700: #B3241B;
    --blue: #2F6FE0;
    --text: #1A1D2E;
    --muted: #535A74;         /* 6.6:1 on white */
    --muted-light: #C5C9E4;
    --bg: #FFFFFF;
    --tint: #F3F5FA;
    --line: #E1E4EE;
    --line-dark: rgba(255, 255, 255, .14);

    --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 2px;
    --topbar-h: 38px;
    --mainbar-h: 80px;
    --section-y: clamp(72px, 10vw, 128px);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow: 0 18px 40px -18px rgba(16, 20, 63, .28);
}
html[lang="ar"] { --font: "Noto Sans Arabic", "Noto Sans", system-ui, "Segoe UI", Tahoma, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mainbar-h) + 24px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy-900); color: #fff; }

.skip-link {
    position: fixed; inset-inline-start: 16px; top: -100px; z-index: 200;
    background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Icons */
.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.icon--up { transform: rotate(-90deg); }

/* ---------- Typography ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red); margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9375rem; }
.eyebrow__dot { width: 22px; height: 3px; background: currentColor; }
.eyebrow--light { color: #fff; }
.eyebrow--light .eyebrow__dot { background: var(--red); }

.h2 {
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
    max-width: 22ch; text-wrap: balance;
}
html[lang="ar"] .h2 { line-height: 1.4; letter-spacing: 0; }
.h2--light { color: #fff; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; font-weight: 700; color: var(--ink); }
html[lang="ar"] .h3 { line-height: 1.5; }
.section--navy .h3 { color: #fff; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); margin-top: 22px; max-width: 60ch; }
.lead--light { color: var(--muted-light); }

/* Split headline words (JS) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- Buttons & links ---------- */
.btn {
    --bh: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: var(--bh); padding: 0 26px;
    font-weight: 600; font-size: 1rem; line-height: 1;
    border: 1.5px solid transparent; border-radius: var(--radius);
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
    position: relative; isolation: isolate; overflow: hidden; white-space: nowrap; cursor: pointer;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon--dir { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon--dir { transform: scaleX(-1) translateX(4px); }
.btn--sm { --bh: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--lg { --bh: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--tint); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    font-weight: 700; color: var(--navy); padding-bottom: 6px;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 2px;
    transition: background-size .4s var(--ease), color .25s;
}
[dir="rtl"] .link-arrow { background-position: 100% 100%; }
.link-arrow:hover { color: var(--red); background-size: 40% 2px; }
.link-arrow--light { color: #fff; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .scroll-progress span { transform-origin: 100% 50%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: transform .45s var(--ease); }
.site-header.is-condensed { transform: translateY(calc(var(--topbar-h) * -1)); }
.site-header.is-hidden { transform: translateY(calc((var(--topbar-h) + var(--mainbar-h)) * -1)); }

.topbar { background: var(--navy-900); color: #DADDF2; font-size: .8125rem; height: var(--topbar-h); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__end { display: flex; align-items: center; gap: 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
a.topbar__item:hover { color: #fff; }
.topbar__lang { font-weight: 600; color: #fff; }

/* White main bar so the full-colour logo sits naturally; the navy top strip carries the brand colour. */
.mainbar {
    background: #fff; color: var(--ink); height: var(--mainbar-h);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.is-condensed .mainbar { box-shadow: 0 10px 30px -18px rgba(16, 20, 63, .35); }
.mainbar__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 14px; height: 100%; flex: none; }
.brand__logo { height: 62px; width: auto; transition: transform .4s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__text {
    display: flex; flex-direction: column; line-height: 1.15;
    padding-inline-start: 14px; border-inline-start: 2px solid var(--line);
}
.brand__text strong { font-size: 1.12rem; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.brand__text small { font-size: .72rem; font-weight: 600; color: var(--red); letter-spacing: .26em; text-transform: uppercase; }
html[lang="ar"] .brand__text strong { font-size: 1.2rem; letter-spacing: 0; }
html[lang="ar"] .brand__text small { letter-spacing: 0; font-size: .9rem; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
    font-weight: 600; font-size: .98rem; color: var(--text); transition: color .2s;
}
.nav__link::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--red);
    transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.mainbar__actions { display: flex; align-items: center; gap: 12px; }
.lang-pill {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
    border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, border-color .2s;
}
.lang-pill:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.menu-toggle {
    display: none; width: 48px; height: 48px; border: 0; background: var(--navy);
    flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-toggle__bar { width: 22px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 90; background: var(--navy-900); color: #fff;
    padding: calc(var(--mainbar-h) + 40px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__link {
    display: flex; align-items: baseline; gap: 16px; padding: 12px 0;
    font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 700; border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__link.is-active { color: #9EAAFF; }
.mobile-menu__num { font-size: .85rem; color: var(--red); font-weight: 700; }
.mobile-menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; color: var(--muted-light); }
.mobile-menu__lang { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 600; }

/* ---------- Hero (framed banner) ---------- */
.hero { position: relative; padding-top: 0; }
.hero__frame {
    position: relative; overflow: hidden; color: #fff;
    height: clamp(580px, 86vh, 860px);
    clip-path: inset(24px var(--gutter) 0 var(--gutter));
    display: flex; align-items: flex-end;
}
.hero__media, .page-hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 115%; object-fit: cover; object-position: center 40%; will-change: transform; }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 16, 48, .92) 0%, rgba(16, 20, 63, .7) 42%, rgba(16, 20, 63, .1) 80%),
        linear-gradient(0deg, rgba(13, 16, 48, .75) 0%, rgba(13, 16, 48, 0) 45%);
}
[dir="rtl"] .hero__shade {
    background:
        linear-gradient(270deg, rgba(13, 16, 48, .92) 0%, rgba(16, 20, 63, .7) 42%, rgba(16, 20, 63, .1) 80%),
        linear-gradient(0deg, rgba(13, 16, 48, .75) 0%, rgba(13, 16, 48, 0) 45%);
}
.hero__content { position: relative; z-index: 2; padding-block: 0 clamp(64px, 10vh, 110px); padding-inline: calc(var(--gutter) * 2); }
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
    font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
}
html[lang="ar"] .hero__title { line-height: 1.28; letter-spacing: 0; font-size: clamp(2.5rem, 6vw, 5.2rem); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line__inner { display: block; }
.hero__title .line:last-child .line__inner { color: #fff; }
.hero__title .line:last-child .line__inner::after {
    content: ""; display: inline-block; width: .32em; height: .32em; background: var(--red); margin-inline-start: .12em;
}
.hero__lead { max-width: 56ch; margin-top: 26px; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: #DADDF2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__badge {
    position: absolute; z-index: 2; inset-inline-end: calc(var(--gutter) * 2); bottom: clamp(64px, 10vh, 110px);
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 600; font-size: .95rem;
}
.hero__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--red); }
.hero__scroll {
    position: absolute; z-index: 2; bottom: 18px; left: 50%; translate: -50% 0;
    width: 44px; height: 56px; display: grid; justify-items: center;
}
.hero__scroll-line { width: 2px; height: 46px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__scroll-line::after {
    content: ""; position: absolute; inset-inline: 0; top: -40%; height: 40%; background: #fff;
    animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Page hero ---------- */
.page-hero__frame {
    position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
    height: clamp(400px, 58vh, 580px);
    clip-path: inset(24px var(--gutter) 0 var(--gutter));
}
.page-hero__content { position: relative; z-index: 2; padding-block: 0 clamp(48px, 8vh, 80px); padding-inline: calc(var(--gutter) * 2); }
.page-hero__title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
html[lang="ar"] .page-hero__title { line-height: 1.35; letter-spacing: 0; }
.page-hero__lead { max-width: 60ch; margin-top: 20px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: #DADDF2; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--muted-light); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; opacity: .6; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__value { font-size: clamp(2rem, 3.8vw, 3.3rem); font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.counter { direction: ltr; unicode-bidi: isolate; }
.stat__suffix { font-size: .45em; font-weight: 700; color: var(--red); margin-inline-start: 4px; letter-spacing: 0; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 24ch; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__media { position: relative; padding-bottom: 70px; padding-inline-end: 70px; }
.intro__img { overflow: hidden; }
.intro__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.intro__img--small {
    position: absolute; inset-inline-end: 0; bottom: 0; width: 42%;
    border: 8px solid #fff; box-shadow: var(--shadow);
}
.intro__img--small img { aspect-ratio: 1; }
.intro__tag {
    position: absolute; inset-inline-start: -16px; top: 32px; background: var(--red); color: #fff;
    padding: 18px 22px; display: grid; line-height: 1.2; box-shadow: var(--shadow);
}
.intro__tag strong { font-size: 2rem; font-weight: 800; }
.intro__tag span { font-size: .85rem; opacity: .9; }

.checklist { display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
.checklist__icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--navy); color: #fff; margin-top: 1px; }
html[lang="ar"] .checklist__icon { margin-top: 4px; }

/* ---------- Marquee ---------- */
.marquee { direction: ltr; background: var(--navy); color: #fff; overflow: hidden; padding-block: 26px; border-block: 1px solid var(--navy-700); }
.marquee__track { display: flex; width: max-content; will-change: transform; direction: ltr; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; white-space: nowrap; padding-inline: 28px; letter-spacing: -.01em; }
.marquee__sep { color: var(--red); display: inline-grid; }
.marquee__sep .icon { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head__lead { max-width: 46ch; color: var(--muted); font-size: 1.08rem; }
.section-head__lead--light { color: var(--muted-light); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .h2 { margin-inline: auto; }

/* ---------- Area cards (tall image cards) ---------- */
.area-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.area-card__link { position: relative; display: block; height: 480px; overflow: hidden; color: #fff; background: var(--navy-900); }
.area-card__media { position: absolute; inset: 0; }
.area-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; opacity: .85; }
.area-card__link::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(13, 16, 48, .95) 8%, rgba(13, 16, 48, .35) 55%, rgba(13, 16, 48, .05) 100%);
    transition: background .5s var(--ease);
}
.area-card__link::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--red); z-index: 3;
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease);
}
[dir="rtl"] .area-card__link::after { transform-origin: 100% 50%; }
.area-card__body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 22px; }
.area-card__num { position: absolute; top: 22px; inset-inline-start: 22px; font-weight: 700; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.area-card__icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--navy); margin-bottom: 18px; transition: background .3s; }
.area-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.area-card__text {
    font-size: .93rem; color: #DADDF2; line-height: 1.6;
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .4s;
}
.area-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .9rem; color: #fff; }
.area-card__link:hover .area-card__media img, .area-card__link:focus-visible .area-card__media img { transform: scale(1.08); opacity: .55; }
.area-card__link:hover::before, .area-card__link:focus-visible::before { background: linear-gradient(0deg, rgba(40, 47, 142, .97) 25%, rgba(40, 47, 142, .55) 100%); }
.area-card__link:hover::after, .area-card__link:focus-visible::after { transform: scaleX(1); }
.area-card__link:hover .area-card__text, .area-card__link:focus-visible .area-card__text { max-height: 160px; opacity: 1; margin-top: 10px; }
.area-card__link:hover .area-card__icon, .area-card__link:focus-visible .area-card__icon { background: var(--red); }
@media (hover: none) {
    .area-card__text { max-height: none; opacity: 1; margin-top: 10px; }
}

/* ---------- Work (horizontal projects) ---------- */
.work { background: var(--navy-900); color: #fff; overflow: hidden; }
.work__pin { padding-block: var(--section-y) 56px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: 48px; }
.work__head-end { display: grid; gap: 20px; justify-items: start; max-width: 420px; }
.work__lead { color: var(--muted-light); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--red) transparent; padding-bottom: 12px; }
.work.is-pinned .work__viewport { overflow: hidden; scroll-snap-type: none; padding-bottom: 0; }
.work-card { scroll-snap-align: start; }
.work__track { display: flex; gap: 24px; width: max-content; padding-inline: var(--gutter); will-change: transform; }
.work-card { width: clamp(290px, 30vw, 430px); flex: none; }
.work-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--text); transition: transform .5s var(--ease), box-shadow .5s; }
.work-card__link:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.work-card__media { height: 240px; overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card__link:hover .work-card__media img { transform: scale(1.06); }
.work-card__media img[src*="lpg-"] { object-fit: contain; padding: 18px; }
.work-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 4px solid var(--red); }
.work-card__top { display: flex; justify-content: space-between; align-items: center; }
.work-card__cat { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
html[lang="ar"] .work-card__cat { letter-spacing: 0; font-size: .875rem; }
.work-card__idx { font-weight: 800; color: var(--line); font-size: 1.6rem; line-height: 1; }
.work-card__title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.work-card__text { color: var(--muted); font-size: .95rem; flex: 1; }
.work-card__meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.work__progress { display: flex; align-items: center; gap: 18px; margin-top: 44px; color: var(--muted-light); font-size: .875rem; }
.work__progress-bar { flex: 1; height: 2px; background: var(--line-dark); position: relative; }
.work__progress-bar span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .work__progress-bar span { transform-origin: 100% 50%; }

/* ---------- Process ---------- */
.process__wrap { position: relative; }
.process__line { position: absolute; top: 27px; inset-inline: 7%; height: 2px; background: var(--line); }
.process__line span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .process__line span { transform-origin: 100% 50%; }
.process__steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; position: relative; }
.process-step { text-align: center; display: grid; justify-items: center; gap: 10px; }
.process-step__num {
    display: grid; place-items: center; width: 56px; height: 56px; background: #fff; color: var(--navy);
    border: 2px solid var(--navy); font-weight: 800; font-size: 1.15rem; transition: background .3s, color .3s;
}
.process-step.is-active .process-step__num { background: var(--navy); color: #fff; }
.process-step__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.process-step__text { font-size: .9rem; color: var(--muted); }

/* ---------- Global band ---------- */
.global { position: relative; color: #fff; padding-block: var(--section-y); overflow: hidden; background: var(--ink); }
.global__bg { position: absolute; inset: -12% 0; }
.global__bg img, .cta-band__bg img, .logistics__bg img { width: 100%; height: 100%; object-fit: cover; }
.global::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13, 16, 48, .55), rgba(13, 16, 48, .88)); }
.global > .container { position: relative; z-index: 2; }
.global__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.global__lead { color: var(--muted-light); margin-top: 22px; font-size: 1.08rem; max-width: 52ch; }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.region {
    padding: 26px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); border-top: 3px solid var(--red);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.region__name { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.region__items { color: var(--muted-light); font-size: .92rem; }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.partner {
    display: grid; place-items: center; height: 140px; padding: 24px;
    border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background .3s;
}
.partner img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.partner:hover { background: var(--tint); }
.partner:hover img { filter: none; opacity: 1; }
.partner--word span { font-weight: 800; font-size: 1.15rem; color: #6B7190; letter-spacing: -.01em; transition: color .3s; direction: ltr; }
.partner--word:hover span { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(64px, 9vw, 112px); }
.cta-band__bg { position: absolute; inset: -15% 0; opacity: .22; mix-blend-mode: luminosity; }
.cta-band::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 8px; background: var(--red); }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 800; max-width: 20ch; letter-spacing: -.02em; }
html[lang="ar"] .cta-band__title { line-height: 1.45; letter-spacing: 0; }
.cta-band__text { color: #DADDF2; margin-top: 16px; max-width: 56ch; }
.page-contact .cta-band { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B4B8D3; padding-top: clamp(64px, 8vw, 96px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer__logo { display: inline-block; background: #fff; padding: 14px 18px; margin-bottom: 22px; border-bottom: 4px solid var(--red); }
.footer__logo img { width: 112px; }
.footer__brand p { max-width: 34ch; }
.footer__title { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
html[lang="ar"] .footer__title { letter-spacing: 0; font-size: 1rem; }
.footer__links { display: grid; gap: 4px; }
.footer__links a { display: inline-block; padding-block: 6px; transition: color .2s, transform .3s var(--ease); }
.footer__links a:hover { color: #fff; transform: translateX(4px); }
[dir="rtl"] .footer__links a:hover { transform: translateX(-4px); }
.footer__contact { display: grid; gap: 16px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { color: var(--red); margin-top: 4px; }
.footer__contact a:hover { color: #fff; }
.footer__giant { margin-top: clamp(56px, 8vw, 96px); white-space: nowrap; line-height: .9; user-select: none; direction: ltr; }
.footer__giant span {
    display: inline-block; font-size: clamp(4rem, 12vw, 11rem); font-weight: 800; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); font-family: "Noto Sans", sans-serif;
}
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 26px; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }

.whatsapp-fab {
    position: fixed; z-index: 80; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px;
    display: grid; place-items: center; background: #1FA855; color: #fff; box-shadow: var(--shadow);
}

/* ---------- Inner page components ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.tall-img { overflow: hidden; }
.tall-img img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; }

.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { font-weight: 600; color: var(--ink); }
.facts--light { border-color: var(--line-dark); }
.facts--light .facts__row { border-color: var(--line-dark); }
.facts--light dt { color: var(--muted-light); }
.facts--light dd { color: #fff; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: #fff; padding: clamp(32px, 4vw, 56px); border-top: 4px solid var(--red); display: grid; gap: 16px; align-content: start; }
.mv-card p { color: var(--muted); font-size: 1.08rem; }
.mv-card--navy { background: var(--navy); color: #fff; }
.mv-card--navy .h3 { color: #fff; }
.mv-card--navy p { color: #DADDF2; }
.mv-card__icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--tint); color: var(--navy); }
.mv-card--navy .mv-card__icon { background: rgba(255, 255, 255, .1); color: #fff; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { padding: 32px 28px; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.value-card:hover { border-color: var(--navy); transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--navy); color: #fff; margin-bottom: 22px; }
.value-card__title { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.value-card p { color: var(--muted); }

.org { display: grid; gap: 28px; justify-items: center; position: relative; }
.org__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; }
.org__row + .org__row::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--navy); }
.org__node { padding: 14px 22px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.org__node--top { background: var(--red); color: #fff; border-color: var(--red); padding-inline: 40px; }
.org__node--mid { background: var(--navy); color: #fff; border-color: var(--navy); }

.global--compact .section-head { margin-bottom: 48px; }
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group-card { padding: 30px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); border-top: 3px solid var(--red); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.group-card__country { display: flex; align-items: center; gap: 8px; color: var(--muted-light); font-size: .9rem; }
.group-card__name { font-size: 1.35rem; font-weight: 700; margin: 8px 0 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; font-size: .88rem; font-weight: 500; background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
.tags--light li { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--line-dark); }
.tags--lg { gap: 12px; margin-bottom: 40px; }
.tags--lg li { padding: 12px 20px; font-size: 1rem; font-weight: 600; background: #fff; border-inline-start: 3px solid var(--red); }
.section--tint .tags--lg li { background: #fff; }

.subnav { position: sticky; top: var(--mainbar-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px -18px rgba(16, 20, 63, .5); transition: top .45s var(--ease); }
.is-header-hidden .subnav { top: 0; }
.subnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__link { display: inline-flex; align-items: center; gap: 10px; padding: 18px 18px; white-space: nowrap; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.subnav__link span { font-size: .8rem; color: var(--red); font-weight: 700; }
.subnav__link:hover, .subnav__link.is-active { color: var(--navy); border-bottom-color: var(--navy); }

.service__num { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 12px; font-family: "Noto Sans", sans-serif; }
.service__num--light { -webkit-text-stroke-color: rgba(255, 255, 255, .7); }
.service__subhead { margin: clamp(56px, 7vw, 88px) 0 28px; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-card { position: relative; overflow: hidden; height: 300px; background: var(--ink); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1s var(--ease); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 16, 48, .9), transparent 55%); }
.photo-card:hover img { transform: scale(1.07); }
.photo-card__title { position: absolute; z-index: 1; inset-inline: 20px; bottom: 18px; color: #fff; font-size: 1.1rem; font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: #fff; padding: clamp(28px, 3.5vw, 44px); }
.panel .h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.panel .h3 .icon { color: var(--red); }
.panel--navy { background: var(--navy); color: #fff; }
.panel--navy .h3 { color: #fff; }
.panel__img { margin-top: 28px; overflow: hidden; }
.panel__img img { width: 100%; height: 220px; object-fit: cover; }
.steps-list { display: grid; gap: 4px; }
.steps-list li { display: flex; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 0; }
.steps-list__num { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--tint); color: var(--navy); font-weight: 800; }
.steps-list strong { color: var(--ink); }
.steps-list p { color: var(--muted); font-size: .93rem; }
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-grid li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255, 255, 255, .08); font-weight: 500; }
.op-grid .icon { color: #9EAAFF; }

.phase-list { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.phase { display: flex; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.phase__num { font-weight: 800; color: var(--red); font-size: 1.1rem; min-width: 32px; }
.phase__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.phase p { color: var(--muted); }

.trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trade-card { background: #fff; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.trade-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.trade-card__media { height: 190px; overflow: hidden; }
.trade-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.trade-card:hover .trade-card__media img { transform: scale(1.06); }
.trade-card__body { padding: 24px; border-top: 3px solid var(--navy); flex: 1; }
.trade-card__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.trade-card__body li { position: relative; padding-inline-start: 18px; color: var(--muted); font-size: .94rem; margin-bottom: 6px; }
.trade-card__body li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; background: var(--red); }

.logistics { position: relative; color: #fff; padding-block: var(--section-y); overflow: hidden; background: var(--ink); }
.logistics__bg { position: absolute; inset: -12% 0; }
.logistics::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 16, 48, .94), rgba(16, 20, 63, .7)); }
[dir="rtl"] .logistics::before { background: linear-gradient(270deg, rgba(13, 16, 48, .94), rgba(16, 20, 63, .7)); }
.logistics__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.logi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logi-card { padding: 30px 26px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s; }
.logi-card:hover { background: rgba(255, 255, 255, .14); }
.logi-card__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--red); margin-bottom: 18px; }
.logi-card h3 { font-size: 1.12rem; font-weight: 700; }

/* Projects page */
.complex-media { display: grid; gap: 12px; }
.complex-media > figure img { width: 100%; background: #fff; border: 1px solid var(--line); }
.complex-media__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.complex-media__row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.plants { display: grid; gap: clamp(72px, 9vw, 120px); margin-top: clamp(80px, 10vw, 130px); }
.plant { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.plant--rev .plant__media { order: 2; }
.plant__main { overflow: hidden; background: var(--tint); }
.plant__main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.plant__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.plant__thumbs figure { overflow: hidden; background: var(--tint); }
.plant__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plant__idx { display: inline-block; font-weight: 800; color: #fff; background: var(--red); padding: 4px 12px; font-size: .9rem; }
.plant__title { margin: 14px 0 12px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.plant__objective { color: var(--muted); margin-bottom: 18px; }
.plant__objective strong { color: var(--ink); }
.spec { padding-block: 16px; border-top: 1px solid var(--line); }
.spec__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-weight: 700; margin-bottom: 10px; }
html[lang="ar"] .spec__label { letter-spacing: 0; font-size: .9rem; }
.spec__list li { position: relative; padding-inline-start: 18px; margin-bottom: 4px; font-weight: 500; }
.spec__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 7px; background: var(--navy); }
.spec p { color: var(--muted); }
.mini-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.mini-facts div { background: #fff; padding: 14px 16px; }
.mini-facts dt { font-size: .8rem; color: var(--muted); }
.mini-facts dd { font-weight: 700; color: var(--ink); font-size: .95rem; }

.diagram { background: #fff; padding: 14px; }
.diagram img { width: 100%; }
.map-figure { background: var(--tint); }
.map-figure img { width: 100%; }
.big-number { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.04em; direction: ltr; }
.big-number small { font-size: .35em; color: var(--red); letter-spacing: 0; }

.table-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.table-wrap--dark { border-color: var(--line-dark); background: rgba(255, 255, 255, .03); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 18px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: .92rem; }
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: var(--tint); }
.data-table tfoot td { font-weight: 700; color: var(--navy); background: var(--tint); }
.table-wrap--dark .data-table th, .table-wrap--dark .data-table td { border-color: var(--line-dark); color: #E8EAF7; }
.table-wrap--dark .data-table thead th { background: var(--red); color: #fff; }
.table-wrap--dark .data-table tbody th { color: #fff; }
.table-wrap--dark .data-table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.data-table--compare td.is-good { color: #136B3A; font-weight: 600; }
.data-table--compare td.is-good .icon { vertical-align: -3px; }

.cylinders { display: flex; align-items: center; justify-content: center; gap: 24px; background: #fff; padding: 32px; }
.cylinder { display: grid; justify-items: center; gap: 14px; }
.cylinder img { height: 260px; width: auto; object-fit: contain; }
.cylinder figcaption { font-weight: 700; color: var(--muted); }
.cylinder--new figcaption { color: #136B3A; }
.cylinders__arrow { display: grid; place-items: center; width: 52px; height: 52px; background: var(--red); color: #fff; flex: none; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.contact__form-wrap .h3 { margin-bottom: 24px; }
.form { display: grid; gap: 20px; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 12px 16px; font-size: 1rem;
    background: #fff; border: 1.5px solid #C9CDDC; border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9DA3BD; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(40, 47, 142, .2); }
.field__help { font-size: .875rem; color: var(--muted); }
.field__error { display: none; font-size: .875rem; color: #B3241B; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: #B3241B; }
.field.has-error .field__error { display: block; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select .icon { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.form .btn { justify-self: start; margin-top: 6px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 24px; font-weight: 600; border-inline-start: 4px solid; }
.alert--success { background: #E8F6EE; color: #136B3A; }
.alert--error { background: #FDECEA; color: #8F1C14; }

.info-card { background: var(--navy); color: #fff; padding: clamp(28px, 3.5vw, 44px); }
.info-card .h3 { color: #fff; margin-bottom: 24px; }
.info-list { display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; background: rgba(255, 255, 255, .1); }
.info-list__label { display: block; font-size: .85rem; color: var(--muted-light); }
.info-list a { font-weight: 600; }
.info-list a:hover { text-decoration: underline; }
.map { margin-top: 16px; height: 320px; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }

/* ---------- Reveal (only when JS + GSAP are ready) ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; }
.js .img-reveal { clip-path: inset(0 0 100% 0); }
.js .hero__title .line__inner, .js .page-hero__title .line__inner { transform: translateY(105%); }
.js .hero__lead, .js .hero__actions, .js .hero__eyebrow, .js .hero__badge, .js .page-hero__lead, .js .breadcrumb { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .area-cards { grid-template-columns: repeat(3, 1fr); }
    .area-card__link { height: 420px; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .trade-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
    .nav, .mainbar .btn--red, .lang-pill { display: none; }
    .menu-toggle { display: inline-flex; }
    .mainbar__actions { margin-inline-start: auto; }
    .process__line { top: 0; bottom: 0; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto; }
    .process__line span { transform: scaleY(0); transform-origin: 50% 0; }
    .process__steps { grid-template-columns: 1fr; gap: 28px; }
    .process-step { text-align: start; grid-template-columns: 56px 1fr; justify-items: start; column-gap: 22px; row-gap: 4px; }
    .process-step__num { grid-row: span 2; }
    .process-step__title { margin-top: 4px; }
    .group-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    :root { --mainbar-h: 68px; }
    .topbar { display: none; }
    .site-header.is-condensed { transform: none; }
    .site-header.is-hidden { transform: translateY(calc(var(--mainbar-h) * -1)); }
    .brand__logo { height: 52px; }
    .brand { gap: 10px; }
    .brand__text { padding-inline-start: 10px; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .intro__grid, .split, .global__inner, .logistics__inner, .plant, .two-col, .mv-grid, .contact__grid { grid-template-columns: 1fr; }
    .plant--rev .plant__media { order: 0; }
    .hero__badge { display: none; }
    .hero__shade, [dir="rtl"] .hero__shade { background: linear-gradient(0deg, rgba(13, 16, 48, .95) 0%, rgba(13, 16, 48, .78) 50%, rgba(13, 16, 48, .35) 100%); }
    .hero__frame, .page-hero__frame { clip-path: inset(12px var(--gutter) 0 var(--gutter)); }
    .hero__content, .page-hero__content { padding-inline: calc(var(--gutter) + 20px); }
    .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
    .work__viewport::-webkit-scrollbar { display: none; }
    .work-card { scroll-snap-align: start; width: min(82vw, 380px); }
    .work__pin { min-height: 0; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .brand__text strong { font-size: 1rem; }
    html[lang="ar"] .brand__text strong { font-size: 1.05rem; }
    .brand__text small { font-size: .62rem; letter-spacing: .2em; }
    html[lang="ar"] .brand__text small { font-size: .8rem; }
    .area-cards, .trade-grid, .value-grid, .regions, .logi-grid, .photo-grid { grid-template-columns: 1fr; }
    .area-card__link { height: 380px; }
    .area-card__text { max-height: none; opacity: 1; margin-top: 8px; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .partner { height: 110px; }
    .form__row, .op-grid, .mini-facts { grid-template-columns: 1fr; }
    .facts__row { grid-template-columns: 1fr; gap: 4px; }
    .footer__grid { grid-template-columns: 1fr; }
    .intro__media { padding-inline-end: 36px; padding-bottom: 48px; }
    .intro__tag { inset-inline-start: 0; }
    .hero__actions .btn { width: 100%; }
    .cylinder img { height: 170px; }
    .cylinders { padding: 20px 12px; gap: 12px; }
    .photo-card { height: 240px; }
    .marquee__item { padding-inline: 18px; }
    .complex-media__row, .plant__thumbs { gap: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js [data-reveal-group] > *, .js .hero__lead, .js .hero__actions, .js .hero__eyebrow, .js .hero__badge, .js .page-hero__lead, .js .breadcrumb { opacity: 1; }
    .js .img-reveal { clip-path: none; }
    .js .hero__title .line__inner, .js .page-hero__title .line__inner { transform: none; }
}
