/* ============================================================
   The FPS Group(R) - global stylesheet
   Parent-brand, one-page site. Design language shared with the
   wider brand family: confident typography, generous whitespace,
   restrained motion, editorial spacing.

   Writing and design rules kept here as a reminder:
   1. No em dashes anywhere in shipped copy or comments.
   2. Use "The FPS Group(R)" only in prominent placements.
   3. Orange (--signal) is reserved for primary CTA moments.
   ============================================================ */

/* Mulish, self-hosted (SIL Open Font License). One variable file covers every
   weight used (400 to 800). No third-party font connection. */
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Canonical FPS palette only. Nothing outside this list, except the single
     --signal CTA accent kept from the original brief. */
  /* Backgrounds and neutrals */
  --cream: #FBF9F3;    /* primary light background */
  --bone: #F0EDE5;     /* card / panel backgrounds */
  --pebble: #E5DED8;   /* warm neutral, used sparingly */
  /* Brand blues */
  --royal: #283583;    /* primary deep brand blue (dark sections) */
  --ocean: #34669A;    /* secondary blue */
  --sky: #7CCBE1;      /* light accent */
  /* Text */
  --ink: #000000;      /* black, primary text and headings */
  --charcoal: #3E3D47; /* secondary text, brand-coherent moments */
  /* Single primary-CTA accent. */
  --signal: #E8542B;
  --signal-deep: #C8431D;

  /* Type. Mulish primary, Arial fallback. */
  --font: "Mulish", Arial, sans-serif;

  /* Rhythm */
  --maxw: 1220px;
  --gutter: 40px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr: 70px;

  /* Derived hairlines */
  --line-dark: rgba(0, 0, 0, .12);
  --line-light: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.028em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

p { font-size: 17.5px; color: var(--charcoal); }

/* Shared bits ------------------------------------------------ */
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ocean);
  display: inline-block;
}
.on-dark .eyebrow, .is-dark .eyebrow, .final-cta .eyebrow { color: var(--sky); }

.rule {
  width: 44px; height: 2px; background: var(--ocean);
  margin: 22px 0; border: 0;
}
.is-dark .rule { background: var(--sky); }

/* Hairline draws in when its block reveals (JS only). */
.js .reveal .rule { width: 0; transition: width .8s var(--ease) .15s; }
.reveal.in .rule { width: 44px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -52px; z-index: 400;
  background: var(--cream); color: var(--royal); padding: 11px 18px;
  border-radius: 2px; font-size: 14px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 1px;
}
.is-dark a:focus-visible, .is-dark button:focus-visible {
  outline-color: var(--sky);
}

/* Scroll progress: a single hairline at the very top. */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--ocean); z-index: 300; transition: width .1s linear;
}

/* ---------------- buttons ---------------- */
/* Outline button with a left-to-right fill sweep on hover. */
.btn {
  --fill: var(--ink); --fill-text: var(--cream);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  letter-spacing: .01em; padding: 13px 26px;
  border: 1px solid var(--ink); color: var(--ink); border-radius: 2px;
  cursor: pointer; position: relative; overflow: hidden;
  -webkit-appearance: none; appearance: none;
  background-color: transparent;
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  transition: background-size .42s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background-size: 100% 100%; color: var(--fill-text); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Light button for dark backgrounds. */
.btn-light {
  border-color: rgba(251, 249, 243, .55); color: var(--cream);
  --fill: var(--cream); --fill-text: var(--ink);
}
.btn-light:hover { border-color: var(--cream); }

/* The single primary action: signal orange. Solid, always legible. */
/* Uses --signal-deep so white text clears WCAG AA (cream/white on the lighter
   --signal would fail). Currently unused, hardened in case it is reintroduced. */
.btn-signal {
  border-color: var(--signal-deep); color: #fff;
  background-color: var(--signal-deep); background-image: none;
}
.btn-signal:hover { background-color: #A83718; border-color: #A83718; color: #fff; }

/* Quiet text link with a sliding underline. */
.tlink {
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--royal); position: relative; display: inline-flex;
  align-items: center; gap: 8px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arr { transition: transform .3s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }
.is-dark .tlink { color: var(--sky); }

/* ---------------- header ---------------- */
header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hdr); z-index: 200;
  transition: transform .5s var(--ease), background .4s var(--ease),
              box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  will-change: transform;
}
/* Over the dark hero: transparent with light text. */
header .nav, header .brand, header .navlinks a, header .menu-toggle { color: var(--cream); }
/* The colour logo is rendered white while the header floats over the hero. */
header .brand-logo { filter: brightness(0) invert(1); }

/* Once scrolled past the hero: solid cream, dark text, hairline border. */
header.solid {
  background: var(--cream);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px -26px rgba(0, 0, 0, .5);
}
header.solid .nav, header.solid .brand, header.solid .navlinks a, header.solid .menu-toggle { color: var(--ink); }
/* Full colour logo once the header sits on the cream background. */
header.solid .brand-logo { filter: none; }
header.solid .navlinks a:hover { color: var(--royal); }

header.hide { transform: translateY(-100%); }

.nav { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 58px; width: auto; display: block; transition: filter .4s var(--ease); }

.navlinks { display: flex; gap: 30px; align-items: center; }
.navlinks .primary-links { display: flex; gap: 30px; align-items: center; }
.navlinks a {
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  position: relative; transition: color .25s var(--ease); opacity: .92;
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px;
  background: currentColor; transition: width .3s var(--ease);
}
.navlinks a:hover { opacity: 1; }
.navlinks a:hover::after { width: 100%; }

/* Discreet operating-business links, set apart by a thin divider. */
.nav-sites {
  display: flex; gap: 18px; align-items: center; padding-left: 22px;
  margin-left: 4px; border-left: 1px solid currentColor;
}
.nav-sites a {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; opacity: .72;
}
.nav-sites a:hover { opacity: 1; }
.nav-sites a::after { bottom: -5px; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 210; padding: 0;
}
.menu-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------------- hero (scroll-scrubbed) ---------------- */
/* The .hero is the scroll track. By default it is one viewport tall and reads
   as a still-image hero. When JS enables scrubbing it adds .scrub-on, which
   makes the track tall and pins the inner panel. */
/* No section padding on the hero: the panel must fill from the very top so the
   header floats over the image (no bar). */
.hero { position: relative; background: var(--royal); padding: 0; }
.js .hero.scrub-on { height: 300vh; }

.hero-sticky {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; color: var(--cream);
  padding: calc(var(--hdr) + 40px) 0 8vh;
}
.hero.scrub-on .hero-sticky { position: sticky; top: 0; }

/* Frame canvas. Hidden until the first frames load, then fades in over the
   poster image. */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero-canvas.ready { opacity: 1; }

/* Poster / still image. The hero on its own (mobile, reduced motion, no JS) and
   the base shown while frames load. Replace assets/images/hero.jpg + hero.webp
   to change it. The deep brand blue shows only during load, never black. */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--royal);
  background-image: url("../images/hero.jpg");
  background-image: -webkit-image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
  background-image: image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center 42%; background-repeat: no-repeat;
}
/* Lighter hero still for phones (this is the LCP on mobile, where scrubbing is off). */
@media (max-width: 760px) {
  .hero-media {
    background-image: url("../images/hero-1200.jpg");
    background-image: -webkit-image-set(url("../images/hero-1200.webp") type("image/webp"), url("../images/hero-1200.jpg") type("image/jpeg"));
    background-image: image-set(url("../images/hero-1200.webp") type("image/webp"), url("../images/hero-1200.jpg") type("image/jpeg"));
  }
}
/* Light, brand-tinted legibility wash. Soft darkening confined to the lower
   third for the copy, with a faint ocean glow. Kept light so the footage reads
   naturally and there is no flat blue band. */
.hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    /* Left scrim: darkens the text column, fades to clear over the image. */
    linear-gradient(100deg, rgba(40, 53, 131, .88) 0%, rgba(40, 53, 131, .62) 28%, rgba(40, 53, 131, .22) 52%, transparent 70%),
    /* Top band for the header / eyebrow. */
    linear-gradient(to bottom, rgba(40, 53, 131, .5) 0%, transparent 16%),
    /* Bottom grounding for the buttons and scroll cue. */
    linear-gradient(to top, rgba(40, 53, 131, .42) 0%, transparent 28%);
}
.hero .wrap { position: relative; z-index: 3; width: 100%; }
/* Soft shadow as a safety net so copy stays legible over any bright frame. */
.hero-inner { max-width: 780px; will-change: opacity, transform; text-shadow: 0 1px 20px rgba(0, 0, 0, .28); }

.hero-meta {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(251, 249, 243, .78); margin-bottom: 22px; font-weight: 600;
}

.hero .eyebrow { color: var(--sky); margin-bottom: 20px; font-size: 12.5px; }
.hero h1 {
  font-size: clamp(32px, 4.2vw, 60px); font-weight: 800; color: #fff;
  line-height: 1.0; letter-spacing: -.03em; max-width: 18ch;
}
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; }
/* Visible by default (no-JS safe). The hidden start state and animation are
   only applied once JS is confirmed, so the headline is never stuck offscreen. */
.hero h1 .ln > span { display: block; }
.js .hero h1 .ln > span { transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .26s; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }

.hero p.sub {
  max-width: 52ch; margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(251, 249, 243, .9); line-height: 1.55; font-weight: 500;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* A single, quiet scroll cue. */
.hero-foot { margin-top: 6vh; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(251, 249, 243, .66); font-weight: 600;
}
.scroll-cue .line { width: 46px; height: 1px; background: rgba(251, 249, 243, .45); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0; background: var(--sky);
  transform: translateX(-100%); animation: cueSlide 2.6s var(--ease) infinite;
}
@keyframes cueSlide { 0% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }

/* ---------------- generic section rhythm ---------------- */
section { padding: clamp(72px, 10vw, 132px) 0; }
/* Keep the fixed header from covering in-page anchor targets and focus. */
#top, main section[id] { scroll-margin-top: calc(var(--hdr) + 20px); }
/* Premium dark section: solid brand royal. Royal is dark enough for
   high-contrast white text, and stays strictly on palette. */
.is-dark {
  background-color: var(--royal);
  color: #fff;
}
.is-white { background: #fff; }
.is-bone { background: var(--bone); }

.section-head { max-width: 900px; }
.section-head h2 {
  font-size: clamp(32px, 4.8vw, 58px); line-height: 1.0; margin-top: 18px;
  letter-spacing: -.035em; max-width: 16ch;
}
.is-dark .section-head h2 { color: #fff; }
.section-head .lead {
  font-size: clamp(19px, 2.1vw, 24px); color: var(--charcoal);
  line-height: 1.5; margin-top: 22px; max-width: 56ch; font-weight: 500;
}
.section-head .lead-sub {
  font-size: 17px; color: var(--charcoal); line-height: 1.6;
  margin-top: 16px; max-width: 62ch;
}
.is-dark .section-head .lead { color: rgba(255, 255, 255, .86); }

/* ---------------- intro (editorial two-column) ---------------- */
.intro-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro-grid .col-lead h2 {
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.035em;
}
.intro-grid .col-body p { font-size: 18px; margin-bottom: 20px; line-height: 1.62; }
.intro-grid .col-body p:last-of-type { margin-bottom: 0; }
.intro-grid .col-body p strong { color: var(--ink); font-weight: 700; }

.proofs { list-style: none; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.proofs li {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  font-size: 16.5px; color: var(--ink); font-weight: 600;
}
.proofs li .n { font-size: 13px; font-weight: 700; color: var(--ocean); letter-spacing: .04em; }

/* ---------------- businesses (large editorial rows) ---------------- */
.biz { display: flex; flex-direction: column; gap: clamp(76px, 10vw, 150px); margin-top: clamp(56px, 7vw, 96px); }
.biz-row {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.biz-row:nth-child(even) { grid-template-columns: 1.18fr 0.82fr; }
.biz-row:nth-child(even) .biz-visual { order: 2; }

/* Portrait photo that stays in view while the longer copy scrolls beside it. */
.biz-visual {
  position: sticky; top: calc(var(--hdr) + 26px);
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--bone);
}
.biz-visual img.biz-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.biz-row:hover .biz-visual img.biz-photo { transform: scale(1.045); }

.biz-text { max-width: 36rem; }
/* Company logo (transparent PNG) as the panel identifier, no box. */
.biz-logo { display: block; height: 68px; width: auto; margin-bottom: 20px; }
/* The Flood & Water Pumps horizontal lockup reads a touch smaller, so nudge it up.
   FAWP is the second business panel. */
.biz-row:nth-child(2) .biz-logo { height: 75px; }
.biz-text h3 {
  font-size: clamp(28px, 3.4vw, 44px); line-height: .98; letter-spacing: -.035em;
  margin-bottom: 16px; color: var(--ink);
}
.biz-short { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 18px; }
.biz-body p { font-size: 16px; color: var(--charcoal); line-height: 1.6; margin-bottom: 14px; }
.biz-body p:last-child { margin-bottom: 0; }
/* Proof stats (Flood & Water Pumps). */
.biz-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 32px; margin: 24px 0 4px; }
.biz-proof li { font-size: 13.5px; color: var(--charcoal); line-height: 1.3; }
.biz-proof li strong { display: block; font-size: 24px; font-weight: 800; color: var(--royal); letter-spacing: -.02em; }

/* Services as one quiet, flowing line, separated by middots. No pills. */
.cues {
  list-style: none; display: flex; flex-wrap: wrap; margin: 24px 0 30px;
  font-size: 14.5px; color: var(--charcoal); font-weight: 500; line-height: 1.7;
}
.cues li { position: relative; padding-right: 16px; margin-right: 4px; }
.cues li:not(:last-child)::after {
  content: "\00B7"; position: absolute; right: 3px; color: var(--ocean); opacity: .55;
}
.biz-link {
  font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--royal);
  display: inline-flex; align-items: center; gap: 9px; position: relative;
}
.biz-link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%;
  background: var(--ocean); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.biz-link:hover::after { transform: scaleX(1); }
.biz-link .arr { transition: transform .3s var(--ease); }
.biz-link:hover .arr { transform: translateX(5px); }

/* Founder note (E-E-A-T): a short, credible attribution above the story. */
.founder-note {
  max-width: 64ch; margin: clamp(28px, 4vw, 46px) 0 0;
  padding-top: 28px; border-top: 1px solid var(--line-light);
}
.founder-note .founder-lead {
  color: #fff; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; line-height: 1.5;
}
.founder-note p + p { color: rgba(255, 255, 255, .86); font-size: 16.5px; margin-top: 14px; line-height: 1.6; }
.founder-note a {
  color: var(--sky); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; transition: color .25s var(--ease);
}
.founder-note a:hover { color: #fff; }

/* ---------------- origin / approach (dark, timeline) ---------------- */
.approach-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: start; margin-top: 18px;
}
.approach-body p { color: rgba(255, 255, 255, .9); font-size: 18px; margin-bottom: 20px; line-height: 1.62; }
.approach-body p:last-child { margin-bottom: 0; }
.approach-body p strong { color: #fff; font-weight: 700; }

/* Restrained vertical timeline: years on a thin spine. */
.timeline { margin-top: 40px; }
.timeline .t-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  padding: 22px 0; position: relative;
  border-top: 1px solid var(--line-light);
}
.timeline .t-item:last-child { border-bottom: 1px solid var(--line-light); }
.timeline .yr {
  font-size: 20px; font-weight: 700; color: var(--sky); letter-spacing: .02em;
}
.timeline .t-item h3 { color: #fff; font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.timeline .t-item p { color: rgba(255, 255, 255, .82); font-size: 15.5px; margin: 0; line-height: 1.55; }

/* Operating principles, under a small heading. */
.principles-block { margin-top: 48px; }
.principles-h { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.principles { border-top: 1px solid var(--line-light); }
.principle {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line-light);
}
.principle .pn { font-size: 14px; font-weight: 700; color: var(--sky); }
.principle p { color: rgba(251, 249, 243, .9); font-size: 16.5px; margin: 0; font-weight: 500; }

/* ---------------- credentials ---------------- */
.cred-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 50px; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.cred {
  padding: 34px 30px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.cred .cn { font-size: 13px; font-weight: 700; color: var(--ocean); letter-spacing: .04em; }
.cred h3 { font-size: 19px; margin: 12px 0 8px; }
.cred p { font-size: 15px; color: var(--charcoal); line-height: 1.55; }

/* ---------------- expertise strip (areas of work) ---------------- */
.strip {
  background-color: var(--royal);
  background-image: radial-gradient(80% 110% at 100% 0%, rgba(52, 102, 154, .34), transparent 60%);
  color: var(--cream);
}
.strip-inner { padding: clamp(56px, 7vw, 88px) 0; text-align: center; }
.strip .eyebrow { color: var(--sky); }
.strip-h {
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.04; letter-spacing: -.03em;
  margin: 14px auto 0; max-width: 20ch; color: #fff;
}
/* Expertise terms as one dense, quiet line, middot separated. */
.expertise {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  max-width: 74ch; margin: 30px auto 0;
  font-size: 15.5px; color: rgba(255, 255, 255, .86); font-weight: 500; line-height: 1.9;
}
.expertise li { position: relative; padding: 0 20px 0 0; margin-right: 4px; }
.expertise li:not(:last-child)::after {
  content: "\00B7"; position: absolute; right: 6px; color: var(--sky); opacity: .7;
}

/* ---------------- contact / routing ---------------- */
.final-cta {
  background-color: var(--royal);
  background-image: radial-gradient(80% 110% at 100% 0%, rgba(52, 102, 154, .34), transparent 60%);
  color: var(--cream);
}
.final-cta .wrap { display: block; }
.final-cta h2 { font-size: clamp(32px, 4.6vw, 56px); color: #fff; line-height: 1.0; letter-spacing: -.035em; }
.routing-head { max-width: 760px; }
.routing-intro { color: rgba(255, 255, 255, .84); font-size: 18px; line-height: 1.6; margin-top: 20px; max-width: 64ch; }

/* Three routing options: a calm bordered grid, not a form. */
.routing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(44px, 5vw, 68px);
  border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light);
}
.route {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 34px);
  border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  color: inherit; transition: background .35s var(--ease);
}
.route:hover { background: rgba(255, 255, 255, .045); }
.route:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
/* White company logo (transparent PNG rendered white) as the routing marker.
   A fixed slot with object-fit keeps all three a consistent size without
   distorting their differing proportions. */
.route-logo {
  display: block; width: 150px; height: 54px;
  object-fit: contain; object-position: left center;
  margin-bottom: 20px; filter: brightness(0) invert(1);
}
.route h3 { color: #fff; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.02em; margin-bottom: 12px; }
.route > p { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; flex: 1; }
.route-cta {
  align-self: flex-start; margin-top: 24px; font-size: 14px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 9px; position: relative;
}
/* Orange is used only here, as the hover underline on the routing link. */
.route-cta::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.route:hover .route-cta::after { transform: scaleX(1); }
.route .arr { transition: transform .3s var(--ease); }
.route:hover .arr { transform: translateX(5px); }

/* "Read more" cue at the foot of the routing section, inviting the story below. */
.routing-more { margin-top: clamp(40px, 6vw, 64px); display: flex; justify-content: center; }
.read-more { color: rgba(255, 255, 255, .82); }

/* ---------------- footer ---------------- */
footer { background: var(--royal); color: rgba(255, 255, 255, .72); padding: 64px 0 36px; border-top: 1px solid var(--line-light); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { display: inline-flex; }
/* White logo on the deep-royal footer. */
.foot-brand .brand-logo { height: 76px; width: auto; filter: brightness(0) invert(1); }
.foot-about { font-size: 14px; color: rgba(255, 255, 255, .74); max-width: 36ch; line-height: 1.6; }
.footcol .h {
  color: var(--cream); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.footcol a { display: block; color: rgba(255, 255, 255, .74); font-size: 14px; margin-bottom: 11px; transition: color .25s var(--ease); }
.footcol a:hover { color: var(--sky); }
.fine {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: rgba(255, 255, 255, .62);
}
.fine .addr { max-width: 74ch; }
.fine .addr-line { color: rgba(255, 255, 255, .66); }
.fine a { color: rgba(255, 255, 255, .72); }
.fine a:hover { color: var(--sky); }
/* Footer legal links row. */
.fine-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 6px; }
.fine-legal a { color: rgba(255, 255, 255, .82); }

/* ---------------- legal / policy pages ---------------- */
.phead { background: var(--royal); color: var(--cream); padding: calc(var(--hdr) + 66px) 0 58px; }
.phead .eyebrow { color: var(--sky); }
.phead h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.03em; line-height: 1.02; margin-top: 14px; }
.phead p { color: rgba(255, 255, 255, .82); font-size: 18px; margin-top: 14px; max-width: 60ch; }
.legal { padding: clamp(52px, 7vw, 90px) 0; background: var(--cream); }
.legal .wrap { max-width: 820px; }
.legal .meta-date { font-size: 13px; letter-spacing: .04em; color: rgba(12, 17, 24, .55); margin-bottom: 30px; }
.legal .block { margin-bottom: 34px; }
.legal .block:last-child { margin-bottom: 0; }
.legal .block h2 { font-size: clamp(20px, 2.4vw, 27px); color: var(--ink); letter-spacing: -.02em; margin-bottom: 12px; }
.legal .block p { font-size: 16.5px; color: var(--charcoal); line-height: 1.7; margin-bottom: 12px; }
.legal .block p:last-child { margin-bottom: 0; }
.legal .block ul { margin: 8px 0 12px 20px; }
.legal .block li { font-size: 16.5px; color: var(--charcoal); line-height: 1.7; margin-bottom: 8px; }
.legal a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ocean); }

/* ---------------- reveal-on-scroll ---------------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .intro-grid, .approach-grid { grid-template-columns: 1fr; }
  .routing-grid { grid-template-columns: 1fr; }
  .biz-row, .biz-row:nth-child(even) { grid-template-columns: 1fr; gap: 30px; }
  .biz-row:nth-child(even) .biz-visual { order: 0; }
  /* relative (not static) so the absolutely-positioned .biz-photo keeps this box
     as its containing block once the row's reveal transform clears. */
  .biz-visual { position: relative; aspect-ratio: 3 / 4; max-height: 72vh; }
  .biz-text { max-width: none; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta .cta-actions { align-items: stretch; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .menu-toggle { display: block; }
  .navlinks {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: 82%; max-width: 360px; background: var(--royal); color: var(--cream);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 28px; padding: 48px 40px; transform: translateX(100%); visibility: hidden;
    transition: transform .42s var(--ease), visibility 0s .42s;
    border-left: 1px solid var(--line-light);
  }
  .navlinks.open { transform: none; visibility: visible; transition: transform .42s var(--ease); }
  header .navlinks a, header.solid .navlinks a { color: var(--cream); }
  .navlinks .primary-links { flex-direction: column; align-items: flex-start; gap: 22px; }
  .navlinks .primary-links a { font-size: 21px; }
  .nav-sites {
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 24px 0 0; margin: 8px 0 0; border-left: 0;
    border-top: 1px solid var(--line-light); width: 100%;
  }
  .nav-sites a { font-size: 13px; }
  .cred-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; min-height: 92svh; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hero h1 .ln > span { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal .rule { width: 44px; }
  .scroll-cue .line::after { display: none; }
}
