/* NASEEM AL JEBAL — website. Concept "below the surface": each page reads like a trench cross-section —
   the surface (photo) on top, a ground line, sand layers, the pipe zone (navy with a pipe network drawing),
   down to the water table (footer). Depth markers on the side. Navy / sky / coral + Al Ain sand. Sora + Tajawal. */
:root {
  --navy: #24476F; --navy-deep: #14304F; --abyss: #0C1F35; --sky: #3A9AD9; --sky-deep: #1F6FA8; --coral: #F2775B; --coral-deep: #C9513A;
  --sand: #F5EFE5; --sand-2: #EDE3D3; --sand-3: #D9C7A8; --clay: #9C7A4E; --ink: #10243A; --muted: #5A6B7E; --line: #E3D8C6;
  --r: 16px; --wrap: 1200px; --f: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif; --far: 'Tajawal', 'Sora', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--f); color: var(--ink); background: #fff; }
[dir="rtl"] body { font-family: var(--far); font-size: 17px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sky-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.015em; }
[dir="rtl"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; }
.vh, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .link .ic, [dir="rtl"] .tile__b em .ic { transform: scaleX(-1); }

/* buttons & links */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 999px; font: 600 15px var(--f); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
[dir="rtl"] .btn { font-family: var(--far); font-size: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -12px rgba(242,119,91,.9); }
.btn--coral:hover { background: var(--coral-deep); }
.btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.1); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 3px; }
.link .ic { width: 18px; transition: transform .2s; }
.link:hover .ic { transform: translateX(4px); }
[dir="rtl"] .link:hover .ic { transform: translateX(-4px) scaleX(-1); }
.link--light { color: #fff; }

/* header: transparent over the photo hero, solid after scrolling (site.js toggles .scrolled) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.hdr:not(.scrolled) { background: transparent; box-shadow: none; }
.hdr__in { display: flex; align-items: center; gap: 22px; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); margin-inline-end: auto; }
.brand b { display: block; font-size: 18px; font-weight: 700; line-height: 1.05; }
.brand small { display: block; font-size: 9px; letter-spacing: .22em; color: var(--sky-deep); font-weight: 600; margin-top: 4px; white-space: nowrap; }
[dir="rtl"] .brand small { letter-spacing: 0; font-size: 12px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; position: relative; }
.nav a[aria-current="page"]:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 3px; background: var(--coral); }
.nav .btn { color: #fff; }
.nav__lang { padding: 5px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .85; }
.hdr:not(.scrolled) :is(.brand, .nav a:not(.btn)) { color: #fff; }
.hdr:not(.scrolled) .brand small { color: #9FD0F5; }
.hdr:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.nav-btn { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; color: var(--navy); }
.nav-btn span:first-child, .nav-btn span:first-child::before, .nav-btn span:first-child::after { position: absolute; left: 12px; width: 22px; height: 2px; background: currentColor; content: ''; }
.nav-btn span:first-child { top: 22px; } .nav-btn span:first-child::before { left: 0; top: -7px; } .nav-btn span:first-child::after { left: 0; top: 7px; }
.hdr:not(.scrolled) .nav-btn { color: #fff; }

/* hero (home) */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.hero > img, .phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before, .phero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,31,53,.6) 0%, rgba(12,31,53,.25) 35%, rgba(12,31,53,.75) 75%, rgba(12,31,53,.94) 100%),
              linear-gradient(90deg, rgba(12,31,53,.65), transparent 70%); }
[dir="rtl"] .hero::before, [dir="rtl"] .phero::before { background: linear-gradient(180deg, rgba(12,31,53,.6) 0%, rgba(12,31,53,.25) 35%, rgba(12,31,53,.75) 75%, rgba(12,31,53,.94) 100%), linear-gradient(270deg, rgba(12,31,53,.65), transparent 70%); }
.hero__in { padding-top: 140px; }
.kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky-deep); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 30px; height: 3px; border-radius: 3px; background: var(--coral); flex: none; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }
.hero .kicker, .phero .kicker { color: #9FD0F5; }
.hero h1 { font-size: clamp(42px, 6.6vw, 84px); font-weight: 700; max-width: 900px; }
.hero h1 span, .phero h1 span { color: var(--coral); }
.hero__p { max-width: 620px; font-size: 18px; color: #DCE8F4; margin: 24px 0 0; }
[dir="rtl"] .hero__p { font-size: 19.5px; }
.hero__proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid rgba(255,255,255,.2); }
.hero__proof div { padding: 22px 0 30px; }
.hero__proof b { display: block; font-size: 30px; font-weight: 700; }
.hero__proof span { color: #B9CBDD; font-size: 14px; }

/* page hero */
.phero { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding: 170px 0 70px; }
.phero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 700; max-width: 860px; }
.phero p:not(.kicker) { max-width: 640px; font-size: 17.5px; color: #DCE8F4; margin: 20px 0 0; }

/* ground line */
.groundline { position: relative; height: 34px; background: repeating-linear-gradient(135deg, rgba(156,122,78,.45) 0 2px, transparent 2px 9px), var(--sand-3); color: var(--abyss); }
.groundline .wrap { display: flex; align-items: center; gap: 14px; height: 100%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.groundline span { background: var(--abyss); color: #fff; padding: 2px 10px; border-radius: 6px; letter-spacing: .04em; direction: ltr; }
[dir="rtl"] .groundline .wrap { letter-spacing: 0; font-size: 14px; }

/* sections & strata */
.sec { position: relative; padding: 104px 0; overflow: hidden; }
.sand { background: var(--sand); }
.sand2 { background: var(--sand-2); }
.pipezone { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.deep { background: linear-gradient(180deg, var(--navy-deep), var(--abyss)); color: #fff; }
.sec h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 700; color: var(--navy); max-width: 820px; }
.sec h2 span { color: var(--sky); }
:is(.pipezone, .deep) h2 { color: #fff; } :is(.pipezone, .deep) .kicker { color: #9FD0F5; }
.sec__p { color: var(--muted); max-width: 640px; margin: 16px 0 0; font-size: 17px; }
:is(.pipezone, .deep) .sec__p { color: #C5D6E8; }
.sec__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.net { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; pointer-events: none; }
.depth { position: absolute; top: 108px; inset-inline-start: max(8px, calc((100vw - var(--wrap)) / 2 - 92px)); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--clay); z-index: 1; }
.depth span { direction: ltr; }
.depth i { width: 1px; height: 90px; background: repeating-linear-gradient(180deg, currentColor 0 6px, transparent 6px 10px); }
.depth em { font-style: normal; writing-mode: vertical-rl; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
[dir="rtl"] .depth em { letter-spacing: 0; }
:is(.pipezone, .deep) .depth { color: #6F8FB0; }
@media (max-width: 1400px) { .depth { display: none; } }

/* home: vision */
.vision blockquote { margin: 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.3; font-weight: 300; color: var(--navy); max-width: 980px; }
.vision blockquote::before { content: '“'; color: var(--coral); font-weight: 700; }
[dir="rtl"] .vision blockquote::before { content: '«'; }
.vision .link { margin-top: 30px; }
/* home: why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 2px solid var(--navy); }
.why__i { padding: 26px 26px 10px; border-inline-end: 1px solid var(--line); }
.why__i:first-child { padding-inline-start: 0; }
.why__i:last-child { border: 0; }
.why__i span { font-weight: 700; color: var(--coral); font-size: 14px; }
.why__i h3 { font-size: 19px; color: var(--navy); margin: 10px 0 8px; }
.why__i p { margin: 0; color: var(--muted); font-size: 15px; }
/* home: service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; position: relative; z-index: 1; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; z-index: -2; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(12,31,53,.92)); }
.tile:hover img { transform: scale(1.06); }
.tile__b { position: absolute; inset: auto 0 0; padding: 22px; display: grid; gap: 8px; }
.tile__b .ic { width: 28px; height: 28px; color: var(--sky); }
.tile__b b { font-size: 19px; line-height: 1.2; }
.tile__b em { font-style: normal; font-size: 13.5px; color: #C5D6E8; display: flex; align-items: center; gap: 6px; }
.tile__b em .ic { width: 16px; height: 16px; color: var(--coral); }
/* home: featured projects */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feat__i { border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 28px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; }
.feat__y { font-size: 40px; font-weight: 700; color: var(--sky); line-height: 1; }
.feat__i h3 { font-size: 18px; margin: 16px 0 8px; font-weight: 600; }
.feat__i p { margin: 0 0 16px; color: #A9BED3; font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags em, .row__s em { font-style: normal; font-size: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(58,154,217,.16); color: #CFE6F8; }
[dir="rtl"] :is(.tags em, .row__s em) { font-size: 13.5px; }
/* home: steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 21px; left: 0; right: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--navy)); }
.steps li { counter-increment: s; position: relative; padding-inline-end: 18px; }
.steps li::before { content: counter(s); position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 4px solid var(--sky); font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.steps b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 14.5px; }
.credstrip { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 20px 26px; border-radius: var(--r); background: var(--sand); color: var(--muted); font-size: 14px; }
.credstrip b { color: var(--navy); font-size: 18px; direction: ltr; }
.credstrip span:first-child { font-weight: 600; color: var(--clay); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
[dir="rtl"] .credstrip span:first-child { letter-spacing: 0; font-size: 14px; }

/* CTA band */
.cta { background: var(--coral); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.12); inset-inline-end: -120px; top: -150px; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; color: #fff; }
.cta h2 span { color: var(--abyss); }
.cta p { margin: 10px 0 0; font-size: 17px; max-width: 560px; color: #FFF1EC; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta .btn--coral { background: var(--abyss); box-shadow: none; } .cta .btn--coral:hover { background: var(--navy); }

/* about */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about__txt p { font-size: 17.5px; margin: 0 0 20px; color: #2A3D52; }
.about__txt p:first-child { font-size: 22px; line-height: 1.5; color: var(--navy); font-weight: 500; }
.md { background: #fff; border-radius: var(--r); padding: 30px; box-shadow: 0 30px 60px -40px rgba(36,71,111,.5); border-top: 5px solid var(--coral); }
.md small { color: var(--clay); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.md b { display: block; font-size: 22px; color: var(--navy); margin: 6px 0 2px; }
.md > span { color: var(--muted); font-size: 14px; }
.md dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.md dt { font-size: 24px; font-weight: 700; color: var(--navy); }
.md dd { margin: 0; color: var(--muted); font-size: 13px; }
.vm { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; position: relative; z-index: 1; }
.vm__t { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; font-weight: 300; }
.vm__t--sm { font-size: 19px; line-height: 1.6; color: #DCE8F4; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.values > div { background: #fff; border-radius: var(--r); padding: 24px; }
.values span { font-weight: 700; color: var(--coral); font-size: 14px; }
.values h3 { font-size: 17px; color: var(--navy); margin: 10px 0 8px; }
.values p { margin: 0; color: var(--muted); font-size: 14.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.lists h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lists li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.lists .ic { color: var(--sky); width: 20px; margin-top: 3px; }
.eq { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: e; }
.eq li { counter-increment: e; display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: #fff; border-radius: 12px; font-weight: 500; }
.eq li::before { content: counter(e, decimal-leading-zero); color: var(--coral); font-weight: 700; font-size: 14px; }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.cred > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 28px; }
.cred__wide { grid-column: 1 / -1; }
.cred small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9FD0F5; margin-top: 16px; }
[dir="rtl"] .cred small { letter-spacing: 0; font-size: 14px; }
.cred small:first-child { margin-top: 0; }
.cred b { display: block; font-size: 28px; margin-top: 4px; }
.cred p { margin: 4px 0 0; color: #D7E4F1; }
.cred ul { margin: 8px 0 0; padding-inline-start: 18px; color: #E6EEF6; }
.certs { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.certs li { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border-inline-start: 3px solid var(--coral); }
.certs b { font-size: 15px; margin: 0; }
.certs span { display: block; color: #B9CBDD; font-size: 13.5px; }
.note { font-size: 13.5px; color: #8FA6BE; margin: 16px 0 0; }

/* services page */
.grp { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3vw, 38px) !important; }
.grp i { width: 40px; height: 5px; border-radius: 5px; background: var(--coral); flex: none; }
.svcs { display: grid; gap: 28px; margin-top: 40px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--r); overflow: hidden; scroll-margin-top: 100px; }
.svc--rev .svc__img { order: 2; }
.svc__img { min-height: 320px; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__txt { padding: 44px; align-self: center; }
.svc__txt > .ic { width: 40px; height: 40px; color: var(--sky-deep); }
.svc__txt h3 { font-size: 26px; color: var(--navy); margin: 16px 0 12px; }
.svc__txt p { color: var(--muted); font-size: 16.5px; margin: 0 0 24px; }
.light { color: #fff !important; }
.pipes { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.pipes li { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 17px; direction: ltr; }
.pipes svg { width: 22px; height: 22px; color: var(--sky); }
.light-p { color: #C5D6E8; max-width: 720px; position: relative; z-index: 1; margin: 0; }

/* projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--sand-3); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 16px; font: 500 14px var(--f); cursor: pointer; }
[dir="rtl"] .chip { font-family: var(--far); font-size: 15px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ledger { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -45px rgba(36,71,111,.5); }
.ledger__h, .row { display: grid; grid-template-columns: 80px 1.6fr 1fr 1.2fr; gap: 18px; padding: 16px 26px; align-items: start; }
.ledger__h { background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .ledger__h { letter-spacing: 0; font-size: 14px; }
.row { border-top: 1px solid #EFE8DC; font-size: 15px; }
.row[hidden] { display: none; }
.row__y { font-weight: 700; color: var(--sky-deep); }
.row__t { font-weight: 500; }
.row__l { color: var(--muted); font-size: 14px; }
.row__s { display: flex; flex-wrap: wrap; gap: 6px; }
.row__s em { background: var(--sand); color: var(--navy); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gal figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption { position: absolute; inset: auto 0 0; padding: 34px 18px 14px; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(12,31,53,.85)); }

/* contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.qform { background: #fff; border-radius: var(--r); padding: 36px; box-shadow: 0 30px 60px -45px rgba(36,71,111,.5); }
.qform h2 { font-size: 28px !important; }
.qform__g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.qform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.qform .full { grid-column: 1 / -1; }
.qform :is(input, select, textarea) { font: 400 15.5px var(--f); padding: 13px 14px; border: 1px solid #DCCFBA; border-radius: 10px; background: #FFFDF9; color: var(--ink); width: 100%; }
[dir="rtl"] .qform :is(input, select, textarea) { font-family: var(--far); font-size: 16px; }
.qform :is(input, select, textarea):focus { outline: 2px solid var(--sky); border-color: transparent; }
.qform .note { color: var(--muted); }
.cinfo { display: grid; gap: 14px; }
.cinfo > div { background: #fff; border-radius: var(--r); padding: 22px 24px; display: grid; gap: 4px; }
.cinfo small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
[dir="rtl"] .cinfo small { letter-spacing: 0; font-size: 14px; }
.cinfo a:not(.link) { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 17px; }
[dir="rtl"] .cinfo a.ltr { text-align: right; }
.cinfo .link { margin-top: 8px; justify-self: start; font-size: 14px; }

/* footer = water table */
.ftr { position: relative; background: var(--abyss); color: #A9BCD0; padding: 80px 0 0; overflow: hidden; font-size: 14.5px; }
.ftr .net { top: 0; bottom: auto; height: 120px; opacity: .5; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.ftr__brand p { margin: 16px 0; max-width: 380px; color: #C5D6E8; }
.ftr h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
[dir="rtl"] .ftr h4 { letter-spacing: 0; font-size: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #DCE8F4; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.pdf { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pdf .ic { transform: rotate(90deg); color: var(--coral); width: 18px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 28px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; position: relative; z-index: 1; }
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .rise.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); } .why__i:nth-child(2) { border: 0; } .why__i:nth-child(3) { padding-inline-start: 0; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 22px; } .steps::before { display: none; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 0; }
  .steps li::before { grid-row: span 2; margin: 0; }
}
@media (max-width: 920px) {
  .nav-btn { display: block; }
  .nav { position: fixed; inset: 78px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 24px 24px;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.3); display: none; }
  .hdr[data-open="true"] { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .hdr[data-open="true"] :is(.brand, .nav-btn) { color: var(--navy); }
  .hdr[data-open="true"] .brand small { color: var(--sky-deep); }
  .hdr[data-open="true"] .brand img { filter: none; }
  .hdr[data-open="true"] .nav { display: flex; }
  .nav a:not(.btn) { color: var(--ink) !important; padding: 15px 0; border-bottom: 1px solid #EEE6D8; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .nav__lang { border: 0; border-radius: 0; opacity: 1; }
  .about, .vm, .split, .contact, .svc, .cred, .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
  .svc { gap: 0; }
  .svc--rev .svc__img { order: 0; }
  .svc__img { min-height: 220px; }
  .svc__txt { padding: 30px; }
  .feat { grid-template-columns: 1fr; }
  .hero__proof { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: 1fr 1fr; }
  .certs { grid-template-columns: 1fr; }
  .ledger__h { display: none; }
  .row { grid-template-columns: 60px 1fr; gap: 4px 14px; padding: 16px 18px; }
  .row__y { grid-row: span 3; }
  .row__l, .row__s { grid-column: 2; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 72px 0; }
  .tiles { gap: 10px; }
  .tile { aspect-ratio: 4 / 5; } .tile__b { padding: 14px; } .tile__b b { font-size: 15px; } .tile__b em { display: none; }
  .why, .values, .lists, .qform__g { grid-template-columns: 1fr; }
  .why__i { border: 0 !important; padding: 20px 0 !important; border-bottom: 1px solid var(--line) !important; }
  .hero__proof b { font-size: 24px; }
  .brand small { display: none; }
  .qform { padding: 24px; }
  .phero { padding: 130px 0 50px; }
}
.hero > .wrap { width: 100%; }
.hero .hero__in { padding-top: 140px; }
@media (max-width: 560px) { .hero .hero__in { padding-top: 112px; } .hero { min-height: 0; } .hero h1 { font-size: 38px; } .hero__proof { margin-top: 40px; } }
.hdr[data-open="true"]:not(.scrolled) :is(.brand, .nav-btn) { color: var(--navy); }
.hdr[data-open="true"]:not(.scrolled) .brand img { filter: none; }



/* ============ projects journey ============
   Years alternate right / left of a central pipeline. The pipe fills with water as you scroll (--fill, set by site.js),
   year nodes pop, panels slide in from their side, cards follow one by one. */
.journey { position: relative; padding: 0 0 20px; }
.journey__pipe { position: absolute; top: 14px; bottom: 120px; left: 50%; width: 14px; margin-left: -7px; border-radius: 14px;
  background: repeating-linear-gradient(180deg, #D9CDB8 0 140px, #CBBC9F 140px 146px); box-shadow: inset 0 0 0 3px rgba(156,122,78,.25); overflow: hidden; }
.journey__fill { position: absolute; left: 3px; right: 3px; top: 0; height: calc(var(--fill, 0) * 100%); border-radius: 10px;
  background: linear-gradient(180deg, var(--sky), var(--sky-deep)); box-shadow: 0 0 14px rgba(58,154,217,.7); transition: height .15s linear; }
.journey__fill::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px var(--sky), 0 0 18px 6px rgba(58,154,217,.6); }
.jstart, .jend { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 0 0 50px; }
.jend { padding: 40px 0 0; }
.jstart > div, .jend > div { background: var(--sand); padding: 6px 18px 10px; border-radius: 14px; }
.jstart b, .jend b { font-size: 34px; color: var(--navy); }
.jstart p, .jend p { margin: 4px auto 0; color: var(--muted); max-width: 420px; }
.jend .btn { margin-top: 18px; }
.jdot { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); border: 7px solid var(--sand); box-shadow: 0 0 0 3px var(--coral); }
.jend .jdot { background: var(--navy); box-shadow: 0 0 0 3px var(--navy); }

.jy { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: start; padding: 30px 0; }
.jy__node { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 2; margin-top: 40px; }
.jy__node span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 20px;
  border: 6px solid var(--sand); box-shadow: 0 0 0 3px var(--sky), 0 14px 30px -12px rgba(20,48,79,.6); transition: transform .5s cubic-bezier(.3,1.6,.5,1), background .4s; }
.jy__panel { grid-row: 1; position: relative; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 70px -50px rgba(20,48,79,.65); }
.jy--r .jy__panel { grid-column: 3; } .jy--l .jy__panel { grid-column: 1; }
/* branch pipe from the node to the panel */
.jy__panel::before { content: ''; position: absolute; top: 80px; width: 60px; height: 8px; background: var(--sky); border-radius: 8px; z-index: 0; }
.jy--r .jy__panel::before { inset-inline-start: -60px; } .jy--l .jy__panel::before { inset-inline-end: -60px; }
.jy__panel { overflow: visible; }
.jy__img { position: relative; height: 210px; border-radius: 22px 22px 0 0; overflow: hidden; isolation: isolate; color: #fff; }
.jy__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.12); transition: transform 1.4s ease; }
.jy__img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,31,53,.1), rgba(12,31,53,.85)); }
.jy__img b { position: absolute; inset-inline-start: 24px; bottom: 30px; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.jy__img span { position: absolute; inset-inline-start: 26px; bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9FD0F5; }
[dir="rtl"] .jy__img span { letter-spacing: 0; font-size: 15px; }
.jy__list { display: grid; padding: 8px 0; }
.jcard { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 24px; border-top: 1px solid #F0E9DD; }
.jcard:first-child { border-top: 0; }
.jcard__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sand); color: var(--sky-deep); }
.jcard__ic .ic { width: 22px; height: 22px; }
.jcard h3 { font-size: 16.5px; color: var(--navy); line-height: 1.35; font-weight: 600; }
.jcard p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.jcard .tags em { background: var(--sand); color: var(--navy); }

/* scroll animation */
@media (prefers-reduced-motion: no-preference) {
  .jy.pre .jy__panel { opacity: 0; transform: translateX(80px) rotate(1.5deg); }
  .jy--l.pre .jy__panel { transform: translateX(-80px) rotate(-1.5deg); }
  [dir="rtl"] .jy--r.pre .jy__panel { transform: translateX(-80px) rotate(-1.5deg); }
  [dir="rtl"] .jy--l.pre .jy__panel { transform: translateX(80px) rotate(1.5deg); }
  .jy__panel { transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
  .jy.pre .jy__node span { transform: scale(.3); background: var(--sand-3); }
  .jy.pre .jcard { opacity: 0; transform: translateY(18px); }
  .jcard { transition: opacity .6s ease, transform .6s ease; }
  .jy:not(.pre) .jcard:nth-child(1) { transition-delay: .35s; } .jy:not(.pre) .jcard:nth-child(2) { transition-delay: .5s; }
  .jy:not(.pre) .jcard:nth-child(3) { transition-delay: .65s; } .jy:not(.pre) .jcard:nth-child(4) { transition-delay: .8s; }
  .jy:not(.pre) .jy__img img { transform: scale(1); }
  .jy.pre .jy__panel::before { width: 0; } .jy__panel::before { transition: width .5s .25s ease; }
  .jstart.pre, .jend.pre { opacity: 0; transform: translateY(20px); } .jstart, .jend { transition: opacity .7s ease, transform .7s ease; }
}

@media (max-width: 860px) {
  .journey__pipe { left: 30px; margin-left: 0; }
  [dir="rtl"] .journey__pipe { left: auto; right: 30px; }
  .jstart, .jend { justify-items: start; text-align: start; grid-template-columns: 60px 1fr; align-items: start; }
  .jstart > div, .jend > div { background: transparent; padding: 0; }
  .jdot { margin-inline-start: 22px; }
  .jy { grid-template-columns: 74px 1fr; padding: 20px 0; }
  .jy__node { grid-column: 1; margin-top: 18px; justify-self: start; }
  .jy__node span { width: 64px; height: 64px; font-size: 15px; }
  .jy--r .jy__panel, .jy--l .jy__panel { grid-column: 2; }
  .jy__panel::before, .jy--l .jy__panel::before, .jy--r .jy__panel::before { inset-inline-end: auto; inset-inline-start: -14px; width: 14px; top: 48px; }
  .jy__img { height: 150px; } .jy__img b { font-size: 44px; bottom: 28px; }
  .jcard { padding: 16px 18px; grid-template-columns: 34px 1fr; gap: 12px; } .jcard__ic { width: 34px; height: 34px; }
  .jy--l.pre .jy__panel, .jy--r.pre .jy__panel, [dir="rtl"] .jy.pre .jy__panel { transform: translateY(40px); }
}
@media (min-width: 861px) { .jy + .jy { margin-top: -150px; } .jy:last-of-type { margin-bottom: 20px; } }
