/* ==========================================================================
   UTA — Urban Transportation Associates
   Design system. Anchored on the real brand navy (#18325B) pulled from the
   UTA logo, with a transit-signage amber as the single accent. Typography
   pairs Archivo (industrial grotesque display) with Inter (body) and
   IBM Plex Mono (instrumentation microcopy: eyebrows, labels, indices).
   ========================================================================== */
:root {
  /* --- brand navy scale (--navy-800 IS the logo navy) ------------------- */
  --navy-950: #071426;
  --navy-900: #0b1c33;
  --navy-850: #102544;
  --navy-800: #18325b;
  --navy-700: #22406e;
  --navy-600: #33517f;
  --navy-500: #4a6a99;

  /* --- transit amber: the accent ---------------------------------------- */
  --signal: #f5a623;
  --signal-bright: #ffbe4d;
  --signal-deep: #d68410;
  --signal-ink: #8a5104;          /* amber that passes AA on white */
  --signal-wash: rgba(245, 166, 35, 0.12);

  /* --- neutrals --------------------------------------------------------- */
  --ink: #e9eef8;
  --ink-muted: #a3b3cd;
  --ink-dim: #596885;
  --body-ink: #2b3852;
  --paper: #f4f5f8;
  --paper-warm: #f8f5f0;
  --white: #ffffff;
  --rule: #e2e6ee;
  --rule-warm: #e8e2d8;
  --rule-dark: rgba(255, 255, 255, 0.14);

  /* legacy aliases kept so older rules/markup never break */
  --accent: var(--navy-700);
  --accent-2: var(--signal);
  --accent-ink: #241502;
  --border: var(--rule);
  --border-dark: var(--navy-700);
  --paper-dim: #eceef4;

  /* --- shape & depth ---------------------------------------------------- */
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --shadow-lg: 0 32px 70px -28px rgba(7, 20, 38, 0.45);
  --shadow-md: 0 18px 40px -22px rgba(7, 20, 38, 0.32);
  --shadow-sm: 0 6px 18px -12px rgba(7, 20, 38, 0.35);

  /* --- rhythm ----------------------------------------------------------- */
  --gap: 24px;
  --section-y: 112px;

  /* --- type ------------------------------------------------------------- */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 .5em;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.012em; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 600; }

::selection { background: var(--signal); color: #241502; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--signal); color: #241502; font-weight: 600;
  padding: .75rem 1rem; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}
.narrow { max-width: 760px; }

/* ==========================================================================
   Utility strip + Nav
   ========================================================================== */
.topbar {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 36px;
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-tag { color: var(--signal); }
.topbar-sep { color: rgba(255,255,255,.2); }
.topbar a:hover { color: #fff; }
.topbar-review {
  color: var(--signal) !important; border: 1px solid rgba(245,166,35,.42);
  border-radius: 3px; padding: 3px 9px; font-weight: 600;
}
.topbar-review:hover { background: var(--signal); color: #241502 !important; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 28, 51, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 32px; width: auto; display: block; flex: none; }
.brand-text {
  display: flex; flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .66rem; color: var(--ink-muted);
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  max-width: 130px;
}

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--ink);
  background: none; border: none;
  font-size: .9rem; font-weight: 500;
  padding: 10px 15px; border-radius: 3px;
  display: flex; align-items: center; gap: 7px;
  position: relative;
  transition: color .15s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav-cta {
  background: var(--signal);
  color: #241502 !important;
  font-weight: 600;
  margin-left: 14px;
  border-radius: 3px;
  padding: 11px 20px;
}
.btn-nav-cta::after { display: none; }
.btn-nav-cta:hover { background: var(--signal-bright); }

.nav-group { position: relative; }
.chevron { transition: transform .15s ease; opacity: .6; }
.nav-dropdown-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--navy-850);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--signal);
  border-radius: 0 0 4px 4px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.is-open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 14px; border-radius: 3px; color: #fff;
  border-left: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); border-left-color: var(--signal); }
.nav-dropdown a strong { font-size: .92rem; font-weight: 600; }
.nav-dropdown a span { font-size: .76rem; color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ==========================================================================
   Eyebrows / labels — the mono "instrumentation" voice
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .73rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; flex: none;
}
.eyebrow-dark { color: var(--signal-ink); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 3px;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: #241502; box-shadow: 0 10px 24px -14px rgba(245, 166, 35, .9); }
.btn-primary:hover { background: var(--signal-bright); box-shadow: 0 16px 30px -14px rgba(245, 166, 35, .9); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, .55); }
/* .btn-light is combined with .btn-primary in the CTA bands — must win */
.btn-light { background: #fff; color: var(--navy-900); box-shadow: none; }
.btn-light:hover { background: var(--signal); color: #241502; box-shadow: none; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  color: var(--navy-800); white-space: nowrap;
  padding-bottom: 4px; border-bottom: 2px solid var(--signal);
  transition: gap .15s ease;
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow-light { color: #fff; }

/* ==========================================================================
   Hero — full-bleed photographic
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Dark enough on the left for headline contrast, then falls away quickly so
     the transit-network artwork stays visible across the right of the hero.
     (Raising these values past ~.9 on the right makes the network vanish.) */
  background:
    linear-gradient(100deg,
      rgba(7, 20, 38, .93) 0%,
      rgba(7, 20, 38, .86) 30%,
      rgba(11, 28, 51, .55) 52%,
      rgba(11, 28, 51, .22) 74%,
      rgba(11, 28, 51, .10) 100%),
    linear-gradient(0deg, rgba(7, 20, 38, .80) 0%, rgba(7, 20, 38, 0) 42%);
}
/* .hero-inner IS the .container, so constrain the copy on the children --
   setting max-width on the container itself would re-center the whole block. */
.hero-inner { position: relative; padding: 132px 0 40px; }
.hero-inner > * { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-lede {
  font-size: 1.16rem; color: rgba(233, 238, 248, .82); max-width: 590px; margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* stat rail docked into the bottom of the hero */
.hero-rail {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(7, 20, 38, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-top: 76px;
}
.hero-rail .stats-grid { text-align: left; gap: 0; }

/* page heroes (inner pages) */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(24, 50, 91, .95), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  padding: 104px 0 88px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal) 14%, transparent 14%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 15ch; }
.page-hero .hero-lede { max-width: 660px; margin-bottom: 0; font-size: 1.08rem; }
/* transit-schematic artwork behind inner-page heroes (same visual language
   as the home hero map). A scrim keeps the left-side copy readable. */
.page-hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; }
.page-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(97deg,
      rgba(7, 20, 38, .96) 0%,
      rgba(7, 20, 38, .9) 34%,
      rgba(11, 28, 51, .6) 60%,
      rgba(11, 28, 51, .24) 100%),
    linear-gradient(0deg, rgba(7, 20, 38, .55) 0%, rgba(7, 20, 38, 0) 40%);
}
.page-hero .container { position: relative; z-index: 1; }
/* oversized ghost numeral behind a page hero (used by the archived
   Hardware hero in the section library) */
.page-hero-ghost {
  position: absolute; right: 4%; top: 50%; transform: translateY(-52%);
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(180px, 30vw, 380px); color: rgba(255, 255, 255, .05);
  letter-spacing: -.04em; pointer-events: none; user-select: none;
}

/* ==========================================================================
   Stats — instrument panel, hairline divided
   ========================================================================== */
.stats-bar { background: var(--navy-950); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  text-align: left;
}
.stats-grid-inline { padding: 0; }
.stat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 30px 26px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--signal);
  background: none; -webkit-background-clip: initial; background-clip: initial;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); line-height: 1.45;
}
/* light-background variant (About page) */
.stat-dark { border-left-color: var(--rule); }
.stat-dark .stat-value { color: var(--navy-800); background: none; -webkit-background-clip: initial; background-clip: initial; }
.stat-dark .stat-label { color: var(--ink-dim); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section-tight { padding: 76px 0; }
.section-alt { background: var(--paper-warm); }
.section-cool { background: var(--paper); }
.section-dark { background: var(--navy-900); color: var(--ink); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--signal); }
.section-dark .section-lede, .section-dark p { color: var(--ink-muted); }

.section-lede { color: var(--ink-dim); font-size: 1.06rem; }
.body-copy { color: var(--body-ink); font-size: 1.08rem; line-height: 1.75; }

.split-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 46px; flex-wrap: wrap;
  padding-bottom: 26px; border-bottom: 1px solid var(--rule);
}
.section-dark .split-head { border-bottom-color: var(--rule-dark); }
.split-head h2 { margin-bottom: 12px; }
.split-head > div { max-width: 620px; }

/* section index marker: 01 / 04 */
.section-index {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  color: var(--signal-ink); margin-bottom: 14px;
}
.section-dark .section-index { color: var(--signal); }

/* ==========================================================================
   Spec list — hairline rows, replaces generic icon-card grids
   ========================================================================== */
.spec-list { border-top: 1px solid var(--rule); }
.section-dark .spec-list { border-top-color: var(--rule-dark); }
.spec-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  transition: background .16s ease;
}
.section-dark .spec-row { border-bottom-color: var(--rule-dark); }
.spec-row:hover { background: rgba(24, 50, 91, .025); }
.section-dark .spec-row:hover { background: rgba(255, 255, 255, .03); }
.spec-num {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  color: var(--signal-ink); padding-top: 3px; letter-spacing: .04em;
}
.section-dark .spec-num { color: var(--signal); }
.spec-body h3 { margin-bottom: 7px; }
.spec-body p { margin: 0; color: var(--ink-dim); font-size: .96rem; max-width: 66ch; }
.section-dark .spec-body p { color: var(--ink-muted); }
.spec-tag {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--signal-ink); display: block; margin-bottom: 8px;
}
.section-dark .spec-tag { color: var(--signal); }

/* two-column spec list for dense checklists */
.spec-list-2col { columns: 2; column-gap: 56px; border-top: 1px solid var(--rule); }
.spec-list-2col .spec-row { break-inside: avoid; grid-template-columns: 26px 1fr; gap: 16px; padding: 18px 0; }
.spec-list-2col .spec-row:hover { background: none; }

/* ==========================================================================
   Benefits — checked hairline rows
   ========================================================================== */
.benefit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 56px;
  border-top: 1px solid var(--rule);
}
.section-dark .benefit-grid { border-top-color: var(--rule-dark); }
.benefit-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  background: none; border-radius: 0;
}
.section-dark .benefit-card { border-bottom-color: var(--rule-dark); }
.benefit-card p { margin: 0; font-weight: 500; color: var(--navy-900); font-size: .99rem; }
.section-dark .benefit-card p { color: #fff; }
.benefit-icon {
  flex: none; width: 24px; height: 24px; border-radius: 2px;
  background: var(--signal-wash); border: 1px solid rgba(245, 166, 35, .45);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.benefit-icon .icon { width: 13px; height: 13px; color: var(--signal-deep); stroke-width: 2.4; }
.section-dark .benefit-icon .icon { color: var(--signal); }

/* ==========================================================================
   Feature split — big asymmetric image + text blocks
   ========================================================================== */
.feature-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.feature-split-reverse .feature-split-media { order: 2; }
.feature-split-media { position: relative; }
.feature-split-media img {
  width: 100%; height: 100%; max-height: 520px; object-fit: cover;
  border-radius: var(--radius-lg);
}
.feature-split-copy h2 { margin-bottom: 18px; }
.feature-split-copy .section-lede { margin-bottom: 30px; }

/* corner caption plate on photography */
.caption-plate {
  position: absolute; left: 0; bottom: 0;
  background: var(--navy-950); color: var(--ink-muted);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase;
  padding: 11px 18px; border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  border-top: 2px solid var(--signal);
  max-width: 78%;
}
.caption-plate strong { color: #fff; font-weight: 600; }

/* ==========================================================================
   Photo band — full-bleed photographic break between sections
   ========================================================================== */
.photo-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-950); color: #fff;
  min-height: 460px; display: flex; align-items: flex-end;
}
.photo-band img.photo-band-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(75deg, rgba(7, 20, 38, .94) 8%, rgba(11, 28, 51, .72) 45%, rgba(11, 28, 51, .2) 100%),
              linear-gradient(0deg, rgba(7, 20, 38, .8), transparent 55%);
}
/* same pattern as .hero-inner: the container keeps its own width, the copy is capped */
.photo-band-inner { padding: 88px 0 56px; }
.photo-band-inner > * { max-width: 620px; }
.photo-band-inner h2 { color: #fff; margin-bottom: 16px; }
.photo-band-inner p { color: rgba(233, 238, 248, .82); margin-bottom: 0; }
.photo-band-credit {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(163, 179, 205, .8);
  border-left: 2px solid var(--signal); padding-left: 12px; margin-top: 28px;
}

/* ==========================================================================
   Diagram + product frames
   ========================================================================== */
.diagram-frame {
  border: 1px solid var(--rule-dark); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 50, 91, .32), rgba(7, 20, 38, .5));
  padding: 10px;
}
.diagram-image {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  background: transparent; padding: 0; box-sizing: border-box;
}
.diagram-legend {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.diagram-legend span { display: inline-flex; align-items: center; gap: 9px; }
.diagram-legend span::before {
  content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--signal);
}
/* light-background variant (architecture diagram inside a light section) */
.diagram-frame-light {
  border-color: var(--rule);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.diagram-legend-light { color: var(--ink-dim); }
.diagram-legend-light span::before { background: var(--signal-deep); }

/* app-window frame for real product screenshots */
.frame {
  border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-md);
}
.section-dark .frame, .frame-dark { border-color: var(--rule-dark); box-shadow: var(--shadow-lg); }
.frame-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--navy-900); border-bottom: 1px solid var(--rule-dark);
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.frame-title {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-muted);
}
.frame img { width: 100%; height: auto; display: block; }
.frame-caption {
  padding: 16px 18px; border-top: 1px solid var(--rule);
  font-size: .88rem; color: var(--ink-dim); margin: 0;
}
.section-dark .frame-caption { border-top-color: var(--rule-dark); color: var(--ink-muted); background: var(--navy-850); }

.screens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.screens-grid .frame-feature { grid-column: 1 / -1; }

/* Product plates — real hardware photography on a light "spec sheet" tile */
.hardware-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  margin: 0; background: var(--rule); border: 1px solid var(--rule);
}
.hardware-photo-card {
  margin: 0; background: #fff;
  border: 0; border-radius: 0;
  overflow: hidden; text-align: left;
  display: flex; flex-direction: column;
  transition: background .18s ease;
}
.hardware-photo-card:hover { background: var(--paper-warm); }
.hardware-photo-card img {
  display: block; width: 100%; height: 220px; object-fit: contain; padding: 34px 34px 16px;
  box-sizing: border-box; background: transparent; mix-blend-mode: multiply;
}
.hardware-photo-card figcaption {
  margin-top: auto; padding: 20px 26px 26px; border-top: 1px solid var(--rule);
}
.hardware-photo-card .hw-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy-900); }
.hardware-photo-card .hw-meta {
  display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--signal-ink); margin-top: 7px;
}

/* hero product plate (single large product shot) */
.product-plate {
  background: linear-gradient(160deg, var(--paper-warm), #fff 65%);
  border: 1px solid var(--rule-warm); border-radius: var(--radius-lg);
  padding: 44px; display: flex; align-items: center; justify-content: center;
  min-height: 340px; position: relative; overflow: hidden;
}
.product-plate img { max-height: 300px; width: auto; mix-blend-mode: multiply; }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 3px; margin-bottom: 18px;
  background: var(--signal-wash);
  border: 1px solid rgba(245, 166, 35, .3);
  color: var(--signal-deep);
}
.feature-icon .icon { width: 20px; height: 20px; }
.section-dark .feature-icon { color: var(--signal); }

/* ==========================================================================
   Tags / pills
   ========================================================================== */
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: transparent; border: 1px solid var(--rule); color: var(--navy-800);
  padding: 9px 16px; border-radius: 3px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .03em;
}
.section-dark .pill { border-color: var(--rule-dark); color: var(--ink); }

/* ==========================================================================
   Software feature groups
   ========================================================================== */
.software-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule); }
.software-card {
  background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  border-left: 0; padding: 24px 0;
}
.software-card h3 { font-size: 1rem; margin-bottom: 8px; padding-left: 16px; border-left: 2px solid var(--signal); }
.software-card p { color: var(--ink-dim); font-size: .92rem; margin: 0; padding-left: 16px; }
.section-alt .software-grid, .section-alt .software-card { border-color: var(--rule-warm); }

/* group header with mono index */
.group-head {
  display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px;
  padding-bottom: 18px; border-bottom: 2px solid var(--navy-900);
}
.group-head .group-index { font-family: var(--font-mono); font-size: .8rem; color: var(--signal-ink); letter-spacing: .1em; }
.group-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }

/* ==========================================================================
   Numbered option rows
   ========================================================================== */
.options-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.option-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--rule); border-top: 0;
  align-items: start;
}
.option-row:last-child { border-bottom: 1px solid var(--rule); }
.option-index {
  display: inline-block;
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500;
  color: var(--navy-800); letter-spacing: -.02em;
  border-top: 3px solid var(--signal); padding-top: 12px;
}
.option-row h3 { margin-bottom: 8px; font-size: 1.24rem; }
.option-row p { color: var(--ink-dim); margin: 0; max-width: 68ch; }

/* ==========================================================================
   Info cards / two-col
   ========================================================================== */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.info-card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  border-top: 3px solid var(--navy-800);
  padding: 32px;
}
.info-card h3 { font-size: 1.08rem; }
.info-card p { color: var(--ink-dim); margin: 0; font-size: .95rem; }
.info-card a { color: var(--navy-800); font-weight: 600; border-bottom: 2px solid var(--signal); }
.info-card a:hover { color: var(--signal-ink); }
.section-dark .info-card { background: var(--navy-850); border-color: var(--rule-dark); border-top-color: var(--signal); }
.section-dark .info-card p { color: var(--ink-muted); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-card:hover { background: var(--paper-warm); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.team-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 3px; margin-bottom: 16px; background: var(--paper);
}
.team-photo-empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px dashed rgba(255,255,255,.18);
}
.team-photo-empty span {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: rgba(255,255,255,.5); line-height: 1;
}
.team-title {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink);
  margin: 0 0 12px;
}
.team-bio { font-size: .875rem; line-height: 1.6; color: var(--ink-dim); margin: 0; }
.team-card h3 { font-size: 1rem; margin-bottom: 6px; }
/* ==========================================================================
   Timeline (About)
   ========================================================================== */
.timeline { border-left: 2px solid var(--rule); padding-left: 0; margin: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 34px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 7px;
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--signal); border: 2px solid #fff;
}
.timeline .tl-year {
  display: block; font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .12em; color: var(--signal-ink); margin-bottom: 6px;
}
.timeline .tl-body { color: var(--ink-dim); font-size: .96rem; margin: 0; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* ==========================================================================
   Mode rail (bus / rail / paratransit / bike / pedestrian)
   ========================================================================== */
.mode-badges {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--rule); background: var(--rule);
}
.mode-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: #fff; padding: 30px 26px;
  transition: background .16s ease;
}
.mode-badge:hover { background: var(--paper-warm); }
.mode-badge svg {
  width: 46px; height: 46px; padding: 10px; border-radius: 3px; box-sizing: border-box;
  box-shadow: none;
}
.mode-badge-label {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-900);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background:
    linear-gradient(100deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff; padding: 76px 0;
  position: relative;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal) 20%, transparent 20%);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 2.05rem); max-width: 20ch; }
.cta-inner p { color: rgba(233, 238, 248, .78); margin: 0; max-width: 56ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.contact-info .info-card {
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 26px 0; background: none;
}
.contact-info .info-card h3 { font-size: .98rem; margin-bottom: 6px; }
.contact-info a { color: var(--navy-800); font-weight: 600; }
.contact-form {
  background: var(--paper-warm); border: 1px solid var(--rule-warm); border-radius: var(--radius);
  border-top: 3px solid var(--signal);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label {
  display: block; font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 8px;
}
.form-input, .contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; padding: 14px 15px; border-radius: 3px; border: 1px solid var(--rule);
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--navy-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(245, 166, 35, .22); }
.form-alert { padding: 15px 17px; border-radius: 3px; margin-bottom: 20px; font-size: .9rem; }
.form-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
ul.errorlist { color: #b91c1c; font-size: .78rem; margin: 6px 0 0; padding-left: 18px; list-style: none; font-family: var(--font-mono); }

/* ==========================================================================
   Experience / client directory
   ========================================================================== */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.filter-chip {
  background: transparent; border: 1px solid var(--rule); color: var(--navy-800);
  padding: 9px 16px; border-radius: 3px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { border-color: var(--navy-600); }
.filter-chip.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.filter-search {
  margin-left: auto; padding: 10px 16px; border-radius: 3px; border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: .78rem; min-width: 240px; background: #fff;
}
.filter-search:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(245, 166, 35, .2); }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.client-card {
  background: #fff; border: 0; border-radius: 0;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
  transition: background .15s ease;
}
.client-card:hover { background: var(--paper-warm); }
.client-name { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.client-location { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); letter-spacing: .02em; }
.client-note {
  font-family: var(--font-mono); font-size: .64rem; color: var(--signal-ink);
  font-weight: 500; text-transform: uppercase; letter-spacing: .09em; margin-top: 5px;
}
.filter-empty { text-align: center; color: var(--ink-dim); padding: 40px 0; display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: var(--ink-muted); padding: 80px 0 28px; border-top: 3px solid var(--signal); }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px;
}
.footer-brand .brand-logo { height: 38px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-muted); font-size: .88rem; max-width: 300px; margin-top: 14px; }
.footer-tagline {
  color: var(--signal); font-family: var(--font-mono); font-weight: 500; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .11em; margin-top: 4px !important; line-height: 1.6;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  color: #fff; font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px;
}
.footer-col a { font-size: .88rem; color: var(--ink-muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--signal); }
.footer-address { font-size: .86rem; color: var(--ink-muted); line-height: 1.6; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split-reverse .feature-split-media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .mode-badges { grid-template-columns: repeat(3, 1fr); }
  .screens-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  :root { --section-y: 88px; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--navy-950); flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    overflow-y: auto;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { width: 100%; justify-content: space-between; }
  .nav-link::after { display: none; }
  .btn-nav-cta { margin-left: 0; margin-top: 10px; justify-content: center; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; display: none; margin-top: 4px; width: 100%; border-top-width: 1px;
  }
  .nav-group.is-open .nav-dropdown { display: block; }
  .form-row-split { grid-template-columns: 1fr; }
  .spec-list-2col { columns: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 22px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .hero-inner { padding: 92px 0 32px; }
  .hero-rail { margin-top: 48px; }
  :root { --section-y: 64px; }
  .section-tight { padding: 52px 0; }
  .page-hero { padding: 72px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-search { margin-left: 0; width: 100%; }
  .mode-badges { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { gap: 0; }
  .option-row, .spec-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-form { padding: 26px; }
  .photo-band-inner { padding: 64px 0 40px; }
}

/* ==========================================================================
   Generation 2 layer — motion, depth & data-viz flourishes
   (scroll-reveal, tech ticker, failure-mode fault cards, processing pipeline,
   sensor comparison table). All CSS-only or driven by the small inline
   IntersectionObserver script in the page shell.
   ========================================================================== */

/* --- scroll reveal (elements get .reveal + .in-view from inline JS) ------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--rv, 0ms);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* --- blueprint grid texture for dark sections ----------------------------- */
.blueprint {
  background-image:
    radial-gradient(700px 340px at 12% 0%, rgba(245, 166, 35, .07), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

/* --- hero display: amber underline sweep on the emphasised phrase --------- */
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; bottom: .015em;
  height: .07em; width: 100%; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  animation: em-sweep .9s cubic-bezier(.22, .61, .36, 1) .45s forwards;
}
@keyframes em-sweep { to { transform: scaleX(1); } }

/* --- tech ticker: the "modern stack" marquee ------------------------------ */
.tech-ticker {
  overflow: hidden; position: relative;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 0;
}
.tech-ticker::before, .tech-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.tech-ticker::before { left: 0; background: linear-gradient(90deg, var(--navy-950), transparent); }
.tech-ticker::after { right: 0; background: linear-gradient(270deg, var(--navy-950), transparent); }
.tech-ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 46s linear infinite;
}
.tech-ticker:hover .tech-ticker-track { animation-play-state: paused; }
.tech-ticker-track span {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 26px 0 14px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted);
}
.tech-ticker-track span::before {
  content: ""; width: 6px; height: 6px; border-radius: 1px;
  background: var(--signal); flex: none; opacity: .85;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* --- live indicator dot --------------------------------------------------- */
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 999px;
  background: var(--signal); position: relative; flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 999px;
  border: 1px solid var(--signal);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(.55); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- diagnostics / remediation: failure-mode fault cards ------------------ */
.fault-grid-3x2 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .fault-grid-3x2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 600px) { .fault-grid-3x2 { grid-template-columns: 1fr !important; } }
.fault-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.fault-card {
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.fault-code {
  display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 14px;
}
.fault-card h3 { color: #fff; font-size: 1.06rem; margin-bottom: 8px; }
.fault-card p { color: var(--ink-muted); font-size: .93rem; margin: 0; }

/* light-background variant */
.fault-card-light {
  background: #fff; border-color: var(--rule);
  border-left-color: var(--signal);
}
.fault-card-light h3 { color: var(--navy-900); }
.fault-card-light p { color: var(--ink-dim); }
.fault-card-light .fault-code { color: var(--signal-ink); }

/* --- overnight processing pipeline ---------------------------------------- */
.pipeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  counter-reset: pipe;
}
.pipeline-step {
  position: relative;
  background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--signal);
  border-radius: var(--radius-sm);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.pipeline-step::after {
  content: "\2192"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--signal-deep); font-size: .95rem; z-index: 1;
}
.pipeline-step:last-child::after { display: none; }
.pipeline-num {
  display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; color: var(--signal-ink); margin-bottom: 10px;
}
.pipeline-step h3 { font-size: .95rem; margin-bottom: 6px; }
.pipeline-step p { font-size: .82rem; color: var(--ink-dim); margin: 0; line-height: 1.5; }
.section-dark .pipeline-step { background: var(--navy-850); border-color: var(--rule-dark); border-top-color: var(--signal); }
.section-dark .pipeline-step h3 { color: #fff; }
.section-dark .pipeline-step p { color: var(--ink-muted); }

/* --- sensor technology comparison table ----------------------------------- */
.table-scroll { overflow-x: auto; }
.sensor-compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .93rem; }
.sensor-compare thead th {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-dim);
  text-align: left; padding: 0 18px 12px 0;
  border-bottom: 2px solid var(--navy-900);
}
.sensor-compare tbody td {
  padding: 20px 18px 20px 0; border-bottom: 1px solid var(--rule);
  vertical-align: top; color: var(--ink-dim); line-height: 1.55;
}
.sensor-compare tbody td:first-child { color: var(--navy-900); font-weight: 600; min-width: 190px; }
.sensor-compare .sc-tag {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink);
  border: 1px solid rgba(245, 166, 35, .5); background: var(--signal-wash);
  border-radius: 2px; padding: 4px 8px;
}

/* --- inline mini-stat row (used inside sections, lighter than stats-bar) -- */
.ministat-row {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--rule); background: #fff; margin-top: 38px;
}
.ministat {
  flex: 1 1 180px; padding: 22px 26px; border-left: 1px solid var(--rule);
}
.ministat:first-child { border-left: 0; }
.ministat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.7rem; letter-spacing: -.02em; color: var(--navy-800); line-height: 1.1;
}
.ministat span {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim);
}
.section-dark .ministat-row { background: var(--navy-850); border-color: var(--rule-dark); }
.section-dark .ministat { border-left-color: var(--rule-dark); }
.section-dark .ministat b { color: var(--signal); }
.section-dark .ministat span { color: var(--ink-muted); }

/* --- deployment flow: sticky merge-path scroll diagram --------------------
   The Integrated/StandAlone journey sticks while the stage panels scroll
   past it. Both lanes start separated from the shared Stage 1 (UTA APC)
   block in the CENTER, run down their own rails, and MERGE into one line at
   the UTA Processing Server. Inline JS writes --flow-p1 (lane segment,
   0..1) and --flow-p2 (merged segment, 0..1) from the live scroll position
   on every frame, so the drawing follows the scrollbar in BOTH directions —
   scrolling back up rewinds it. Defaults are the COMPLETED diagram
   (readable with no JS); JS adds .flow-live and dims the un-reached stages
   until the pulses arrive. prefers-reduced-motion gets .flow-done: finished
   state, no motion. */

/* ==========================================================================
   Deployment flow (full width, three columns)
   Integrated lane | Stage column | StandAlone lane. Everything is laid out on
   a CSS grid, so a stage marker and the lane cards beside it are in the SAME
   grid row and line up by construction. Text is real HTML at normal sizes —
   nothing is shrunk into an SVG viewBox.
   Rails fill via --fx-p (0..1), written per row by inline JS from live scroll
   position. Defaults are the FINISHED state so it reads with no JS.
   ========================================================================== */
.section-flowx {
  background: var(--navy-950);
  padding: var(--section-y) 0;
  background-image:
    radial-gradient(900px 460px at 50% 0%, rgba(245,166,35,.05), transparent 70%),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}
.flowx-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 40px; }
.flowx-head { max-width: 780px; margin-bottom: 56px; }
.flowx-head h2 { color: #fff; }
.flowx-head .section-lede { color: var(--ink-muted); }

/* the 3-column spine: lane | stage | lane */
.fx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 36%) minmax(0, 1fr);
  gap: 0 56px;
  align-items: stretch;
}
.fx-l, .fx-c, .fx-r { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fx-full { grid-column: 1 / -1; }

/* lane headers */
.fx-heads { margin-bottom: 18px; }
.fx-heads .fx-l { align-items: flex-end; }
.fx-heads .fx-r { align-items: flex-start; }
.fx-lane-tag {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 3px; border: 1px solid;
}
.fx-tag-int { color: var(--signal); border-color: rgba(245,166,35,.5); background: rgba(245,166,35,.08); }
.fx-tag-std { color: #9fbce4; border-color: rgba(159,188,228,.45); background: rgba(159,188,228,.08); }

/* a stage row */
.fx-row { padding: 34px 0; position: relative; z-index: 1; }
.fx-row + .fx-row { margin-top: 6px; }
.fx-row-wide { padding: 44px 0 48px; }
.fx-row-wide .fx-c { grid-column: 1 / -1; max-width: 720px; margin: 0 auto; }

/* the two system boxes and the cards inside them */
.fx-sys {
  position: relative; border-radius: 8px; padding: 46px 26px;
  display: flex; flex-direction: column; gap: 96px; justify-content: center;
}
.fx-sys-int { background: rgba(245,166,35,.05); border: 1px solid rgba(245,166,35,.32);
              padding-right: 58px; }   /* channel the data line runs down */
.fx-sys-std { background: rgba(159,188,228,.05); border: 1px solid rgba(159,188,228,.3);
              padding-left: 58px; }    /* channel the data line runs down */
.fx-sys-label {
  position: absolute; top: 16px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.fx-sys-int .fx-sys-label { left: 24px; color: var(--signal); }
.fx-sys-std .fx-sys-label { right: 24px; color: #9fbce4; }

.fx-card {
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.14);
  border-radius: 0; padding: 20px 22px;
}
.fx-sys-int .fx-card { border-left: 4px solid var(--signal); }
.fx-sys-std .fx-card { border-left: 4px solid #9fbce4; }
.fx-card-stage {
  display: block; font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px;
}
.fx-sys-int .fx-card-stage { color: var(--signal); }
.fx-sys-std .fx-card-stage { color: #9fbce4; }
.fx-card h4 { color: #fff; font-size: 1.06rem; margin: 0 0 8px; }
.fx-card p { color: var(--ink-muted); font-size: .89rem; line-height: 1.55; margin: 0; }

/* stage cards (centre column, and full width once merged) */
.fx-stage {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,.16); border-top: 2px solid var(--signal);
  border-radius: var(--radius); background: var(--navy-900);
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.8);
}
.fx-stage-bg { position: absolute; inset: 0; z-index: -2; }
.fx-stage-bg img { width: 100%; height: 100%; object-fit: cover; }
.fx-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,20,38,.90), rgba(7,20,38,.95));
}
.fx-stage-body { padding: 38px 40px 40px; }
.fx-num {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--signal); margin: 0 0 8px;
}
.fx-stage h3 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.fx-lede { color: var(--ink-muted); font-size: .98rem; margin-bottom: 20px; }

/* the three product plates in stage 1 */
.fx-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.fx-parts figure { margin: 0; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.fx-parts img { width: 100%; height: 104px; object-fit: contain; padding: 12px; background: rgba(255,255,255,.03); }
.fx-parts figcaption {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .05em;
  text-align: center; color: #cdd8ec; padding: 8px 4px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.fx-specs { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.fx-specs li {
  color: #cdd8ec; font-size: .9rem; line-height: 1.5; padding-left: 20px; position: relative;
}
.fx-specs li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 2px; background: var(--signal);
}
.fx-specs-3col { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 26px; }

.fx-detail {
  border-left: 2px solid var(--signal); background: rgba(245,166,35,.08);
  padding: 12px 16px; margin: 0; font-size: .86rem; color: #d6deee; line-height: 1.55;
  border-radius: 0 3px 3px 0;
}
.fx-detail b {
  display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 5px;
}

/* lane node cards */
.fx-node {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  background: rgba(255,255,255,.03); padding: 22px 24px;
}
.fx-node h4 { color: #fff; font-size: 1.05rem; margin: 6px 0 8px; }
.fx-node p { color: var(--ink-muted); font-size: .89rem; margin: 0; line-height: 1.55; }
.fx-node-tag {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.fx-node-int { border-left: 3px solid var(--signal); }
.fx-node-int .fx-node-tag { color: var(--signal); }
.fx-node-std { border-left: 3px solid #9fbce4; }
.fx-node-std .fx-node-tag { color: #9fbce4; }
.fx-node-skip { border-left: 3px dashed rgba(255,255,255,.25); opacity: .72; }
.fx-node-skip .fx-node-tag { color: var(--ink-dim); }

/* centre stage marker (used for the lighter stages) */
.fx-marker {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  background: var(--navy-900); padding: 22px 24px;
}
.fx-marker .fx-num { margin-bottom: 4px; }
.fx-marker-name { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.fx-marker-note { color: var(--ink-muted); font-size: .86rem; margin: 8px 0 0; }
.fx-marker-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,20,38,.88), rgba(7,20,38,.94));
}

/* stage-1 connectors out to each lane */
.fx-connect { align-items: center; justify-content: center; position: relative; }
.fx-conn-label {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim);
  padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.14);
}
.fx-connect-l .fx-conn-label { border-color: rgba(245,166,35,.45); }
.fx-connect-r .fx-conn-label { border-color: rgba(159,188,228,.4); }

/* the merge row */
.fx-merge { height: 96px; position: relative; }
.fx-merge .fx-l, .fx-merge .fx-c, .fx-merge .fx-r { justify-content: center; }
.fx-merge-line { display: block; height: 3px; border-radius: 2px; }
.fx-merge-l { background: linear-gradient(90deg, transparent, var(--signal)); margin-left: auto; width: 70%; }
.fx-merge-r { background: linear-gradient(270deg, transparent, #9fbce4); width: 70%; }
.fx-merge-dot {
  display: block; width: 14px; height: 14px; margin: 0 auto; border-radius: 50%;
  background: var(--navy-950); border: 3px solid var(--signal);
  box-shadow: 0 0 0 6px rgba(245,166,35,.16);
}

/* live state: dim what the scroll hasn't reached yet */
.fx-live .fx-row .fx-stage,
.fx-live .fx-row .fx-node,
.fx-live .fx-row .fx-marker {
  opacity: .34; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.fx-live .fx-row.is-lit .fx-stage,
.fx-live .fx-row.is-lit .fx-node,
.fx-live .fx-row.is-lit .fx-marker { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .flowx-wrap { padding: 0 24px; }
  .fx-grid { grid-template-columns: 1fr; gap: 16px; }
  .fx-row::before, .fx-row::after { display: none; }
  .fx-heads { display: none; }
  .fx-connect { display: none; }
  .fx-merge { height: 40px; }
  .fx-merge-line { display: none; }
  .fx-parts img { height: 76px; }
}

/* --- generation-2 responsive ---------------------------------------------- */
@media (max-width: 1020px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline-step::after { display: none; }
}
@media (max-width: 620px) {
  .pipeline { grid-template-columns: 1fr; }
  .fault-grid { gap: 14px; }
  .hero h1 em { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .tech-ticker-track { animation: none; }
  .live-dot::after { animation: none; opacity: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Section Library - the divider strip above each archived section
   ------------------------------------------------------------- */
.lib-head { background: var(--navy-950); border-top: 1px solid rgba(245,166,35,.4); }
.lib-head-inner {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 12px 0;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.lib-head-inner b { color: var(--signal); font-weight: 600; }
.lib-head-inner span { color: var(--ink-muted); letter-spacing: .06em; text-transform: none; font-size: .78rem; }
/* ==========================================================================
   Deployment flow - the full diagram
   --------------------------------------------------------------------------
   Built to the client's second drawing. What that drawing specifies:

     - a title line above Stage 1
     - "Integrated System" / "StandAlone System" are their own LABEL BOXES at
       the top, flanking Stage 1 - not captions inside the system boxes
     - each connector line starts at the BOTTOM of its label box, runs down,
       bends inward, and runs down the gutter between the two system boxes
     - below the system boxes the two lines converge in a V onto Stage 3
     - one line leaves Stage 3, jogs across, and feeds Web Reporting
     - Web Reporting and End User are SEPARATE boxes side by side, joined by a
       short horizontal connector
     - generous vertical gaps, so it reads as a flow rather than a stack
       (the drawing is 864 x 1536, height/width 1.78)

   The path is measured off the real boxes by inline JS - never hardcoded
   percentages, which is what kept drifting out of alignment.
   ========================================================================== */
.fw-diagram { position: relative; }

.fw-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 5; pointer-events: none; overflow: visible;
}
/* the cards always sit above the lines, so nothing is drawn over text */
.fw-title, .fw-top, .fw-cols, .fw-s3, .fw-end { position: relative; z-index: 1; }

.fw-title {
  text-align: center; margin: 0 0 30px;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--signal);
}

/* --- top row: label | Stage 1 | label ---------------------------------- */
.fw-top {
  display: grid; grid-template-columns: 1fr 2.8fr 1fr;
  gap: 26px; align-items: start;   /* everything lines up along the TOP */
}
/* the two system headers, flanking Stage 1. Each one sits directly above the
   lane it names - the data line turns down beneath it. */
.fw-tag {
  justify-self: center; text-align: center;
  padding: 14px 20px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--navy-900);
}
.fw-tag-int { border: 1px solid rgba(245,166,35,.5); color: var(--signal); }
.fw-tag-std { border: 1px solid rgba(159,188,228,.5); color: #9fbce4; }
.fw-s1 { min-width: 0; }   /* grid cell for Stage 1 */


/* --- the gaps the lines travel through --------------------------------- */
.fw-gap  { height: 430px; }   /* label boxes -> system boxes (the bend)     */
.fw-gap2 { height: 300px; }   /* system boxes -> Stage 3 (the converging V) */
.fw-gap3 { height: 210px; }   /* Stage 3 -> Web Reporting (the jog)         */

/* --- the two system boxes ---------------------------------------------- */
.fw-cols { display: grid; grid-template-columns: 1fr 10% 1fr; align-items: start; }
.fw-gutter { min-height: 1px; }

/* --- Stage 3, narrower and centred like the drawing --------------------- */
.fw-s3 { max-width: 66%; min-width: 460px; margin: 0 auto; }

/* --- Web Reporting + End User, side by side ----------------------------- */
.fw-end { display: grid; grid-template-columns: 1fr 1fr; gap: 0 11%; align-items: stretch; }
.fw-endbox { min-width: 0; display: flex; }
/* equal height, so the crossing line leaves one box and enters the other
   at exactly the same point - the middle of both side walls */
.fw-endbox > .fx-stage { flex: 1; }

/* --- the connector itself ----------------------------------------------- */
/* the solid line that is always there, top to bottom */
/* dark casing under every line - the connector passes OVER the cards, and a
   casing is how transit maps keep a line legible where it crosses something */
.fw-case {
  fill: none; stroke: var(--navy-950); stroke-width: 15; opacity: .93;
  stroke-linecap: round; stroke-linejoin: round;
}
.fw-track {
  fill: none; stroke: rgba(255,255,255,.20); stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round;
}
/* the coloured line - stroke-dashoffset is written by JS from scroll
   position, derived fresh each frame so scrolling back up rewinds it */
.fw-live {
  fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset .12s linear;
}
.fw-live.fw-l { stroke: var(--signal); }
.fw-live.fw-r { stroke: #9fbce4; }
.fw-live.fw-t { stroke: var(--signal); }   /* the merged trunk */

/* transit-map "time points" sitting on the line */
.fw-tp { fill: var(--navy-950); stroke-width: 3; }

/* the travelling data pulses - these never stop */
.fw-dot { filter: drop-shadow(0 0 7px rgba(245,166,35,.6)); }

/* the point where the two lanes merge, on Stage 3's top edge */
.fw-merge { fill: var(--navy-950); stroke: var(--signal); stroke-width: 4; }

@media (max-width: 1000px) {
  .fw-top { grid-template-columns: 1fr; gap: 16px; }
  .fw-cols { grid-template-columns: 1fr; gap: 18px; }
  .fw-end { grid-template-columns: 1fr; gap: 18px; }
  .fw-s3 { max-width: 100%; min-width: 0; }
  .fw-gap { height: 34px; }
  .fw-gap2 { height: 34px; }
  .fw-gap3 { height: 34px; }
  .fw-svg { display: none; }   /* one column - the lines would be meaningless */
}
@media (prefers-reduced-motion: reduce) {
  .fw-live { transition: none; }
}

/* Stage 1 laid out WIDE rather than tall - a tall narrow card looked wrong
   above two wide system boxes. Title + lede on the left, the spec list
   beside it, the three product shots across the full width, detail below. */
.fx-origin-body {
  display: grid; grid-template-columns: 1.05fr .8fr 1.15fr;
  gap: 18px 30px; align-items: start;
}
.fx-origin-body .fx-origin-lead { min-width: 0; grid-column: 1; }
.fx-origin-body .fx-specs { margin: 0; padding-top: 30px; grid-column: 2; }
.fx-origin-body .fx-parts { grid-column: 3; margin: 0; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fx-origin-body .fx-parts img { height: 74px; padding: 8px; }
.fx-origin-body .fx-detail { grid-column: 1 / -1; }
.fx-origin-body .fx-lede { margin-bottom: 0; }

@media (max-width: 1000px) {
  .fx-origin-body { grid-template-columns: 1fr; }
  .fx-origin-body .fx-specs { padding-top: 0; }
}

/* --- text laid out AROUND the data line -----------------------------------
   The connector runs over the cards, so the copy is arranged to leave it a
   clear channel rather than sit under it. */

/* Stage 3: one column each side of the line running down the middle */
.fx-s3-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 96px; align-items: start; }
.fx-s3-col { min-width: 0; }
.fx-s3-col .fx-specs { margin-bottom: 18px; }
.fx-s3-col .fx-detail { margin: 0; }

/* Stage 4: the line comes down the right-hand side, so the copy stops short */
.fx-web .fx-stage-body { padding-right: 96px; }

/* Stage 5: the line reaches only a little way in on the left */
.fx-user .fx-stage-body { padding-left: 78px; }

@media (max-width: 1000px) {
  .fx-s3-body { grid-template-columns: 1fr; gap: 18px; }
  .fx-web .fx-stage-body { padding-right: 26px; }
  .fx-user .fx-stage-body { padding-left: 26px; }
  .fw-top { grid-template-columns: 1fr; gap: 14px; }
}
