/* ==========================================================================
   Exxatronix Automation Technologies — site styles
   ========================================================================== */

:root {
  /* Exxatronix logo navy + charcoal grey, with orange/green for energy */
  --brand-700: #002a66;       /* logo navy: buttons, links, headings accents */
  --brand-600: #0b3d8c;       /* button hover */
  --brand-500: #1565d8;       /* vivid blue: hover fills, gradients */
  --brand: #5aa2fa;           /* accent on dark backgrounds */
  --brand-50: #eaf1fb;
  --brand-100: #d2e1f5;

  --grey-900: #333536;        /* logo charcoal */
  --steel: #6b7785;           /* logo gear grey, lighter */

  --accent: #f58220;          /* energy orange */
  --accent-600: #dc6d0e;
  --green: #22a55b;

  --ink: #06183a;             /* headings, dark sections */
  --ink-2: #0c2a5c;
  --text: #39424e;
  --muted: #5d6976;
  --line: #e1e7ef;
  --soft: #f3f6fa;
  --white: #fff;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(6, 24, 58, .06);
  --shadow: 0 14px 34px -14px rgba(6, 24, 58, .22);
  --shadow-lg: 0 28px 64px -24px rgba(6, 24, 58, .38);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --navy-grad: linear-gradient(135deg, #0b3f94 0%, #002a66 48%, #05173a 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.8rem); font-weight: 800; }
h3, .h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
h2.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.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: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-lg { width: 30px; height: 30px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.55em; border-radius: 999px; border: 2px solid transparent; overflow: hidden;
  font: 600 .98rem/1.2 var(--font-body); white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: .62em 1.2em; font-size: .92rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1.03rem; }
.btn-block { width: 100%; }
/* light sweep across filled buttons on hover */
.btn-primary::after, .btn-accent::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after, .btn-accent:hover::after { transform: translateX(110%); }
.btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 70%); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 42, 102, .85); }
.btn-primary:hover { background: linear-gradient(135deg, #2a78ea, var(--brand-600) 70%); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 42, 102, .9); }
.btn-primary[aria-current] { box-shadow: 0 0 0 3px var(--brand-100); }
.btn-accent { background: linear-gradient(135deg, #ff9d45, var(--accent) 55%, var(--accent-600)); color: #fff; box-shadow: 0 12px 28px -12px rgba(245, 130, 32, .85); }
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(245, 130, 32, .95); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-700); color: var(--brand-700); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-50); color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; backdrop-filter: blur(4px); background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.btn-outline-light:hover .ico { transform: none; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.text-link .ico { transition: transform .25s var(--ease); }
.text-link:hover .ico { transform: translateX(4px); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.link-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and collapse it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
/* thin brand strip: navy → blue → logo grey */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand-700), var(--brand-500) 55%, var(--steel)); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(6, 24, 58, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 50px; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.03); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; background: none;
  color: var(--ink); font: 600 .97rem/1 var(--font-body); border-radius: 8px; transition: color .2s;
}
.nav-link:hover, .nav-link[aria-current], .nav-link.is-active, .has-sub:hover > .nav-link { color: var(--brand-500); }
.nav-list > li > .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list > li > .nav-link:hover::after, .nav-list > li:hover > .nav-link::after,
.nav-link[aria-current]::after, .nav-link.is-active::after { transform: scaleX(1); }
.chev { width: 16px; height: 16px; transition: transform .25s; }
.has-sub.open .chev, .has-sub:hover .chev { transform: rotate(180deg); }

.sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 10px 20px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
/* Dropdown items: highlight, slide right and zoom on hover */
.sub a {
  position: relative; display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 500;
  transform-origin: left center;
  transition: transform .28s var(--ease), background-color .22s, color .22s, box-shadow .28s;
}
.sub a::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--accent), var(--brand-500)); transform: scaleY(0); transition: transform .28s var(--ease);
}
.sub a:hover, .sub a:focus-visible {
  background: linear-gradient(90deg, var(--brand-50), rgba(234, 241, 251, .35)); color: var(--brand-700);
  transform: translateX(7px) scale(1.04); box-shadow: 0 8px 18px -12px rgba(0, 42, 102, .5);
}
.sub a:hover::before, .sub a:focus-visible::before { transform: scaleY(1); }
.sub a[aria-current] { background: var(--brand-50); color: var(--brand-700); }
/* Services: a single stacked column */
.mega { left: 50%; width: 380px; display: grid; grid-template-columns: 1fr; gap: 2px; transform: translate(-50%, 8px); }
.mega-link { display: flex !important; gap: 12px; align-items: center; padding: 8px 12px !important; }
.mega-link strong { display: block; font-weight: 600; font-size: .95rem; }
.mega-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); display: grid; place-items: center; transition: background-color .25s, transform .3s var(--ease); }
.mega-ico img { width: 22px; height: 22px; transition: filter .25s; }
.mega-link[aria-current] .mega-ico { background: #fff; }
.mega-link:hover .mega-ico, .mega-link:focus-visible .mega-ico { background: var(--brand-700); transform: rotate(-6deg); }
.mega-link:hover .mega-ico img, .mega-link:focus-visible .mega-ico img { filter: brightness(0) invert(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); place-items: center; }
.menu-btn .ico { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.menu-open .menu-btn .i-open { display: none; }

@media (min-width: 1101px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.open > .mega { transform: translate(-50%, 0); }
}
@media (max-width: 1240px) { .main-nav { gap: 14px; } .nav-link { padding: 10px 10px; } }
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 32px; overflow-y: auto; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .nav-list > li > .nav-link::after { display: none; }
  .has-sub:hover .chev { transform: none; }
  .has-sub.open .chev { transform: rotate(180deg); }
  .sub, .mega { position: static; display: none; width: auto; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 12px; grid-template-columns: 1fr; }
  .sub::before { display: none; }
  .sub a:hover, .sub a:focus-visible { transform: translateX(5px) scale(1.02); }
  .has-sub.open > .sub { display: block; }
  .has-mega.open > .mega { display: grid; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .nav-actions .btn { padding: .9em; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(52px, 6vw, 80px) 0; }
.section-tight-top { padding-top: 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.section-head-split p { margin: 0; color: var(--muted); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 700 .8rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-500);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--brand-500)); border-radius: 2px; }
.center .eyebrow::before, .section-head.center .eyebrow::before { display: none; }
.eyebrow-light { color: var(--brand); }
.lead-dark { font-size: 1.15rem; color: var(--text); max-width: 64ch; }

/* ---------- home hero: photo slider ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink);
  min-height: min(92vh, 880px); display: flex; align-items: center; padding: 112px 0 150px;
}
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
/* slow zoom (Ken Burns); "is-leaving" keeps the same animation running while it fades out */
.hero-slide.is-active img, .hero-slide.is-leaving img { animation: kenburns 6.5s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(95deg, rgba(4, 18, 46, .92) 0%, rgba(4, 18, 46, .78) 38%, rgba(4, 18, 46, .3) 70%, rgba(4, 18, 46, .2) 100%),
    linear-gradient(180deg, rgba(4, 18, 46, .35) 0%, transparent 25%, transparent 70%, rgba(4, 18, 46, .75) 100%);
}
/* light falling snow over the photos */
.hero-snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-snow::before, .hero-snow::after {
  content: ""; position: absolute; inset: -200px 0 0; opacity: .7;
  background-image:
    radial-gradient(2.4px 2.4px at 30px 40px, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 110px 130px, rgba(255, 255, 255, .9) 50%, transparent 52%),
    radial-gradient(2px 2px at 170px 60px, rgba(255, 255, 255, .85) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 70px 180px, rgba(255, 255, 255, .8) 50%, transparent 52%);
  background-size: 200px 200px;
  animation: snow 14s linear infinite;
}
.hero-snow::after {
  opacity: .45; background-size: 320px 320px;
  background-image:
    radial-gradient(3px 3px at 60px 90px, #fff 50%, transparent 52%),
    radial-gradient(2.2px 2.2px at 230px 40px, rgba(255, 255, 255, .9) 50%, transparent 52%),
    radial-gradient(2.6px 2.6px at 150px 250px, rgba(255, 255, 255, .85) 50%, transparent 52%);
  animation-duration: 22s;
}
@keyframes snow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(40px, 200px, 0); } }
.hero-snow::after { animation-name: snow2; }
@keyframes snow2 { from { transform: translate3d(0, -120px, 0); } to { transform: translate3d(-60px, 200px, 0); } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.hero-copy { max-width: 720px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 .78rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
  animation: fadeUp .8s var(--ease) both;
}
.kicker-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(245, 130, 32, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 130, 32, .65); } 70% { box-shadow: 0 0 0 10px rgba(245, 130, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0); } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); animation: fadeUp .9s .1s var(--ease) both; }
.hero .accent { background: linear-gradient(90deg, #7fbaff, #cfe4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: rgba(255, 255, 255, .86); margin-bottom: 36px; max-width: 60ch; animation: fadeUp .9s .2s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp .9s .3s var(--ease) both; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: rgba(255, 255, 255, .88); font-size: .95rem; animation: fadeUp .9s .4s var(--ease) both; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(34, 165, 91, .9); color: #fff; stroke-width: 2.6; }

/* floating "notification" feed on the right of the hero */
.hero-feed {
  --step: 92px; position: relative; height: calc(var(--step) * 3 + 28px); padding: 14px 0; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
  animation: floaty 6s ease-in-out infinite, fadeIn 1s .5s both;
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-feed-track { display: grid; gap: 12px; }
.hero-feed-track > li { transition: opacity .5s; }
.hero-feed-track > li.out { opacity: 0; }
.note {
  display: flex; align-items: center; gap: 14px; height: 80px; padding: 0 16px; border-radius: 16px; color: #fff;
  background: rgba(8, 28, 66, .55); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.note:hover, .note:focus-visible { color: #fff; background: rgba(21, 101, 216, .78); border-color: rgba(255, 255, 255, .4); transform: translateX(-6px); }
.note-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); box-shadow: 0 8px 18px -8px rgba(245, 130, 32, .9); }
.hero-feed-track > li:nth-child(3n+2) .note-ico { background: linear-gradient(135deg, #4b9bff, var(--brand-500)); box-shadow: 0 8px 18px -8px rgba(21, 101, 216, .9); }
.hero-feed-track > li:nth-child(3n) .note-ico { background: linear-gradient(135deg, #3fcf86, var(--green)); box-shadow: 0 8px 18px -8px rgba(34, 165, 91, .9); }
.note-ico .ico { width: 22px; height: 22px; }
.note-body { min-width: 0; flex: 1; }
.note-body strong { display: block; font: 700 .98rem/1.25 var(--font-head); }
.note-body span { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.note-go { opacity: .55; transition: transform .3s var(--ease), opacity .3s; }
.note:hover .note-go { opacity: 1; transform: translateX(3px); }

/* bottom bar: caption + slide controls */
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 24px; }
.hero-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-caption { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: .88rem; color: rgba(255, 255, 255, .88); }
.hero-caption .ico { color: var(--accent); }
.hero-credit { font-size: .74rem; color: rgba(255, 255, 255, .6); }
.hero-credit:hover { color: #fff; }
.hero-controls { display: flex; align-items: center; gap: 14px; flex: none; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { display: grid; align-items: center; width: 34px; height: 24px; padding: 0; border: 0; background: none; }
.hero-dot span { position: relative; display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; transition: background-color .2s; }
.hero-dot:hover span { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotfill var(--slide-ms, 3000ms) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after { animation: none; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s; }
.hero-pause:hover { background: rgba(255, 255, 255, .2); }
.hero-pause .ico { width: 16px; height: 16px; }
.hero-pause .i-play, .hero.is-paused .hero-pause .i-pause { display: none; }
.hero.is-paused .hero-pause .i-play { display: block; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink);
  padding: clamp(64px, 8vw, 104px) 0 clamp(64px, 8vw, 96px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 16s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 500px at 100% 100%, rgba(21, 101, 216, .35), transparent 60%),
    linear-gradient(100deg, rgba(4, 18, 46, .94) 0%, rgba(0, 42, 102, .8) 48%, rgba(4, 18, 46, .5) 100%);
}
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--brand-500) 40%, transparent); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.page-hero.has-inquiry .page-hero-inner { grid-template-columns: minmax(0, 1fr) 400px; }
.page-hero h1 { color: #fff; max-width: 840px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 16px; animation: fadeUp .8s var(--ease) both; }
.page-hero .lead { max-width: 680px; font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .88); margin: 0; animation: fadeUp .8s .1s var(--ease) both; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; animation: fadeUp .8s .2s var(--ease) both; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .9rem; font-weight: 600; transition: background-color .25s, transform .25s var(--ease);
}
.hero-chips li:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.hero-chips .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); stroke-width: 2.8; }

/* quick inquiry card in the page header */
.quick-inquiry {
  padding: 24px; border-radius: 22px; color: #fff; animation: fadeUp .9s .25s var(--ease) both;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.qi-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.qi-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); box-shadow: 0 10px 20px -10px rgba(245, 130, 32, .9); }
.qi-ico .ico { width: 22px; height: 22px; }
.qi-title { margin: 0; color: #fff; font-size: 1.3rem; }
.qi-head p { margin: 2px 0 0; font-size: .86rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.qi-form { gap: 12px; margin: 0; }
.qi-form .field-row { gap: 12px; }
.qi-form .field label { margin-bottom: 4px; color: rgba(255, 255, 255, .88); font-size: .8rem; }
.qi-form .field input, .qi-form .field textarea { padding: 10px 12px; border-color: transparent; background: rgba(255, 255, 255, .96); font-size: .95rem; }
.qi-form .field textarea { min-height: 92px; }
.qi-form .field input:focus, .qi-form .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 130, 32, .3); }
.qi-form .field-error { color: #ffc2b8; }
.qi-form .form-status { font-size: .88rem; min-height: 0; }
.qi-form .form-status.ok { color: #7ff0b2; }
.qi-form .form-status.err { color: #ffc2b8; }

/* ---------- tinted intro sections (inner pages) ---------- */
.section-tint { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #e9f1fc 0%, #f4f8fe 55%, #eef3fa 100%); }
.section-tint::before { /* dotted engineering texture, top right */
  content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 420px; height: 420px;
  background: radial-gradient(rgba(0, 42, 102, .14) 1.6px, transparent 2px) 0 0 / 22px 22px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
}
.section-tint::after { content: ""; position: absolute; z-index: -1; left: -180px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(21, 101, 216, .12), transparent 65%); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.intro-grid.flip > .intro-media { order: -1; }
.intro-copy h2 { margin-bottom: 18px; }
.intro-lead { font: 600 clamp(1.15rem, 1.7vw, 1.36rem)/1.55 var(--font-head); color: var(--ink); letter-spacing: -.01em; margin-bottom: 16px; padding-left: 18px; border-left: 4px solid var(--accent); }
.intro-copy > p:not(.eyebrow):not(.intro-lead) { color: var(--muted); font-size: 1.04rem; max-width: 62ch; }
.intro-copy strong.hl { color: var(--brand-700); }
.key-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.key-points li {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font: 700 .95rem/1.35 var(--font-head); color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.key-points li:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.kp-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--navy-grad); transition: transform .4s var(--ease); }
.key-points li:nth-child(2) .kp-ico { background: linear-gradient(135deg, #ffa24f, var(--accent-600)); }
.key-points li:nth-child(3) .kp-ico { background: linear-gradient(135deg, #3fcf86, var(--green)); }
.key-points li:hover .kp-ico { transform: rotate(-8deg) scale(1.08); }
.kp-ico .ico { width: 21px; height: 21px; }
.key-points.two { grid-template-columns: 1fr; }
.key-points.two li { flex-direction: row; align-items: flex-start; font: 500 .98rem/1.55 var(--font-body); color: var(--text); }
.key-points.two .kp-ico { flex: none; }
.std-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.std-badges li { padding: 7px 14px; border-radius: 999px; background: var(--brand-700); color: #fff; font: 700 .85rem/1.2 var(--font-head); letter-spacing: .02em; box-shadow: 0 8px 16px -10px rgba(0, 42, 102, .8); }
.std-badges li:nth-child(3n+2) { background: var(--brand-500); }
.std-badges li:nth-child(3n) { background: var(--accent); }

.intro-media { position: relative; margin: 0 0 28px; }
.intro-media::before { content: ""; position: absolute; inset: 26px -18px -18px 26px; z-index: 0; border-radius: 26px; background: var(--navy-grad); }
.intro-media::after { content: ""; position: absolute; right: -30px; top: -26px; width: 110px; height: 110px; z-index: 0; background: radial-gradient(var(--accent) 2px, transparent 2.6px) 0 0 / 14px 14px; opacity: .6; }
.intro-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.intro-media:hover img { transform: translateY(-6px); }
.float-badge {
  position: absolute; z-index: 2; left: -22px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -18px rgba(6, 24, 58, .5);
  animation: floaty 5s ease-in-out infinite;
}
.float-badge.top { bottom: auto; top: 26px; left: auto; right: -14px; animation-delay: -2.5s; }
.fb-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); }
.float-badge.top .fb-ico { background: linear-gradient(135deg, #4b9bff, var(--brand-700)); }
.fb-ico .ico { width: 21px; height: 21px; }
.float-badge strong { display: block; font: 800 1rem/1.2 var(--font-head); color: var(--ink); }
.float-badge small { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- navy "what we offer" sections ---------- */
.section-navy {
  position: relative; isolation: isolate; overflow: hidden; color: rgba(255, 255, 255, .85);
  background: radial-gradient(900px 600px at 100% 0%, rgba(90, 162, 250, .28), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(21, 101, 216, .3), transparent 60%), var(--navy-grad);
}
.section-navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--brand); }
.section-sub { margin: 14px auto 0; max-width: 60ch; color: rgba(214, 228, 248, .85); font-size: 1.05rem; }
.section-navy .card { isolation: isolate; overflow: hidden; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.section-navy .card p { color: rgba(208, 224, 246, .86); transition: color .3s; }
.section-navy .feature::before { /* bright blue fill rises on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, #2f84f5 0%, var(--brand-500) 45%, #0a47ad 100%);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.section-navy .feature:hover { border-color: rgba(255, 255, 255, .4); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .75), 0 0 40px -12px rgba(47, 132, 245, .6); }
.section-navy .feature:hover::before { transform: translateY(0); }
.section-navy .feature:hover p { color: #fff; }
.section-navy .icon-box { background: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.section-navy .feature:hover .icon-box { background: #fff; }
.feature .card-no { position: absolute; right: 22px; top: 18px; font: 800 2.4rem/1 var(--font-head); color: rgba(255, 255, 255, .1); transition: color .3s; }
.section-navy .feature:hover .card-no { color: rgba(255, 255, 255, .3); }
.section-navy .tab { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.section-navy .tab:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.section-navy .tab[aria-selected="true"] { background: linear-gradient(135deg, #ffa24f, var(--accent-600)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(245, 130, 32, .9); }
.section-navy .page-note { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); border-left-color: var(--accent); color: rgba(255, 255, 255, .88); }
.section-navy .page-note .ico { color: var(--accent); }
.section-navy .link-row .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.section-navy .link-row .btn-ghost:hover { background: #fff; color: var(--brand-700); }
.capability-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.capability-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-weight: 600; transition: background-color .25s, transform .25s var(--ease); }
.capability-chips li:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }
.capability-chips .ico { width: 20px; height: 20px; color: var(--accent); }

/* ---------- SIS: interactive safety-lifecycle wheel ---------- */
.cycle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.cycle-wheel { --size: 440px; position: relative; width: var(--size); height: var(--size); margin: 24px auto; }
.cycle-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; stroke-dasharray: 1.2 1.6; }
.ring-progress { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .7s var(--ease); filter: drop-shadow(0 0 3px rgba(245, 130, 32, .8)); }
.cycle-hub {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 18px;
  border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(90, 162, 250, .45), rgba(0, 42, 102, .9) 70%);
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 12px rgba(255, 255, 255, .04), 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 40px rgba(90, 162, 250, .25);
}
.hub-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); color: #fff; animation: pulse 2.4s infinite; }
.hub-ico .ico { width: 22px; height: 22px; }
.cycle-hub strong { font: 800 1.25rem/1.2 var(--font-head); color: #fff; }
.cycle-hub small { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.cycle-node {
  position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--size) * -.4)) rotate(calc(var(--a) * -1));
}
.node-dot {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--brand-700); background: #fff;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .08);
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.node-dot .ico { width: 26px; height: 26px; }
.node-label { position: absolute; top: calc(100% + 2px); white-space: nowrap; font: 700 .82rem/1.2 var(--font-head); color: rgba(255, 255, 255, .85); padding: 3px 9px; border-radius: 999px; background: rgba(4, 18, 46, .55); transition: background-color .3s, color .3s; }
.cycle-node:hover .node-dot { transform: scale(1.1); }
.cycle-node[aria-selected="true"] .node-dot { transform: scale(1.18); color: #fff; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); box-shadow: 0 14px 30px -10px rgba(245, 130, 32, .9), 0 0 0 8px rgba(245, 130, 32, .2); }
.cycle-node[aria-selected="true"] .node-label { background: var(--accent); color: #fff; }
.cycle-panel {
  position: relative; overflow: hidden; padding: clamp(26px, 3.5vw, 42px); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); animation: fadeUp .5s var(--ease) both;
}
.cycle-panel::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent), var(--brand-500)); }
.cycle-panel:focus-visible { outline-offset: 4px; }
.cp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cp-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--brand-700); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.cp-ico .ico { width: 28px; height: 28px; }
.cp-no { font: 700 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cycle-panel h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 14px; }
.cycle-panel p { margin: 0; font-size: 1.06rem; line-height: 1.7; color: rgba(222, 234, 250, .92); }
.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cp-tags li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .84rem; font-weight: 600; color: #fff; }
.cycle-nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.cycle-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; transition: background-color .25s, transform .25s var(--ease); }
.cycle-btn:hover { background: #fff; color: var(--brand-700); transform: scale(1.06); }
.cycle-bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.cycle-bar span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.cycle.is-auto .cycle-bar span { animation: dotfill 6s linear forwards; }

/* icon-box holding an inline line icon */
.icon-box > .ico { width: 28px; height: 28px; }
.card-tag { display: inline-block; margin: 0 0 10px; padding: 4px 11px; border-radius: 999px; background: rgba(245, 130, 32, .16); color: #ffb26b; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-navy .feature-wide { margin-inline: auto; }

/* three-step flow (Control Panels) */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.flow::before { content: ""; position: absolute; top: 38px; left: 17%; right: 17%; border-top: 2px dashed rgba(255, 255, 255, .28); }
.flow li { position: relative; text-align: center; padding: 0 8px; }
.flow-no {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; color: var(--brand-700); box-shadow: 0 0 0 10px rgba(255, 255, 255, .07), 0 14px 30px -12px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.flow-no .ico { width: 30px; height: 30px; }
.flow li:hover .flow-no { transform: scale(1.1) rotate(-6deg); color: #fff; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); }
.flow h3 { font-size: 1.15rem; margin-bottom: 8px; }
.flow p { margin: 0 auto; max-width: 36ch; color: rgba(208, 224, 246, .86); font-size: .97rem; }

/* QHSE letter tiles */
.qhse-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.qhse-tiles li {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px;
  border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.qhse-tiles li:hover { transform: translateY(-6px); background: rgba(21, 101, 216, .55); border-color: rgba(255, 255, 255, .4); }
.qt-letter { position: absolute; right: 10px; bottom: -28px; z-index: -1; font: 800 7.5rem/1 var(--font-head); color: rgba(255, 255, 255, .08); transition: color .3s, transform .5s var(--ease); }
.qhse-tiles li:hover .qt-letter { color: rgba(255, 255, 255, .18); transform: translateY(-8px); }
.qt-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); }
.qhse-tiles li:nth-child(2) .qt-ico { background: linear-gradient(135deg, #4b9bff, var(--brand-500)); }
.qhse-tiles li:nth-child(3) .qt-ico { background: linear-gradient(135deg, #ff7a6b, #d6402f); }
.qhse-tiles li:nth-child(4) .qt-ico { background: linear-gradient(135deg, #3fcf86, var(--green)); }
.qt-ico .ico { width: 24px; height: 24px; }
.qhse-tiles strong { font: 800 1.25rem/1.2 var(--font-head); color: #fff; }

/* standards: logo mosaic + navy tiles */
.logo-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 26px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); position: relative; }
.logo-mosaic::before { content: ""; position: absolute; inset: 22px -16px -16px 22px; z-index: -1; border-radius: 28px; background: var(--navy-grad); }
.logo-mosaic span { display: grid; place-items: center; aspect-ratio: 1; padding: 18px; border-radius: 16px; background: var(--soft); transition: transform .35s var(--ease), background-color .3s; }
.logo-mosaic span:hover { transform: scale(1.06); background: var(--brand-50); }
.logo-mosaic img { max-height: 100%; object-fit: contain; }
.section-navy .std-tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.section-navy .std-tile:hover { background: rgba(21, 101, 216, .5); border-color: rgba(255, 255, 255, .4); }
.section-navy .std-tile strong { color: #fff; }
.section-navy .std-tile span { color: rgba(208, 224, 246, .86); }
.section-tint .std-link { background: #fff; border: 0; box-shadow: var(--shadow); }

/* ---------- About: offices card, values ---------- */
.offices-card {
  position: absolute; z-index: 2; right: -18px; bottom: -26px; width: min(300px, 80%); padding: 18px 20px; border-radius: 18px;
  background: #fff; box-shadow: 0 24px 48px -20px rgba(6, 24, 58, .55); animation: floaty 6s ease-in-out infinite;
}
.offices-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-500); }
.offices-card h3 .ico { color: var(--accent); }
.offices-card li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.offices-card li strong { color: var(--ink); font-family: var(--font-head); }
.offices-card li span { color: var(--muted); font-size: .85rem; }
.values { counter-reset: v; }
.values .feature { padding: 34px 28px 30px; }
.values .icon-box { width: 64px; height: 64px; border-radius: 18px; color: var(--brand-700); }
.values .icon-box .ico { width: 30px; height: 30px; }
.values h3 { font-size: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--brand); }

/* ---------- intro ---------- */
.intro { max-width: 880px; }
.intro-split { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-split .lead-dark + p { color: var(--muted); }
.media { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--brand-700), var(--brand-500), var(--accent)); }
.illus { margin: 0; justify-self: center; display: grid; place-items: center; width: min(340px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-50) 0 62%, transparent 63%); }
.illus img { width: 58%; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.feature, .standard { overflow: hidden; }
.feature::after, .standard::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.feature:hover, .standard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.feature:hover::after, .standard:hover::after { transform: scaleX(1); }
.icon-box {
  display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px;
  border-radius: 16px; background: var(--brand-50); color: var(--brand-700); transition: background-color .3s, transform .4s var(--ease);
}
.feature:hover .icon-box { background: var(--brand-100); transform: rotate(-6deg) scale(1.06); }
.icon-box img { width: 34px; height: 34px; }
.icon-box.sm { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
.icon-box.sm img { width: 26px; height: 26px; }
.icon-box.sm .ico { width: 22px; height: 22px; }


/* ---------- home: services in a big blue panel ---------- */
.services-sec { padding-top: clamp(56px, 7vw, 96px); }
.services-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px;
  padding: clamp(28px, 5vw, 68px); color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(90, 162, 250, .32), transparent 60%),
    radial-gradient(700px 520px at 0% 100%, rgba(21, 101, 216, .35), transparent 60%),
    var(--navy-grad);
  box-shadow: 0 50px 90px -50px rgba(0, 42, 102, .75);
}
.services-panel::before { /* faint engineering grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 75% 15%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 75% 15%, #000, transparent 70%);
}
.services-panel::after { /* slow glow drifting across the panel */
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; top: -160px; left: -160px;
  background: radial-gradient(circle, rgba(245, 130, 32, .16), transparent 65%); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(60vw, 420px); } }
.services-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; margin-bottom: clamp(36px, 4vw, 56px); }
.services-head h2 { color: #fff; margin: 0; }
.services-intro p { margin: 0 0 .85em; color: rgba(222, 234, 250, .88); font-size: 1.02rem; }
.tick-list { display: grid; gap: 10px; margin: 0 0 1.1em; }
.tick-list li { display: flex; gap: 12px; align-items: center; color: #fff; font-weight: 600; }
.tick-list .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.8; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.svc-card::before { /* bright blue fill rises on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(165deg, #2f84f5 0%, var(--brand-500) 45%, #0a47ad 100%);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.svc-card::after { /* orange accent bar */
  content: ""; position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffc073); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.svc-card:hover, .svc-card:focus-visible {
  color: #fff; transform: translateY(-10px); border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .75), 0 0 40px -10px rgba(47, 132, 245, .55);
}
.svc-card:hover::before, .svc-card:focus-visible::before { transform: translateY(0); }
.svc-card:hover::after, .svc-card:focus-visible::after { transform: scaleX(1); }
.svc-media { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.svc-media::after { /* light sweep across the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.svc-card:hover .svc-media img, .svc-card:focus-visible .svc-media img { transform: scale(1.1); filter: saturate(1.1); }
.svc-card:hover .svc-media::after, .svc-card:focus-visible .svc-media::after { transform: translateX(120%); }
.svc-body { flex: 1; padding: 20px 22px 24px; }
.svc-body h3 { color: #fff; font-size: 1.16rem; margin-bottom: 8px; }
.svc-body p { margin: 0; font-size: .93rem; line-height: 1.55; color: rgba(208, 224, 246, .85); transition: color .3s; }
.svc-card:hover .svc-body p, .svc-card:focus-visible .svc-body p { color: #fff; }
.svc-go {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--brand-700); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.5) rotate(-90deg); transition: opacity .35s, transform .5s var(--ease);
}
.svc-card:hover .svc-go, .svc-card:focus-visible .svc-go { opacity: 1; transform: scale(1) rotate(-45deg); }

/* ---------- home: industries as photo tiles ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 18px;
  background: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow .4s, transform .45s var(--ease);
}
.industry img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(4, 18, 46, 0) 38%, rgba(4, 18, 46, .88) 100%); }
.industry::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 101, 216, .2) 0%, rgba(0, 42, 102, .9) 100%); opacity: 0; transition: opacity .45s; }
.industry-name {
  position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 10px;
  color: #fff; font: 700 1.08rem/1.3 var(--font-head); text-shadow: 0 1px 10px rgba(0, 0, 0, .35); transition: transform .45s var(--ease);
}
.industry-name::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: var(--accent); transition: width .45s var(--ease); }
.industry:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.industry:hover img { transform: scale(1.12); filter: saturate(1.15); }
.industry:hover::after { opacity: 1; }
.industry:hover .industry-name { transform: translateY(-8px); }
.industry:hover .industry-name::before { width: 64px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.why h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.why-media { margin: 0; position: relative; }
.why-media img { position: relative; border-radius: 22px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; }
.why-media::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; border-radius: 24px; background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); }
.why-media::after { content: ""; position: absolute; left: -16px; top: -16px; width: 96px; height: 96px; border-radius: 18px; background: radial-gradient(var(--accent) 2px, transparent 2.5px) 0 0 / 14px 14px; opacity: .55; }
.why-list { display: grid; gap: 24px; margin: 32px 0 38px; }
.why-list li { display: flex; gap: 16px; }
.why-list h3 { margin-bottom: 4px; font-size: 1.08rem; }
.why-list p { margin: 0; color: var(--muted); font-size: .98rem; }
.why-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy-grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(0, 42, 102, .8); transition: transform .4s var(--ease); }
.why-list li:hover .why-ico { transform: rotate(-8deg) scale(1.08); }
.why-ico .ico { width: 22px; height: 22px; }

/* ---------- vendor marquee (full colour, always moving) ---------- */
.marquee {
  display: flex; overflow: hidden; gap: 0; padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 20px; padding-right: 20px; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none; width: 188px; height: 100px; display: grid; place-items: center; padding: 18px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.marquee-track img { max-height: 56px; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.marquee-track li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.marquee-track li:hover img { transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- tabs ---------- */
/* Tabs look like buttons before they are clicked: bordered, raised, highlighted on hover */
.tablist { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab {
  display: inline-flex; align-items: center; padding: 11px 20px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--brand-100); border-radius: 999px; box-shadow: var(--shadow-sm);
  color: var(--brand-700); font-weight: 600; font-size: .93rem;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.tab:hover { background: var(--brand-50); border-color: var(--brand-700); box-shadow: var(--shadow); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 42, 102, .8); }
.tab[aria-selected="true"]:hover { transform: none; }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel:not([hidden]) .card { animation: fadeUp .4s var(--ease) both; }
.tab-panel .card:nth-child(2) { animation-delay: .04s; } .tab-panel .card:nth-child(3) { animation-delay: .08s; }
.tab-panel .card:nth-child(4) { animation-delay: .12s; } .tab-panel .card:nth-child(5) { animation-delay: .16s; }
.tab-panel .card:nth-child(n+6) { animation-delay: .2s; }

/* ---------- safety steps ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: s; }
.step { display: flex; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.step-no { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-grad); color: #fff; font: 800 1.05rem/1 var(--font-head); transition: transform .4s var(--ease); }
.step:hover .step-no { transform: rotate(-8deg) scale(1.06); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- standards ---------- */
.standard-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.standard-head h3 { margin: 0; font-size: 1.3rem; }
.std-name { margin: 2px 0 0 !important; font-size: .9rem !important; color: var(--brand-700) !important; font-weight: 600; }
.std-logo { flex: none; display: grid; place-items: center; width: 84px; height: 84px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.std-logo img { max-height: 100%; object-fit: contain; }

/* standards shown as logo + name tiles */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.std-tile { display: flex; align-items: center; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.std-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.std-tile strong { display: block; font: 800 1.2rem/1.2 var(--font-head); color: var(--ink); }
.std-tile span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: 2px; }

/* QHSE → standards link panel */
.std-link { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.std-link h2 { margin-bottom: 6px; }
.std-link p { margin: 0; }
.std-logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.std-logos li { display: grid; place-items: center; width: 64px; height: 64px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.std-logos img { max-height: 100%; object-fit: contain; }
/* Intro text: every paragraph and bullet at one size, so pages don't mix font sizes */
.prose p:not(.eyebrow), .prose .check-list li { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.prose p:not(.eyebrow) + p { margin-top: 1em; }
.check-list { display: grid; gap: 14px; margin: 1.1em 0 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico { flex: none; width: 22px; height: 22px; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--brand-700); color: #fff; stroke-width: 2.6; }

/* single highlighted offering (SCADA) */
.feature-wide { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; max-width: 880px; padding: clamp(24px, 4vw, 40px); }
.feature-wide .icon-box { margin: 0; width: 76px; height: 76px; }
.feature-wide .icon-box img { width: 44px; height: 44px; }
.feature-wide h3 { font-size: 1.3rem; }

/* note under the automation tabs */
.page-note { display: flex; gap: 12px; align-items: flex-start; margin: 32px 0 0; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); color: var(--text); }
.page-note .ico { margin-top: 3px; color: var(--brand-700); }


/* ---------- gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery li.wide { grid-column: span 2; }
.gallery a { position: relative; display: block; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.gallery a:hover .zoom, .gallery a:focus-visible .zoom { opacity: 1; transform: none; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 15, 20, .92); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(1200px, 90vw); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.contact-cards .card { display: flex; gap: 14px; padding: 22px; }
.contact-cards .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.contact-cards h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-cards .wide { grid-column: 1 / -1; }
.contact-cards .card > div { flex: 1; min-width: 0; }
.contact-cards a, .contact-cards p, .contact-cards li { display: block; color: var(--text); font-size: .95rem; margin: 0; overflow-wrap: break-word; }
.contact-cards .phone-link { font: 700 1.08rem/1.4 var(--font-head); color: var(--brand-700); }
.plain.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 16px; }
.contact-cards a:hover { color: var(--brand-500); }
.form-card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 6px; }
.contact-form { display: grid; gap: 18px; margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-100); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.field .invalid { border-color: #c0392b; }
.field-error { margin: 6px 0 0; color: #b42318; font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam honeypot */
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.err { color: #b42318; }
.map-wrap { line-height: 0; background: var(--soft); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; filter: grayscale(.35); }

/* ---------- "Have a project in mind?" band with the enquiry form (every page) ---------- */
.cta-band { padding: 0 0 clamp(72px, 10vw, 128px); }
.section-soft + .cta-band, .map-wrap + .cta-band, .section-navy + .cta-band, .section-tint + .cta-band { padding-top: clamp(72px, 10vw, 128px); }
.section-navy + .cta-band { background: linear-gradient(180deg, #eef3fa, #e9f0f9); }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 30px; color: #fff;
  background: radial-gradient(circle at 0% 0%, rgba(90, 162, 250, .35), transparent 50%), radial-gradient(circle at 100% 100%, rgba(21, 101, 216, .35), transparent 50%), var(--navy-grad);
  box-shadow: 0 50px 90px -50px rgba(0, 42, 102, .75);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.cta-copy h2 { color: #fff; margin-bottom: 14px; }
.cta-copy > p { margin: 0; max-width: 520px; color: rgba(255, 255, 255, .84); }
.cta-methods { display: grid; gap: 12px; margin-top: 30px; max-width: 430px; }
.cta-method {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); color: #fff;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.cta-method:hover, .cta-method:focus-visible { color: #fff; background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .35); transform: translateX(8px); }
.cta-method small { display: block; font-size: .78rem; letter-spacing: .04em; color: rgba(255, 255, 255, .72); }
.cta-method strong { display: block; font: 700 1.06rem/1.3 var(--font-head); }
.cm-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); transition: transform .4s var(--ease); }
.cta-methods li:nth-child(2) .cm-ico { background: linear-gradient(135deg, #4b9bff, var(--brand-500)); }
.cta-methods li:nth-child(3) .cm-ico { background: linear-gradient(135deg, #3fcf86, var(--green)); }
.cta-method:hover .cm-ico { transform: rotate(-8deg) scale(1.08); }
.cm-ico .ico { width: 22px; height: 22px; }
.cta-form { padding: clamp(22px, 3vw, 36px); color: var(--text); border: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65); }
.cta-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.cta-form .muted { margin: 0; }
.cta-form .contact-form { gap: 14px; margin-top: 16px; }

/* ---------- footer (light, so the full-colour logo shows) ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, #f6f9fd 0%, #e8eef7 100%); color: var(--text); font-size: .96rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-700), var(--brand-500) 50%, var(--steel)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.1fr .8fr 1.3fr; gap: 44px; padding: 80px 0 60px; }
.footer-brand img { height: 68px; width: auto; }
.site-footer h3 { position: relative; color: var(--brand-700); font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; padding-bottom: 12px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--brand-500)); }
.footer-about p { margin: 20px 0 0; max-width: 360px; color: var(--muted); }
.footer-locs { display: grid; gap: 8px; margin-top: 22px; }
.footer-locs li { display: flex; gap: 10px; align-items: flex-start; color: var(--grey-900); font-weight: 600; }
.footer-locs .ico { margin-top: 4px; color: var(--accent); }
.footer-links li + li { margin-top: 10px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--brand-500); }
.footer-links a { display: inline-block; transition: color .2s, transform .25s var(--ease); }
.footer-links a:hover { transform: translateX(5px); }
.footer-contact li { display: flex; gap: 12px; align-items: center; }
.footer-contact li + li { margin-top: 14px; }
.fc-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.fc-ico .ico { width: 18px; height: 18px; }
.site-footer .fc-phone { font: 700 1.1rem/1.3 var(--font-head); color: var(--brand-700); }
.footer-cta { margin-top: 24px; }
.site-footer .footer-cta, .site-footer .footer-cta:hover { color: #fff; }
.footer-bottom { background: var(--brand-700); color: rgba(255, 255, 255, .8); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.site-footer .footer-bottom a { color: #fff; }
.site-footer .footer-bottom a:hover { color: var(--brand); }
@media (max-width: 1400px) { .footer-bottom .container { padding-right: 84px; } } /* keep clear of the chat button */

/* ---------- chat assistant + click-to-call ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 150; }
html:not(.js) .chat { display: none; }
.chat-fabs { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 0; color: #fff; box-shadow: 0 16px 32px -12px rgba(0, 42, 102, .7); transition: transform .3s var(--ease), box-shadow .3s; }
.fab:hover { color: #fff; transform: translateY(-3px) scale(1.06); }
.fab .ico { width: 27px; height: 27px; }
.fab-chat { background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 70%); }
.fab-chat::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(21, 101, 216, .55); animation: ring 2.6s ease-out infinite; }
.fab-chat::after { content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: #3ddc84; border: 2px solid #fff; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.65); opacity: 0; } }
.fab-chat .i-close, .chat.is-open .fab-chat .i-open { display: none; }
.chat.is-open .fab-chat .i-close { display: block; }
.chat.is-open .fab-chat::before, .chat.is-open .fab-chat::after { display: none; }
.fab-call { display: none; width: 54px; height: 54px; background: linear-gradient(135deg, #ffa24f, var(--accent-600)); box-shadow: 0 14px 28px -12px rgba(245, 130, 32, .9); }
.fab-call .ico { width: 23px; height: 23px; }
.chat.is-open .fab-call { display: none; }

.chat-teaser {
  position: absolute; right: 0; bottom: 80px; display: flex; align-items: flex-start; gap: 4px; width: 250px; margin: 0;
  padding: 12px 8px 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: popIn .45s var(--ease) both;
}
.chat-teaser[hidden] { display: none; }
.chat-teaser-open { padding: 0; border: 0; background: none; text-align: left; color: var(--text); font-size: .9rem; line-height: 1.45; }
.chat-teaser-open strong { display: block; margin-top: 4px; color: var(--brand-500); }
.chat-teaser-x { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.chat-teaser-x:hover { background: var(--soft); color: var(--ink); }
.chat-teaser-x .ico { width: 16px; height: 16px; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }

.chat-panel {
  position: absolute; right: 0; bottom: 78px; display: flex; flex-direction: column; overflow: hidden;
  width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 130px));
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 34px 80px -24px rgba(6, 24, 58, .5);
  transform-origin: bottom right; animation: popIn .3s var(--ease) both;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(90, 162, 250, .5), transparent 60%), var(--navy-grad); }
.chat-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.chat-avatar img { width: 44px; height: 44px; }
.chat-title { min-width: 0; }
.chat-title strong { display: block; font: 700 1.04rem/1.2 var(--font-head); }
.chat-title span { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .76rem; line-height: 1.3; color: rgba(255, 255, 255, .82); }
.online-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.chat-x { flex: none; margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; }
.chat-x:hover { background: rgba(255, 255, 255, .25); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; overflow-y: auto; background: var(--soft); overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: msgIn .3s var(--ease) both; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 6px; }
.msg.bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; border-bottom-right-radius: 4px; }
.msg ul { display: grid; gap: 4px; }
.msg li a, .msg a { font-weight: 600; }
.msg .msg-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: var(--brand-700); color: #fff; font-size: .86rem; }
.msg .msg-btn:hover { background: var(--brand-500); color: #fff; }
.msg .msg-btn .ico { width: 15px; height: 15px; }
.msg.wide { max-width: 100%; width: 100%; }
.msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: blink 1.1s infinite both; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-chips:empty { display: none; }
.chip { padding: 6px 12px; border: 1.5px solid var(--brand-100); border-radius: 999px; background: #fff; color: var(--brand-700); font-size: .84rem; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover, .chip:focus-visible { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: translateY(-2px); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-width: 0; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: .93rem; color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.chat-input button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; transition: transform .25s var(--ease); }
.chat-input button:hover { transform: scale(1.08) rotate(8deg); }
.chat-input button .ico { width: 19px; height: 19px; }
.chat-lead { display: grid; gap: 8px; margin-top: 8px; }
.chat-lead label span { display: block; margin-bottom: 3px; font-size: .78rem; font-weight: 600; color: var(--ink); }
.chat-lead input, .chat-lead textarea { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; font-size: .9rem; color: var(--ink); background: #fff; }
.chat-lead textarea { resize: vertical; }
.chat-lead input:focus, .chat-lead textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.chat-lead .invalid { border-color: #c0392b; }
.chat-lead-status { margin: 0; font-size: .82rem; min-height: 1em; }
.chat-lead-status.err { color: #b42318; }

/* ---------- WhatsApp button (bottom-left; the chat assistant is bottom-right) ---------- */
.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; display: flex; align-items: center; height: 62px; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 16px 32px -12px rgba(18, 140, 126, .85);
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.wa-fab::before { content: ""; position: absolute; left: 0; top: 0; width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .6); animation: ring 2.6s ease-out infinite; pointer-events: none; }
.wa-fab:hover, .wa-fab:focus-visible { color: #fff; background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(18, 140, 126, .95); }
.wa-fab:hover::before, .wa-fab:focus-visible::before { animation: none; opacity: 0; }
.wa-ico { flex: none; display: grid; place-items: center; width: 62px; height: 62px; }
.wa-ico svg { width: 32px; height: 32px; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 .95rem/1 var(--font-body); transition: max-width .45s var(--ease), padding .45s var(--ease); }
.wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { max-width: 180px; padding-right: 22px; }
@media (max-width: 1400px) {
  .footer-bottom .container { padding-left: 84px; }   /* keep the copyright line clear of the WhatsApp button */
  .hero-bar-inner { padding-left: 76px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; }

/* ---------- reveal on scroll ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-snow { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; flex: 1; padding: 0 20px; max-width: 1240px; margin-inline: auto; }
  .marquee-track li { width: auto; height: 80px; padding: 14px; }
  .marquee-track[aria-hidden] { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .services-head { grid-template-columns: 1fr; gap: 18px; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .std-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-feed { display: none; }
  .page-hero.has-inquiry .page-hero-inner { grid-template-columns: 1fr; }
  .quick-inquiry { max-width: 620px; }
  .cycle { grid-template-columns: 1fr; }
  .qhse-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section-head-split, .intro-split, .why, .contact, .cta-inner { grid-template-columns: 1fr; }
  .section-head-split { gap: 16px; }
  .why-media { order: 2; }
  .why-media::before { inset: 18px -10px -10px 18px; }
  .steps { grid-template-columns: 1fr; }
  .illus { width: 240px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid.flip > .intro-media { order: 0; }
  .intro-media { max-width: 620px; }
  .fab-call { display: grid; }
  .chat-teaser { right: 74px; bottom: 6px; } /* call button sits above the chat button on phones */
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4, .contact-cards, .field-row, .std-grid, .std-link, .feature-wide, .svc-grid { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industry-name { left: 14px; right: 14px; bottom: 12px; font-size: .92rem; gap: 6px; }
  .services-panel, .cta-inner { border-radius: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery li.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 60px 0 40px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding: 80px 0 150px; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 18, 46, .82), rgba(4, 18, 46, .74) 60%, rgba(4, 18, 46, .9)); }
  .hero-kicker { font-size: .7rem; }
  .hero-actions .btn { width: 100%; }
  .hero-bar-inner { flex-direction: column; align-items: flex-start; }
  .brand img { height: 40px; }
  .card { padding: 24px; }
  .step { flex-direction: column; gap: 14px; padding: 24px; }
  .standard-head { align-items: flex-start; }
  .std-logo { width: 68px; height: 68px; }
  .map-wrap iframe { height: 320px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .tablist { border-radius: 14px; }
  .key-points, .key-points.two, .flow, .qhse-tiles { grid-template-columns: 1fr; }
  .flow::before { display: none; }
  .logo-mosaic { gap: 10px; padding: 16px; }
  .key-points li { flex-direction: row; align-items: center; }
  .float-badge { left: 10px; bottom: 14px; }
  .float-badge.top { right: 10px; top: 14px; }
  .intro-media::before { inset: 16px -8px -8px 16px; }
  .offices-card { right: 10px; bottom: -40px; }
  .cycle-wheel { --size: min(330px, calc(100vw - 72px)); margin: 30px auto 44px; }
  .node-dot { width: 48px; height: 48px; }
  .node-dot .ico { width: 21px; height: 21px; }
  .node-label { font-size: .7rem; padding: 2px 7px; }
  .cycle-hub strong { font-size: 1rem; }
  .hub-ico { width: 36px; height: 36px; }
  .hero-chips li { font-size: .84rem; }
  /* phones: services as compact rows (photo left) so eight cards don't run on forever */
  .svc-grid { gap: 12px; }
  .svc-card { flex-direction: row; align-items: stretch; border-radius: 14px; }
  .svc-media { flex: 0 0 36%; aspect-ratio: auto; min-height: 112px; }
  .svc-body { padding: 14px 16px; }
  .svc-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .svc-body p { font-size: .86rem; line-height: 1.45; }
  .svc-go { display: none; }
  .svc-card:hover, .svc-card:focus-visible { transform: translateY(-3px); }
  .chat { right: 14px; bottom: 14px; }
  .chat-teaser { width: 210px; }
  .wa-fab { left: 14px; bottom: 14px; height: 56px; }
  .wa-fab::before, .wa-ico { width: 56px; height: 56px; }
  .wa-ico svg { width: 29px; height: 29px; }
  .hero-bar-inner { padding-left: 0; }
  .footer-bottom .container { padding: 20px 66px 86px 0; }   /* phones: keep the copyright line clear of the floating buttons */
  .chat-panel { height: min(560px, calc(100vh - 110px)); }
}
