/* ==========================================================================
   Sterling Pipeline & Engineering — design tokens (mirrors the Figma file)
   ========================================================================== */
:root {
  /* Colour */
  --navy: #0B1F33;
  --navy-800: #102A44;
  --navy-700: #17385A;
  --steel: #5A6B7B;
  --steel-300: #9AA8B5;
  --steel-100: #E1E5E9;
  --orange: #F26B1D;
  --orange-600: #C24F0C;   /* AA-contrast orange for small text on light bg */
  --off: #F5F6F7;
  --white: #FFFFFF;

  /* Type */
  --font-head: "Barlow", "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .08);
  --shadow-lift: 0 2px 4px rgba(11, 31, 51, .08), 0 18px 40px rgba(11, 31, 51, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--off); color: var(--navy);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; }
p { margin: 0 0 var(--s-4); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 16px; }
section[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.section { padding: var(--s-9) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--off); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-600);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.section--navy .eyebrow { color: var(--orange); }
.section-title { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin: var(--s-3) 0 var(--s-4); letter-spacing: -.01em; }
.section-lead { font-size: 18px; color: var(--steel); max-width: 680px; }
.section--navy .section-lead { color: var(--steel-300); }
.section-head { margin-bottom: var(--s-7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 700 16px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #FF7E33; box-shadow: 0 10px 24px rgba(242, 107, 29, .35); }
.btn--ghost { border-color: rgba(245, 246, 247, .6); color: var(--off); }
.btn--ghost:hover { background: var(--off); color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Opening sequence: two pipe sections are fitted, welded, then the page opens ---------- */
.intro-pending body { background: var(--navy); overflow: hidden; }
.intro-pending .site-header, .intro-pending main, .intro-pending .footer, .intro-pending .scroll-pipe { visibility: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer; }
.intro__plate { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(ellipse at 100% 50%, #142B45, var(--navy) 70%); transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.intro__plate--l { left: 0; }
.intro__plate--r { right: 0; background: radial-gradient(ellipse at 0% 50%, #142B45, var(--navy) 70%); }
.intro.is-open .intro__plate--l { transform: translateX(-102%); }
.intro.is-open .intro__plate--r { transform: translateX(102%); }
.intro.is-open { pointer-events: none; }
.intro__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transition: opacity .35s ease; }
.intro.is-open .intro__stage { opacity: 0; }
.intro__joint { position: relative; width: min(88vw, 900px); height: clamp(56px, 9vw, 96px); }
.intro__pipe {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(180deg, #C9D3DC 0%, #8C9BAA 18%, #5A6B7B 48%, #2D3E51 82%, #1A2A3C 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 20px 40px rgba(0, 0, 0, .45);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.intro__pipe::after { /* bevelled end at the joint */ content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #E6ECF1, #6B7D8F 50%, #1A2A3C); }
.intro__pipe--l { left: 0; border-radius: 10px 0 0 10px; transform: translateX(-120vw); }
.intro__pipe--l::after { right: 0; }
.intro__pipe--r { right: 0; border-radius: 0 10px 10px 0; transform: translateX(120vw); }
.intro__pipe--r::after { left: 0; }
.intro.is-in .intro__pipe { transform: none; }
.intro__bead {
  position: absolute; left: 50%; top: -3px; bottom: -3px; width: 12px; translate: -50% 0; border-radius: 6px; transform-origin: top;
  transform: scaleY(0); background: linear-gradient(180deg, #FFF6E8, #FFC27A 40%, var(--orange));
  box-shadow: 0 0 14px 4px rgba(255, 170, 90, .85), 0 0 40px 10px rgba(242, 107, 29, .45);
  transition: transform .8s linear, background 1s ease, box-shadow 1s ease;
}
.intro.is-welding .intro__bead { transform: scaleY(1); }
.intro.is-cooled .intro__bead { background: linear-gradient(180deg, #D9884A, #A8582A 50%, #6B4A3A); box-shadow: 0 0 6px 1px rgba(242, 107, 29, .35); }
.intro__arc {
  position: absolute; left: 50%; top: 0; width: 120px; height: 120px; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #FFFFFF 0 10%, rgba(200, 225, 255, .95) 18%, rgba(140, 190, 255, .45) 38%, rgba(242, 107, 29, .2) 55%, transparent 70%);
  mix-blend-mode: screen;
}
.intro.is-welding .intro__arc { opacity: 1; animation: intro-arc-travel .8s linear forwards, flicker .07s steps(2) infinite; }
@keyframes intro-arc-travel { from { top: 0; } to { top: 100%; } }
.intro.is-cooled .intro__arc { opacity: 0; animation: none; transition: opacity .2s; }
.intro__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro__brand { position: absolute; left: 50%; top: calc(50% + clamp(56px, 9vw, 96px) / 2 + 36px); translate: -50% 0; display: grid; justify-items: center; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; color: var(--off); text-align: center; width: 90vw; }
.intro.is-logo .intro__brand { opacity: 1; transform: none; }
.intro__brand svg { width: min(300px, 70vw); height: auto; }
.intro__brand p { margin: 0; font: 600 13px var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--steel-300); }
.intro__skip { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: none; border: 1px solid rgba(154, 168, 181, .4); color: var(--steel-300); border-radius: 999px; padding: 6px 14px; font: 600 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.intro__skip:hover, .intro__skip:focus-visible { color: var(--white); border-color: var(--white); }
.intro.is-open .intro__skip { opacity: 0; }

/* hero pieces rise into place once the page opens (every visit to the home page) */
.js-assemble .hero__content > *, .js-assemble .hero__route { opacity: 0; transform: translateY(26px); }
.js-assemble .hero__media { transform: scale(1.08); transition: transform 1.8s cubic-bezier(.2, .8, .2, 1); }
.is-assembled .hero__content > *, .is-assembled .hero__route { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-assembled .hero__content > :nth-child(2) { transition-delay: .12s; }
.is-assembled .hero__content > :nth-child(3) { transition-delay: .24s; }
.is-assembled .hero__content > :nth-child(4) { transition-delay: .36s; }
.is-assembled .hero__route { transition-delay: .5s; }
.is-assembled .hero__media { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: var(--off);
  transition: height .3s var(--ease), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { height: 64px; background: rgba(11, 31, 51, .96); box-shadow: 0 4px 20px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 46px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand svg { height: 38px; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__list { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav__list a { font: 600 15px var(--font-head); letter-spacing: .04em; text-decoration: none; color: var(--steel-100); padding: 6px 0; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right .25s var(--ease); }
.nav__list a:hover::after, .nav__list a:focus-visible::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: var(--s-4) 16px var(--s-6); box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 18px; }
  .nav .btn { margin-top: var(--s-5); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 940px); display: flex; align-items: center; overflow: hidden;
  background: var(--navy); color: var(--off); padding: 120px 0 var(--s-9);
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero__route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__arc { /* flicker over the photo's welding arc */
  position: absolute; left: 29%; top: 60%; width: 300px; height: 300px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 225, 255, .45), rgba(242, 107, 29, .12) 45%, transparent 70%);
  mix-blend-mode: screen; animation: flicker .18s steps(2) infinite; pointer-events: none;
}
.hero::after { /* readability scrim: text sits on the right, away from the arc */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(11, 31, 51, .95) 0%, rgba(11, 31, 51, .82) 40%, rgba(11, 31, 51, .2) 70%),
              linear-gradient(0deg, rgba(11, 31, 51, .7), transparent 30%);
}
.hero > .container { position: relative; z-index: 2; }
.hero__content { max-width: 600px; margin-left: auto; }
@media (max-width: 900px) {
  .hero { align-items: flex-end; }
  .hero__arc { display: none; }
  .hero::after { background: linear-gradient(0deg, rgba(11, 31, 51, .96) 0%, rgba(11, 31, 51, .75) 50%, rgba(11, 31, 51, .25) 100%); }
  .hero__content { margin-left: 0; }
  .hero__scroll { display: none; }
}
.hero__est { font: 700 14px var(--font-head); letter-spacing: .24em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--s-4); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; letter-spacing: -.015em; }
.hero h1 span { display: block; color: var(--steel-300); font-weight: 600; font-size: .52em; letter-spacing: .02em; margin-top: var(--s-2); }
.hero__tagline { font-size: clamp(18px, 2vw, 22px); color: var(--steel-100); margin: var(--s-5) 0 var(--s-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; translate: -50% 0; color: var(--steel-300); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; display: grid; justify-items: center; gap: 8px; }
.hero__scroll i { width: 2px; height: 36px; background: linear-gradient(var(--orange), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* weld-glow tracer along the pipeline graphic */
.weld-trace { stroke-dasharray: 140 1700; animation: trace 7s linear infinite; filter: url(#glow); }
@keyframes trace { from { stroke-dashoffset: 1840; } to { stroke-dashoffset: 0; } }
@keyframes flicker { 50% { opacity: .55; } }

/* ---------- Company statistics ---------- */
.stats { background: #142B45; color: var(--white); padding-block: var(--s-8); border-top: 1px solid rgba(154, 168, 181, .18); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { display: flex; flex-direction: column; padding: var(--s-2) var(--s-6); border-left: 1px solid rgba(154, 168, 181, .28); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { order: -1; margin: 0; position: relative; display: inline-block; align-self: flex-start; font: 800 clamp(44px, 4.6vw, 64px)/1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat__ghost { visibility: hidden; }                       /* reserves the final width: no layout shift */
.stat__val { position: absolute; left: 0; top: 0; white-space: nowrap; }
.stat__num::after { content: ""; display: block; width: 36px; height: 3px; margin-top: var(--s-4); background: var(--orange); border-radius: 2px; }
.stat__label {
  margin-top: var(--s-3); max-width: 22ch; font: 600 13px/1.45 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300);
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.2s + var(--i) * .1s);
}
.stats.is-in .stat__label { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .stat { padding: var(--s-2) var(--s-4); }
  .stat__label { font-size: 11.5px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) { .stat__label { opacity: 1; transform: none; } }

/* ---------- Overview ---------- */
.overview { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.overview__body p { font-size: 17px; color: #33475B; }
.overview__body p:first-child { font-size: 21px; line-height: 1.55; color: var(--navy); font-weight: 500; }
.overview__aside { position: sticky; top: 100px; }
.overview__pillars { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); }
.overview__pillars li { display: flex; gap: var(--s-3); align-items: center; font: 600 17px var(--font-head); }
.overview__pillars li::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); flex: none; }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; gap: var(--s-6); } .overview__aside { position: static; } }

/* ---------- Services (photo bento) ---------- */
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); margin-bottom: var(--s-7); }
.services__head .section-lead { max-width: 380px; margin: 0; }
.services__swipe { display: none; margin-top: var(--s-4); font: 600 13px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: var(--s-4); }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; color: var(--off);
  padding: var(--s-5); display: flex; flex-direction: column; justify-content: flex-end; outline-offset: 4px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s var(--ease), box-shadow .3s;
}
.tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.75) brightness(.8); }
.tile::after { /* scrim + orange wash on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 31, 51, .15) 0%, rgba(11, 31, 51, .55) 45%, rgba(11, 31, 51, .95) 100%);
  transition: background .4s;
}
.tile--lg { grid-column: span 2; grid-row: span 2; padding: var(--s-6); }
.tile--wide { grid-column: span 2; }
.tile__num { position: absolute; top: var(--s-4); right: var(--s-5); font: 800 15px var(--font-head); letter-spacing: .12em; color: rgba(245, 246, 247, .55); }
.tile__icon {
  position: absolute; top: var(--s-4); left: var(--s-4); width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(11, 31, 51, .65); color: var(--orange); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.tile__icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 22px; font-weight: 700; position: relative; padding-bottom: 10px; }
.tile--lg h3 { font-size: clamp(28px, 3vw, 38px); }
.tile h3::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 32px; background: var(--orange); transition: width .45s var(--ease); }
.tile p { margin: 0; color: var(--steel-100); font-size: 15px; line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s, margin .35s; }
.tile--lg p { max-height: 200px; opacity: 1; margin-top: var(--s-3); font-size: 17px; max-width: 520px; }
.tile:hover, .tile:focus-within { box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.tile:hover .tile__img, .tile:focus-within .tile__img { transform: scale(1.08); filter: saturate(1) brightness(.9); }
.tile:hover::after, .tile:focus-within::after { background: linear-gradient(180deg, rgba(242, 107, 29, .1) 0%, rgba(11, 31, 51, .6) 40%, rgba(11, 31, 51, .97) 100%); }
.tile:hover h3::after, .tile:focus-within h3::after { width: 100%; }
.tile:hover p, .tile:focus-within p { max-height: 160px; opacity: 1; margin-top: var(--s-3); }
.tile:hover .tile__icon, .tile:focus-within .tile__icon { background: var(--orange); color: var(--navy); transform: rotate(-8deg) scale(1.05); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .tile--lg { grid-row: span 2; }
}
@media (max-width: 640px) {
  .services__head { flex-direction: column; align-items: flex-start; }
  /* phones: swipeable carousel instead of a tall stack */
  .bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-3); margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .tile, .tile--lg, .tile--wide { flex: 0 0 84%; min-height: 380px; padding: 84px var(--s-5) var(--s-5); scroll-snap-align: center; }
  .tile--lg h3 { font-size: 26px; }
  .tile p, .tile--lg p { max-height: none; opacity: 1; margin-top: var(--s-3); font-size: 15px; } /* no hover on touch: always show */
  .services__swipe { display: block; }
}

.tile__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tile__link:focus-visible { outline-offset: -4px; }
.services__all { margin-top: var(--s-5); color: var(--orange); }

/* ---------- Services page ---------- */
.svc-nav { position: sticky; top: 64px; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--steel-100); }
.svc-nav__inner { display: flex; gap: var(--s-2); overflow-x: auto; padding-block: var(--s-3); scrollbar-width: none; }
.svc-nav__inner::-webkit-scrollbar { display: none; }
.svc-nav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--steel-100); font: 600 13.5px var(--font-head); letter-spacing: .03em; color: var(--navy); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.svc-nav a:hover, .svc-nav a:focus-visible, .svc-nav a.is-current { background: var(--navy); color: var(--off); border-color: var(--navy); }
.svc { padding-block: var(--s-9); background: var(--white); scroll-margin-top: 0; }
.svc:nth-of-type(even) { background: var(--off); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.svc--flip .svc__media { order: 2; }
.svc__media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.svc__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.svc__media:hover img { transform: scale(1.04); }
.svc__num { position: absolute; left: var(--s-5); bottom: var(--s-4); font: 800 72px/1 var(--font-head); color: rgba(255, 255, 255, .9); text-shadow: 0 4px 20px rgba(0, 0, 0, .45); }
.svc__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--navy); color: var(--orange); margin-bottom: var(--s-4); }
.svc__icon svg { width: 30px; height: 30px; }
.svc__body .section-title { margin-top: 0; }
.svc__lead { font-size: 18px; line-height: 1.6; color: #33475B; }
.svc__body .ticks { margin-bottom: var(--s-5); font-size: 15.5px; }
.svc-approach__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
@media (max-width: 900px) {
  .svc { padding-block: var(--s-8); }
  .svc__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .svc--flip .svc__media { order: 0; }
  .svc__num { font-size: 52px; }
  .svc-approach__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Home: about teaser ---------- */
.teaser { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; }
.teaser .overview__pillars { grid-template-columns: 1fr 1fr; margin-bottom: var(--s-6); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-600); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after, a:hover > .link-arrow::after, a:hover .link-arrow::after { transform: translateX(5px); }
.founder-card { display: grid; grid-template-columns: 150px 1fr; background: var(--navy); color: var(--off); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.founder-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.founder-card__photo { display: block; }
.founder-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder-card__body { padding: var(--s-5); display: grid; gap: 4px; align-content: center; }
.founder-card__quote { font: 600 24px/1.2 var(--font-script); color: var(--off); margin-bottom: var(--s-3); }
.founder-card b { font: 700 18px var(--font-head); }
.founder-card__body > span:not([class]) { color: var(--steel-300); font-size: 14px; }
.founder-card .link-arrow { color: var(--orange); margin-top: var(--s-3); font-size: 13px; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; gap: var(--s-6); } }
@media (max-width: 480px) { .founder-card { grid-template-columns: 110px 1fr; } .founder-card__quote { font-size: 20px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--navy); padding: var(--s-8) 0; position: relative; overflow: hidden; }
.cta-band::before { /* pipeline route motif */
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 200%; border-radius: 50%; border: 2px solid rgba(11, 31, 51, .15);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta-band p { margin: var(--s-2) 0 0; max-width: 560px; font-size: 17px; }
.btn--dark { background: var(--navy); color: var(--off); flex: none; }
.btn--dark:hover { background: var(--navy-700); box-shadow: 0 10px 24px rgba(11, 31, 51, .35); }
@media (max-width: 760px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; padding: 170px 0 var(--s-8); color: var(--off); isolation: isolate;
  background: var(--navy) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 31, 51, .95) 0%, rgba(11, 31, 51, .72) 60%, rgba(11, 31, 51, .45) 100%); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin: var(--s-3) 0; }
.page-hero p { color: var(--steel-100); font-size: 19px; margin: 0; max-width: 620px; }
.crumbs { font: 600 13px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); }
.crumbs a { color: var(--orange); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.nav__list a[aria-current="page"] { color: var(--white); }
.nav__list a[aria-current="page"]::after { right: 0; }

/* ---------- Our approach: delivery model ---------- */
.approach__intro { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: end; margin-bottom: var(--s-7); }
.approach__copy p { color: var(--steel-100); font-size: 17px; }
.approach__copy p:last-child { margin: 0; color: var(--steel-300); }
.teaser__links { display: flex; flex-wrap: wrap; gap: var(--s-5); }

.model {
  position: relative; aspect-ratio: 1000 / 560; border-radius: var(--radius); margin-bottom: var(--s-8);
  background: radial-gradient(ellipse at 45% 50%, rgba(46, 92, 138, .35), transparent 60%), var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .06);
}
.model__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.model__link { fill: none; stroke: rgba(154, 168, 181, .35); stroke-width: 3; vector-effect: non-scaling-stroke; transition: stroke .3s, stroke-width .3s; }
.model__flow {
  fill: none; stroke: #FFC27A; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 6 200; filter: drop-shadow(0 0 4px #F26B1D); animation: model-flow 2.6s linear infinite;
}
.model__flow--back { animation-direction: reverse; animation-duration: 3.2s; }
@keyframes model-flow { from { stroke-dashoffset: 206; } to { stroke-dashoffset: 0; } }
.model[data-active] .model__link { stroke: rgba(154, 168, 181, .15); }
.model[data-active="hub"] .model__link, .model__link.is-active { stroke: var(--orange); stroke-width: 4; }
.model[data-active] .model__flow:not(.is-active) { opacity: .25; }
.model[data-active="hub"] .model__flow { opacity: 1; }

.model__node, .model__hub {
  position: absolute; translate: -50% -50%; border: 1px solid rgba(255, 255, 255, .14); color: var(--off); cursor: pointer; text-align: left;
  font: inherit; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease), background .3s;
}
.model__node {
  display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; width: 22%; min-height: 64px; padding: 10px 14px;
  background: rgba(11, 31, 51, .85); border-radius: 10px; backdrop-filter: blur(6px);
}
.model__node svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 8px; background: rgba(242, 107, 29, .14); fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.model__node b { font: 700 16px/1.2 var(--font-head); }
.model__node:not(:has(span)) b { grid-row: span 2; }
.model__node span { font-size: 12.5px; color: var(--steel-300); }
.model__node--client { width: 17%; }
.model__node:hover, .model__node:focus-visible, .model__node.is-active { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 107, 29, .18), 0 12px 30px rgba(0, 0, 0, .35); transform: scale(1.04); }
.model__hub {
  width: 19%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 50% 35%, var(--navy-700), var(--navy)); border: 2px solid var(--orange);
  box-shadow: 0 0 0 10px rgba(242, 107, 29, .08), 0 0 40px rgba(242, 107, 29, .25);
}
.model__hub b { font: 800 22px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.model__hub span { font-size: 12.5px; line-height: 1.35; color: var(--steel-100); }
.model__mark { width: 46px; height: 46px; margin-bottom: 4px; }
.model__ring { position: absolute; inset: -16px; border-radius: 50%; border: 2px dashed rgba(242, 107, 29, .45); animation: spin 24s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.model__hub:hover, .model__hub:focus-visible, .model__hub.is-active { box-shadow: 0 0 0 12px rgba(242, 107, 29, .15), 0 0 60px rgba(242, 107, 29, .45); transform: scale(1.03); }
.model__chip {
  position: absolute; translate: -50% -50%; white-space: nowrap; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(242, 107, 29, .12); border: 1px solid rgba(242, 107, 29, .45); color: #FFD2A6; font: 600 12.5px var(--font-head); letter-spacing: .04em;
}
.model__label { position: absolute; translate: -50% -50%; font: 600 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); text-align: center; line-height: 1.5; }
.model__caption {
  position: absolute; left: 50%; bottom: -26px; translate: -50% 0; width: min(640px, 90%); margin: 0; padding: 12px 18px; border-radius: 8px; text-align: center;
  background: var(--white); color: var(--navy); font-size: 14.5px; box-shadow: var(--shadow-lift);
}

/* four-step pipeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); position: relative; counter-reset: step; }
.steps::before { /* the pipe */
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 6px; border-radius: 3px; background: rgba(154, 168, 181, .25);
}
.steps::after { /* weld fill */
  content: ""; position: absolute; left: 0; top: 9px; height: 6px; border-radius: 3px; width: 0; background: linear-gradient(90deg, var(--orange), #FF9A4D);
  box-shadow: 0 0 10px rgba(242, 107, 29, .6); transition: width 2.2s cubic-bezier(.45, .05, .35, 1);
}
.steps.is-welded::after { width: 100%; }
.step { position: relative; padding-top: 40px; }
.step__joint { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); border: 3px solid var(--steel); z-index: 1; transition: border-color .3s, background .3s, box-shadow .3s; }
.steps.is-welded .step__joint { border-color: #FFC27A; background: var(--orange); box-shadow: 0 0 0 5px rgba(242, 107, 29, .2), 0 0 16px rgba(242, 107, 29, .8); }
.steps.is-welded .step:nth-child(1) .step__joint { transition-delay: .1s; }
.steps.is-welded .step:nth-child(2) .step__joint { transition-delay: .7s; }
.steps.is-welded .step:nth-child(3) .step__joint { transition-delay: 1.3s; }
.steps.is-welded .step:nth-child(4) .step__joint { transition-delay: 1.9s; }
.step b { display: block; font: 700 22px var(--font-head); margin-bottom: var(--s-2); }
.step em { font-style: normal; color: var(--orange); margin-right: 6px; }
.step p { color: var(--steel-300); font-size: 15px; margin: 0; }

@media (max-width: 900px) {
  .approach__intro { grid-template-columns: 1fr; gap: var(--s-4); }
  /* diagram becomes a vertical flow: client → Sterling → resources */
  .model { aspect-ratio: auto; display: flex; flex-direction: column; align-items: stretch; gap: var(--s-4); padding: var(--s-5) var(--s-4) var(--s-6); }
  .model__links, .model__label { display: none; }
  .model__node, .model__hub, .model__chip { position: relative; left: auto !important; top: auto !important; translate: none; width: auto; }
  .model__hub { width: 200px; align-self: center; margin: var(--s-4) 0; }
  .model__chip { display: none; }
  .model__node--client::after, .model__hub::after { /* vertical connector */
    content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: calc(var(--s-4) + 18px); translate: -50% 0; background: linear-gradient(var(--orange), rgba(242, 107, 29, .2));
  }
  .model__caption { position: static; translate: none; width: auto; }
  .steps { grid-template-columns: 1fr; gap: var(--s-5); padding-left: 44px; }
  .steps::before, .steps::after { left: 9px; top: 0; bottom: 0; width: 6px; height: auto; right: auto; }
  .steps::after { height: 0; transition: height 2.2s cubic-bezier(.45, .05, .35, 1); }
  .steps.is-welded::after { width: 6px; height: 100%; }
  .step { padding-top: 0; }
  .step__joint { left: -44px; }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; }
.founder__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-700); }
.founder__photo img, .founder__photo svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .8s var(--ease); }
.founder__photo:hover img { transform: scale(1.03); }
.founder__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 92, 138, .08) 40%, rgba(11, 31, 51, .35)); mix-blend-mode: multiply; pointer-events: none; }
.founder__photo figcaption { position: absolute; z-index: 1; left: 20px; bottom: 16px; font-size: 12px; color: var(--steel-300); letter-spacing: .08em; }
.founder__frame { position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--orange); border-radius: var(--radius); z-index: -1; }
.founder__photo-wrap { position: relative; isolation: isolate; }
.founder__name { font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; }
.founder__rule { display: block; height: 3px; width: 120px; background: var(--orange); margin: var(--s-4) 0; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .3s; }
.is-visible .founder__rule, .no-motion .founder__rule { transform: scaleX(1); }
.founder__title { font: 600 15px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--s-5); }
.founder__bio p { color: #33475B; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: var(--s-6) 0; }
.highlight { background: var(--navy); color: var(--off); border-radius: var(--radius); padding: var(--s-5) var(--s-4); }
.highlight b { display: block; font: 800 34px/1 var(--font-head); color: var(--orange); }
.highlight span { display: block; font: 600 14px/1.35 var(--font-head); letter-spacing: .04em; margin-top: var(--s-2); color: var(--steel-100); }
.subhead { font: 700 14px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--s-3); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-6); }
.badges li { border: 1px solid var(--steel-100); background: var(--off); border-radius: 999px; padding: 8px 14px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.badges li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.signed-quote { border-left: 3px solid var(--orange); padding-left: var(--s-5); margin: 0; }
.signed-quote p { font: 600 30px/1.2 var(--font-script); color: var(--navy); margin: 0 0 var(--s-2); }
.signed-quote cite { font-style: normal; color: var(--steel); font-size: 14px; }
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; gap: var(--s-7); }
  .founder__photo-wrap { max-width: 420px; margin-right: 20px; }
  .highlights { grid-template-columns: 1fr; }
}

/* ---------- Clients ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: var(--s-3) 0; }
.marquee__track { display: flex; gap: var(--s-9); width: max-content; animation: marquee 18s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee-wrap { position: relative; }
.marquee__toggle {
  position: absolute; right: 16px; bottom: -6px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--steel-100); color: var(--steel); cursor: pointer; opacity: .7; transition: opacity .2s, color .2s, border-color .2s;
}
.marquee__toggle:hover, .marquee__toggle:focus-visible { opacity: 1; color: var(--navy); border-color: var(--navy); }
.marquee__toggle .i-play, .marquee__toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee__toggle[aria-pressed="true"] .i-play { display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__track { align-items: center; }
.client-logo { height: 64px; width: auto; transition: transform .3s var(--ease); }
.client-logo:hover { transform: scale(1.08); }
.client-logo--exxonmobil { height: 34px; }
.client-logo--totalenergies { height: 60px; }
.case-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.case { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); padding: var(--s-5); }
.case b { font: 700 18px var(--font-head); display: block; }
.case span { display: block; color: var(--steel); font-size: 14px; }
.case .case__meta { margin-top: var(--s-3); color: var(--orange-600); font-weight: 600; font-size: 13px; letter-spacing: .04em; }

/* ---------- Global map ---------- */
.map { position: relative; background: var(--navy-800); border-radius: var(--radius); padding: var(--s-5); border: 1px solid rgba(255, 255, 255, .06); }
.map__canvas { position: relative; }
.map svg { width: 100%; height: auto; }
.map .dot { fill: #2A4562; transition: fill .3s; }
.map .dot[data-r] { fill: var(--steel); }
.map[data-active="na"] .dot[data-r="na"], .map[data-active="eu"] .dot[data-r="eu"],
.map[data-active="af"] .dot[data-r="af"], .map[data-active="as"] .dot[data-r="as"],
.map[data-active="sa"] .dot[data-r="sa"], .map[data-active="oc"] .dot[data-r="oc"] { fill: var(--steel-100); }
.marker { position: absolute; width: 22px; height: 22px; translate: -50% -50%; border: 0; padding: 0; background: none; cursor: pointer; }
.marker::before, .marker::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--orange); }
.marker::after { inset: 0; background: rgba(242, 107, 29, .45); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.marker__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 6px; width: max-content; max-width: 240px;
  background: var(--white); color: var(--navy); border-radius: 8px; padding: 10px 14px; text-align: left;
  font-size: 13px; line-height: 1.45; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; z-index: 5;
}
.marker__tip b { display: block; font: 700 15px var(--font-head); }
.marker:hover .marker__tip, .marker:focus-visible .marker__tip, .marker[aria-expanded="true"] .marker__tip { opacity: 1; translate: -50% 0; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-5); list-style: none; padding: 0; }
.regions button {
  width: 100%; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--off);
  border-radius: var(--radius-sm); padding: var(--s-4); cursor: pointer; transition: background .2s, border-color .2s;
}
.regions button:hover, .regions button[aria-pressed="true"] { background: rgba(242, 107, 29, .12); border-color: var(--orange); }
.regions b { display: block; font: 700 18px var(--font-head); }
.regions span { font-size: 13px; color: var(--steel-300); }
@media (max-width: 700px) { .regions { grid-template-columns: repeat(2, 1fr); } .marker { width: 16px; height: 16px; } .map { padding: var(--s-3); } }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-5); }
.cert {
  display: flex; flex-direction: column; gap: var(--s-4); background: var(--white); border: 1px solid var(--steel-100);
  border-radius: var(--radius); padding: var(--s-5); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--orange); }
.cert__logo { height: 72px; display: flex; align-items: center; padding-bottom: var(--s-4); border-bottom: 1px solid var(--steel-100); }
.cert__logo img { max-height: 60px; max-width: 170px; width: auto; height: auto; object-fit: contain; transition: transform .4s var(--ease); }
.cert:hover .cert__logo img { transform: scale(1.06); }
.cert h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cert p { margin: 0; color: var(--steel); font-size: 14px; }
.cert .year { display: inline-block; margin-top: var(--s-2); font: 700 12px var(--font-head); letter-spacing: .12em; color: var(--orange-600); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-bottom: var(--s-6); }
.filter-group { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; border: 0; padding: 0; margin: 0; }
.filter-group legend { float: left; font: 700 12px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-right: var(--s-2); }
.chip { border: 1px solid var(--steel-100); background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--navy); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--off); border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.gallery__item { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--navy); text-align: left; }
.gallery__item[hidden] { display: none; }
.gallery__item img, .gallery__item svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img, .gallery__item:hover svg { transform: scale(1.06); }
.gallery__cap { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(11, 31, 51, .9)); color: var(--off); }
.gallery__cap b { display: block; font: 700 17px var(--font-head); }
.gallery__cap span { font-size: 13px; color: var(--steel-300); }
.gallery-empty { color: var(--steel); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; color: var(--off); }
.lightbox::backdrop { background: rgba(5, 14, 24, .88); }
.lightbox__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.lightbox__media svg, .lightbox__media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; }
.lightbox__bar b { font: 700 20px var(--font-head); display: block; }
.lightbox__bar span { color: var(--steel-300); font-size: 14px; }
.lightbox__nav { display: flex; gap: var(--s-2); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--off); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.pillar { border-top: 3px solid var(--orange); padding-top: var(--s-5); }
.pillar h3 { font-size: 24px; margin-bottom: var(--s-3); }
.pillar p { color: var(--steel-300); }
.pillar ul { padding-left: 18px; color: var(--steel-100); margin: 0; }
.pillar li { margin-bottom: 6px; }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr; } }

/* ---------- Request a Quote page ---------- */
.page-hero__eyebrow { margin: var(--s-4) 0 0; font: 700 13px var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.quote { background: #EEF1F4; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-6); align-items: start; }
.quote__side { display: grid; gap: var(--s-4); }

.enquiry, .enquiry-done { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--steel-100); }
.enquiry { padding: var(--s-6); display: grid; gap: var(--s-6); }
.enquiry__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 2px solid var(--navy); }
.enquiry__head h2 { font-size: 28px; font-weight: 800; }
.enquiry__head p { margin: 0; font-size: 13px; color: var(--steel); }
.enquiry__head p span, .field label { color: var(--navy); }
.enquiry__group { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.enquiry__group legend { grid-column: 1 / -1; padding: 0; margin-bottom: var(--s-4); font: 700 13px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600); display: flex; align-items: center; gap: 10px; }
.enquiry__group legend::after { content: ""; flex: 1; height: 1px; background: var(--steel-100); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 14px var(--font-head); letter-spacing: .03em; }
.field .opt { font-weight: 500; color: var(--steel); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; border: 1.5px solid #D3DAE1; border-radius: var(--radius-sm); padding: 12px 14px; background: #FAFBFC; color: var(--navy);
  font-size: 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235A6B7B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field ::placeholder { color: #8C99A6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--steel-300); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background-color: var(--white); box-shadow: 0 0 0 3px rgba(242, 107, 29, .3); }
.field [aria-invalid="true"] { border-color: #C0392B; background-color: #FFF8F7; }
.field .error { color: #B03A2E; font-size: 13px; }
.field .error:empty { display: none; }
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--steel-100); }
.enquiry__foot p { margin: 0; font-size: 13px; color: var(--steel); }
.enquiry__foot a { color: var(--orange-600); }
.enquiry .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form__status { margin: 0; font-weight: 500; color: #B03A2E; }
.form__status:empty { display: none; }

.enquiry-done { padding: var(--s-8) var(--s-6); text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.enquiry-done:focus { outline: none; }
.enquiry-done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(242, 107, 29, .15); }
.enquiry-done__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.enquiry-done h2 { font-size: 28px; font-weight: 800; margin-top: var(--s-3); }
.enquiry-done p { max-width: 460px; color: var(--steel); margin: 0; }
.enquiry-done em { display: block; margin-top: var(--s-2); font-size: 13px; }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); margin-top: var(--s-4); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--off); }

.side-card { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); padding: var(--s-5); }
.side-card h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--s-2); }
.side-card p { font-size: 14.5px; color: var(--steel); margin: 0 0 var(--s-2); }
.side-card p:last-child { margin-bottom: 0; }
.side-card--photo { padding: 0; overflow: hidden; }
.side-card--photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.side-card--dark { background: var(--navy); border-color: var(--navy); color: var(--off); }
.ticks { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--orange); transform: rotate(45deg); }
.next-steps { list-style: none; margin: var(--s-4) 0 0; padding: 0 0 0 30px; position: relative; display: grid; gap: var(--s-4); counter-reset: next; }
.next-steps::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: linear-gradient(var(--orange), rgba(242, 107, 29, .25)); }
.next-steps li { position: relative; font-size: 14px; color: var(--steel-300); counter-increment: next; }
.next-steps li::before {
  content: counter(next); position: absolute; left: -30px; top: 0; width: 21px; height: 21px; border-radius: 50%;
  background: var(--orange); color: var(--navy); font: 800 12px/21px var(--font-head); text-align: center; box-shadow: 0 0 0 4px var(--navy);
}
.next-steps b { display: block; color: var(--off); font: 700 15px var(--font-head); }
.contact-lines { display: grid; gap: var(--s-4); }
.contact-lines h3 { margin: 0; }
.contact-line { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.contact-line svg { width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: var(--navy); fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-lines p b { display: block; color: var(--navy); font: 700 14px var(--font-head); }
.contact-lines a { color: var(--orange-600); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .quote__grid { grid-template-columns: 1fr; }
  .quote__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-card--photo, .side-card--dark { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .enquiry { padding: var(--s-5); }
  .enquiry__group { grid-template-columns: 1fr; }
  .quote__side { grid-template-columns: 1fr; }
}

/* ---------- Privacy policy ---------- */
.policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.policy__toc { position: sticky; top: 90px; display: grid; gap: var(--s-4); }
.policy__meta { margin: 0; font-size: 13px; color: var(--steel); }
.policy__toc nav { display: grid; border-left: 2px solid var(--steel-100); }
.policy__toc nav a { padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--steel); text-decoration: none; transition: color .2s, border-color .2s; }
.policy__toc nav a:hover, .policy__toc nav a:focus-visible { color: var(--navy); border-left-color: var(--orange); }
.policy__body { max-width: 68ch; }
.policy__lead { font-size: 19px; line-height: 1.6; color: var(--navy); padding: var(--s-5); background: var(--off); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.policy__body h2 { font-size: 24px; font-weight: 700; margin: var(--s-7) 0 var(--s-3); scroll-margin-top: 90px; }
.policy__body p, .policy__body li { color: #33475B; }
.policy__body ul { padding-left: 20px; margin: 0 0 var(--s-4); display: grid; gap: 6px; }
.policy__body a { color: var(--orange-600); }
.footer__legal a { color: var(--steel-300); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .policy { grid-template-columns: 1fr; gap: var(--s-5); }
  .policy__toc { position: static; }
  .policy__toc nav { grid-template-columns: 1fr 1fr; border-left: 0; gap: 2px 12px; }
  .policy__toc nav a { padding-left: 0; border-left: 0; }
}

/* ---------- Footer ---------- */
.footer { background: #071523; color: var(--steel-300); padding: var(--s-8) 0 var(--s-5); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-7); }
.footer__brand svg { height: 48px; width: auto; margin-bottom: var(--s-4); }
.footer__email a { color: var(--orange); font-weight: 600; }
.footer h4 { color: var(--off); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.cert-strip { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-7) 0 var(--s-5); padding: var(--s-5) 0; border-block: 1px solid rgba(255, 255, 255, .08); }
.cert-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--navy); border-radius: 6px; padding: 6px 12px 6px 8px; font: 700 13px var(--font-head); letter-spacing: .06em; }
.cert-chip img { height: 26px; width: auto; max-width: 72px; object-fit: contain; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: 13px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Scroll pipeline (side rail, wide screens only) ---------- */
.scroll-pipe { position: fixed; z-index: 40; left: 30px; top: 120px; bottom: 48px; width: 14px; display: none; }
@media (min-width: 1360px) { .scroll-pipe { display: block; } }
.scroll-pipe__track, .scroll-pipe__fill { position: absolute; left: 50%; width: 4px; translate: -50% 0; border-radius: 2px; }
.scroll-pipe__track { top: 0; bottom: 0; background: rgba(90, 107, 123, .35); }
.scroll-pipe__fill { top: 0; height: 0; background: linear-gradient(var(--orange), #FF8A3D); box-shadow: 0 0 8px rgba(242, 107, 29, .6); }
.scroll-pipe__arc { /* the "weld arc" at the head of the line */
  position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 25%, #FFC27A 45%, rgba(242, 107, 29, 0) 72%); opacity: .55; transition: opacity .3s, transform .3s;
}
.scroll-pipe.is-welding .scroll-pipe__arc { opacity: 1; transform: scale(1.8); animation: flicker .12s steps(2) infinite; }
.scroll-pipe__node {
  position: absolute; left: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%;
  background: var(--off); border: 2px solid var(--steel-300); transition: background .3s, border-color .3s, box-shadow .3s, transform .3s;
}
.scroll-pipe__node.is-welded { background: var(--orange); border-color: #FFC27A; box-shadow: 0 0 0 4px rgba(242, 107, 29, .25), 0 0 14px rgba(242, 107, 29, .8); }
.scroll-pipe__node:hover, .scroll-pipe__node:focus-visible { transform: scale(1.3); }
.scroll-pipe__node::after { /* section label on hover */
  content: attr(data-label); position: absolute; left: 22px; top: 50%; translate: 0 -50%; white-space: nowrap; pointer-events: none;
  background: var(--navy); color: var(--off); font: 600 12px var(--font-head); letter-spacing: .06em; padding: 5px 10px; border-radius: 4px;
  opacity: 0; transition: opacity .2s;
}
.scroll-pipe__node:hover::after, .scroll-pipe__node:focus-visible::after { opacity: 1; }

/* ---------- Map pipeline routes ---------- */
.map-route { fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-opacity .3s, stroke-width .3s; }
.routes-on .map-route { animation: draw-route 1.4s var(--ease) var(--d) forwards; }
@keyframes draw-route { to { stroke-dashoffset: 0; } }
.map-flow { fill: none; stroke: #FFD2A6; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .035 .965; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 3px #F26B1D); }
.routes-on .map-flow { animation: route-flow 2.4s ease-in-out calc(var(--d) + 1.2s) 1; }
@keyframes route-flow { from { opacity: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
.map-hq { fill: var(--off); stroke: var(--orange); stroke-width: 2; }
.map[data-active="na"] .map-route[data-r="na"], .map[data-active="eu"] .map-route[data-r="eu"],
.map[data-active="af"] .map-route[data-r="af"], .map[data-active="as"] .map-route[data-r="as"],
.map[data-active="sa"] .map-route[data-r="sa"], .map[data-active="oc"] .map-route[data-r="oc"] { stroke-opacity: 1; stroke-width: 2; }

/* ---------- Global reach: map + region panel ---------- */
.global { background: #142B45; }
.global .map { background: rgba(11, 31, 51, .55); }
.global__layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-5); align-items: start; }
.region-panel { display: grid; gap: var(--s-4); }
.region-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.region-tabs button {
  min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(154, 168, 181, .3); color: var(--steel-100); font: 600 14px var(--font-head); letter-spacing: .02em;
  transition: background .25s, border-color .25s, color .25s;
}
.region-tabs button:hover { border-color: var(--steel-300); color: var(--white); }
.region-tabs button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.region-info { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: var(--s-5); }
@media (min-width: 961px) { .region-info { min-height: 230px; } }
.region-info h3 { font-size: 22px; font-weight: 800; margin-bottom: var(--s-2); }
.region-info p { margin: 0 0 var(--s-3); color: var(--steel); font-size: 14.5px; }
.region-info__label { margin: var(--s-3) 0 4px !important; font: 700 11.5px var(--font-head) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600) !important; }
.region-info__countries { color: var(--navy) !important; font-weight: 600; }
.region-info__focus { padding-left: var(--s-3); border-left: 3px solid var(--orange); color: var(--navy) !important; }
.region-info .ticks { margin: 0 0 var(--s-3); font-size: 14px; gap: 6px; }
.region-info.is-swapping { animation: region-in .35s var(--ease); }
@keyframes region-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.region-note { margin: 0; font-size: 13px; color: var(--steel-300); padding-left: var(--s-3); border-left: 2px solid rgba(154, 168, 181, .35); }
@media (max-width: 960px) { .global__layout { grid-template-columns: 1fr; } .region-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .region-tabs { grid-template-columns: 1fr 1fr; } }

/* ---------- Country flag pins ---------- */
.marker--flag { width: 26px; height: 26px; opacity: 0; transform: scale(0) translateY(-12px); }
.marker--flag::before { display: none; }
.marker--flag::after { inset: -4px; background: rgba(242, 107, 29, .4); animation: none; opacity: 0; }
.marker--flag.is-region::after { animation: pulse 1.8s ease-out 2; }
.marker__flag {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(242, 107, 29, .6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.routes-on .marker--flag { animation: pin-drop .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0s) + 1s) forwards; }
@keyframes pin-drop { from { opacity: 0; transform: scale(0) translateY(-12px); } to { opacity: 1; transform: none; } }
.marker--flag:hover .marker__flag, .marker--flag:focus-visible .marker__flag, .marker--flag[aria-expanded="true"] .marker__flag {
  transform: scale(1.35); box-shadow: 0 4px 14px rgba(0, 0, 0, .55), 0 0 0 3px var(--orange);
}
.marker--flag:hover, .marker--flag:focus-visible { z-index: 6; }
.map[data-active="na"] .marker--flag:not([data-region="na"]), .map[data-active="eu"] .marker--flag:not([data-region="eu"]),
.map[data-active="af"] .marker--flag:not([data-region="af"]), .map[data-active="as"] .marker--flag:not([data-region="as"]),
.map[data-active="sa"] .marker--flag:not([data-region="sa"]), .map[data-active="oc"] .marker--flag:not([data-region="oc"]) { filter: grayscale(1) opacity(.35); }
@media (max-width: 700px) { .marker--flag { width: 16px; height: 16px; } .marker__flag { border-width: 1.5px; } }

/* ---------- Weld-line headings ---------- */
.weld-wrap { position: relative; display: inline-block; }
.weld-title .weld-text { display: block; clip-path: inset(-12% 100% -12% 0); }
.weld-title.is-welded .weld-text { animation: weld-text 1s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes weld-text { to { clip-path: inset(-12% -2% -12% 0); } }
.weld-arc {
  position: absolute; top: 8%; bottom: 8%; left: 0; width: 3px; border-radius: 2px; opacity: 0; pointer-events: none;
  background: #FFF3E6; box-shadow: 0 0 10px 3px rgba(255, 194, 122, .9), 0 0 28px 8px rgba(242, 107, 29, .55);
}
.weld-title.is-welded .weld-arc { animation: weld-arc 1s cubic-bezier(.45, .05, .35, 1) forwards, flicker .1s steps(2) 10; }
@keyframes weld-arc { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal, .no-motion .reveal { opacity: 1; transform: none; }
.tile.reveal.is-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .8s var(--ease), transform .25s var(--ease), box-shadow .3s; }

@media (max-width: 700px) { .section { padding: var(--s-8) 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* client strip keeps moving (requested), but slower; the Pause button stops it */
  .marquee__track { animation: marquee 36s linear infinite !important; }
}
