/* ==========================================================================
   Launchpad Digital — main.css
   Global design system + shell (tokens, base, layout, components, header, footer)
   Authored mobile-first. Breakpoints: 768 (tablet), 1024 (desktop), 1536 (x-wide)
   ========================================================================== */

/* ---------- Fonts (self-hosted variable Montserrat) ---------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-italic-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ------------------------------------------------ */
:root {
  /* Brand palette */
  --c-ink: #1c1c1c;
  --c-navy: #03304b;
  --c-navy-2: #184e68;
  --c-blue: #a0dcef;
  --c-blue-2: #7bc0db;
  --c-blue-3: #61a1c1;
  --c-blue-light: #cdecf7;
  --c-peach: #f7cfa4;
  --c-white: #ffffff;
  --c-paper: #f7fafc;

  /* Brand gradient — peach (left) -> blue (right). */
  --grad-brand: linear-gradient(270deg, var(--c-blue) 0%, var(--c-peach) 100%);
  /* Shared wash used by nav, flyout, and CTA bands (50% over white) */
  --grad-wash: linear-gradient(270deg, rgba(160, 220, 239, 0.5) 0%, rgba(247, 207, 164, 0.5) 100%), var(--c-white);

  /* Type */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Fluid type scale (mobile -> desktop) */
  --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);   /* hero H1 */
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: 1.125rem;   /* 18px body text */
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extra: 800;

  /* Layout */
  --container-max: 1280px;      /* boxed; 30px padding -> 1220 content on desktop */
  --container-wide: 1536px;     /* x-wide: grids/visual sections expand to this */
  --gutter: 20px;               /* mobile padding */
  --section-y: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* UI */
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 72px;
  --shadow-sm: 0 2px 10px rgba(3, 48, 75, 0.08);
  --shadow-md: 0 12px 32px rgba(3, 48, 75, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t-med: 0.3s var(--ease);
}

/* ---------- Reset / base ------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Contain full-bleed sections (width:100vw) so the scrollbar width can't
     trigger a page-wide horizontal scrollbar. `clip` (not hidden) keeps
     overflow-y visible, so position:sticky still works. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  color: var(--c-navy);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-navy); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-blue-3); }

img, svg, video { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-navy-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

/* ---------- Layout: container + sections --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Wider track for visual sections (grids, hero media) on big screens */
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section--paper { background: var(--c-paper); }

/* Section header (shared) — no width cap; it spans its section. */
.section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head.text-center { margin-inline: auto; }

/* Hero (shared across home / services / about / why-choose):
   copy + media grid on a subtle radial-wash-over-white background. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(160,220,239,0.35) 0%, transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(247,207,164,0.30) 0%, transparent 55%),
    var(--c-white);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Copy-only hero — boxed container width, left-aligned, breadcrumb on top.
   Shared by the service pages, About, and Why Choose Us. */
.hero__center { text-align: left; padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.hero__center .breadcrumb { margin: 0 0 1rem; }
.hero__center .lead { max-width: 75ch; margin-inline: 0; font-size: 1rem; }
.hero__center .btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; justify-content: flex-start; }
a.eyebrow:hover { color: var(--c-navy); }

/* ---------- "On this page" TOC rail + content grid (blog + legal docs) -------
   Shared so any content column (.prose for articles, .legal for legal docs)
   gets the same desktop sticky scrollspy rail. Injected by buildToc() in build.js. */
.toc { display: none; }
.article-body > .prose, .article-body > .legal { margin-top: 0; }
@media (min-width: 1024px) {
  .article-body {
    display: grid; grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); align-items: start;
  }
  .article-body > .prose, .article-body > .legal { max-width: 820px; margin-inline: 0; }
  /* clear the full sticky header (logo 55px + 35px padding ≈ 125px when it slides back in) */
  .toc { display: block; position: sticky; top: 148px; align-self: start; max-height: calc(100vh - 168px); overflow-y: auto; }
  .toc__label { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.14em; font-weight: var(--fw-semibold); color: var(--c-navy-2); margin: 0 0 0.8rem; }
  .toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; border-left: 1px solid rgba(3,48,75,0.12); }
  .toc__link {
    display: block; padding: 0.5rem 0.9rem; margin-left: -1px;
    border-left: 2px solid transparent; color: #41515c; text-decoration: none;
    font-size: 0.95rem; font-weight: var(--fw-medium); line-height: 1.35;
  }
  .toc__link:hover { color: var(--c-navy); }
  .toc__link.is-active {
    color: var(--c-navy); font-weight: var(--fw-semibold);
    border-left-color: var(--c-blue-3); background: var(--grad-wash);
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}

/* Full-bleed band: background spans viewport, inner content uses container */
.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50vw);
}

/* ---------- Typography helpers ------------------------------------------- */
.display {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin: 0 0 0.4em;
}
.display .thin { font-weight: var(--fw-regular); }
.display .accent { color: var(--c-navy-2); }   /* deep teal — AA contrast on white (steel blue failed) */

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-navy-2);   /* deep teal — AA contrast (steel blue failed at ~2.85:1) */
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: #3a4a55;
  max-width: 60ch;
}

.measure { max-width: 65ch; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  --btn-bg: var(--c-navy);
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9rem 1.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
    color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-navy);
  --btn-bd: var(--c-navy);
}
.btn--outline:hover { --btn-bg: var(--c-navy); --btn-fg: var(--c-white); }

.btn--light {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-navy);
  --btn-bd: var(--c-white);
}

/* Inline "Explore →" text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--c-navy);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cards & grids ------------------------------------------------ */
.grid { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card { display: flex; flex-direction: column; }

/* Service card (numbered, text) */
.service-card { position: relative; }
.service-card .num {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--c-navy-2);
  letter-spacing: 0.1em;
}
.service-card h3 { margin-top: 0.6rem; transition: color var(--t-fast); }
.service-card p { color: #41515c; font-size: 0.95rem; margin-bottom: 0.9rem; }
.service-card .link-arrow { margin-top: auto; }   /* pin to bottom */
.service-card:hover h3 { color: var(--c-blue-3); }
/* whole card clickable via stretched link */
.service-card .link-arrow::after { content: ""; position: absolute; inset: 0; }

/* Work card (image + meta) */
.work-card { display: flex; flex-direction: column; }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--c-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;   /* rounded top, squared bottom flows into caption */
  box-shadow: 0 16px 36px rgba(3, 48, 75, 0.10);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.work-card:hover .work-card__media {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(3, 48, 75, 0.18);
}
.work-card__media picture { display: block; width: 100%; height: 100%; }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-med);
}
.work-card:hover .work-card__media img { transform: scale(1.02); }
.work-card__body { padding: 1.1rem 0.25rem 0.5rem; }
.work-card__title { font-size: var(--fs-h4); font-weight: var(--fw-semibold); color: var(--c-navy); margin: 0 0 0.2rem; }
.work-card__cat { font-size: var(--fs-small); color: var(--c-navy-2); font-weight: var(--fw-medium); }

/* ---------- Image placeholder (until real assets land) ------------------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(3,48,75,0.04) 0 12px, transparent 12px 24px),
    var(--c-blue-light);
  color: var(--c-navy-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  padding: 1rem;
}
.ph span { opacity: 0.7; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band {
  background: var(--grad-wash);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.cta-band h2 { color: var(--c-navy); margin: 0 0 1.5rem; }
.cta-band p { color: var(--c-navy-2); margin: 0; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--c-white);
  isolation: isolate;
}
/* peach->blue gradient washed at 50% over white */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;   /* mobile: 20px top/bottom */
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand svg, .brand img { height: 30px; width: auto; }   /* mobile */

/* Primary nav (desktop) — hidden until >=1024 */
.primary-nav { display: none; }

.nav-cta { display: none; }

/* Search + hamburger group — always visible, right-aligned */
.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer; color: var(--c-navy);
}
.nav-search-btn svg { width: 22px; height: 22px; }

/* Hamburger — always visible */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--c-navy);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop primary nav links */
/* Tablet & up: 55px logo with 35px top/bottom padding */
@media (min-width: 768px) {
  .brand svg, .brand img { height: 55px; }
  .site-header__inner { padding-block: 35px; }
}

/* Smooth resize between full and condensed states */
.brand svg, .brand img { transition: height var(--t-fast); }
.site-header__inner { transition: padding-block var(--t-fast); }

/* Mobile/tablet: plain sticky — pinned from the top, no JS, no shrink, no scroll-away. */
@media (max-width: 1023px) {
  .site-header { position: sticky; top: 0; }
}

/* Desktop: JS adds .is-stuck = pinned to top on scroll. Slides down when it (re)appears. */
.site-header.is-stuck {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 4px 18px rgba(3, 48, 75, 0.10);
  animation: header-slide-down var(--t-med);
}
@keyframes header-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Condensed (scrolling down) — logo + hamburger only, smaller per schedule */
.site-header.is-condensed .primary-nav { display: none; }             /* hide nav links + CTA */
.site-header.is-condensed .brand svg,
.site-header.is-condensed .brand img { height: 35px; }                /* shrink logo */
.site-header.is-condensed .site-header__inner { padding-block: 10px; }   /* mobile: 10px */
@media (min-width: 768px) {
  .site-header.is-condensed .site-header__inner { padding-block: 20px; } /* tablet + desktop: 20px */
}

/* Nav items appear at >=1024 (they're the priority). */
@media (min-width: 1024px) {
  .site-header__inner { gap: 0; }                 /* gaps set explicitly below */
  .primary-nav { display: flex; align-items: center; margin-left: auto; gap: 70px; }  /* nav list 70px left of CTA */
  .primary-nav > ul { display: flex; align-items: center; gap: clamp(1.25rem, 0.5rem + 1.6vw, 2.75rem); }
  .nav-actions { margin-left: 40px; }             /* search + hamburger sit right of the CTA */
  .primary-nav > ul > li > a {
    font-family: inherit;
    font-size: 18px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-navy);
    padding: 0.5rem 0;
    position: relative;
  }
  .primary-nav > ul > li > a::after {
    content: "";
    position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--c-navy);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-fast);
  }
  .primary-nav > ul > li > a:hover::after { transform: scaleX(1); }
}

/* CTA button joins only once there's room (nav items take priority below this). */
@media (min-width: 1240px) {
  .nav-cta {
    display: inline-flex;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 18px;
    padding: 16px 32px;
  }
}

/* ---------- Services mega-menu ------------------------------------------- */
.has-mega { position: static; }
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  border-top: 1px solid rgba(3,48,75,0.08);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 999;
}
.has-mega:hover > .mega,
.has-mega--open > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-block: 2.25rem;
}
.mega__col h4 {
  font-size: 1.05rem;
  color: var(--c-navy);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--c-blue);
}
.mega__col a { display: block; font-size: 0.92rem; color: #41515c; padding: 0.32rem 0; text-transform: none; letter-spacing: 0; font-weight: var(--fw-medium); }
.mega__col a:hover { color: var(--c-navy); }
.mega__col a.is-overview { color: var(--c-navy); font-weight: var(--fw-semibold); }
@media (max-width: 1023px) { .mega { display: none; } }

/* ==========================================================================
   FLYOUT (hamburger overlay)
   ========================================================================== */
.flyout {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--grad-wash);
  display: flex;
  flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
  overflow-y: auto;
}
.flyout.is-open { opacity: 1; visibility: visible; }

/* Bar reuses .site-header__inner so the logo + X land exactly where the
   header logo + hamburger sit. */
.flyout__bar { width: 100%; }

.flyout__close {
  position: relative;
  width: 44px; height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--c-navy); flex: 0 0 auto;
}
.flyout__close span {
  position: absolute; top: 50%; left: 50%;
  width: 26px; height: 2px; background: currentColor; border-radius: 2px;
}
.flyout__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.flyout__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.flyout__body {
  padding-block: clamp(0.75rem, 0.5rem + 1.5vw, 1.75rem) 4rem;
  width: 100%;
}
.flyout__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.flyout__company { display: flex; flex-direction: column; gap: 2.25rem; }
.flyout__solutions-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem 2rem; }
.flyout__solutions > .flyout__eyebrow { margin-bottom: 1.25rem; }

.flyout__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7882;
  margin-bottom: 0.5rem;
}
.flyout__group h4 {
  font-size: 1.2rem; color: var(--c-navy);
  margin-bottom: 0.7rem;
}
.flyout__group a {
  display: block; padding: 0.28rem 0;
  font-size: 0.95rem; color: #41515c; font-weight: var(--fw-medium);
}
.flyout__group a:hover { color: var(--c-navy); }

@media (min-width: 600px) {
  .flyout__solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet only: Company + Portfolio sit side by side (Solutions stays full-width
   below). At desktop (>=1024) the left column is narrow, so they stack again. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .flyout__company { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2rem; align-items: start; }
}
/* Below desktop, Solutions stacks below — divider becomes horizontal (above it). */
@media (max-width: 1023.98px) {
  .flyout__solutions { border-top: 1px solid rgba(3, 48, 75, 0.18); padding-top: 2.25rem; }
}
@media (min-width: 1024px) {
  .flyout__cols { grid-template-columns: minmax(220px, 0.85fr) 2.2fr; gap: 3rem; align-items: start; }
  /* vertical divider line between Company/Portfolio and Solutions */
  .flyout__solutions { border-left: 1px solid rgba(3, 48, 75, 0.18); padding-left: 3rem; }
}

/* Lock scroll when overlay open */
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   SEARCH OVERLAY (Pagefind)
   ========================================================================== */
.search-overlay {
  position: fixed; inset: 0; z-index: 2100;
  background: var(--c-white);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
  overflow-y: auto;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__bar { width: 100%; border-bottom: 1px solid rgba(3, 48, 75, 0.08); }
.search-overlay__title { font-weight: var(--fw-bold); color: var(--c-navy); font-size: var(--fs-h4); }
.search-overlay__close {
  position: relative; width: 44px; height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--c-navy); flex: 0 0 auto;
}
.search-overlay__close span { position: absolute; top: 50%; left: 50%; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.search-overlay__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.search-overlay__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.search-overlay__body { padding-block: clamp(1.5rem, 1rem + 3vw, 3rem); width: 100%; }
.search-overlay #search { max-width: 760px; margin-inline: auto; }

/* Pagefind UI themed to brand */
#search {
  --pagefind-ui-primary: var(--c-navy);
  --pagefind-ui-text: var(--c-ink);
  --pagefind-ui-background: var(--c-white);
  --pagefind-ui-border: rgba(3, 48, 75, 0.15);
  --pagefind-ui-tag: var(--c-blue-light);
  --pagefind-ui-border-radius: 10px;
  --pagefind-ui-font: var(--font-sans);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-navy);
  color: var(--c-white);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: 0.92rem;
}
.site-footer a { color: var(--c-white); }
.site-footer a:hover { color: var(--c-blue); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
.footer__brand img { height: 100px; width: auto; }
.footer__brand p { margin-top: 1rem; max-width: 32ch; color: var(--c-white); font-size: var(--fs-small); }
.footer__col h3 { color: var(--c-white); font-size: 1rem; margin-bottom: 0.9rem; font-weight: var(--fw-semibold); }
.footer__col a { display: block; padding: 0.28rem 0; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-small); color: var(--c-white);
}
.footer__legal { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; }
.footer__legal span { opacity: 0.5; }
.footer__legal-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-white); cursor: pointer; }
.footer__legal-btn:hover { color: var(--c-blue); text-decoration: underline; }

/* ---- Consent banner (opt-in regions: EU/EEA/UK) -------------------------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.85rem 1.5rem; padding: 1rem clamp(1rem, 0.5rem + 2vw, 2rem);
  background: var(--c-navy); color: #fff; box-shadow: 0 -8px 30px rgba(3,48,75,0.25);
}
.consent-banner[hidden] { display: none; }
.consent-banner__text { margin: 0; font-size: var(--fs-small); max-width: 68ch; line-height: 1.5; }
.consent-banner__text a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner__actions { display: flex; gap: 0.7rem; flex: none; }
.consent-banner .btn--outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.consent-banner .btn--outline:hover { background: rgba(255,255,255,0.12); }

/* ---- Your Privacy Choices — analytics opt-out modal ---------------------- */
.privacy-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.privacy-modal[hidden] { display: none; }
.privacy-modal__backdrop { position: absolute; inset: 0; background: rgba(3,48,75,0.55); }
.privacy-modal__panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2.5rem); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(3,48,75,0.30); }
.privacy-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem) 1rem; border-bottom: 1px solid rgba(3,48,75,0.10); }
.privacy-modal__head h2 { margin: 0; font-size: var(--fs-h3); color: var(--c-navy); }
.privacy-modal__close { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #6b7882; cursor: pointer; padding: 0.25rem; }
.privacy-modal__close:hover { color: var(--c-navy); }
.privacy-modal__body { padding: 1.25rem clamp(1.25rem, 1rem + 1vw, 2rem); }
.privacy-modal__body p { margin: 0 0 1.25rem; color: #2c3a44; }
.privacy-modal__choice { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: var(--fw-semibold); color: var(--c-navy); cursor: pointer; }
.privacy-modal__choice input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; accent-color: var(--c-navy); cursor: pointer; }
.privacy-modal__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; padding: 1rem clamp(1.25rem, 1rem + 1vw, 2rem) 1.5rem; }

@media (min-width: 600px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ==========================================================================
   RESPONSIVE GRID EXPANSION (tablet -> desktop -> x-wide)
   ========================================================================== */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: row; align-items: center; gap: 85px; }
  .cta-band .cta-band__text { flex: 1; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 30px; }   /* 1280 - 60 = 1220 content */
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
/* X-wide: visual grids gain a column, hero media breathes */
@media (min-width: 1536px) {
  .container { max-width: var(--container-wide); }   /* nav + content expand together, stay aligned */
  .grid--work.grid--2 { grid-template-columns: repeat(3, 1fr); }
  .grid--3.grid--expand { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- FAQ (native <details> accordion, no JS) — shared across pages ---- */
.faq { max-width: 820px; margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0; display: grid; gap: 0.75rem; }
.faq-item { background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.3rem; padding-right: 3rem; position: relative;
  font-weight: var(--fw-semibold); color: var(--c-navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: var(--fw-regular); color: var(--c-navy-2); line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--c-navy-2); outline-offset: -3px; }
.faq-item p { margin: 0; padding: 0 1.3rem 1.2rem; color: #2c3a44; }
.faq-item ul { margin-top: -0.6rem; padding: 0 1.3rem 1.2rem 2.6rem; color: #2c3a44; }
.faq-item li { margin-top: 0.45rem; line-height: 1.55; }
.faq-item li:first-child { margin-top: 0; }
