/* ===========================================================================
   Ace InfoTech — homepage prototype
   Plain CSS3. No build step, no external font or icon dependencies.
   =========================================================================== */

/* ---------------------------------------------------------------- fonts */
/* Montserrat, self-hosted (assets/fonts/, OFL licence alongside) — brand
   consistency with the capability statement WITHOUT any third-party request.
   Single variable file: the page uses weights 400/450/600/650/700, and the
   wght axis renders each exactly where static files would snap to neighbours.
   The lone italic (.disclaimer) renders as synthetic oblique. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  /* optional (not swap): the font is used only when ready at first render,
     so a late arrival can NEVER reflow the page (CLS stays 0). The preload
     makes it ready on virtually every real visit; a very slow first view
     falls back to the metric-matched Arial below and caches the font for
     the next navigation. Measured: swap caused CLS 0.20 (hero re-wrap). */
  font-display: optional;
}
/* CLS guard: Arial reshaped to Montserrat's measured metrics (values computed
   from the two fonts' actual tables), so the swap doesn't move a single line
   break. Keep this immediately after "Montserrat" in the --font stack. */
@font-face {
  font-family: "montserrat-fallback";
  src: local("Arial");
  size-adjust: 110.99%;
  ascent-override: 87.21%;
  descent-override: 22.61%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* Brand — navy primary, blue/cyan technology accents, gold used sparingly */
  --navy-900: #061529;
  --navy-800: #0a1f3d;
  --navy-700: #12305c;
  --navy-600: #1b427c;
  --blue-600: #1565c0;
  --blue-500: #1e7fe0;
  --blue-400: #4da3f0;
  --cyan-400: #22c8e6;
  --cyan-300: #67dcf0;
  --gold-400: #d8a531;
  --gold-300: #ecc463;

  --ink-900: #0d1b2a;
  --ink-700: #33465c;
  --ink-500: #5a6b80;
  --line: #dfe5ee;
  --line-soft: #edf1f7;
  --surface: #ffffff;
  --surface-tint: #f4f7fb;

  --shell: 1200px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 61, .06), 0 2px 8px rgba(10, 31, 61, .05);
  --shadow-md: 0 4px 12px rgba(10, 31, 61, .07), 0 12px 32px rgba(10, 31, 61, .08);
  --shadow-lg: 0 10px 24px rgba(10, 31, 61, .10), 0 28px 64px rgba(10, 31, 61, .13);

  --header-h: 88px;
  --header-height: 88px; /* alias */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Self-hosted Montserrat first (see @font-face above); the system stack
     stays as the fallback while the font loads and wherever woff2/variable
     fonts are unavailable. Never reference a fonts CDN here. */
  --font: "Montserrat", "montserrat-fallback", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* Clips the off-canvas drawer, which is fixed and so escapes body clipping. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  /* clip, not hidden: html's overflow-x is non-visible, so body's overflow is
     NOT propagated to the viewport — `hidden` would make body itself a scroll
     container and silently break the sticky header. `clip` clips without
     creating a scroll container. (`hidden` kept as a legacy fallback.) */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Scroll-locked while the mobile drawer is open. The lock must sit on the
   root element for the same propagation reason as above; on body it neither
   reaches the viewport nor spares the sticky header. */
html:has(body.nav-open) { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy-800);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Pictures whose img uses width:100% must themselves span their container,
   otherwise the box computes to 0 before the (lazy) image loads. */
.glance-figure picture, .workforce-figure picture, .logo-cell picture { width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Light-on-dark focus ring keeps 3:1 contrast against navy panels. */
.section-navy :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--cyan-300);
}

/* Pushes a flex child to the end of the row (CSP-safe replacement for an
   inline margin-left:auto). */
.push-end { margin-left: auto; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-tint { background: var(--surface-tint); }

.section-navy {
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(34, 200, 230, .16), transparent 62%),
    radial-gradient(760px 420px at 8% 106%, rgba(30, 127, 224, .20), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(233, 240, 250, .88);
}
.section-navy .section-title,
.section-navy h3 { color: #fff; }
.section-navy .section-lede { color: rgba(215, 228, 244, .85); }

/* ---------------------------------------------------------------- type */
.eyebrow {
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow-light { color: var(--cyan-300); }
.eyebrow-gold { color: var(--gold-300); }

.section-title { font-size: clamp(1.85rem, 3.4vw, 2.65rem); }
.section-lede { font-size: clamp(1.02rem, 1.5vw, 1.14rem); color: var(--ink-500); }
.section-navy .section-lede { color: rgba(215, 228, 244, .85); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 28px 56px;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 60px);
}
.section-head > div { min-width: 0; }

.lede-block {
  max-width: 860px;
  margin-bottom: clamp(38px, 5vw, 56px);
}
.lede-block .section-lede { margin-top: 20px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  text-align: center;
  white-space: nowrap; /* pill buttons are single-line by design */
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .93rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 6px 18px rgba(21, 101, 192, .30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0f56a8, #1670c9);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(21, 101, 192, .38);
}

.btn-outline {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(2px);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(216, 165, 49, .32);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(216, 165, 49, .42);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  /* Slim brand-gradient hairline anchors the header to the navy/blue/cyan
     identity without decoration. */
  box-shadow: inset 0 -1px 0 rgba(10, 31, 61, .04);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-700) 0%, var(--blue-500) 48%, var(--cyan-400) 100%);
  opacity: .9;
}
.site-header.is-stuck {
  border-bottom-color: transparent;
  box-shadow: 0 4px 20px rgba(10, 31, 61, .10);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}
.brand img {
  width: auto;
  height: clamp(52px, 5.2vw, 62px);
  transition: transform .2s var(--ease);
}
.brand:hover img { transform: scale(1.02); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-700);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link:hover { color: var(--navy-800); background: var(--surface-tint); text-decoration: none; }

/* Active section indicator — underline bar, not colour alone. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transform: scaleX(0);
  transition: transform .22s var(--ease);
}
.nav-link.is-active { color: var(--navy-800); }
.nav-link.is-active::after { transform: scaleX(1); }

/* Divider + CTA grouping gives the nav an executive, deliberate structure. */
.nav-cta {
  position: relative;
  margin-left: 4px;
  padding-left: 24px;
}
.nav-cta::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  height: 26px;
  transform: translateY(-50%);
  border-left: 1px solid var(--line);
}

.nav-toggle { display: none; }
.nav-scrim { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* Fluid height: reserves ~240px below the header so the header + hero + the
     complete stat-grid (numbers and labels) fit in the first viewport on
     desktop. Clamped so short viewports never crush the hero content and tall
     monitors don't stretch it past a balanced height. */
  min-height: clamp(520px, calc(100svh - var(--header-height) - 240px), 780px);
  padding: clamp(36px, 4vw, 56px) 0 clamp(36px, 3.6vw, 52px);
  background: var(--navy-900);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Navy veil: dark enough on the left for AA text contrast, lighter right. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 21, 41, .95) 0%, rgba(8, 26, 50, .88) 38%,
                            rgba(10, 31, 61, .70) 66%, rgba(12, 40, 75, .58) 100%),
    linear-gradient(to top, rgba(6, 21, 41, .70), transparent 45%);
}

.hero-inner { max-width: 780px; }

.hero-title {
  margin: 0 0 clamp(16px, 1.6vw, 22px);
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Fallback for engines without background-clip:text support. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .accent { color: var(--cyan-300); background: none; }
}

.hero-lede {
  max-width: 640px;
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  color: rgba(226, 236, 248, .92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: clamp(20px, 2.4vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: clamp(0.94rem, 1vw, 1.06rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(224, 236, 250, .95);
}
/* Separator dots are decorative; the list is still a list to AT. */
.hero-trust li { display: flex; align-items: center; gap: 14px; }
.hero-trust li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan-400);
}

/* ---------------------------------------------------------------- stats */
.stats {
  padding: clamp(26px, 3vw, 40px) 0;
  background: linear-gradient(180deg, #fff 0%, var(--surface-tint) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.stat {
  position: relative;
  padding: 6px 20px;
  text-align: center;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  width: 1px; height: 76%;
  background: var(--line);
}
.stat-value {
  margin: 0;
  font-size: clamp(2.05rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  order: 2;
}
/* dt renders after dd via flex ordering, keeping DOM order semantic. */
.stat { display: flex; flex-direction: column; }
.stat-value { order: 1; }

/* ---------------------------------------------------------------- pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar {
  padding: 30px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-num {
  display: block;
  margin-bottom: 10px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue-500);
}
.pillar-title { margin-bottom: 10px; font-size: 1.32rem; }

.glance-figure {
  margin: clamp(40px, 5vw, 60px) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.glance-figure img { width: 100%; }

/* ---------------------------------------------------------------- cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #c9d8ec;
  box-shadow: var(--shadow-md);
}

.card-num {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue-500);
}
.card-title { margin: 14px 0 10px; font-size: 1.22rem; }
.card p { color: var(--ink-500); font-size: .99rem; }

/* Contract-vehicle credential line inside a capability card. */
.card-contract {
  margin-top: 10px;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--ink-500);
}
.card-contract strong { color: var(--ink-700); font-weight: 700; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-top: 18px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(30, 127, 224, .12), rgba(34, 200, 230, .14));
  color: var(--blue-600);
}
.card-icon svg {
  width: 27px; height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* AI capability sits slightly forward without implying an AI-only firm. */
.card-feature {
  border-color: rgba(21, 101, 192, .30);
  background: linear-gradient(165deg, #fff 0%, #f3f8ff 100%);
  box-shadow: 0 4px 14px rgba(21, 101, 192, .09), 0 16px 40px rgba(10, 31, 61, .08);
}
.card-feature::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
}
.card-feature .card-icon {
  background: linear-gradient(140deg, var(--blue-600), var(--cyan-400));
  color: #fff;
}

.card-ai { border-top: 3px solid var(--cyan-400); }
.card-why { border-left: 3px solid var(--blue-500); }
.card-plain { border-top: 3px solid var(--line); }
.card-plain:hover { border-top-color: var(--blue-400); }

/* ---------------------------------------------------------------- government */
.gov-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.gov-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.gov-area {
  padding: 26px 24px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.gov-area:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(103, 220, 240, .45);
  transform: translateY(-3px);
}
.gov-area-title {
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: 1.14rem;
}
.gov-area p { font-size: .97rem; color: rgba(210, 225, 242, .84); }

.gov-value {
  padding: 32px 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  border-left: 3px solid var(--gold-400);
  border-radius: var(--radius);
}
.gov-value-statement {
  margin-bottom: 24px;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.check-list { display: grid; gap: 13px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .97rem;
  color: rgba(214, 228, 244, .90);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 15px; height: 9px;
  border-left: 2px solid var(--cyan-300);
  border-bottom: 2px solid var(--cyan-300);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- tags */
.usecase-band {
  margin-top: clamp(34px, 4vw, 48px);
  padding: 30px 32px;
  background: linear-gradient(135deg, #f2f7fd, #eef8fb);
  border: 1px solid #d9e6f5;
  border-radius: var(--radius-lg);
}
.usecase-label {
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list li {
  padding: 9px 18px;
  background: #fff;
  border: 1px solid #d3e2f3;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy-700);
}
.tag-list-plain li {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-700);
}

.governance {
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.governance-label {
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------------------------------------------------------------- timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}
.timeline-step {
  position: relative;
  padding-top: 46px;
}
/* Connector rail between markers on desktop. */
.timeline-step::before {
  content: "";
  position: absolute;
  top: 17px; left: 34px; right: -20px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-400), rgba(77, 163, 240, .28));
}
.timeline-step:last-child::before { display: none; }

.timeline-marker {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  box-shadow: 0 3px 10px rgba(21, 101, 192, .30);
}
.timeline-title { margin-bottom: 9px; font-size: 1.14rem; }
.timeline-step p { font-size: .95rem; color: var(--ink-500); }

/* ---------------------------------------------------------------- workforce */
.workforce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.workforce-copy .section-lede { margin-top: 20px; }
.workforce-motto {
  margin-top: 26px;
  padding-left: 20px;
  border-left: 3px solid var(--gold-400);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-800);
}
.workforce-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.workforce-figure img { width: 100%; }

/* ---------------------------------------------------------------- tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tech-group {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tech-group-title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-soft);
  font-size: 1.06rem;
  letter-spacing: .01em;
}
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li {
  padding: 7px 14px;
  background: var(--surface-tint);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: .89rem;
  font-weight: 600;
  color: var(--navy-700);
}

/* ---------------------------------------------------------------- logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.logo-cell {
  display: grid;
  place-items: center;
  padding: 14px 12px;
  min-height: 128px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.logo-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-cell img {
  width: 100%;
  height: auto;
  max-height: 108px;
  object-fit: contain;
}

/* The logo grid ends this section; keep its exit padding a touch tighter than
   the standard rhythm so the disclaimer doesn't float in empty space. */
#experience { padding-bottom: clamp(44px, 5vw, 68px); }

.disclaimer {
  margin-top: 26px;
  font-size: .88rem;
  color: var(--ink-500);
  font-style: italic;
}

/* ---------------------------------------------------------------- brand line */
.brand-statement {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(38px, 4.6vw, 56px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
  font-size: clamp(.86rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-800);
  text-align: center;
}
.brand-statement span { display: flex; align-items: center; gap: 20px; }
.brand-statement span:not(:last-child)::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-400);
}

/* ---------------------------------------------------------------- cta */
.cta {
  padding: clamp(64px, 8vw, 104px) 0;
  background:
    radial-gradient(820px 460px at 12% -20%, rgba(34, 200, 230, .20), transparent 62%),
    radial-gradient(700px 420px at 96% 110%, rgba(216, 165, 49, .16), transparent 60%),
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 52%, var(--navy-900) 100%);
  color: rgba(226, 236, 248, .90);
}
/* Heading first, then the form leads the two-column body; the contact card
   and email alternative sit in the secondary column (and below on mobile). */
.cta-head {
  max-width: 780px;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.cta-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.cta-title {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  color: #fff;
}
.cta-lede {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: rgba(219, 232, 247, .88);
}
.cta-aside .btn { margin-top: 14px; }

.contact-card {
  padding: 32px 30px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  font-style: normal;
  backdrop-filter: blur(4px);
}
.contact-org {
  font-size: 1.16rem;
  font-weight: 700;
  color: #fff;
}
.contact-line {
  margin-top: 8px;
  font-size: .97rem;
  color: rgba(210, 225, 242, .84);
}
.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.contact-key {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.contact-list a {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- contact form */
.cta-alt {
  margin-top: 30px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

.form-card {
  padding: 34px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.5rem; color: var(--navy-800); }
.form-intro { margin: 8px 0 24px; color: var(--ink-500); font-size: .98rem; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--navy-800);
}
.label-optional { font-weight: 450; color: var(--ink-500); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { appearance: auto; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(30, 127, 224, .22);
}

/* Error state: border + message, never colour alone (message text explains). */
.form-field [aria-invalid="true"] {
  border-color: #b3261e;
}
.field-error {
  margin: 7px 0 0;
  font-size: .88rem;
  font-weight: 600;
  color: #b3261e;
}

.form-submit { width: 100%; margin-top: 6px; }
.form-submit[disabled] { opacity: .65; cursor: default; transform: none; }

.form-privacy-note {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--ink-500);
  text-align: center;
}
.form-privacy-note a { font-weight: 600; }

/* Server-side validation summary: role="alert", links jump to each field. */
.form-error-summary {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1.5px solid #eccfcc;
  border-left: 4px solid #b3261e;
  border-radius: 10px;
  background: #fbeeed;
}
.form-error-summary p {
  margin: 0 0 8px;
  font-weight: 700;
  color: #9c211a;
}
.form-error-summary ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.form-error-summary a {
  color: #9c211a;
  font-weight: 600;
  text-decoration: underline;
}

/* Live status region for the fetch() path. */
.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 600;
}
.form-status.is-success {
  display: block;
  background: #e9f6ec;
  border: 1px solid #b5dfc0;
  color: #1a5c2c;
}
.form-status.is-error {
  display: block;
  background: #fbeeed;
  border: 1px solid #eccfcc;
  color: #9c211a;
}
.form-status:focus { outline: none; }

/* No-JS fallback messages, revealed by URL fragment after the PHP redirect. */
.form-static { display: none; }
.form-static:target {
  display: block;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #e9f6ec;
  border: 1px solid #b5dfc0;
  color: #1a5c2c;
  font-size: .97rem;
}
.form-static-error:target {
  background: #fbeeed;
  border-color: #eccfcc;
  color: #9c211a;
}
.form-static a { color: inherit; font-weight: 700; }

/* Honeypot: parked far off-screen; not display:none because naive bots skip
   hidden inputs. aria-hidden + tabindex=-1 keep it out of the a11y tree. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding: clamp(52px, 6vw, 74px) 0 0;
  background: var(--navy-900);
  color: rgba(196, 213, 233, .78);
  font-size: .95rem;
}
/* Footer variant for standalone pages that carry only the bottom bar. */
.site-footer-compact { padding-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
  padding-bottom: 46px;
}
/* The logo is navy-on-transparent and the footer is navy, so the mark cannot
   sit directly on the bar. Rather than flattening it to a white silhouette
   (which discards the blue gradient and stops matching the header), it gets
   the same white plate the LinkedIn QR below uses — true brand colours, and
   one consistent plate treatment down the column. */
.footer-brand-plate {
  display: inline-block;
  margin-bottom: 18px;
  padding: 11px;
  background: #ffffff;
  border-radius: 8px;
  transition: box-shadow .18s var(--ease);
}
.footer-brand-plate:hover { box-shadow: 0 0 0 3px rgba(103, 220, 240, .55); }
.footer-brand img {
  width: auto; height: 62px;
}
.footer-brand p { max-width: 42ch; }

/* Footer LinkedIn link — inline SVG glyph, no icon font. */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  min-height: 44px;
  font-weight: 600;
  color: rgba(196, 213, 233, .82);
}
.social-link:hover { color: #fff; text-decoration: none; }
.social-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}
.social-link-inline { margin-top: 0; min-height: 0; }

/* Footer LinkedIn QR — the code must stay dark-on-white to scan reliably.
   Never tint, invert, fade or blend it; the white plate padding preserves the
   quiet zone against the navy footer.
   Desktop only: a phone visitor cannot conveniently scan a QR shown on the
   same device, so below 900px the direct LinkedIn link does the job. */
.footer-qr { margin-top: 16px; }
.footer-qr-plate {
  display: inline-block;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  line-height: 0;
}
.footer-qr img { width: 124px; height: 124px; display: block; border-radius: 6px; }
.footer-qr-label {
  margin-top: 8px;
  font-size: .85rem;
  color: rgba(196, 213, 233, .82);
}
@media (max-width: 900px) {
  .footer-qr { display: none; }
}

.footer-heading {
  margin-bottom: 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-address a { color: rgba(196, 213, 233, .82); }
.footer-col a:hover, .footer-address a:hover { color: #fff; }
.footer-address { font-style: normal; line-height: 1.9; overflow-wrap: anywhere; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 26px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal a { color: rgba(196, 213, 233, .82); }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------------- to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 31, 61, .30);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--blue-600); }
.to-top svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* If main.js never runs, content must still be visible. */
html.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- legal */
/* Prose styling for standalone policy pages (privacy-policy.html). */
.legal { max-width: 820px; }
.legal-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.legal-meta {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  font-size: .95rem;
}
.legal h2 { font-size: 1.32rem; margin: 36px 0 12px; }
.legal p { margin: 0 0 14px; }
.legal ul {
  list-style: disc;
  padding-left: 26px;
  margin: 0 0 14px;
}
.legal ul li { margin-bottom: 7px; }
.legal a { overflow-wrap: anywhere; }
.legal address { font-style: normal; line-height: 1.9; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

/* Short desktop laptops (e.g. 1366×768): compress hero rhythm so the top of
   the white stats band still enters the first viewport. */
@media (min-width: 1280px) and (max-height: 800px) {
  .hero { padding-top: clamp(24px, 3vh, 40px); padding-bottom: clamp(24px, 3vh, 40px); }
  .hero-actions { margin-top: 22px; }
  .hero-trust { margin-top: 22px; padding-top: 18px; }
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gov-layout { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .timeline-step:nth-child(3)::before { display: none; }
}

/* ------------------------------------------- drawer nav (below 1240px)
   Measured: brand + 7 links + divider + CTA need ~1225px of viewport with
   self-hosted Montserrat; below that the header switches to the drawer.
   KEEP IN SYNC with isMobileNav() in main.js. */
@media (max-width: 1240px) {
  /* Trim the header so it doesn't dominate the viewport; the drawer offset
     math keys off --header-h and follows automatically. */
  :root { --header-h: 68px; --header-height: 68px; }
  .brand img { height: 48px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-height: 44px;
    padding: 9px 16px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 650;
    color: var(--navy-800);
    cursor: pointer;
  }
  .nav-toggle-bars {
    position: relative;
    width: 18px; height: 13px;
  }
  .nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 5.5px; }
  .nav-toggle-bars span:nth-child(3) { top: 11px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(340px, 88vw);
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -14px 0 40px rgba(10, 31, 61, .16);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    /* Delayed-visibility pattern: on close, visibility flips after the slide
       finishes; on open (below) it flips instantly, so the drawer is
       focusable the moment it starts opening. */
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    padding: 14px 12px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav-link::after { left: 12px; right: auto; bottom: 8px; width: 24px; }
  .nav-link.is-active::after { transform: scaleX(1); }

  .nav-cta { width: 100%; margin: 22px 0 0; padding-left: 0; }
  .nav-cta::before { display: none; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 95;
    background: rgba(6, 21, 41, .48);
    opacity: 0;
    transition: opacity .3s var(--ease);
  }
  .nav-scrim[hidden] { display: none; }
  .nav-scrim.is-open { opacity: 1; }

  .primary-nav { z-index: 99; }
}

/* ------------------------------------------- tablet layout (below 960px) */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .workforce-layout { grid-template-columns: 1fr; }
  .cta-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------- tablet / small (below 720px) */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(even)::before {
    content: "";
    position: absolute;
    left: 0; top: 12%;
    width: 1px; height: 76%;
    background: var(--line);
  }

  .pillar-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid-4 { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .gov-areas { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Vertical timeline with a continuous rail. */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-step {
    padding: 0 0 30px 56px;
  }
  .timeline-step::before {
    top: 36px; bottom: 0; left: 17px;
    right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--blue-400), rgba(77, 163, 240, .30));
  }
  .timeline-step:last-child { padding-bottom: 0; }
  .timeline-step:last-child::before { display: none; }
  .timeline-step:nth-child(3)::before { display: block; }

  .usecase-band { padding: 24px 22px; }
  .cta-aside .btn, .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
}

/* ------------------------------------------- phone (below 520px) */
@media (max-width: 520px) {
  .shell { padding-inline: 18px; }
  .hero { min-height: auto; }
  .hero-trust { gap: 8px 14px; font-size: .92rem; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { justify-content: flex-start; }
  .brand-statement { flex-direction: column; gap: 10px; }
  .brand-statement span:not(:last-child)::after { display: none; }
  .to-top { right: 14px; bottom: 14px; }
  /* Code area 102px — keeps modules large enough for phone cameras. */
  .card, .pillar, .tech-group, .gov-value { padding: 26px 22px; }
  .contact-card { padding: 26px 22px; }
}

/* ===========================================================================
   REDUCED MOTION — honour the OS setting everywhere.
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .pillar:hover, .logo-cell:hover, .gov-area:hover { transform: none; }
}

/* ===========================================================================
   PRINT
   =========================================================================== */
@media print {
  .site-header, .to-top, .nav-scrim, .hero-media, .hero-veil { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .cta, .section-navy, .site-footer { background: #fff !important; color: #000 !important; }
  .hero-title, .cta-title, .section-navy .section-title, .section-navy h3 { color: #000 !important; }
  .card, .pillar, .tech-group { box-shadow: none; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* The page is already white here, so the logo plate is redundant padding. */
  .footer-brand-plate { padding: 0; border-radius: 0; }
}
