/* =========================================================
   MANTIS INFRA SOLUTIONS — temp8
   Architecture: horizontal fixed top navigation.
   Primary bar (brand + numbered nav + CTA) and an optional
   sub-anchor rail stick to the top together; the DOCUMENT
   scrolls normally at every breakpoint.
   ========================================================= */

/* ===== Tokens (carried verbatim from the supplied block) ===== */
:root{
  --navy-950:#18263c;
  --navy-900:#18263c;
  --navy-850:#18263c;
  --navy-800:#18263c;
  --navy-700:#18263c;
  /* --navy-950:#05070d;
  --navy-800:#355872;
  --navy-900:#090d1a;
  --navy-850:#0e1426;
  --navy-800:#141c35;
  --navy-700:#1c2745; */
  --teal-400:#2fe0c9;
  --teal-500:#1cc2ac;
  --violet-400:#7c6bfb;
  --violet-500:#6452e8;
  --grad-accent:linear-gradient(135deg,#2fe0c9 0%,#6452e8 100%);
  --amber:#ffb454;
  --ink:#f3f6fc;
  --muted:#9aa7c7;
  /* --muted-dark:#5f6d8f; */
  /* --muted-dark:#96aadc; */
  --muted-dark:#3a69e2;
  --paper:#f7f8fc;
  --paper-2:#ffffff;
  --line:#e7eaf3;
  --radius:22px;
  --radius-sm:14px;
  --shadow-lg:0 30px 60px -25px rgba(15,20,45,.35);
  --shadow-glow:0 20px 45px -15px rgba(47,224,201,.45);

  /* temp8-only additions */
  --font-display:'Bricolage Grotesque','Manrope',sans-serif;
  --font-body:'Manrope',system-ui,sans-serif;
  --font-mono:'Martian Mono','Manrope',monospace;
  --ease:cubic-bezier(.4,0,.2,1);
  --body-ink:#10192b;
  --colpad:clamp(26px,4.6vw,76px);

  /* measure of the centred content shell */
  /* 1320px base, plus half of any extra viewport width, so wide screens use 50% of the side space */
  --shell:max(1320px,calc(660px + var(--bleed-w) / 2));
  /* viewport width without the scrollbar — JS keeps this exact */
  --bleed-w:100vw;
  /* distance from the viewport edge to the first text column */
  --gutter:max(var(--colpad),calc((var(--bleed-w) - var(--shell)) / 2 + var(--colpad)));
  /* combined height of the fixed bars — JS keeps this exact */
  --head-h:118px;
  --navbar-h:62px;
  --subrail-h:46px;

  /* Large-format presentation scale. The layout caps at --shell, so on a
     60-inch screen the content would sit in a narrow band of small text.
     Rather than re-specifying every px size, the whole page is scaled.
     script.js reads this value and divides its measurements by it. */
  --tv-zoom:1;
}


*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;}
/* html sits outside the zoom, so this one goes the other way. */
html{scroll-padding-top:calc(var(--head-h) * var(--tv-zoom));}
body{
  zoom:var(--tv-zoom);
  font-family:var(--font-body);
  font-size:14px;
  line-height:1.65;
  color:var(--body-ink);
  background:var(--paper);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4,h5{font-family:var(--font-display);margin:0;line-height:1.08;letter-spacing:-.022em;font-weight:700;}
p{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
button{font:inherit;color:inherit;}
:focus-visible{outline:2px solid var(--violet-500);outline-offset:3px;border-radius:4px;}

.skip-link{
  position:fixed;left:12px;top:-60px;z-index:2000;
  background:var(--navy-950);color:var(--ink);
  padding:10px 16px;border-radius:var(--radius-sm);
  font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  transition:top .2s ease;
}
.skip-link:focus{top:12px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* =========================================================
   1. FIXED TOP NAVIGATION
   ========================================================= */
.site-head{
  position:fixed;top:0;left:0;right:0;z-index:100;
  color:var(--ink);
}
.head-inner{
  max-width:var(--shell);margin:0 auto;
  padding:0 var(--colpad);
  display:flex;align-items:center;
}

/* --- utility strip (phone / email) --- */
.util-strip{
  display:none;
  background:var(--navy-950);
  border-bottom:1px solid rgba(154,167,199,.10);
}
.util-inner{gap:26px;height:34px;justify-content:flex-end;}
.util-item{
  display:inline-flex;align-items:baseline;gap:9px;
  font-size:12.5px;color:var(--ink);
  transition:color .2s ease;
}
/* The "Phone" / "Email" labels stay white too, just dialled back so the
   number and address still read as the primary thing. */
.util-item .u-key{
  font-family:var(--font-mono);font-size:8.5px;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(255,255,255,.66);
}
.util-item:hover{color:var(--teal-400);}

/* --- primary bar --- */
.navbar{
  background:rgba(23, 77, 118,.88);
  -webkit-backdrop-filter:saturate(150%) blur(16px);
  backdrop-filter:saturate(150%) blur(16px);
  border-bottom:1px solid rgba(47,224,201,.16);
}
.navbar-inner{height:var(--navbar-h);gap:clamp(14px,2.4vw,38px);justify-content:space-between;}

/* Brand */
/* Brand lockup: mark on the left, two lines of type to its right.
   .brand-name is a grid whose width comes from MANTIS (the wider of the two
   max-content sizes); the descriptor is stretched to that same track and
   justified, so line two always spans exactly line one's width however the
   sizes are tweaked. The descriptor's size is chosen so its natural width is
   just under MANTIS, keeping the justification gaps small. */
.brand{display:flex;flex-direction:row;align-items:stretch;gap:3px;flex:none;}
.brand-mark{flex:none;height:46px;width:auto;filter:drop-shadow(0 8px 18px rgba(47,224,201,.25));}
.brand-name{
  display:grid;justify-items:stretch;align-content:space-between;gap:4px;
  line-height:1;color:var(--ink);
}
.brand-name strong{
  font-family:var(--font-display);font-weight:800;font-size:37px;
  /* letter-spacing leaves a gap after the last glyph; pull it back so the
     two lines start and end on the same edges. */
  letter-spacing:.005em;margin-right:0;white-space:nowrap;line-height:.74;
}
/* Sized so its natural width lands just inside MANTIS, then justified out to
   fill the track exactly - so line two always spans line one's width. */
.brand-name em{
  display:block;font-style:normal;font-family:var(--font-body);font-weight:800;
  font-size:8.4px;line-height:.74;letter-spacing:.17em;margin-right:-.17em;text-transform:uppercase;
  color:#fff;
  text-align:justify;text-align-last:justify;
}

/* Horizontal numbered nav */
.mainnav{display:none;}
.mainnav-list{display:flex;align-items:stretch;gap:clamp(4px,1.5vw,22px);}
/* Single-line label. Vertical padding replaces the height the stacked
   index used to occupy, so the bar keeps its original 74px. */
.mn-link{
  position:relative;display:flex;align-items:center;
  padding:10px 8px 11px;
  color:var(--muted);
  transition:color .22s ease;
}
.mn-name{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(14px,1.25vw,16.5px);letter-spacing:-.012em;line-height:1.1;white-space:nowrap;
}
.mn-link::after{
  content:"";position:absolute;left:7px;right:7px;bottom:0;
  height:2px;border-radius:2px;
  background-image:var(--grad-accent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .26s ease;
}
.mn-link:hover{color:var(--ink);}
.mn-link:hover::after{transform:scaleX(.42);}
.mn-item.is-current>.mn-link{color:var(--ink);}
.mn-item.is-current>.mn-link::after{transform:scaleX(1);box-shadow:var(--shadow-glow);}

.navbar-inner .nav-cta{display:none;flex:none;}

/* hamburger */
.nav-toggle{
  width:44px;height:40px;border-radius:12px;cursor:pointer;flex:none;
  background:transparent;border:1px solid rgba(154,167,199,.35);
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
}
.nav-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink);transition:transform .26s ease,opacity .2s ease;}
.nav-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* --- secondary sub-anchor rail --- */
.subrail{
  background:rgba(5,7,13,.90);
  -webkit-backdrop-filter:saturate(150%) blur(14px);
  backdrop-filter:saturate(150%) blur(14px);
  border-bottom:1px solid rgba(154,167,199,.14);
}
.subrail-inner{height:var(--subrail-h);gap:clamp(12px,2vw,26px);}
.subrail-key{
  flex:none;
  font-family:var(--font-mono);font-size:8.5px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--muted-dark);
}
.subnav{
  display:flex;align-items:center;gap:clamp(14px,2.4vw,34px);
  overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;-ms-overflow-style:none;
  -webkit-overflow-scrolling:touch;
}
.subnav::-webkit-scrollbar{display:none;}
.sr-link{
  position:relative;display:inline-flex;align-items:center;
  padding:11px 0 11px 18px;white-space:nowrap;flex:none;
  font-size:12.5px;font-weight:600;letter-spacing:.05em;color:var(--muted);
  transition:color .2s ease;
}
.sr-link::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:8px;height:1px;background:var(--muted-dark);
  transition:background .2s ease,width .2s ease,height .2s ease;
}
.sr-link:hover{color:var(--ink);}
.sr-link:hover::before{background:var(--teal-400);width:12px;}
.sr-link.is-active{color:var(--teal-400);}
.sr-link.is-active::before{background-image:var(--grad-accent);background-color:var(--teal-400);width:14px;height:2px;}

/* progress hairline pinned to the bottom of the bars */
.col-progress{
  position:absolute;left:0;right:0;bottom:-2px;height:2px;z-index:2;
  pointer-events:none;
}
.col-progress i{display:block;height:100%;width:0%;background-image:var(--grad-accent);transition:width .12s linear;}

/* --- mobile drawer panel --- */
.mobile-nav{
  position:fixed;top:var(--head-h);left:0;right:0;z-index:95;
  max-height:calc(100vh / var(--tv-zoom) - var(--head-h));
  max-height:calc(100dvh / var(--tv-zoom) - var(--head-h));
  background:var(--navy-950);
  background-image:linear-gradient(168deg,var(--navy-950) 0%,var(--navy-900) 58%,var(--navy-850) 100%);
  border-bottom:1px solid rgba(47,224,201,.20);
  box-shadow:0 40px 80px -30px rgba(5,7,13,.9);
  color:var(--ink);
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:clamp(18px,4vw,30px) var(--colpad) 40px;
  opacity:0;visibility:hidden;transform:translateY(-10px);
  transition:opacity .28s ease,transform .28s ease,visibility .28s ease;
}
.mobile-nav.open{opacity:1;visibility:visible;transform:none;}
.mobile-nav[inert]{pointer-events:none;}
.mn-group{display:flex;flex-direction:column;gap:2px;}
.mob-link{
  position:relative;display:flex;align-items:center;
  padding:9px 0 9px 18px;color:var(--muted);
  transition:color .22s ease;
}
.mob-link::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:0;border-radius:3px;background-image:var(--grad-accent);
  transition:height .26s ease;
}
.mob-link:hover{color:var(--ink);}
.mob-name{font-family:var(--font-display);font-weight:600;font-size:26px;letter-spacing:-.025em;}
.mob-item.is-current>.mob-link{color:var(--ink);}
.mob-item.is-current>.mob-link::before{height:70%;box-shadow:var(--shadow-glow);}
.mob-sub{
  margin:6px 0 12px 14px;padding-left:18px;
  display:flex;flex-direction:column;gap:2px;
  border-left:1px solid rgba(154,167,199,.20);
}
.mobile-nav .sr-link{font-size:13.5px;padding:6px 0 6px 16px;}
.mob-foot{
  margin-top:24px;padding-top:20px;
  border-top:1px solid rgba(154,167,199,.16);
  display:flex;flex-direction:column;gap:14px;
}
.mob-contact{display:flex;flex-direction:column;gap:6px;}
.mob-contact .util-item{font-size:14px;color:var(--ink);}
.mob-contact .util-item .u-key{min-width:48px;}

.backdrop{
  position:fixed;inset:0;z-index:94;
  background:rgba(5,7,13,.6);
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;
}
.backdrop.show{opacity:1;visibility:visible;}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:14px 24px;border-radius:999px;border:1px solid transparent;
  font-family:var(--font-body);font-weight:700;font-size:14.5px;letter-spacing:.01em;
  cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease;
}
.btn-primary{background-image:var(--grad-accent);
  color:var(--ink);
  box-shadow:var(--shadow-glow);}
.btn-primary:hover{transform:translateY(-2px);}
.btn-ghost{background:transparent;border-color:rgba(154,167,199,.42);color:inherit;}
.btn-ghost:hover{border-color:var(--teal-400);color:var(--teal-500);}
.btn-block{width:100%;}
.btn-sm{padding:11px 19px;font-size:13px;}

/* =========================================================
   2. Page shell — the document scrolls normally
   ========================================================= */
.column{
  background:var(--paper);
  position:relative;
  padding-top:var(--head-h);
}
.col-inner{padding:0 var(--colpad);max-width:var(--shell);margin:0 auto;}

/* =========================================================
   3. Section rhythm
   ========================================================= */
.sec{padding:17.5px 0;border-top:1px solid var(--line);}
.sec-first{border-top:0;}
.sec-meta{
  display:flex;align-items:center;gap:12px;
  font-family:var(--font-mono);font-size:16px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;color:var(--muted-dark);
  margin-bottom:18px;
}
/* Short gradient rule replaces the old "01 —" numeral + dash, so the
   eyebrow keeps its visual anchor without counting the sections. */
.sec-meta::before{
  content:"";flex:none;
  width:26px;height:2px;border-radius:2px;
  background-image:var(--grad-accent);
}
.sec-meta .amber{color:var(--amber);}
.sec-h{
  font-size:clamp(30px,4.2vw,50px);line-height:1.04;letter-spacing:-.032em;
  /* max-width:20ch; */
  color:var(--navy-900);
}
.sec-intro{
  margin-top:20px;
  /* max-width:62ch; */
  font-size:14px;
  color:#18263c;line-height:1.7;
}
.sec-intro strong{color:var(--navy-800);font-weight:700;}
.rule{height:1px;background:var(--line);border:0;margin:0;}
.rule-accent{height:2px;border:0;margin:0;background-image:var(--grad-accent);width:74px;border-radius:2px;}

/* full-bleed block — breaks out of the centred shell to the viewport edges */
.bleed{
  width:var(--bleed-w);
  margin-left:calc(50% - var(--bleed-w) / 2);
  margin-right:calc(50% - var(--bleed-w) / 2);
}
.bleed-figure{position:relative;margin:0;overflow:hidden;background:var(--navy-900);}
.bleed-figure img{width:100%;height:clamp(240px,42vw,460px);object-fit:cover;}
/* The default above crops to a fixed band. .is-full keeps the image's own
   aspect instead, for artwork that has to be seen whole - a fixed height plus
   object-fit:cover silently trims the sides of a wide panorama. */
.bleed-figure.is-full img{height:auto;object-fit:contain;}
.bleed-cap{
  position:absolute;left:var(--gutter);bottom:18px;
  display:inline-flex;align-items:center;gap:10px;
  background:rgba(5,7,13,.72);
  color:var(--ink);padding:9px 16px;border-radius:999px;
  font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
}
.bleed-cap::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--teal-400);box-shadow:0 0 0 4px rgba(47,224,201,.2);}

/* two-up split */
.two-up{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,3.4vw,54px);align-items:start;}
.two-up.tilt{grid-template-columns:1.05fr .95fr;}
.mt-l{margin-top:clamp(30px,3.6vw,50px);}
.mt-m{margin-top:clamp(20px,2.4vw,32px);}
.center{text-align:center;}

/* staggered rows */
.stagger{display:flex;flex-direction:column;}
.stagger-row{
  display:grid;grid-template-columns:auto 1fr;gap:22px;
  padding:26px 0;border-top:1px solid var(--line);
}
.stagger-row:last-child{border-bottom:1px solid var(--line);}
.stagger-row .idx{
  font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.1em;
  color:var(--violet-500);padding-top:7px;
}
.stagger-row h3{font-size:clamp(19px,2vw,25px);color:var(--navy-900);letter-spacing:-.02em;}
.stagger-row p{margin-top:9px;color:#18263c;max-width:64ch;font-size:14px;}
.stagger-row:nth-child(even){padding-left:clamp(0px,3vw,46px);}

/* About: the positioning line under the page title. */
.who-tagline{
  margin-top:14px;font-family:var(--font-display);font-weight:700;
  font-size:clamp(17px,1.8vw,22px);letter-spacing:-.012em;color:var(--violet-500);
}
.who-h{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(17px,1.7vw,21px);letter-spacing:-.02em;color:var(--navy-900);
}
/* Highlighted strip carrying the technology statement above the CTA. */
/* Two columns so the strip uses its full width: the statement on the left,
   the supporting copy on the right, rather than one measure of text with
   empty space beside it. */
.hl-strip{
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);
  gap:clamp(18px,3vw,46px);align-items:start;
  padding:clamp(24px,3vw,38px);border-radius:var(--radius);
  background-image:linear-gradient(135deg,rgba(47,224,201,.10),rgba(124,107,251,.10));
  border:1px solid rgba(124,107,251,.22);
}
.hl-strip p{margin:0;font-size:14px;line-height:1.75;color:#18263c;}
/* The office line on the contact page, moved off the About page. */
.c-key{
  display:inline-block;margin-right:10px;
  font-family:var(--font-mono);font-size:14px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--amber);
}

/* Section heading set as a pull quote - narrower measure so it reads as a
   statement rather than running the full width of the column. */
.sec-h-quote{max-width:26ch;}

/* Full-width figure below a section's copy.
   NB: a `margin:0` shorthand here silently cancels the .mt-l utility used in
   the markup - same specificity, and this rule comes later in the file - so
   the spacing is owned here instead. */
.flow-figure{margin:clamp(36px,4.4vw,68px) 0 0;}
.flow-figure img{
  width:100%;height:auto;border-radius:var(--radius-sm);
  border:1px solid var(--line);box-shadow:var(--shadow-lg);
  transition:transform .26s ease,box-shadow .26s ease;
}
.flow-figure a:hover img{transform:translateY(-3px);}
/* Artwork narrower than the column: cap at its natural width and centre it,
   rather than upscaling it and going soft. */
.flow-figure.is-native img{max-width:939px;margin-left:auto;margin-right:auto;}

/* Image carousel for project galleries - a fixed 400x400 stage, framed like a
   card rather than a full-bleed strip, with glassmorphic nav floating on the
   image itself and progress dots sitting below the frame. */
.carousel{
  width:400px;max-width:100%;margin:0 auto;
  padding:14px;border-radius:24px;
  background:var(--paper-2);border:1px solid var(--line);box-shadow:var(--shadow-lg);
}
.carousel-stage{
  position:relative;width:100%;height:380px;border-radius:16px;overflow:hidden;
  background:var(--paper-3);
}
.carousel-track{
  display:flex;height:100%;transition:transform .5s cubic-bezier(.65,0,.35,1);
}
.carousel-slide{
  flex:0 0 100%;height:100%;margin:0;padding:0;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.carousel-slide img{
  /* natural size, never enlarged or cropped; only shrunk if wider/taller than the frame */
  width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;display:block;
}
.carousel-prev,.carousel-next{
  position:absolute;top:50%;transform:translateY(-50%);
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.5);
  background:rgba(15,20,45,.32);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  color:#fff;font-size:15px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background 200ms ease,transform 200ms ease;
}
.carousel-prev{left:10px;}
.carousel-next{right:10px;}
.carousel-prev:hover,.carousel-next:hover{background-image:var(--grad-accent);border-color:transparent;transform:translateY(-50%) scale(1.08);}
.carousel-nav{margin-top:12px;display:flex;justify-content:center;}
.carousel-dots{display:flex;align-items:center;gap:7px;}
.carousel-dot{
  appearance:none;-webkit-appearance:none;
  flex:0 0 7px;width:7px;height:7px;border-radius:50%;border:0;padding:0;
  background:var(--muted);cursor:pointer;transition:all 220ms ease;
}
.carousel-dot:hover{background:var(--navy-900);}
.carousel-dot.is-active{flex:0 0 22px;width:22px;border-radius:4px;background:var(--grad-accent);}

.side-figcap{
  margin-top:11px;font-family:var(--font-mono);font-size:9.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted-dark);
}

/* prose */
/* .prose{ } */
.prose p+p{margin-top:16px;}
.prose p{color:#18263c;}

/* reveal */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform .7s cubic-bezier(.2,.7,.3,1);}
.reveal.in{opacity:1;transform:none;}

/* =========================================================
   4. Openers
   ========================================================= */
.opener{padding:clamp(50px,7vw,4px) 0 clamp(34px,4vw,54px);}
.opener .kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--font-mono);font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--amber);margin-bottom:22px;
}
.opener .kicker::before{content:"";width:26px;height:2px;background-image:var(--grad-accent);border-radius:2px;}
.opener h1{
  font-size:clamp(40px,7.4vw,88px);line-height:.98;letter-spacing:-.04em;
  color:var(--navy-950);
  /* max-width:16ch; */
  font-weight:800;
}
.opener .opener-lede{
  margin-top:22px;font-size:clamp(17px,1.7vw,21px);
  line-height:1.55;color:#42516d;
}
.opener-figure{margin-top:clamp(30px,4vw,54px);}
.opener-figure img{
  width:100%;height:clamp(250px,44vw,520px);object-fit:cover;
  border-radius:var(--radius);box-shadow:var(--shadow-lg);
}
.opener-figcap{
  margin-top:12px;font-family:var(--font-mono);font-size:9.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--muted-dark);
}

/* Home hero (opener variant carrying the banner video) */
.hero{
  position:relative;overflow:hidden;
  /* Full-screen banner: the viewport less the fixed header, so the video
     fills everything visible on load. svh (small viewport height) keeps
     mobile browser chrome from cropping the bottom of the copy. */
  min-height:calc(100vh / var(--tv-zoom) - var(--head-h));
  min-height:calc(100svh / var(--tv-zoom) - var(--head-h));
  display:flex;flex-direction:column;justify-content:center;
  background:var(--navy-950);
  width:var(--bleed-w);
  margin-left:calc(50% - var(--bleed-w) / 2);
  margin-right:calc(50% - var(--bleed-w) / 2);
  padding:clamp(34px,5vw,64px) var(--gutter) clamp(24px,3vw,40px);
  color:var(--ink);
}
.hero-media{position:absolute;inset:0;z-index:0;background:var(--navy-950);}
/* Text scrim. The clip is bright enough that the description and the feed
   lose contrast against sky and water, so darken only the two corners the
   copy actually occupies and leave the middle of the frame untouched.
   Delete this rule if you want the raw brightness of the video back. */
.hero-media::after{
  content:"";position:absolute;inset:0;
  background:
    /* column behind the headline and description */
    linear-gradient(100deg,rgba(5,10,20,.88) 0%,rgba(5,10,20,.70) 26%,rgba(5,10,20,.44) 46%,rgba(5,10,20,.14) 64%,rgba(5,10,20,0) 80%),
    /* settles the top edge against the fixed header */
    linear-gradient(180deg,rgba(5,10,20,.42) 0%,rgba(5,10,20,0) 42%),
    /* lifts the monitoring feed off the water */
    linear-gradient(0deg,rgba(5,10,20,.5) 0%,rgba(5,10,20,0) 30%);
}
/* The video fills the banner the same way the old slides did: cover-cropped,
   centre-weighted, so any aspect ratio still reads as a full-bleed backdrop. */
.hero-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  border:0;pointer-events:none;
}
.hero-veil{
  position:absolute;inset:0;z-index:1;
  background-color: rgba(36, 88, 129,.20)
  /* background:linear-gradient(105deg, rgb(182 237 255) 0%, rgba(36, 88, 129, 0.796) 42%, rgba(14, 20, 38, .42) 100%), linear-gradient(0deg, rgb(22 75 116) 0%, rgba(105, 126, 192, 0) 58%); */
  /* background:linear-gradient(105deg,rgba(5,7,13,.94) 0%,rgba(9,13,26,.80) 42%,rgba(14,20,38,.42) 100%),
             linear-gradient(0deg,rgba(5,7,13,.86) 0%,rgba(5,7,13,0) 58%); */
}
.hero-mesh{
  position:absolute;inset:0;z-index:1;opacity:.4;
  background-image:linear-gradient(rgba(47,224,201,.08) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(124,107,251,.08) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(ellipse at 20% 80%,#000,transparent 72%);
  -webkit-mask-image:radial-gradient(ellipse at 20% 80%,#000,transparent 72%);
}
/* 780px: the widest headline line ("Assessment and Monitoring") measures
   754px at the 68px cap, so anything narrower forces a third line. */
.hero-copy{position:relative;z-index:2;max-width:780px;}

/* Headline rotator. Every entry occupies the same grid cell, so the block
   is as tall as its tallest entry and swapping one for the next cannot
   reflow the description or buttons underneath. */
.hero-rotator{display:grid;}
.hero-tx{
  grid-area:1 / 1;
  opacity:0;transform:translateY(8px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events:none;
}
.hero-tx.is-on{opacity:1;transform:none;pointer-events:auto;}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--font-mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--teal-400);margin-bottom:20px;
}
.dot-live{width:8px;height:8px;border-radius:50%;background:var(--teal-400);animation:pulse 2s infinite;}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(47,224,201,.55);}70%{box-shadow:0 0 0 11px rgba(47,224,201,0);}100%{box-shadow:0 0 0 0 rgba(47,224,201,0);}}
.hero h1,.hero .hero-h{
  /* The 28px floor keeps the second line on one line at 390px wide; at 30px
     it overflowed by 13px and wrapped to a third. */
  font-size:clamp(28px,5.6vw,68px);line-height:1.0;letter-spacing:-.038em;
  color:var(--ink);font-weight:800;
  font-family:var(--font-display);margin:0;
}
.grad-text{
  background-image:var(--grad-accent);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero .lede{margin-top:18px;font-size:clamp(17px,1.9vw,22px);color:var(--teal-400);}
.hero .lede em{font-style:italic;}
.hero-desc{margin-top:14px;font-size:11.5px;line-height:1.7;color:var(--ink);max-width:70ch;}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px;}
.hero-actions .btn-ghost{color:var(--ink);}

/* Monitoring feed. Sits over the video: pinned bottom-right on desktop so it
   balances the headline at top-left, and drops into the normal flow under the
   buttons once the banner gets narrow. */
.hero-alerts{
  position:relative;z-index:3;
  margin-top:30px;width:min(360px,100%);
}
.ha-head{
  display:inline-flex;align-items:center;gap:9px;margin:0 0 10px;
  font-family:var(--font-mono);font-size:9px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--teal-400);
}
/* Same grid-stack trick as the headline rotator: the card that swaps in
   cannot change the height of the feed. */
.ha-list{display:grid;margin:0;padding:0;list-style:none;}
.ha-item{
  grid-area:1 / 1;
  padding:14px 16px;border-radius:var(--radius-sm);
  background:rgba(9,13,26,.66);border:1px solid rgba(47,224,201,.22);
  backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
  opacity:0;transform:translateX(16px);
  transition:opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events:none;
}
.ha-item.is-on{opacity:1;transform:none;pointer-events:auto;}
.ha-top{
  display:flex;align-items:center;gap:9px;margin:0 0 6px;
  font-family:var(--font-mono);font-size:9px;letter-spacing:.14em;
  text-transform:uppercase;
}
.ha-id{color:var(--ink);font-weight:600;}
.ha-kind{color:var(--muted);flex:1;min-width:0;}
.ha-state{
  flex:none;padding:3px 8px;border-radius:99px;
  color:var(--teal-400);background:rgba(47,224,201,.12);
  border:1px solid rgba(47,224,201,.3);letter-spacing:.1em;
}
.ha-state.is-watch{
  color:var(--amber);background:rgba(255,180,84,.12);border-color:rgba(255,180,84,.34);
}
.ha-val{
  margin:0;font-family:var(--font-display);font-size:30px;font-weight:700;
  line-height:1;letter-spacing:-.03em;color:var(--ink);
}
.ha-unit{margin-left:6px;font-size:13px;font-weight:500;color:var(--muted);}
.ha-note{margin:7px 0 0;font-size:11.5px;line-height:1.45;color:var(--muted);}


/* =========================================================
   5. Components
   ========================================================= */

/* stats */
.stat-rail{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.stat{padding:clamp(22px,2.6vw,34px) clamp(10px,1.6vw,24px);border-left:1px solid var(--line);}
.stat:first-child{border-left:0;padding-left:0;}
.stat-val{display:flex;align-items:baseline;gap:2px;}
.stat-num,.stat-plus{
  font-family:var(--font-display);font-weight:800;
  font-size:clamp(32px,4.4vw,54px);letter-spacing:-.04em;line-height:1;
  background-image:var(--grad-accent);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.stat p{margin-top:10px;font-size:13px;line-height:1.5;color:var(--muted-dark);}

/* teaser cards (index) */
.teaser{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,26px);}
.teaser-card{
  display:flex;flex-direction:column;gap:10px;
  padding:26px 22px;border-radius:var(--radius);
  background:var(--paper-2);border:1px solid var(--line);
  transition:transform .26s ease,box-shadow .26s ease,border-color .26s ease;
}
.teaser-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:rgba(100,82,232,.34);}
.teaser-card .idx{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--amber);}
.teaser-card h3{font-size:21px;color:var(--navy-900);}
.teaser-card p{font-size:14px;color:#18263c;flex:1;}
.teaser-link{
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--violet-500);transition:color .2s ease;
}
.teaser-link:hover{color:var(--teal-500);}

/* digital suite modules */
.suite{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(14px,1.8vw,22px);}
.suite-card{
  position:relative;overflow:hidden;
  padding:26px 24px;border-radius:var(--radius);
  background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));
  border:1px solid var(--navy-700);color:var(--ink);
  transition:transform .26s ease,box-shadow .26s ease;
}
.suite-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-glow);}
.suite-card::after{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;background-image:var(--grad-accent);
  transform:scaleX(0);transform-origin:left;transition:transform .32s ease;
}
.suite-card:hover::after{transform:scaleX(1);}
.suite-tag{
  display:inline-block;font-family:var(--font-mono);font-size:9px;letter-spacing:.2em;
  color:var(--teal-400);border:1px solid rgba(47,224,201,.35);border-radius:999px;padding:4px 10px;
}
.suite-card h3{margin-top:14px;font-size:21px;color:var(--ink);}
.suite-card p{margin-top:8px;font-size:14px;color:var(--muted);}

/* dashboard frame */
.dash{
  border-radius:var(--radius);overflow:hidden;border:1px solid var(--navy-700);
  background:var(--navy-900);box-shadow:var(--shadow-lg);
}
.dash-head{display:flex;align-items:center;gap:7px;padding:12px 16px;background:var(--navy-800);border-bottom:1px solid var(--navy-700);}
.dash-dot{width:9px;height:9px;border-radius:50%;background:var(--muted-dark);}
.dash-dot:nth-child(1){background:var(--amber);}
.dash-dot:nth-child(2){background:var(--teal-500);}
.dash-dot:nth-child(3){background:var(--violet-400);}
.dash-title{margin-left:10px;font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;color:var(--muted);}
.dash img{width:100%;display:block;}

/* gallery strip */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(12px,1.6vw,20px);}
.gallery-item{position:relative;display:block;overflow:hidden;border-radius:var(--radius-sm);background:var(--navy-900);}
.gallery-item img{width:100%;height:clamp(170px,20vw,250px);object-fit:cover;transition:transform .5s ease,opacity .3s ease;}
.gallery-item:hover img{transform:scale(1.07);opacity:.82;}
.gallery-cap{
  position:absolute;left:12px;bottom:12px;
  font-family:var(--font-mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);background:rgba(5,7,13,.7);padding:6px 11px;border-radius:999px;
}

/* equation steps */
.equation{display:flex;flex-direction:column;}
.eq-step{
  display:grid;grid-template-columns:72px 1fr;gap:18px;align-items:start;
  padding:24px 0;border-top:1px solid var(--line);
}
.eq-step:last-child{border-bottom:1px solid var(--line);}
/* The step icons are navy line art on transparent, so the tile is light -
   on the old dark gradient they were effectively invisible. */
.step-icon{
  width:72px;height:72px;border-radius:18px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;padding:9px;
  background:var(--paper-2);border:1px solid var(--line);
}
.step-icon img{width:100%;height:100%;object-fit:contain;display:block;}
.eq-idx{
  font-family:var(--font-mono);font-size:10px;font-weight:600;
  letter-spacing:.16em;color:var(--violet-500);margin-bottom:6px;
}
.eq-step h4{font-family:var(--font-display);font-size:19px;color:var(--navy-900);letter-spacing:-.02em;}
.eq-step h4 small{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;color:var(--violet-500);font-weight:500;}
.eq-step p{margin-top:7px;font-size:14px;color:#18263c;}

/* Two-column list variant, shared by .stagger and .equation (The Expertise
   and The Equation on the Services page). Items flow left-to-right, so a
   four-item list reads as 2x2. The closing rule goes on the last item of
   each column - :nth-last-child(-n+2) - rather than on the final item, which
   would leave one column open at the bottom. Works for odd counts too: with
   five steps it lands on the last of each column. */
.list-2col{
  display:grid;grid-template-columns:1fr 1fr;
  column-gap:clamp(24px,3.4vw,54px);
}
/* The single-file stagger indents alternate rows; side by side that would
   just misalign the two columns. */
.list-2col > *{padding-left:0;}
.list-2col > :last-child{border-bottom:0;}
.list-2col > :nth-last-child(-n+2){border-bottom:1px solid var(--line);}
/* Half-width columns: smaller type than the single-file stagger. */
.stagger-body{display:flex;align-items:center;gap:20px;margin-top:14px;}
.stagger-body p{margin-top:0;}
.stagger-img{flex:0 0 auto;display:block;width:100px;height:100px;object-fit:cover;border-radius:10px;}
.list-2col .stagger-row h3{font-size:clamp(12px,1.5vw,15px);}
.list-2col .stagger-row p{font-size:14px;}

/* diagnostic node labels */
.nodes{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;}
.node{
  display:flex;align-items:center;gap:12px;
  padding:15px 17px;border-radius:var(--radius-sm);
  background:var(--paper-2);border:1px solid var(--line);
  font-size:14.5px;font-weight:600;color:var(--navy-800);
  transition:border-color .22s ease,transform .22s ease;
}
.node:hover{border-color:rgba(47,224,201,.5);transform:translateY(-2px);}
.node span{
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.06em;
  color:var(--navy-950);background-image:var(--grad-accent);
  border-radius:8px;padding:5px 7px;flex:none;
}
.node-head{
  display:flex;align-items:center;gap:14px;padding:18px 20px;margin-bottom:14px;
  border-radius:var(--radius-sm);color:var(--ink);
  background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));
  border:1px solid var(--navy-700);
}
.node-head strong{font-family:var(--font-display);font-size:17px;letter-spacing:-.01em;}
.node-head em{font-style:normal;font-family:var(--font-mono);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--teal-400);}

/* diagnosis / prognosis */
.dp{display:grid;grid-template-columns:1fr auto 1fr;gap:clamp(14px,2vw,26px);align-items:center;}
.dp-card{padding:26px 24px;border-radius:var(--radius);background:#dde8f0;border:1px solid #c3d2de;}
.dp-card h3{font-size:23px;color:var(--navy-900);}
.dp-card ul{margin-top:16px;display:flex;flex-direction:column;gap:9px;}
.dp-card li{position:relative;padding-left:22px;font-size:14px;color:#18263c;}
.dp-card li::before{content:"";position:absolute;left:0;top:.62em;width:9px;height:2px;border-radius:2px;background:var(--muted-dark);}
.dp-card-accent{
  background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));
  border-color:var(--navy-700);color:var(--ink);
}
.dp-card-accent h3{color:var(--ink);}
.dp-card-accent li{color:var(--muted);}
.dp-card-accent li::before{background-image:var(--grad-accent);}
.dp-arrow{
  font-size:26px;color:var(--violet-500);
  width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  border:1px dashed rgba(100,82,232,.45);
}

/* parameter table */
.param{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper-2);}
.param table{width:100%;border-collapse:collapse;}
.param th{
  text-align:left;padding:15px 22px;
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink);background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));font-weight:500;
}
.param td{padding:15px 22px;border-top:1px solid var(--line);font-size:14px;color:#18263c;vertical-align:top;}
.param tbody tr:nth-child(even){background:var(--paper);}
.param td:first-child{font-weight:700;color:var(--navy-900);width:34%;}
/* The right column carries sentences rather than short tags, so it uses the
   body face - mono at 12px was set for values like "Cracks, Corrosion". */
.param td:last-child{font-size:13.5px;line-height:1.55;color:#18263c;}

/* Monitoring table: numbered rows, accent bar, hover highlight */
#monitoring .param{
  border:1px solid #c3d2de;border-radius:calc(var(--radius) + 2px);
  box-shadow:0 22px 44px -28px rgba(15,20,45,.45);
}
#monitoring .param table{border-collapse:separate;border-spacing:0;counter-reset:prm;}
#monitoring .param th{padding:18px 26px;font-size:10.5px;letter-spacing:.2em;color:var(--teal-400);}
#monitoring .param th:first-child{padding-left:78px;}
#monitoring .param td{padding:18px 26px;border-top:1px solid #e1e8ef;transition:background .2s var(--ease);}
#monitoring .param tbody tr{counter-increment:prm;transition:background .2s var(--ease);}
#monitoring .param tbody tr:nth-child(even){background:#f1f5f9;}
#monitoring .param tbody tr:hover{background:#dde8f0;}
#monitoring .param td:first-child{
  position:relative;padding-left:78px;font-size:15px;
  box-shadow:inset 3px 0 0 transparent;transition:box-shadow .2s var(--ease);
}
#monitoring .param tbody tr:hover td:first-child{box-shadow:inset 3px 0 0 var(--teal-500);}
#monitoring .param td:first-child::before{
  content:counter(prm,decimal-leading-zero);position:absolute;left:26px;top:17px;
  width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.04em;
  color:#fff;background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));
}
#monitoring .param{position:relative;}
#monitoring .param::before{
  content:"";position:absolute;left:0;right:0;top:0;height:4px;z-index:1;
  background-image:var(--grad-accent);
}
#monitoring .param th:last-child{position:relative;}
#monitoring .param th:last-child::after{
  content:"";position:absolute;right:26px;top:50%;width:46px;height:2px;border-radius:2px;
  background-image:var(--grad-accent);opacity:.8;
}
#monitoring .param td:first-child::before{transition:transform .25s var(--ease),background .25s var(--ease),box-shadow .25s var(--ease);}
#monitoring .param tbody tr:hover td:first-child::before{
  transform:scale(1.1) rotate(-4deg);background-image:var(--grad-accent);color:var(--navy-950);
  box-shadow:0 10px 20px -8px rgba(47,224,201,.7);
}
#monitoring .param tbody tr:hover td:first-child{color:var(--navy-950);}
@media (max-width:640px){
  #monitoring .param th:first-child,#monitoring .param td:first-child{padding-left:64px;}
  #monitoring .param td:first-child::before{left:16px;}
  #monitoring .param th,#monitoring .param td{padding-right:16px;}
}

/* sensor architecture */
.sensors{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);}
.sensor{
  display:grid;grid-template-columns:auto 1fr;gap:16px;
  padding:20px 22px 20px 0;border-bottom:1px solid var(--line);
}
.sensors .sensor:nth-child(even){padding-left:22px;border-left:1px solid var(--line);}
.sensor-no{
  font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.06em;
  color:var(--violet-500);padding-top:4px;
}
.sensor h4{font-family:var(--font-display);font-size:17px;color:var(--navy-900);letter-spacing:-.018em;}
.sensor p{margin-top:6px;font-size:13.5px;color:#18263c;}
.sensor-accent{background:linear-gradient(120deg,rgba(47,224,201,.10),rgba(100,82,232,.10));}
.sensor-accent .sensor-no{color:var(--teal-500);}

/* case study */
.case-copy h3{font-size:clamp(22px,2.4vw,30px);color:var(--navy-900);margin-bottom:16px;}
.pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;}
.pill{
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;
  padding:7px 13px;border-radius:999px;border:1px solid var(--line);background:var(--paper-2);color:var(--muted-dark);
}
.pill-accent{background-image:var(--grad-accent);color:var(--navy-950);border-color:transparent;font-weight:600;}
/* Pills used as jump links rather than static tags. */
a.pill{transition:color .2s ease,border-color .2s ease,transform .2s ease;}
a.pill:hover{color:var(--violet-500);border-color:var(--violet-500);transform:translateY(-1px);}
a.pill-accent:hover{color:var(--navy-950);border-color:transparent;filter:brightness(1.07);}

/* Wayfinder card for an opener's second column - turns the empty half of a
   heading row into a contents list with a line of substance per entry. */
.sidecard{
  padding:clamp(24px,2.8vw,34px);border-radius:var(--radius);
  background:var(--paper-2);border:1px solid var(--line);
}
.sidecard-key{
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted-dark);margin-bottom:6px;
}
.sidecard-list{margin:0;padding:0;list-style:none;}
.sidecard-list > li{border-top:1px solid var(--line);}
.sidecard-list a{
  display:grid;grid-template-columns:auto 1fr;gap:16px;
  padding:18px 0;align-items:start;
}
.sc-idx{
  font-family:var(--font-mono);font-size:11px;font-weight:600;
  letter-spacing:.1em;color:var(--violet-500);padding-top:3px;
}
.sc-body{display:flex;flex-direction:column;gap:5px;}
.sc-body strong{
  font-family:var(--font-display);font-size:17px;font-weight:700;
  letter-spacing:-.015em;color:var(--navy-900);
  transition:color .2s ease;
}
.sc-body em{font-style:normal;font-size:13.5px;line-height:1.6;color:#18263c;}
.sidecard-list a:hover .sc-body strong{color:var(--violet-500);}
.sidecard-foot{margin-top:20px;padding-top:20px;border-top:1px solid var(--line);}
.case-media img{width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow-lg);}
.case-chart{
  margin-top:16px;padding:18px;border-radius:var(--radius-sm);
  background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));border:1px solid var(--navy-700);
}
.chart-title{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-400);line-height:1.6;}
.case-svg{width:100%;height:auto;margin-top:10px;}
.chart-caption{margin-top:6px;font-family:var(--font-mono);font-size:9px;letter-spacing:.1em;color:var(--muted-dark);}

/* project cards */
.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.8vw,22px);}
.project-card{
  display:flex;flex-direction:column;overflow:hidden;
  border-radius:var(--radius);background:var(--paper-2);border:1px solid var(--line);
  transition:transform .26s ease,box-shadow .26s ease,background-color .26s ease,border-color .26s ease;
}
.project-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);background:#dde8f0;border-color:var(--teal-400);}
.project-card img{width:100%;height:158px;object-fit:cover;}
.project-card .proj-cat{
  margin:16px 18px 0;font-family:var(--font-mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-dark);
}
.project-card h4{margin:8px 18px 0;font-family:var(--font-display);font-size:18px;color:var(--navy-900);}
.project-card p{margin:8px 18px 20px;font-size:13.5px;color:#18263c;}
/* Thumbnail + title cards that link through to the project page. */
a.project-card{color:inherit;}
a.project-card h4:last-child{margin-bottom:20px;}
a.project-card:hover h4{color:var(--violet-500);}
a.project-card:focus-visible{outline-offset:4px;}

/* On Going placeholder panel - delete with the TODO in projects.html once
   live projects are listed. */
.ongoing-empty{
  padding:clamp(24px,3vw,36px);border-radius:var(--radius);
  background:var(--paper-2);border:1px dashed var(--line);max-width:64ch;
}
.ongoing-empty .oe-key{
  font-family:var(--font-mono);font-size:12px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted-dark);margin-bottom:10px;
}
.ongoing-empty p{font-size:14px;line-height:1.7;color:var(--navy-800);}

/* Project detail banner: full-bleed image with the title laid over it, so a
   project page opens on the asset rather than on a heading. */
.pbanner{
  position:relative;overflow:hidden;
  width:var(--bleed-w);
  margin-left:calc(50% - var(--bleed-w) / 2);
  margin-right:calc(50% - var(--bleed-w) / 2);
  min-height:clamp(320px,44vw,520px);
  display:flex;align-items:flex-end;
  padding:clamp(40px,6vw,80px) var(--gutter) clamp(28px,3.4vw,48px);
  background:var(--navy-950);color:var(--ink);
}
.pbanner-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.pbanner::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(5,10,20,.90) 0%,rgba(5,10,20,.52) 46%,rgba(5,10,20,.24) 100%);
}
.pbanner-copy{position:relative;z-index:2;max-width:760px;}
.pbanner-cat{
  font-family:var(--font-mono);font-size:15px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--amber);margin-bottom:16px;
}
.pbanner h1{
  font-size:clamp(32px,5vw,62px);line-height:1.02;letter-spacing:-.035em;
  color:var(--ink);font-weight:800;
}
.pbanner-lede{
  margin-top:16px;max-width:58ch;font-size:14px;
  line-height:1.55;color:var(--ink);opacity:.86;
}

/* extent */
.extent{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;}
.extent-item{
  display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;
  padding:24px 12px;border-radius:var(--radius-sm);
  background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));
  border:1px solid var(--navy-700);
  transition:transform .24s ease,box-shadow .24s ease;
}
.extent-item:hover{transform:translateY(-4px);box-shadow:var(--shadow-glow);}
.extent-item svg{width:44px;height:44px;}
.extent-item span{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);}

/* contact */

/* Mission / Vision panels on the About page. */
.mvv-card{
  padding:clamp(24px,3vw,36px);border-radius:var(--radius);
  background:var(--paper-2);border:1px solid var(--line);height:100%;
}
.mvv-key{
  font-family:var(--font-mono);font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--violet-500);margin-bottom:14px;
}
.mvv-card p:last-child{font-size:14px;line-height:1.75;color:#18263c;}
.contact-rows{display:flex;flex-direction:column;}
.contact-row{
  display:grid;grid-template-columns:128px 1fr;gap:18px;align-items:baseline;
  padding:18px 0;border-top:1px solid var(--line);
}
.contact-row:last-child{border-bottom:1px solid var(--line);}
.c-label{font-family:var(--font-mono);font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--amber);}
.contact-row span:last-child{font-size:16px;color:#33425d;line-height:1.6;}
.contact-row a{font-size:16px;color:var(--violet-500);font-weight:600;line-height:1.6;}
.contact-row a:hover{color:var(--teal-500);}

.contact-form{display:flex;flex-direction:column;gap:16px;}
.field{display:flex;flex-direction:column;gap:7px;}
.field label{font-family:var(--font-mono);font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-dark);}
.field input,.field textarea{
  font-family:var(--font-body);font-size:14px;color:var(--body-ink);
  padding:13px 15px;border-radius:var(--radius-sm);
  border:1px solid var(--line);background:var(--paper-2);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--violet-400);box-shadow:0 0 0 4px rgba(124,107,251,.14);}
.field textarea{resize:vertical;min-height:120px;}
.form-note{min-height:22px;font-size:14px;color:var(--teal-500);font-weight:600;}

/* Two-column enquiry form. Short fields pair up; the message and the submit
   row span the full width. Collapses to one column on narrow screens. */
.form-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:16px clamp(16px,2vw,24px);
}
.form-grid .field-wide{grid-column:1 / -1;}
.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 22px;}
.form-actions .form-note{min-height:0;}
.field .req{color:var(--amber);}
/* Sits above the fields when the form shares a row with the intro copy. */
.form-req{
  font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted-dark);margin-bottom:4px;
}
.prose .inline-link{color:var(--violet-500);font-weight:600;}
.prose .inline-link:hover{color:var(--teal-500);}
/* The select is styled to match the inputs, with a drawn caret since the
   native one cannot be themed consistently across browsers. */
.field select{
  font-family:var(--font-body);font-size:14px;color:var(--body-ink);
  padding:13px 42px 13px 15px;border-radius:var(--radius-sm);
  border:1px solid var(--line);background-color:var(--paper-2);
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2396a3bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:12px 8px;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.field select:focus{outline:none;border-color:var(--violet-400);box-shadow:0 0 0 4px rgba(124,107,251,.14);}

/* Contact information cards */
.info-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,1.8vw,22px);
}
.info-card{
  padding:clamp(22px,2.6vw,30px);border-radius:var(--radius);
  background:var(--paper-2);border:1px solid var(--line);
}
.info-key{
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted-dark);margin-bottom:9px;
}
.info-val{font-size:14px;line-height:1.65;color:#33425d;}
.info-val a{color:var(--violet-500);font-weight:600;transition:color .2s ease;}
.info-val a:hover{color:var(--teal-500);}

/* Visit us: holds a map iframe once one is embedded; until then it carries
   the address placeholder. */
.map-frame{
  border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);background:var(--paper-2);
}
.map-frame iframe{display:block;width:100%;height:clamp(280px,38vw,420px);border:0;}
.map-placeholder{
  padding:clamp(26px,3.4vw,44px);
  min-height:clamp(220px,26vw,300px);
  display:flex;flex-direction:column;justify-content:center;
  background-image:linear-gradient(135deg,rgba(47,224,201,.05),rgba(124,107,251,.05));
}
.map-placeholder .info-val{max-width:46ch;}

/* =========================================================
   6. Client marquee
   ========================================================= */
.marquee{
  position:relative;overflow:hidden;padding:10px 0;
  width:var(--bleed-w);
  margin-left:calc(50% - var(--bleed-w) / 2);
  margin-right:calc(50% - var(--bleed-w) / 2);
  mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
}
.marquee-track{display:flex;width:max-content;animation:marquee 38s linear infinite;}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track{animation-play-state:paused;}
@keyframes marquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}
.marquee-group{display:flex;align-items:stretch;}

/* Logo chip. A white tile behind every mark, because the supplied logos are
   dark artwork drawn for light grounds and two of them (ECOR, South Western)
   carry a baked-in white background with no alpha - on the chip that white
   blends away instead of showing as a pale square against --paper. */
.client-badge{
  display:flex;align-items:center;justify-content:center;
  flex:none;width:360px;height:140px;
  margin:0 10px;padding:18px 20px;border-radius:var(--radius-sm);
  background:var(--paper-2);border:1px solid var(--line);
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.client-badge:hover{
  border-color:rgba(47,224,201,.45);
  box-shadow:0 14px 30px -20px rgba(15,20,45,.45);
  transform:translateY(-2px);
}
.client-logo{
  height:74px;width:auto;
  max-width:100%;
  object-fit:contain;display:block;
}
/* Every mark renders at the same 50px height. The badge is wide enough
   (220px of inner width) for the widest aspect in the set - MEIL's 300x70
   wordmark, 214px at this height - so max-width never kicks in and shrinks
   one of them below the shared height. */

/* =========================================================
   7. End of page (quiet footer content — now carries phone/email)
   ========================================================= */
/* Vertical padding only: the horizontal gutter comes from .col-inner on the
   same element, and a padding shorthand here would reset it to 0 - which is
   what used to push the footer flush against the screen edge on phones. */
/* The footer carries its own background, so it has to span the viewport
   rather than stop at the 1320px shell .col-inner gives it - otherwise the
   colour would show as a centred strip with --paper either side. Dropping
   max-width lets it run full width, and --gutter (the viewport-edge-to-text
   distance) keeps its content on the same column as the rest of the page. */
.col-end{
  max-width:none;
  padding-top:clamp(40px,5vw,64px);
  padding-bottom:clamp(34px,4vw,54px);
  padding-left:var(--gutter);
  padding-right:var(--gutter);
  background:#e7e9eb;
  border-top:1px solid var(--line);
}

/* Three columns on desktop: brand + socials, the same links as the header,
   then the contact block. Collapses to two, then one. */
.end-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1.3fr);
  gap:clamp(26px,3.5vw,58px);
  padding-bottom:clamp(28px,3.5vw,46px);
  border-bottom:1px solid var(--line);
}

.end-brand{text-decoration:none;}
/* The footer ground is light, so it takes the navy mark rather than the
   white one, and needs no tinting filter. */
.end-brand .brand-mark{height:46px;filter:none;}
.end-brand .brand-name{color:#002d62;}
.end-brand .brand-name strong{font-size:37px;}
.end-brand .brand-name em{font-size:8.4px;color:#002d62;}
.end-blurb{
  margin:18px 0 0;font-size:13px;line-height:1.7;
  color:var(--navy-800);max-width:42ch;
}

.end-social{display:flex;gap:14px;margin:22px 0 0;padding:0;list-style:none;}
.end-soc{
  display:inline-flex;align-items:center;justify-content:center;
  width:52px;height:52px;border-radius:50%;
  background:var(--paper-2);border:1px solid var(--line);color:var(--navy-800);
  transition:color .2s ease,background-color .2s ease,border-color .2s ease,transform .2s ease;
}
.end-soc svg{width:24px;height:24px;fill:currentColor;}
.end-soc:hover,.end-soc:focus-visible{
  color:var(--paper-2);background:var(--navy-800);
  border-color:var(--navy-800);transform:translateY(-2px);
}

.end-h{
  margin:0 0 15px;font-family:var(--font-mono);font-size:12px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--muted-dark);
}
.end-links{margin:0;padding:0;list-style:none;display:grid;gap:10px;}
.end-links a{
  font-size:14.5px;font-weight:600;color:var(--body-ink);
  transition:color .2s ease;
}
.end-links a:hover{color:var(--violet-500);}
/* Marks the page you are already on, the way the header nav does. */
.end-links a[aria-current="page"]{color:var(--violet-500);}

/* Two real columns rather than a per-row flex box: every label lands in
   column one, sized to the widest of them, so the values line up in a
   single column instead of each starting wherever its own label ended.
   The rows are display:contents so the <li> box steps out of the way and
   its label + value become grid items of this same grid. */
.end-contact{
  margin:0;padding:0;list-style:none;
  display:grid;grid-template-columns:max-content minmax(0,1fr);
  align-items:baseline;
  column-gap:14px;row-gap:11px;
}
.end-row{display:contents;font-size:14.5px;}
.end-key{
  font-family:var(--font-mono);font-size:12px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted-dark);
}
.end-row a{color:var(--violet-500);font-weight:600;transition:color .2s ease;}
.end-row a:hover{color:var(--teal-500);}
.end-addr{font-size:13px;line-height:1.6;color:var(--body-ink);}

.end-base{
  display:flex;flex-wrap:wrap;align-items:baseline;
  justify-content:space-between;gap:10px 26px;
  padding-top:clamp(18px,2.4vw,26px);
}
/* --muted-dark is a pale periwinkle that sits at roughly 2:1 on white -
   too low for fine print, so the legal line and the copyright use the
   darker slate instead. */
.end-legal{
  margin:0;font-size:12.5px;line-height:1.7;
  color:var(--navy-800);max-width:74ch;flex:1 1 420px;
}
.col-end .copy{
  margin:0;font-family:var(--font-mono);font-size:10px;
  letter-spacing:.06em;color:var(--navy-800);
}

/* back to top — scrolls the window */
.back-to-top{
  position:fixed;right:22px;bottom:22px;z-index:70;
  width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;
  background-image:var(--grad-accent);color:var(--navy-950);
  font-size:19px;line-height:1;box-shadow:var(--shadow-glow);
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .26s ease,transform .26s ease,visibility .26s ease;
}
.back-to-top.show{opacity:1;visibility:visible;transform:none;}

/* =========================================================
   8. Breakpoints
   ========================================================= */
/* The brand now carries the full legal name, which widens the lockup by
   about 54px. Between 1024 and 1200 the row runs out of space, so tighten
   the nav rather than dropping "Pvt Ltd" from the header. */
@media (min-width:1024px) and (max-width:1200px){
  .brand{gap:10px;}
  .brand-mark{height:38px;}
  .brand-name strong{font-size:20px;}
  .brand-name em{font-size:5.9px;}
  .navbar-inner{gap:16px;}
  .mn-link{padding-left:5px;padding-right:5px;}
  .mn-link::after{left:4px;right:4px;}
  .navbar-inner .nav-cta{padding:10px 14px;font-size:12px;}
}

@media (min-width:1024px){
  .util-strip{display:block;}
  /* Absolute only from here up: the hero is tall enough at this width that
     the feed clears the headline block without overlapping it. */
  .hero-alerts{
    position:absolute;right:var(--gutter);bottom:clamp(24px,3vw,40px);
    margin-top:0;width:min(360px,32vw);
  }
  .mainnav{display:block;}
  .navbar-inner .nav-cta{display:inline-flex;}
  .nav-toggle{display:none;}
  .mobile-nav{display:none;}
  .backdrop{display:none;}
}

@media (max-width:1023px){
  :root{--navbar-h:58px;--subrail-h:44px;}
  /* Below the desktop breakpoint the copy spans the full width, so the
     angled column scrim leaves line-ends on bright video. Darken by
     height instead, a touch heavier where the text actually sits. */
  .hero-media::after{
    background:linear-gradient(180deg,rgba(5,10,20,.80) 0%,rgba(5,10,20,.62) 52%,rgba(5,10,20,.46) 76%,rgba(5,10,20,.62) 100%);
  }
  body.nav-open{overflow:hidden;}
  .brand-mark{height:38px;}
  .brand-name strong{font-size:20px;}
  .brand-name em{font-size:5.9px;}
  .two-up,.two-up.tilt{grid-template-columns:1fr;}
  .teaser,.projects{grid-template-columns:1fr 1fr;}
  .info-grid{grid-template-columns:1fr 1fr;}
  /* Both lists are text-heavy; two columns get cramped below this width. */
  .list-2col{grid-template-columns:1fr;}
  .list-2col > :nth-last-child(-n+2){border-bottom:0;}
  .list-2col > :last-child{border-bottom:1px solid var(--line);}
  .end-grid{grid-template-columns:1fr 1fr;}
  .end-col-brand{grid-column:1 / -1;}
  .extent{grid-template-columns:repeat(3,1fr);}
  /* Five across is unreadable below the desktop breakpoint. The odd count
     leaves the last stat alone on its row, which the border rules handle. */
  .stat-rail{grid-template-columns:1fr 1fr;}
  .stat{border-left:0;padding-left:0;border-top:1px solid var(--line);}
  .stat:first-child,.stat:nth-child(2){border-top:0;}
  .stat:nth-child(even){padding-left:18px;border-left:1px solid var(--line);}
  .dp{grid-template-columns:1fr;}
  .dp-arrow{transform:rotate(90deg);margin:0 auto;}
  /* Side by side gets too narrow for the statement below this width. */
  .hl-strip{grid-template-columns:1fr;}
  .hl-strip p{margin-top:12px;}
}

@media (max-width:720px){
  .mob-name{font-size:23px;}
  .hero-alerts{width:100%;}
  .ha-val{font-size:26px;}
  .teaser,.projects,.suite{grid-template-columns:1fr;}
  .sensors{grid-template-columns:1fr;}
  .sensors .sensor:nth-child(even){padding-left:0;border-left:0;}
  .gallery{grid-template-columns:1fr;}
  .extent{grid-template-columns:repeat(2,1fr);}
  .contact-row{grid-template-columns:1fr;gap:6px;}
  .form-grid{grid-template-columns:1fr;}
  .info-grid{grid-template-columns:1fr;}
  .end-grid{grid-template-columns:1fr;}
  .end-col-brand{grid-column:auto;}
  /* Clear the fixed back-to-top button, which otherwise lands on the
     copyright line once it wraps at this width. */
  .col-end{padding-bottom:88px;}
  .stagger-row{grid-template-columns:1fr;gap:8px;}
  .stagger-row:nth-child(even){padding-left:0;}
  .param td,.param th{padding:13px 15px;}
  .param td:first-child{width:50%;}
  .eq-step{grid-template-columns:1fr;gap:12px;}
  .subrail-key{display:none;}
}

/* =========================================================
   9. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
  .reveal{opacity:1;transform:none;}
  /* Video is paused by script for these users; the poster frame stays. */
  /* Neither rotator runs here, so show the lead headline only and unstack
     the feed - otherwise these users would see one reading and never the rest. */
  .hero-tx.is-on{transform:none;}
  .ha-list{display:flex;flex-direction:column;gap:10px;}
  .ha-item{opacity:1;transform:none;pointer-events:auto;}
  .marquee{mask-image:none;-webkit-mask-image:none;overflow:visible;}
  .marquee-track{animation:none;width:100%;flex-wrap:wrap;}
  .marquee-group{flex-wrap:wrap;}
  .marquee-group[aria-hidden="true"]{display:none;}
  .client-badge{margin:5px;}
}
@media(max-width:560px){.stagger-body{flex-direction:column;align-items:flex-start;}}

/* =========================================================
   Home page - bolder presentation (stat cards, dark service panel)
   ========================================================= */
.col-inner > .sec{border-top:0;padding:17.5px 0;}
.sec-h{font-weight:800;}

/* stats: individual cards instead of a ruled strip */
.sec-first .stat-rail{border:0;gap:clamp(10px,1.4vw,18px);}
.sec-first .stat{
  border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:clamp(18px,2vw,26px);background:var(--paper-2);
  box-shadow:0 14px 30px -22px rgba(15,20,45,.35);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.sec-first .stat:first-child{padding-left:clamp(18px,2vw,26px);}
.sec-first .stat:hover{transform:translateY(-5px);box-shadow:var(--shadow-glow);}

/* What we do: dark rounded panel with glass cards */
#what{
  position:relative;overflow:hidden;color:#fff;
  padding:clamp(30px,4.4vw,64px);margin:17.5px 0;
  border-radius:calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 300px at 90% 0%,rgba(47,224,201,.22),transparent 70%),
    radial-gradient(500px 300px at 0% 100%,rgba(124,107,251,.28),transparent 70%),
    linear-gradient(135deg,#355872 0%,#14202c 100%);
}
#what .sec-meta{color:var(--teal-400);}
#what .sec-h{color:#fff;}
#what .sec-intro{color:rgba(255,255,255,.78);}
#what .list-2col{row-gap:clamp(14px,1.6vw,22px);}
#what .list-2col > .stagger-row{
  padding:clamp(18px,2vw,26px);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-sm);
  background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:transform .25s var(--ease),border-color .25s var(--ease),background .25s var(--ease);
}
#what .list-2col > .stagger-row:hover{transform:translateY(-5px);border-color:var(--teal-400);background:rgba(255,255,255,.1);}
#what .stagger-row h3{color:#fff;}
#what .stagger-row p{color:rgba(255,255,255,.76);max-width:none;}
#what .stagger-img{border-radius:14px;box-shadow:0 10px 24px -10px rgba(0,0,0,.5);}

/* Contact form validation + thank-you page */
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.field-error{display:block;margin-top:6px;font-size:12.5px;font-weight:600;color:#d93c3c;}
.field input.has-error,.field textarea.has-error,.field select.has-error{border-color:#d93c3c;box-shadow:0 0 0 4px rgba(217,60,60,.12);}
.form-note.is-error{color:#d93c3c;}
.form-actions .btn[disabled]{opacity:.6;cursor:wait;}
.thanks{min-height:50vh;display:flex;align-items:center;}
.thanks-card{max-width:640px;}
.thanks-icon{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;margin-bottom:22px;color:#fff;background-image:var(--grad-accent);box-shadow:var(--shadow-glow);}
.thanks-icon svg{width:32px;height:32px;}
.thanks-lead{margin-top:16px;font-size:20px;color:var(--navy-900);}
.thanks-sub{margin-top:12px;font-size:14px;color:#18263c;}

/* Contact page map */
.map-frame{margin-top:clamp(20px,2.4vw,32px);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:0 20px 40px -28px rgba(15,20,45,.4);}
.map-frame iframe{display:block;width:100%;height:clamp(300px,38vw,460px);border:0;}

.extent-item[href]{text-decoration:none;}

.stagger-row p strong{color:var(--navy-900);font-weight:700;}
.stagger-row h3 + p{margin-top:12px;}
.stagger-row p + p{margin-top:6px;}

/* Specialised studies panel (Services page) */
.studies-panel{padding:clamp(22px,3vw,36px);border-radius:var(--radius-sm);background:#dde8f0;border:1px solid #c3d2de;border-left:5px solid var(--teal-500);}
.studies-panel h3{font-size:clamp(20px,2vw,26px);color:var(--navy-900);}
.studies-list{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px clamp(24px,3.4vw,54px);}
.studies-list li{position:relative;padding-left:22px;font-size:14px;color:#33425d;line-height:1.55;}
.studies-list li::before{content:"";position:absolute;left:2px;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--teal-500);}
@media (max-width:760px){.studies-list{grid-template-columns:1fr;}}

.method-anim{margin:clamp(22px,2.6vw,34px) 0 0;}
.method-anim img{display:block;width:100%;height:auto;border-radius:var(--radius-sm);}

/* About page: Story / Purpose / Promise rows */
.story-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,80px);align-items:center;margin-top:clamp(28px,4vw,56px);}
.story-row.is-flip .story-copy{order:2;}
.story-copy h3{font-size:clamp(24px,2.6vw,34px);letter-spacing:-.02em;color:var(--navy-800);text-transform:uppercase;}
.story-copy p{margin-top:14px;font-size:14px;line-height:1.8;color:#18263c;}
.story-img{display:block;width:100%;max-width:520px;height:auto;justify-self:center;}
@media (max-width:760px){.story-row{grid-template-columns:1fr;}.story-row.is-flip .story-copy{order:0;}}

/* Full-width founder pull quote (About) */
.pullquote-band{
  width:var(--bleed-w);margin:clamp(26px,3.4vw,46px) calc(50% - var(--bleed-w) / 2);
  padding:clamp(36px,5.4vw,76px) var(--gutter);
  background:
    radial-gradient(520px 260px at 92% 0%,rgba(47,224,201,.22),transparent 70%),
    linear-gradient(135deg,#355872 0%,#14202c 100%);
  border-left:8px solid var(--teal-400);
}
.pullquote{margin:0;max-width:var(--shell);}
.pullquote blockquote{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(24px,3.4vw,44px);line-height:1.15;letter-spacing:-.025em;color:#fff;max-width:26ch;}
.pullquote figcaption{margin-top:22px;display:flex;flex-direction:column;gap:4px;color:#fff;}
.pullquote figcaption strong{font-size:16px;font-weight:700;}
.pullquote figcaption span{font-family:var(--font-mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--teal-400);}

.case-list{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;}
.case-list li{position:relative;padding-left:22px;font-size:14px;line-height:1.65;color:#18263c;}
.case-list li::before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;border-radius:2px;background:var(--teal-500);}

a.project-card h4:last-child{margin-bottom:20px;}
a.project-card p{margin-top:8px;}

/* Project detail pages: minimal vertical tabs (1/4) with a divider, content (3/4) */
.proj-layout{display:grid;grid-template-columns:1fr 3fr;gap:0;align-items:start;margin-top:clamp(24px,3vw,40px);border-top:1px solid var(--line);}
.proj-tabs{position:sticky;top:calc(var(--head-h) + 18px);padding:28px 20px 28px 12px;margin-top:0;min-height:60vh;border-right:1px solid #c3d2de;background:#dde8f0;}
.proj-tabs-h{display:none;}
.proj-tabs ul{display:flex;flex-direction:column;gap:2px;}
.proj-tab{
  position:relative;display:block;padding:11px 0 11px 14px;
  border-left:3px solid transparent;
  font-size:12.5px;font-weight:600;line-height:1.4;letter-spacing:.03em;text-transform:uppercase;
  color:#55627a;border-radius:0 10px 10px 0;
  transition:color .25s var(--ease),border-color .25s var(--ease),background .25s var(--ease),padding-left .25s var(--ease),box-shadow .25s var(--ease);
}
.proj-tab:hover,.proj-tab:focus-visible{
  color:var(--navy-950);padding-left:22px;border-left-color:var(--teal-500);
  background-image:linear-gradient(90deg,rgba(47,224,201,.2),rgba(124,107,251,.1) 70%,transparent);
  box-shadow:0 10px 22px -16px rgba(15,20,45,.5);
}
.proj-tab.is-active{color:var(--violet-500);border-left-color:var(--violet-500);background-image:linear-gradient(90deg,rgba(124,107,251,.12),transparent);}
.proj-tab.is-active:hover{color:var(--violet-500);border-left-color:var(--violet-500);}
.proj-tabs-all{display:inline-block;margin:20px 0 0 14px;font-size:12.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted-dark);}
.proj-body{min-width:0;padding:clamp(8px,2vw,28px) 0 0 clamp(24px,4vw,64px);}
.proj-body > .sec:first-child{padding-top:clamp(18px,2vw,28px);}
@media (max-width:900px){
  .proj-layout{grid-template-columns:1fr;}
  .proj-tabs{position:static;min-height:0;padding:16px 12px;border-right:0;border-bottom:1px solid #c3d2de;}
  .proj-tabs ul{flex-direction:row;overflow-x:auto;gap:6px;}
  .proj-tab{flex:none;white-space:nowrap;border-left:0;border-bottom:3px solid transparent;padding:8px 10px;}
  .proj-tab,.proj-tab:hover{border-radius:8px 8px 0 0;padding-left:10px;}
  .proj-tab:hover{border-bottom-color:var(--teal-500);}
  .proj-tab.is-active{border-bottom-color:var(--violet-500);}
  .proj-body{padding:16px 0 0;}
}

/* Overview: the table + carousel column starts level with the "Overview" label,
   the text column runs underneath it. */
@media (min-width:901px){
  .proj-body > .sec-first{
    display:grid;grid-template-columns:1.05fr .95fr;column-gap:clamp(24px,3.4vw,54px);
    grid-template-rows:auto 1fr;align-items:start;
  }
  .proj-body > .sec-first > .sec-meta{grid-column:1;grid-row:1;}
  .proj-body > .sec-first > .two-up.tilt{display:contents;}
  .proj-body > .sec-first > .two-up.tilt > :first-child{grid-column:1;grid-row:2;margin-top:14px;}
  .proj-body > .sec-first > .two-up.tilt > :last-child{grid-column:2;grid-row:1 / span 2;}
}
.proj-body .param + .carousel{margin-top:clamp(18px,2vw,28px);}

.proj-body table.param{width:100%;}
.proj-body .param + .carousel{width:100%;margin-left:0;margin-right:0;}

.pbanner-cat a{color:inherit;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease;}
.pbanner-cat a:hover{border-bottom-color:currentColor;}

/* Four core services: same dark glass style as "What we do" */
#expertise{
  position:relative;overflow:hidden;color:#fff;
  padding:clamp(30px,4.4vw,64px);margin:17.5px 0;
  border-radius:calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 300px at 90% 0%,rgba(47,224,201,.22),transparent 70%),
    radial-gradient(500px 300px at 0% 100%,rgba(124,107,251,.28),transparent 70%),
    linear-gradient(135deg,#355872 0%,#14202c 100%);
}
#expertise .sec-meta{color:var(--teal-400);}
#expertise .sec-h{color:#fff;}
#expertise .sec-intro{color:rgba(255,255,255,.78);}
.core-grid{row-gap:clamp(14px,1.6vw,22px);}
.core-grid > .stagger-row{
  padding:clamp(18px,2vw,26px);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-sm);
  background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:transform .25s var(--ease),border-color .25s var(--ease),background .25s var(--ease);
}
.core-grid > .stagger-row:hover{transform:translateY(-5px);border-color:var(--teal-400);background:rgba(255,255,255,.1);}
.core-grid h3{color:#fff;}
.core-grid .stagger-body{align-items:flex-start;}
.core-grid .stagger-img{border-radius:14px;box-shadow:0 10px 24px -10px rgba(0,0,0,.5);}
.core-text{min-width:0;}
.core-grid .core-text p{display:grid;grid-template-columns:64px 1fr;gap:10px;margin:0 0 8px;max-width:none;font-size:14px;line-height:1.6;color:rgba(255,255,255,.8);}
.core-grid .core-text p:last-child{margin-bottom:0;}
.core-grid .core-text p strong{
  font-family:var(--font-mono);font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--teal-400);padding-top:4px;
}
@media (max-width:520px){.core-grid .stagger-body{flex-direction:column;}}

/* Registration & compliance (About) */
.reg-panel{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:clamp(18px,2.4vw,28px) clamp(20px,3vw,34px);border:1px solid var(--line);border-left:5px solid var(--teal-500);border-radius:var(--radius-sm);background:#eef3f6;}
.reg-chip{font-size:clamp(15px,1.5vw,18px);font-weight:700;color:var(--navy-900);}
.reg-dot{font-size:22px;line-height:1;color:var(--teal-500);}

.res-panel{display:block;}
.res-panel h3{font-size:clamp(18px,1.8vw,22px);color:var(--navy-900);}
.res-list{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;}
.res-list li{position:relative;padding-left:22px;font-size:14px;line-height:1.65;color:#33425d;}
.res-list li::before{content:"";position:absolute;left:2px;top:.65em;width:8px;height:8px;border-radius:50%;background:var(--teal-500);}
.res-list strong{color:var(--navy-900);}

/* About: Mission / Vision / Values — larger type, tinted cards, numbered value cards */
#drives .mvv-key{font-size:14px;font-weight:700;letter-spacing:.22em;margin-bottom:16px;}
#drives .mvv-card{
  position:relative;overflow:hidden;background:#dde8f0;border:1px solid #c3d2de;
  box-shadow:0 18px 36px -28px rgba(15,20,45,.4);
}
#drives .mvv-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background-image:var(--grad-accent);}
#drives .mvv-card p:last-child{font-size:clamp(17px,1.5vw,19px);line-height:1.7;color:#0f1a2e;font-weight:500;}
#drives > .mvv-key{margin-top:clamp(32px,4vw,52px);}

#drives .list-2col{counter-reset:val;row-gap:clamp(14px,1.6vw,22px);}
#drives .list-2col > .stagger-row{
  counter-increment:val;position:relative;overflow:hidden;
  padding:clamp(22px,2.4vw,30px) clamp(22px,2.4vw,30px) clamp(22px,2.4vw,30px) clamp(84px,7vw,100px);
  border:1px solid #c3d2de;border-radius:var(--radius);background:#eaf1f6;
  box-shadow:0 16px 32px -26px rgba(15,20,45,.45);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease),background .25s var(--ease);
}
#drives .list-2col > .stagger-row::before{
  content:counter(val,decimal-leading-zero);position:absolute;left:clamp(20px,2vw,28px);top:clamp(22px,2.4vw,30px);
  width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:14px;font-weight:600;color:#fff;
  background-image:linear-gradient(150deg,var(--navy-850),var(--navy-950));
  box-shadow:0 10px 20px -10px rgba(15,20,45,.6);transition:background .25s var(--ease),color .25s var(--ease);
}
#drives .list-2col > .stagger-row::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background-image:var(--grad-accent);
  transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease);
}
#drives .list-2col > .stagger-row:hover{transform:translateY(-5px);background:#fff;border-color:var(--teal-400);box-shadow:var(--shadow-glow);}
#drives .list-2col > .stagger-row:hover::before{background-image:var(--grad-accent);color:var(--navy-950);}
#drives .list-2col > .stagger-row:hover::after{transform:scaleX(1);}
#drives .stagger-row h3{font-size:clamp(18px,1.7vw,21px);}
#drives .stagger-row p{font-size:15.5px;line-height:1.7;max-width:none;color:#18263c;}
@media (max-width:520px){
  #drives .list-2col > .stagger-row{padding-left:22px;padding-top:84px;}
}

/* About: research / registration panels sit beside an illustration */
#research .story-row,#registration .story-row{margin-top:0;}
#research .story-img,#registration .story-img{max-width:440px;}
#research .story-img{max-width:305px;}
#research .reg-panel,#registration .reg-panel{background:#dde8f0;border-color:#c3d2de;border-left-color:var(--teal-500);}
#registration .reg-panel{flex-direction:column;align-items:flex-start;}
#registration .reg-dot{display:none;}
#research .res-list li,#registration .reg-chip{font-size:16px;}
#registration .reg-chip{padding:10px 18px;border-radius:999px;background:#fff;border:1px solid #c3d2de;font-size:15px;}

/* Contact: callout panels */
#send .reg-panel{background:#dde8f0;border-color:#c3d2de;border-left-color:var(--teal-500);}
#who .reg-panel{background:transparent;border:0;border-radius:0;padding-left:0;}
#who .res-panel h3,#send .res-panel h3{font-size:clamp(20px,2.2vw,26px);}
#who .panel-lede{margin-top:0;font-size:clamp(16px,1.5vw,18px);line-height:1.7;color:#18263c;max-width:none;}
#who .panel-lede strong{color:var(--navy-900);}
#send .res-list li{font-size:16px;}

/* Founder quote: quote on the left, portrait + name underneath on the right */
.pullquote{
  display:grid;grid-template-columns:1fr auto;column-gap:clamp(28px,5vw,80px);align-items:center;
}
.pullquote blockquote{grid-column:1;grid-row:1 / span 2;}
.pq-photo{
  grid-column:2;grid-row:1;justify-self:center;display:block;
  width:clamp(150px,16vw,220px);height:clamp(150px,16vw,220px);object-fit:cover;border-radius:50%;
  border:4px solid rgba(255,255,255,.85);box-shadow:0 18px 40px -16px rgba(0,0,0,.6),0 0 0 8px rgba(47,224,201,.25);
}
.pullquote figcaption{grid-column:2;grid-row:2;margin-top:20px;align-items:center;text-align:center;}
.pullquote figcaption strong{font-size:clamp(17px,1.6vw,20px);}
@media (max-width:760px){
  .pullquote{grid-template-columns:1fr;row-gap:22px;}
  .pullquote blockquote,.pq-photo,.pullquote figcaption{grid-column:1;grid-row:auto;}
  .pq-photo{justify-self:start;}
  .pullquote figcaption{align-items:flex-start;text-align:left;margin-top:0;}
}

/* Founder quote: fill the band — wider, larger quote and portrait, tighter padding */
.pullquote-band{padding:clamp(30px,4vw,56px) var(--gutter);}
.pullquote{margin-inline:auto;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(32px,6vw,96px);}
.pullquote blockquote{
  position:relative;max-width:none;padding-top:0;
  font-size:clamp(28px,4.2vw,58px);line-height:1.18;
}
.pullquote blockquote::after{
  content:"";display:block;width:84px;height:4px;margin-top:clamp(18px,2vw,28px);border-radius:4px;
  background-image:var(--grad-accent);
}
.pq-photo{width:clamp(180px,20vw,280px);height:clamp(180px,20vw,280px);}

/* Founder quote: portrait and caption flush with the right edge of the page content */
.pq-photo{justify-self:end;}
.pullquote figcaption{justify-self:end;align-items:flex-end;text-align:right;}
@media (max-width:760px){
  .pq-photo,.pullquote figcaption{justify-self:start;}
  .pullquote figcaption{align-items:flex-start;text-align:left;}
}

/* Founder quote: portrait + name on the left, quote on the right */
.pullquote{grid-template-columns:auto minmax(0,1fr);}
.pq-photo{grid-column:1;grid-row:1;justify-self:center;}
.pullquote figcaption{grid-column:1;grid-row:2;justify-self:center;align-items:center;text-align:center;}
.pullquote blockquote{grid-column:2;grid-row:1 / span 2;}
@media (max-width:760px){
  .pullquote{grid-template-columns:1fr;}
  .pq-photo,.pullquote figcaption,.pullquote blockquote{grid-column:1;grid-row:auto;}
  .pq-photo,.pullquote figcaption{justify-self:start;}
  .pullquote figcaption{align-items:flex-start;text-align:left;}
}

/* Contact: "Prefer a direct conversation?" block — larger text */
#who .prose p{font-size:clamp(17px,1.6vw,20px);line-height:1.7;}
#who .prose p strong{font-size:clamp(19px,1.8vw,22px);color:var(--navy-900);}
#who .prose .inline-link{font-weight:700;}
#who .prose .c-key{font-size:15px;}

/* Contact: "Helpful to include" points in a single row */
#send .res-list{flex-direction:row;flex-wrap:wrap;gap:12px clamp(20px,3vw,40px);}
#send .res-list li{white-space:nowrap;}
@media (max-width:900px){
  #send .res-list{flex-direction:column;}
  #send .res-list li{white-space:normal;}
}

/* Contact form: file upload + right-aligned submit */
.field-file input[type=file]{
  padding:12px 14px;border:1.5px dashed #9fb4c6;border-radius:var(--radius-sm);background:#f1f5f9;
  font-size:14px;color:#33425d;cursor:pointer;
}
.field-file input[type=file]::file-selector-button{
  margin-right:14px;padding:9px 16px;border:0;border-radius:999px;cursor:pointer;
  font-weight:700;font-size:13px;color:#fff;background-image:var(--grad-accent);
}
.field-file .opt{text-transform:none;letter-spacing:0;font-weight:400;opacity:.7;}
.file-hint{font-size:13px;color:var(--muted-dark);margin:0;}
.file-list{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px;}
.file-list li{font-size:13px;padding:5px 12px;border-radius:999px;background:#dde8f0;color:var(--navy-900);}
.form-actions{justify-content:flex-end;}
.form-actions .form-note{order:-1;margin-right:auto;}

/* Project detail: single photo in the right column (pages without a gallery) */
.proj-photo{margin:0;border-radius:var(--radius);overflow:hidden;border:1px solid #c3d2de;box-shadow:0 22px 44px -28px rgba(15,20,45,.45);background:#fff;}
.proj-photo img{display:block;width:100%;height:auto;}

/* Director's message section */
.msg-prose{max-width:none;margin-top:clamp(16px,2vw,26px);padding-left:clamp(18px,2vw,28px);border-left:4px solid var(--teal-500);}
.msg-prose p{font-size:clamp(16px,1.4vw,19px);line-height:1.8;color:#18263c;max-width:none;}

/* About Us intro section */
.about-prose{max-width:none;margin-top:clamp(16px,2vw,26px);}
.about-prose p{font-size:clamp(17px,1.5vw,20px);line-height:1.8;color:#18263c;max-width:none;}
.about-prose .about-strong{font-weight:700;color:var(--navy-900);margin-top:14px;}

/* Services: From Diagnosis to Prognosis — dark panel, two cards joined by an arrow */
#diagnosis{
  position:relative;overflow:hidden;color:#fff;text-align:center;
  padding:clamp(30px,4.4vw,60px);margin:17.5px 0;
  border-radius:calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 300px at 90% 0%,rgba(47,224,201,.2),transparent 70%),
    radial-gradient(500px 300px at 0% 100%,rgba(124,107,251,.24),transparent 70%),
    linear-gradient(135deg,#2f4a5f 0%,#141f2b 100%);
}
#diagnosis .sec-meta{justify-content:center;color:var(--teal-400);}
#diagnosis .sec-h{color:#fff;}
#diagnosis .sec-intro{color:rgba(255,255,255,.72);max-width:none;margin-inline:auto;}
#diagnosis .dp{text-align:left;}
#diagnosis .dp-card,#diagnosis .dp-card-accent{
  padding:clamp(22px,2.4vw,32px);border-radius:var(--radius);
  background:rgba(10,18,28,.5);border:1.5px solid rgba(255,255,255,.2);color:#fff;
}
#diagnosis .dp-card-accent{border-color:var(--teal-400);box-shadow:0 0 0 1px rgba(47,224,201,.15),0 18px 40px -22px rgba(47,224,201,.45);}
#diagnosis .dp-card h3{color:#fff;font-size:clamp(22px,2vw,26px);}
#diagnosis .dp-sub{margin:6px 0 0;font-size:14px;color:rgba(255,255,255,.62);}
#diagnosis .dp-card ul{margin-top:18px;gap:0;}
#diagnosis .dp-card li{padding:12px 0 12px 22px;font-size:16px;color:#fff;border-top:1px solid rgba(255,255,255,.14);}
#diagnosis .dp-card li::before{left:0;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:50%;background:var(--teal-400);background-image:none;}
#diagnosis .dp-arrow{color:var(--teal-400);border:0;font-size:34px;width:auto;height:auto;}

/* Core services: short entries; keep the label on one line */
.core-grid .core-text p{grid-template-columns:84px 1fr;}
.core-grid .core-text p strong{white-space:nowrap;}
.core-grid .stagger-img{width:80px;height:80px;}
.core-grid .stagger-body{gap:16px;}

/* Services: eight-step method board (replaces the approach image) */
.flow-board{
  margin-top:clamp(20px,2.4vw,32px);padding:clamp(24px,3vw,44px) clamp(16px,2.4vw,36px) clamp(20px,2.4vw,30px);
  border-radius:calc(var(--radius) + 6px);color:#fff;text-align:center;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px) 0 0/32px 32px,
    linear-gradient(135deg,#2f4a5f 0%,#141f2b 100%);
}
.fb-title{font-size:clamp(22px,2.4vw,32px);color:#fff;letter-spacing:-.02em;}
.fb-sub{margin:8px auto 0;font-size:clamp(13px,1.1vw,15px);color:rgba(255,255,255,.62);max-width:none;}
.fb-steps{list-style:none;margin:clamp(26px,3vw,40px) 0 0;padding:0;display:grid;grid-template-columns:repeat(8,1fr);gap:clamp(6px,.8vw,12px);position:relative;}
.fb-steps::before{content:"";position:absolute;left:6%;right:6%;top:34px;height:2px;background:rgba(255,255,255,.14);}
.fb-step{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;}
.fb-node{
  position:relative;z-index:1;width:68px;height:68px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#141f2b;border:3px solid var(--teal-400);color:#fff;
}
.fb-node svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.fb-no{
  position:absolute;right:-8px;top:-6px;width:24px;height:24px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;color:#0d1a24;background:var(--teal-400);
}
.fb-step h3{margin-top:16px;font-size:clamp(13px,1.15vw,16px);line-height:1.25;color:#fff;font-weight:700;}
.fb-step p{margin:8px 0 0;font-size:clamp(11px,.9vw,12.5px);line-height:1.45;color:rgba(255,255,255,.62);max-width:none;}
.fb-loop{margin:clamp(22px,2.6vw,34px) 0 0;font-size:clamp(12px,1vw,14px);color:var(--teal-400);max-width:none;}
@media (max-width:1100px){
  .fb-steps{grid-template-columns:repeat(4,1fr);row-gap:28px;}
  .fb-steps::before{display:none;}
}
@media (max-width:560px){.fb-steps{grid-template-columns:repeat(2,1fr);}}

/* Structures We Serve: six items, no step numbers, each links through */
.fb-steps.fb-six{grid-template-columns:repeat(6,1fr);}
.fb-steps.fb-six::before{left:8.3%;right:8.3%;}
.fb-link{display:flex;flex-direction:column;align-items:center;color:inherit;text-decoration:none;min-width:0;}
.fb-link .fb-node{transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s var(--ease);}
.fb-link:hover .fb-node,.fb-link:focus-visible .fb-node{transform:translateY(-4px);background:#1d3040;box-shadow:0 0 0 6px rgba(47,224,201,.16),0 16px 28px -14px rgba(47,224,201,.6);}
@media (max-width:1100px){.fb-steps.fb-six{grid-template-columns:repeat(3,1fr);}}
@media (max-width:560px){.fb-steps.fb-six{grid-template-columns:repeat(2,1fr);}}

/* Home: closing call to action */
.cta-band{
  display:flex;align-items:center;justify-content:space-between;gap:clamp(20px,4vw,56px);flex-wrap:wrap;
  padding:clamp(26px,3.6vw,48px) clamp(24px,4vw,56px);color:#fff;
  border-radius:calc(var(--radius) + 6px);
  background:
    radial-gradient(520px 260px at 92% 0%,rgba(47,224,201,.24),transparent 70%),
    radial-gradient(420px 240px at 0% 100%,rgba(124,107,251,.26),transparent 70%),
    linear-gradient(135deg,#355872 0%,#14202c 100%);
}
.cta-copy{flex:1 1 420px;min-width:0;}
.cta-title{font-size:clamp(24px,2.8vw,36px);line-height:1.15;letter-spacing:-.02em;color:#fff;}
.cta-copy p{margin:12px 0 0;font-size:clamp(15px,1.3vw,18px);line-height:1.65;color:rgba(255,255,255,.8);max-width:62ch;}
.cta-btn{flex:0 0 auto;}

/* Director band: eyebrow, headline quote, then the three-paragraph message */
.pullquote-band{position:relative;overflow:hidden;}
.pullquote-band::after{
  content:"\201C";position:absolute;right:clamp(16px,4vw,64px);top:-.18em;
  font-family:var(--font-display);font-weight:800;font-size:clamp(180px,22vw,340px);line-height:1;
  color:var(--teal-400);opacity:.08;pointer-events:none;
}
.pullquote{position:relative;z-index:1;align-items:start;}
.pullquote blockquote{font-family:var(--font-body,inherit);font-weight:500;font-size:clamp(16px,1.3vw,18.5px);line-height:1.8;letter-spacing:0;max-width:none;padding-top:0;}
.pullquote blockquote::after{display:none;}
.pq-eyebrow{
  display:flex;align-items:center;gap:14px;margin:0 0 14px;
  font-family:var(--font-mono);font-size:12px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--teal-400);
}
.pq-eyebrow::before{content:"";width:34px;height:2px;border-radius:2px;background-image:var(--grad-accent);}
.pullquote blockquote .pq-lead{
  margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(24px,2.7vw,38px);
  line-height:1.2;letter-spacing:-.025em;color:#fff;
}
.pq-body{margin-top:clamp(18px,2vw,26px);padding-top:clamp(18px,2vw,26px);border-top:1px solid rgba(255,255,255,.16);}
.pq-body p{margin:0 0 14px;color:rgba(255,255,255,.86);max-width:none;}
.pq-body p:last-child{margin-bottom:0;}

/* Director band: lighter weights and smaller type */
.pullquote blockquote{font-weight:400;font-size:clamp(15px,1.1vw,16.5px);line-height:1.85;}
.pq-eyebrow{font-size:11px;font-weight:500;letter-spacing:.2em;}
.pullquote blockquote .pq-lead{font-weight:600;font-size:clamp(20px,2vw,28px);line-height:1.3;letter-spacing:-.015em;}
.pq-body p{font-weight:400;color:rgba(255,255,255,.8);}
.pullquote figcaption strong{font-weight:600;font-size:clamp(16px,1.4vw,18px);}
.pullquote figcaption span{font-size:10.5px;}
.pullquote-band::after{opacity:.05;}
.pq-photo{width:clamp(160px,17vw,230px);height:clamp(160px,17vw,230px);}

/* About Mantis: text beside a team-discussion illustration */
.about-row{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(24px,5vw,72px);align-items:center;margin-top:clamp(16px,2vw,26px);}
.about-row .about-prose{margin-top:0;}
.about-img{display:block;width:100%;max-width:520px;height:auto;justify-self:center;}
@media (max-width:760px){.about-row{grid-template-columns:1fr;}}

/* About Mantis: tighter spacing */
#about-mantis.sec{padding:10px 0;}
#about-mantis .sec-meta{margin-bottom:8px;}
#about-mantis .about-row{align-items:start;margin-top:0;gap:clamp(16px,3vw,36px);}
#about-mantis .about-prose{padding-top:0;}
#about-mantis .about-prose p{font-size:clamp(15px,1.25vw,17px);line-height:1.6;}
#about-mantis .about-prose p+p,#about-mantis .about-prose .about-strong{margin-top:8px;}
#about-mantis .about-img{max-width:320px;margin-top:-4px;}

/* Contact: Phone / Email / Office as three cards side by side */
.direct-h{margin:clamp(20px,2.4vw,32px) 0 0;font-size:clamp(19px,1.8vw,22px);font-weight:700;color:var(--navy-900);}
.contact-cards{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:clamp(14px,1.8vw,22px);margin-top:clamp(14px,1.6vw,20px);}
.contact-card{
  display:flex;flex-direction:column;gap:8px;min-width:0;
  padding:clamp(18px,2vw,26px);border:1px solid #c3d2de;border-radius:var(--radius);background:#dde8f0;
  box-shadow:0 14px 30px -24px rgba(15,20,45,.4);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease);
}
.contact-card:hover{transform:translateY(-4px);border-color:var(--teal-400);box-shadow:var(--shadow-glow);}
.contact-card .c-key{margin:0;font-size:13px;font-weight:700;color:var(--amber);}
.contact-card a{font-size:clamp(16px,1.4vw,19px);font-weight:700;color:var(--navy-900);overflow-wrap:anywhere;}
.contact-card a:hover{color:var(--violet-500);}
.contact-card p{margin:0;font-size:clamp(14.5px,1.2vw,16.5px);line-height:1.65;color:#18263c;max-width:none;}
@media (max-width:900px){.contact-cards{grid-template-columns:1fr;}}

/* Contact cards: readable labels (amber was too faint on the light card) */
.contact-card .c-key{font-size:14px;font-weight:700;letter-spacing:.16em;color:#0b7f72;}


/* What drives us: card text matches the Values descriptions (15.5px, regular) */
#drives .mvv-card p:last-child{font-size:15.5px;line-height:1.7;font-weight:400;color:#18263c;}

/* Blogs: PDF field-note cards */
.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(18px,2.4vw,32px);margin-top:clamp(18px,2.2vw,28px);}
.blog-card{display:flex;flex-direction:column;border:1px solid #c3d2de;border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:0 18px 36px -28px rgba(15,20,45,.45);transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease);}
.blog-card:hover{transform:translateY(-5px);border-color:var(--teal-400);box-shadow:var(--shadow-glow);}
.blog-thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:#141f2b;}
.blog-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .5s var(--ease);}
.blog-card:hover .blog-thumb img{transform:scale(1.04);}
.blog-body{display:flex;flex-direction:column;gap:10px;padding:clamp(18px,2vw,26px);flex:1;}
.blog-tag{margin:0;font-family:var(--font-mono);font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#0b7f72;}
.blog-body h3{margin:0;font-size:clamp(20px,1.9vw,25px);line-height:1.25;color:var(--navy-900);}
.blog-ex{margin:0;font-size:15px;line-height:1.7;color:#18263c;max-width:none;}
.blog-meta{margin:0;font-size:13px;color:var(--muted-dark);}
.blog-actions{margin:auto 0 0;padding-top:8px;display:flex;flex-wrap:wrap;gap:10px;}
@media (max-width:760px){.blog-grid{grid-template-columns:1fr;}}

/* Blogs: horizontal cards so the whole PDF cover shows */
.blog-card{flex-direction:row;}
.blog-thumb{flex:0 0 38%;aspect-ratio:auto;background:#eef3f6;}
.blog-thumb img{object-position:center top;}
.blog-body{min-width:0;}
@media (max-width:1100px){
  .blog-grid{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .blog-card{flex-direction:column;}
  .blog-thumb{flex:none;aspect-ratio:4/3;}
}
.blog-thumb{display:flex;align-items:center;justify-content:center;padding:10px;background:#eef3f6;}
.blog-thumb img{width:100%;height:auto;max-height:100%;object-fit:contain;border-radius:6px;box-shadow:0 8px 20px -12px rgba(15,20,45,.5);}

/* Blog card without a photo (PDF-only posts) */
.blog-thumb-ph{flex-direction:column;gap:8px;text-align:center;color:#0b7f72;font-family:var(--font-mono);font-weight:600;letter-spacing:.14em;}
.blog-thumb-ph svg{width:44px;height:44px;}

/* Blog notes (admin "Blog notes" field) */
.blog-notes{margin:0;padding:10px 14px;border-left:3px solid var(--teal-400);background:#eef6f5;border-radius:0 8px 8px 0;font-size:14px;line-height:1.6;color:#18263c;}
.blog-notes strong{color:#0b7f72;}

/* Blog article bodies imported with images, tables and figures */
.prose img{max-width:100%;height:auto;border-radius:6px;}
.prose figure{margin:24px 0;}
.prose table{max-width:100%;}

/* Blog cards: compact thumbnail (cover images are 16:9, so cap their height instead of letting them stretch the card) */
.blog-thumb{align-self:stretch;align-items:stretch;padding:0;background:#eef3f6;}
.blog-thumb img,.blog-thumb canvas{width:100%!important;height:auto!important;min-height:190px;max-height:240px;object-fit:cover;object-position:center top;border-radius:0;box-shadow:none;}
.blog-thumb-ph{min-height:190px;}
@media (max-width:560px){
  .blog-thumb img,.blog-thumb canvas{height:180px!important;min-height:0;max-height:none;}
}

/* Blog article page: comfortable reading width */
.blog-article{max-width:820px;margin-left:auto;margin-right:auto;}
.blog-article .sec-h,.blog-article .sec-intro{max-width:none;}
.blog-article .prose{font-size:17px;line-height:1.75;}
