/* ============ Fonts ============ */
@font-face {
  font-family: "Futurism";
  src: url("fonts/Futurism-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Futurism";
  src: url("fonts/Futurism-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --bg: #e9ecf2;
  --bg-2: #c6d6ef;
  --ink: #191919;
  --mute: #a6adbc;
  --blue: #1f2eb8;
  --blue-2: #6b77e4;
  --blue-3: #8199cb;
  --violet: #8c96ff;
  --lime: #e1f900;
  --chip: #dbe3f1;
  --white: #fff;

  /* 1 design px at 1920 wide, scales down on smaller desktops */
  --s: min(1px, calc(100vw / 1920));
  --wrap: calc(1610 * var(--s));
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: calc(100 * var(--s));
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Futurism", "Assistant", "Heebo", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; right: 16px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 5px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.center { display: flex; justify-content: center; }

/* ============ Text selection & scrollbar ============ */
::selection { background: var(--blue); color: #fff; }
/* on the dark-blue sections the selection flips to white so it stays visible */
.vals ::selection, .talk-card ::selection, .p-end ::selection, .field-band ::selection, .hero-stat ::selection { background: #fff; color: var(--blue); }
html { scrollbar-color: var(--blue) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #121d8a; }
::-webkit-scrollbar-thumb:active { background: var(--violet); }

/* ============ Shared ============ */
.eyebrow {
  display: flex; align-items: center; gap: calc(20 * var(--s));
  font-size: max(calc(18 * var(--s)), 14px); line-height: 1;
}
.eyebrow::before {
  content: ""; width: calc(25 * var(--s)); min-width: 18px; height: 3px; background: var(--blue);
  transform-origin: right; transition: transform .8s var(--ease);
}
.eyebrow[data-reveal]:not(.in)::before { transform: scaleX(0); }

.h-xl { font-size: max(calc(70 * var(--s)), 34px); line-height: .9; font-weight: 400; margin-top: calc(35 * var(--s)); }
.h-lg { font-size: max(calc(50 * var(--s)), 28px); line-height: .95; letter-spacing: -.02em; font-weight: 400; margin-top: calc(35 * var(--s)); }

/* Buttons – hover: label rolls up to a fresh copy, arrow slides out & back in,
   and a darker fill grows from the arrow side. No lift, no glow. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: calc(40 * var(--s));
  min-width: calc(209 * var(--s));
  height: max(calc(60 * var(--s)), 48px);
  padding-inline: calc(26 * var(--s)) calc(27 * var(--s));
  background: var(--blue); color: #fff; border-radius: 5px;
  font-size: max(calc(20 * var(--s)), 16px); line-height: 1; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: #121d8a;
  clip-path: circle(0% at 0% 50%);
  transition: clip-path .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at 0% 50%); }
.btn > span { display: inline-block; overflow: hidden; line-height: 1.25; height: 1.25em; }
.btn > span > i { display: inline-block; font-style: normal; text-shadow: 0 1.25em 0 currentColor; transition: transform .5s var(--ease); }
.btn:hover > span > i, .btn:focus-visible > span > i { transform: translateY(-1.25em); }
.btn-arrow { width: 7px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { animation: arrowLoop .55s var(--ease); }
@keyframes arrowLoop {
  0% { transform: none; opacity: 1; }
  45% { transform: translateX(-14px); opacity: 0; }
  46% { transform: translateX(14px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.btn-ghost::before { background: var(--blue); }
.btn-ghost:hover { color: #fff; }
.btn-sm { min-width: calc(119 * var(--s)); height: max(calc(35 * var(--s)), 34px); font-size: max(calc(18 * var(--s)), 15px); padding-inline: calc(14 * var(--s)) calc(15 * var(--s)); gap: calc(20 * var(--s)); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal].in { opacity: 1; transform: none; }

/* page-load entrance */
.anim-in { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h); min-height: 64px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), box-shadow .3s;
  animation: dropIn .8s var(--ease) both;
}
@keyframes dropIn { from { transform: translateY(-100%); } }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(25,25,60,.35); }
.site-header.hide { transform: translateY(-100%); }
.header-inner {
  height: 100%;
  width: calc(1786 * var(--s)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand { justify-self: start; display: grid; justify-items: end; gap: calc(3 * var(--s)); width: calc(160 * var(--s)); min-width: 120px; }
.brand-mark { width: 100%; }
.brand-tag { width: 69.6%; }
.main-nav { display: flex; gap: calc(40 * var(--s)); font-size: max(calc(18 * var(--s)), 15px); }
.main-nav a { position: relative; padding-block: 6px; }
.main-nav a::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { justify-self: end; }
.burger { display: none; }

/* ============ Hero ============ */
.hero {
  padding-top: var(--header-h);
  background: linear-gradient(180deg, var(--bg) 11.9%, var(--bg-2) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr calc(829 * var(--s));
  min-height: calc(745 * var(--s));
}
.hero-copy { padding: calc(136 * var(--s)) calc(95 * var(--s)) 0 0; }
.hero-title {
  font-weight: 400; font-size: max(calc(85 * var(--s)), 40px);
  line-height: .7; letter-spacing: -.03em; max-width: calc(537 * var(--s));
}
.hero-title .line { display: block; overflow: hidden; padding-block: .14em .06em; margin-block: -.14em -.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: .15s; }
.hero-title .line:nth-child(2) > span { animation-delay: .27s; }
.hero-title .line:nth-child(3) > span { animation-delay: .39s; }
@keyframes lineUp { to { transform: none; } }
.hero-text { margin-top: calc(41 * var(--s)); max-width: calc(690 * var(--s)); font-size: max(calc(30 * var(--s)), 18px); line-height: .97; }
.hero-btn { margin-top: calc(83 * var(--s)); }

.hero-visual { position: relative; margin-top: calc(88 * var(--s)); aspect-ratio: 829 / 550; align-self: start; }
.hero-img {
  position: absolute; top: 0; bottom: 0; left: 12.44%; width: 81.06%;
  border-radius: 10px; overflow: hidden; background: #cfd5e2;
  clip-path: inset(0 0 0 100% round 10px);
  animation: wipe 1.4s var(--ease) .2s forwards;
}
.hero-img img, .hero-img video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); animation: settle 2.6s var(--ease) .2s forwards; will-change: transform; }
.video-toggle {
  position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.video-toggle:hover, .video-toggle:focus-visible { background: #fff; color: var(--blue); transform: scale(1.06); }
.vt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vt-ring circle { fill: none; stroke-width: 1.6; }
.vt-track { stroke: rgba(255,255,255,.35); }
.vt-prog { stroke: var(--lime); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--vp, 0)); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.video-toggle:hover .vt-track { stroke: rgba(31,46,184,.2); }
.vt-ico { position: relative; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vt-ico .i-play { fill: currentColor; stroke-width: 1; }
.video-toggle .i-play, .video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: rgba(31,46,184,.4); mix-blend-mode: multiply; pointer-events: none; }
@keyframes wipe { to { clip-path: inset(0 0 0 0 round 10px); } }
@keyframes settle { to { transform: scale(1.04); } }

.hero-badge {
  position: absolute; top: 8.73%; left: 70.33%; width: 29.67%;
  background: #fff; border-radius: 10px;
  padding: calc(16 * var(--s)) calc(21 * var(--s)) calc(16 * var(--s));
  display: grid; justify-items: start; gap: calc(9 * var(--s));
  font-size: max(calc(22 * var(--s)), 13px); line-height: .88; letter-spacing: -.02em; white-space: nowrap;
  box-shadow: 0 18px 40px -24px rgba(31,46,184,.45);
  opacity: 0; animation: pop .8s var(--ease) 1s forwards, float 6s ease-in-out 1.8s infinite;
}
.hero-badge img { width: calc(106 * var(--s)); min-width: 70px; }
.hero-stat {
  position: absolute; top: 48%; left: 0; width: 24.85%;
  min-height: calc(231 * var(--s));
  background: var(--violet); color: #fff; border-radius: 10px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: calc(31 * var(--s)) calc(27 * var(--s)) calc(28 * var(--s));
  box-shadow: 0 24px 50px -26px rgba(31,46,184,.7);
  opacity: 0; animation: pop .8s var(--ease) 1.15s forwards, float 7s ease-in-out 2s infinite reverse;
}
a.hero-stat { cursor: pointer; transition: background .4s var(--ease); }
a.hero-stat:hover { background: #7a85ff; }
.stat-arrow { position: absolute; left: calc(20 * var(--s)); bottom: calc(22 * var(--s)); width: 7px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.5; opacity: .7; transition: transform .4s var(--ease), opacity .3s; }
a.hero-stat:hover .stat-arrow { transform: translateX(-5px); opacity: 1; }
.avatars { display: flex; }
.avatars img { width: calc(43 * var(--s)); min-width: 28px; aspect-ratio: 1; border-radius: 50%; margin-inline-start: calc(-19 * var(--s)); }
.avatars img:first-child { margin-inline-start: 0; }
.stat-num { display: flex; font-weight: 400; font-size: max(calc(70 * var(--s)), 36px); line-height: .75; letter-spacing: -.02em; margin-top: calc(32 * var(--s)); align-self: flex-start; }
.stat-label { margin-top: calc(16 * var(--s)); font-size: max(calc(22 * var(--s)), 13px); line-height: .95; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ============ Services marquee ============ */
.services { padding-block: calc(39 * var(--s)) calc(40 * var(--s)); overflow: hidden; }
.marquee {
  width: var(--wrap); margin-inline: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; direction: rtl; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.m-item { font-size: max(calc(30 * var(--s)), 20px); line-height: 1; white-space: nowrap; padding-inline: calc(84 * var(--s)); }
.dash { width: calc(25 * var(--s)); min-width: 18px; height: 3px; background: var(--blue); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ============ About ============ */
.about { padding-top: calc(30 * var(--s)); }
.about-text {
  margin-top: calc(17 * var(--s)); max-width: calc(1314 * var(--s));
  font-size: max(calc(50 * var(--s)), 24px); line-height: .95; letter-spacing: -.02em;
  color: var(--mute);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) calc(760 * var(--s)); gap: calc(70 * var(--s)); align-items: center; }
.about-grid .about-text { max-width: calc(840 * var(--s)); font-size: max(calc(44 * var(--s)), 22px); }
.pipes-3d { position: relative; aspect-ratio: 1 / 0.92; width: 100%; }
.pipes-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.pipes-3d::after { /* soft fade into the page background */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: none; }
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .pipes-3d { max-width: 520px; justify-self: center; }
}
.about-text .w { transition: color .35s; }
.about-text .w.on { color: var(--ink); }

/* ============ Map ============ */
.map-sec { padding-top: calc(50 * var(--s)); }
.map {
  position: relative; margin-top: calc(55 * var(--s));
  width: calc(1612 * var(--s)); aspect-ratio: 1612 / 556;
  border-radius: 10px; overflow: hidden; background: #fff;
}
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 21.3%; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.map.in .map-img { transform: none; }
.ml {
  position: absolute; left: var(--x); top: var(--y); transform: translateX(-50%);
  font-size: max(calc(16 * var(--s)), 11px); line-height: .88; text-align: center; white-space: nowrap;
  pointer-events: none;
}
.ml-city { font-size: max(calc(22 * var(--s)), 13px); }

.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: max(calc(19.24 * var(--s)), 15px); aspect-ratio: 19.24 / 20.8;
  transform-origin: 50% 100%;
  opacity: 0; transform: translateY(-30px) scale(.6);
  transition: opacity .5s var(--ease), transform .7s cubic-bezier(.3,1.6,.5,1), filter .3s;
  transition-delay: var(--pd, 0s);
}
.pin svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 3px rgba(25,25,60,.25)); }
.pin::before { /* pulse ring */
  content: ""; position: absolute; left: 50%; top: 46%; width: 100%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%; background: var(--c); opacity: 0; pointer-events: none;
}
.map.in .pin { opacity: 1; transform: none; }
.map.in .pin::before { animation: pulse 2.8s ease-out calc(var(--pd, 0s) + 1s) infinite; }
.pin:hover, .pin:focus-visible, .pin.active { transform: translateY(-4px) scale(1.25) !important; z-index: 3; }
.pin.off { opacity: 0 !important; transform: scale(.3) !important; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.callout {
  position: absolute; z-index: 5;
  width: max(calc(130 * var(--s)), 110px); aspect-ratio: 130 / 144;
  padding: max(calc(4 * var(--s)), 3px);
  background: url("assets/callout.svg") no-repeat center / 100% 100%;
  filter: drop-shadow(0 10px 18px rgba(25,25,60,.25));
  transform-origin: 50% 100%;
  translate: -50% -100%;
  animation: calloutIn .45s var(--ease);
}
.callout[hidden] { display: none; }
.callout img { width: 100%; aspect-ratio: 123 / 79; object-fit: cover; border-radius: 4px; }
.callout-txt { display: grid; justify-items: end; margin-top: 6%; padding-inline: 6%; text-align: right; line-height: .9; }
.callout-txt b { font-weight: 400; font-size: max(calc(16 * var(--s)), 12px); }
.callout-txt small { font-size: max(calc(12 * var(--s)), 10px); }
@keyframes calloutIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* ----- Live map ----- */
.live-map { position: absolute; inset: 0; z-index: 1; background: transparent; font-family: inherit; opacity: 0; transition: opacity .8s var(--ease); }
.map.live .live-map { opacity: 1; }
.map.live .map-img { opacity: 0; transition: opacity .8s; }
/* tint the light basemap toward the brand blue */
.live-map .leaflet-tile-pane { filter: grayscale(1) contrast(.85) brightness(1.12) sepia(.35) hue-rotate(180deg) saturate(1.6); }
.live-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.7); direction: ltr; }
.live-map .leaflet-bar a { color: var(--blue); border-color: #e2e6ef; }
.map-hint { margin-top: 14px; font-size: max(calc(16 * var(--s)), 13px); color: #5d6475; }

.pt-pin { background: none; border: 0; }
.pt-pin svg { width: 100%; height: 100%; overflow: visible; display: block;
  filter: drop-shadow(0 2px 3px rgba(25,25,60,.3));
  transform-origin: 50% 100%;
  animation: pinDrop .7s cubic-bezier(.3,1.6,.5,1) var(--pd, 0s) both;
  transition: transform .3s var(--ease); }
.pt-pin:hover svg, .pt-pin:focus-visible svg { transform: scale(1.3) translateY(-2px); }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-26px) scale(.6); } }

/* popup takes the colour of the pin it belongs to */
.pt-pop { --pc: var(--lime); --pt: var(--ink); }
.pt-pop.pt-public { --pc: #1f2eb8; --pt: #fff; }
.pt-pop.pt-inst { --pc: #8c96ff; --pt: #fff; }
.pt-pop.pt-none { --pc: #1f2eb8; --pt: #fff; }
.pt-pop .leaflet-popup-content-wrapper:has(.no-img) { padding: 0; border-radius: 8px; }
.pt-card.no-img .pt-txt { padding: 18px 20px 16px; gap: 8px; }
.pt-card.no-img .pt-txt b { font-size: 18px; line-height: 1.05; }
.pt-card.no-img .pt-txt small { font-size: 13px; }
.pt-card.no-img .pt-txt em { margin-top: 8px; font-size: 13px; }
.legend[hidden] { display: none; }
.map-count { font-size: max(calc(16 * var(--s)), 13px); color: #5d6475; padding-top: calc(14 * var(--s)); }
.pt-cluster { background: none; border: 0; }
.pt-cluster span {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 14px; font-family: "Futurism", sans-serif;
  box-shadow: 0 0 0 6px rgba(31,46,184,.18), 0 6px 14px -6px rgba(25,25,60,.5);
  transition: transform .3s var(--ease);
}
.pt-cluster:hover span { transform: scale(1.1); }
.pt-pop .leaflet-popup-content-wrapper { background: var(--pc); color: var(--pt); border-radius: 6px; padding: 4px; box-shadow: 0 14px 30px -12px rgba(25,25,60,.45); }
.pt-pop .leaflet-popup-tip { background: var(--pc); box-shadow: none; }
.pt-pop .leaflet-popup-content { margin: 0; width: 200px !important; line-height: 1; font-family: "Futurism", system-ui, sans-serif; }
.pt-card { display: block; color: inherit !important; text-decoration: none; }
.pt-card img { width: 100%; aspect-ratio: 123 / 79; object-fit: cover; border-radius: 4px; display: block; }
.pt-txt { display: grid; gap: 4px; padding: 8px 6px 6px; text-align: right; direction: rtl; }
.pt-txt b { font-weight: 400; font-size: 15px; }
.pt-txt small { font-size: 12px; opacity: .85; }
.pt-txt em { font-style: normal; font-size: 12px; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }

.map-foot { display: flex; justify-content: space-between; align-items: flex-start; margin-top: calc(28 * var(--s)); gap: 20px; }
.legend { display: flex; gap: 12px max(calc(36 * var(--s)), 22px); padding-top: calc(14 * var(--s)); flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: max(calc(16 * var(--s)), 13px); line-height: 1; transition: opacity .3s; }
.lg i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); transition: transform .3s var(--ease); }
.lg:hover i { transform: scale(1.35); }
.lg[aria-pressed="false"] { opacity: .35; }

/* ============ Projects ============ */
.projects { padding-top: calc(170 * var(--s)); }
.carousel { position: relative; margin-top: calc(65 * var(--s)); }
.track {
  display: flex; gap: calc(17 * var(--s));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
  padding-bottom: 8px;
}
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 calc(553 * var(--s)); scroll-snap-align: start; }
.card-img { display: block; position: relative; aspect-ratio: 553 / 512; border-radius: 5px; overflow: hidden; background: #d4dbe8; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.2s var(--ease); }
.card-img img.crop-1 { inset: auto; left: -88.02%; top: -109.46%; width: 276.04%; height: 209.46%; max-width: none; transform-origin: 50% 75%; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,46,184,.25), transparent 50%); opacity: 0; transition: opacity .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card:hover .card-img::after { opacity: 1; }
.card-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: calc(23 * var(--s)); padding-inline: calc(14 * var(--s)) calc(14 * var(--s)); }
.card-cap h3 { font-weight: 400; font-size: max(calc(30 * var(--s)), 18px); line-height: 1; }
.more { display: inline-flex; align-items: center; gap: 12px; margin-top: calc(12 * var(--s)); font-size: max(calc(16 * var(--s)), 13px); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.more svg { width: 5px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .35s var(--ease); }
.more:hover svg { transform: translateX(-4px); }
.car-btn {
  position: absolute; left: calc(-30 * var(--s)); top: calc(256 * var(--s) - 30 * var(--s));
  width: max(calc(60 * var(--s)), 44px); aspect-ratio: 1; border-radius: 5px; background: var(--blue);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.car-btn svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.5; transition: transform .35s var(--ease); }
.car-btn:hover { box-shadow: 0 10px 30px -10px rgba(31,46,184,.7); }
.car-btn:hover svg { transform: translateX(-4px); }
.car-btn.flip svg { transform: scaleX(-1); }

/* ============ Field band (full-width photo) ============ */
.field-band {
  --p: 0; /* scroll progress 0→1, set by JS */
  position: relative; margin-top: calc(170 * var(--s));
  height: max(calc(690 * var(--s)), 420px);
  overflow: hidden; color: #fff;
  /* starts as a rounded card the width of the content, opens to full-bleed as you scroll in */
  clip-path: inset(0 calc((1 - var(--p)) * (100vw - var(--wrap)) / 2) round calc((1 - var(--p)) * 12px));
}
.band-media { position: absolute; inset: -12% 0; }
.band-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.band-media .slide.on { opacity: 1; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform: translateY(calc((var(--p) - .5) * -6%)) scale(1.08); will-change: transform; }
.band-media .slide.on img { animation: kenburns 7s linear both; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.05; } }
.band-media::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(270deg, rgba(14,20,90,.82) 0%, rgba(14,20,90,.45) 38%, rgba(14,20,90,0) 70%),
    linear-gradient(0deg, rgba(14,20,90,.35), transparent 40%); }
.band-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.band-eyebrow { color: #fff; }
.band-eyebrow::before { background: var(--lime); }
.band-title { margin-top: calc(30 * var(--s)); font-weight: 400; font-size: max(calc(110 * var(--s)), 44px); line-height: .8; letter-spacing: -.035em; }
.band-title .line { display: block; overflow: hidden; padding-block: .1em .06em; margin-block: -.1em -.06em; }
.band-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.band-title .line:nth-child(2) > span { transition-delay: .12s; }
.field-band.in .band-title .line > span { transform: none; }
.band-sub { margin-top: calc(34 * var(--s)); font-size: max(calc(22 * var(--s)), 15px); color: rgba(255,255,255,.82); letter-spacing: .01em;
  opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.field-band.in .band-sub { opacity: 1; transform: none; }

/* technical callouts */
.tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; direction: rtl;
  opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tag i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(225,249,0,.25); flex: none; }
.tag i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime); animation: tagPulse 2.4s ease-out infinite; }
.tag b { font-weight: 400; font-size: max(calc(15 * var(--s)), 12px); background: rgba(255,255,255,.92); color: var(--ink); padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.tag-1 { left: 19%; top: 34%; transition-delay: .7s; }
.tag-2 { left: 33%; top: 15%; transition-delay: .95s; }
.field-band.in .tag { opacity: 1; transform: none; }
.field-band.in.no-tags .tag { opacity: 0; transform: translateY(8px); transition-delay: 0s; }
@keyframes tagPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

@media (max-width: 1100px) {
  .field-band { margin-top: 80px; clip-path: none; height: 440px; }
  .band-media::after { background: linear-gradient(0deg, rgba(14,20,90,.85) 0%, rgba(14,20,90,.35) 55%, rgba(14,20,90,.15) 100%); }
  .band-copy { justify-content: flex-end; padding-bottom: 44px; }
  .tag-1 { left: 10%; top: 22%; } .tag-2 { left: 40%; top: 9%; }
}
@media (prefers-reduced-motion: reduce) {
  .field-band { clip-path: none; }
  .band-title .line > span, .band-sub, .tag { transform: none !important; opacity: 1 !important; }
}

/* ============ Partners ============ */
.partners { padding-top: calc(167 * var(--s)); padding-bottom: calc(190 * var(--s)); }
.logos {
  margin-top: calc(65 * var(--s)); display: grid; gap: calc(66 * var(--s));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-row { overflow: hidden; direction: ltr; }
.logo-strip { display: flex; width: max-content; direction: ltr; animation: logos var(--dur, 40s) linear infinite; }
.logo-row[data-dir="-1"] .logo-strip { animation-direction: reverse; }
.logo-row:hover .logo-strip { animation-play-state: paused; }
.logo-set { display: flex; align-items: center; gap: calc(50 * var(--s)); padding-inline-end: calc(50 * var(--s)); flex: none; }
.logo-set { min-height: max(calc(60 * var(--s)), 42px); }
.logo { display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.logo:hover { transform: scale(1.06); }
.logo img { height: 100%; width: 100%; object-fit: contain; }
@keyframes logos { to { transform: translateX(-50%); } }

/* ============ Process ============ */
.process {
  padding-top: calc(122 * var(--s)); padding-bottom: calc(98 * var(--s));
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 44%, var(--bg) 50%, var(--bg-2) 100%);
}
.steps {
  margin-top: calc(65 * var(--s));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(56 * var(--s));
  align-items: start;
}
.step {
  background: #fff; border-radius: 5px;
  min-height: calc(780 * var(--s)); min-width: 0;
  padding: calc(74 * var(--s)) calc(82 * var(--s)) 0;
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), box-shadow .5s var(--ease);
}
.step:nth-child(2) { margin-top: calc(143 * var(--s)); }
.step:nth-child(3) { margin-top: calc(321 * var(--s)); }
.step:hover { box-shadow: 0 30px 60px -36px rgba(31,46,184,.5); }
.step-img { aspect-ratio: 336 / 396; will-change: transform; }
.step-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease); }
.step:hover .step-img img { transform: rotate(-3deg) scale(1.04); }
.step h3 { margin-top: calc(58 * var(--s)); font-weight: 400; font-size: max(calc(50 * var(--s)), 28px); line-height: .75; }
.step p { margin-top: calc(28 * var(--s)); font-size: max(calc(25 * var(--s)), 16px); line-height: .97; }
.process .center { margin-top: calc(71 * var(--s)); }

/* ============ Footer ============ */
.site-footer { padding-top: calc(153 * var(--s)); padding-bottom: calc(29 * var(--s)); }
.footer-grid { display: flex; align-items: flex-start; gap: calc(170 * var(--s)); }
.f-nav, .f-contact { display: grid; gap: calc(30 * var(--s)); font-size: max(calc(18 * var(--s)), 15px); line-height: 1; }
.f-nav a, .f-contact a { transition: color .25s; }
.f-nav a:hover, .f-contact a:hover { color: var(--blue); }
.f-contact a[dir="ltr"] { justify-self: start; }
.f-contact .u { text-decoration: underline; text-underline-offset: 3px; }
.f-social { margin-right: auto; display: flex; gap: calc(5 * var(--s)); direction: ltr; }
.f-social a {
  width: max(calc(42 * var(--s)), 38px); aspect-ratio: 1; border-radius: 5px; background: var(--chip);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.f-social a img { max-width: 45%; max-height: 45%; transition: transform .45s var(--ease); }
/* hover: colours stay the same – just a soft lift and shadow */
.f-social a { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.f-social a:hover, .f-social a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(31,46,184,.45); }
.f-logo { width: calc(184 * var(--s)); min-width: 130px; margin-inline-start: calc(97 * var(--s)); }
.credit { display: flex; align-items: center; gap: 6px; justify-content: flex-start; margin-top: calc(80 * var(--s)); font-size: 14px; }
.credit img { height: 14px; width: auto; }

/* ============ Tablet / Mobile ============ */
@media (max-width: 1100px) {
  :root { --wrap: calc(100vw - 48px); --header-h: 68px; }
  .header-inner { width: calc(100vw - 32px); grid-template-columns: 1fr auto auto; gap: 12px; }
  .burger { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; }
  .burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px 24px 24px; font-size: 22px;
    box-shadow: 0 20px 30px -20px rgba(25,25,60,.3);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
  }
  .main-nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .main-nav a { padding-block: 14px; border-bottom: 1px solid #d6dbe6; }
  .main-nav a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-bottom: 48px; }
  .hero-copy { padding: 48px 0 0; }
  .hero-title { max-width: 560px; }
  .hero-text { max-width: 560px; margin-top: 22px; line-height: 1.1; }
  .about-text { line-height: 1.05; }
  .step p, .card-cap h3 { line-height: 1.1; }
  .hero-btn { margin-top: 32px; }
  .hero-visual { margin-top: 48px; width: 100%; }
  .hero-img { left: 8%; width: 92%; }
  .hero-badge { left: auto; right: 4%; top: -18px; width: auto; padding: 12px 14px; gap: 8px; }
  .hero-stat { left: 0; top: auto; bottom: -24px; width: 34%; max-width: 180px; padding: 16px; }
  .stat-num { margin-top: 14px; }
  .stat-label { margin-top: 12px; }

  .services { padding-block: 40px; }
  .marquee { width: 100%; }
  .about, .map-sec, .projects, .partners { padding-top: 80px; }
  .partners { padding-bottom: 80px; }
  .h-xl, .h-lg { margin-top: 18px; }
  .about-text { margin-top: 16px; }

  .map { width: 100%; aspect-ratio: 4 / 3; margin-top: 28px; }
  .ml:not(.ml-city) { display: none; }
  .map-foot { flex-direction: column-reverse; align-items: stretch; margin-top: 18px; }
  .map-foot .btn { align-self: flex-start; }

  .carousel { margin-top: 28px; margin-inline: -24px; }
  .track { padding-inline: 24px; scroll-padding-inline: 24px; gap: 14px; }
  .card { flex-basis: min(78vw, 440px); }
  .card-cap { margin-top: 14px; padding: 0; flex-direction: column; gap: 10px; }
  .more { margin-top: 0; }
  .car-btn { left: 12px; top: calc(min(78vw, 440px) * 512 / 553 / 2 - 22px); }

  .logos { margin-top: 32px; gap: 28px; width: 100%; }
  .logo-set { gap: 36px; padding-inline-end: 36px; }

  .process { padding-top: 80px; padding-bottom: 64px; }
  .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .step { min-height: 0; padding: 32px 28px 36px; display: grid; grid-template-columns: 38% 1fr; column-gap: 24px; align-items: center; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .step-img { grid-row: span 2; }
  .step h3 { margin-top: 0; align-self: end; }
  .step p { margin-top: 12px; align-self: start; }
  .process .center { margin-top: 36px; }

  .site-footer { padding-top: 64px; padding-bottom: 24px; }
  .footer-grid { flex-wrap: wrap; gap: 40px 56px; }
  .f-nav, .f-contact { gap: 18px; }
  .f-social { margin-right: 0; order: 4; width: 100%; direction: rtl; gap: 8px; }
  .f-logo { order: -1; width: 100%; margin: 0; }
  .f-logo img { width: 160px; }
  .credit { margin-top: 40px; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero-badge { font-size: 12px; }
  .hero-stat { width: 42%; }
  .step { grid-template-columns: 1fr; padding: 28px 24px 32px; }
  .step-img { grid-row: auto; width: 62%; margin-inline: auto; }
  .step h3 { margin-top: 24px; }
  .map { aspect-ratio: 1 / 1; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee-track, .logo-strip { animation: none !important; }
  [data-reveal], .anim-in { opacity: 1 !important; transform: none !important; }
}

/* ============ Soft contact strip (flows into the footer, like the home page) ============ */
/* low, quiet blue strip: text on the right, action on the left */
.soft-cta { margin-top: calc(180 * var(--s)); }
.archive + .soft-cta { margin-top: 0; }
.soft-cta .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(14 * var(--s)) calc(60 * var(--s));
  padding: max(calc(72 * var(--s)), 40px) max(calc(72 * var(--s)), 22px);
  background: var(--blue); color: #fff; border-radius: 6px;
}
.soft-cta h2 { grid-column: 1; font-weight: 400; font-size: max(calc(52 * var(--s)), 28px); line-height: .95; letter-spacing: -.02em; }
.soft-cta p { grid-column: 1; font-size: max(calc(21 * var(--s)), 15px); color: rgba(255,255,255,.75); }
.soft-cta .soft-row { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px calc(32 * var(--s)); }
.soft-cta .btn { background: #fff; color: var(--blue); }
.soft-cta .btn::before { background: var(--lime); }
.soft-cta .btn:hover { color: var(--ink); }
.soft-cta .soft-link { font-size: 16px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 5px; transition: text-decoration-color .3s; }
.soft-cta .soft-link:hover { text-decoration-color: #fff; }
@media (max-width: 700px) {
  .soft-cta .wrap { grid-template-columns: 1fr; }
  .soft-cta .soft-row { grid-column: 1; grid-row: auto; margin-top: 14px; flex-wrap: wrap; }
}

/* =====================================================
   ONE PHOTO GRADE – every site photo gets the same cool, slightly muted look
   so photos, the 3D pipes and the tinted map read as one family
   ===================================================== */
.tp img, .who-img img, .mate-ph img, .vfloat i, .svc-main img, .field-band img,
.card-img img, .pm-hero img, .pt-card img, .mv-item .thumb {
  filter: saturate(.8) contrast(1.05) brightness(1.02);
}
