/* ==========================================================================
   NeuralPath Dynamics Inc — Design System
   Author: NPD web team
   Structure: 1. Tokens  2. Reset/base  3. Typography  4. Layout
              5. Components  6. Sections  7. Utilities  8. Motion/queries
   ========================================================================== */

/* ------------------------------------------------- 1. Tokens ------------- */
:root {
  /* Brand surfaces — warm paper stack */
  --paper:        #f9f7f5;
  --paper-2:      #efedeb;
  --white:        #ffffff;

  /* Ink */
  --ink:          #121212;
  --ink-2:        #303030;
  --muted:        #535353;
  --line:         #e3e1dc;
  --line-strong:  #cfccc6;

  /* Accents */
  --violet:       #4f32ff;
  --violet-dark:  #3a21d6;
  --grape:        #3d2276;
  --grape-deep:   #2a1656;
  --magenta:      #b950c8;
  --magenta-light: #e6a8f0;  /* magenta fails 4.5:1 on dark surfaces; this tint passes */

  /* Ambient glow. Kept at low alpha so text over a glow still clears 4.5:1. */
  --glow-violet:   rgba(79, 50, 255, .20);
  --glow-magenta:  rgba(185, 80, 200, .16);
  --glow-dark-a:   rgba(124, 92, 255, .40);
  --glow-dark-b:   rgba(185, 80, 200, .30);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Space + shape */
  --gutter:       clamp(1rem, 4vw, 2.5rem);
  --measure:      78rem;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --pill:         999px;

  --shadow-sm:    0 1px 2px rgba(18, 18, 18, .06);
  --shadow:       0 10px 30px -12px rgba(18, 18, 18, .18);
  --shadow-lg:    0 30px 60px -24px rgba(42, 22, 86, .35);

  --section-y:    clamp(4rem, 9vw, 8.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

button { font: inherit; color: inherit; }

/* Visible, high-contrast focus for every interactive element */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.band--dark :focus-visible,
.cta-band :focus-visible { outline-color: #fff; }

::selection { background: var(--violet); color: #fff; }

/* ------------------------------------------------- 3. Typography --------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .98;
}
.display-2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -.022em;
}
.display-3 { font-size: clamp(1.4rem, 2.2vw, 1.875rem); letter-spacing: -.015em; }

.upper {
  text-transform: uppercase;
  letter-spacing: -.015em;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

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

.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--violet);
  flex: none;
}
.band--dark .eyebrow,
.cta-band .eyebrow { color: rgba(255, 255, 255, .72); }
.band--dark .eyebrow::before,
.cta-band .eyebrow::before { background: var(--magenta-light); }

/* ------------------------------------------------- 4. Layout ------------- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 58rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split {
  max-width: none;
  display: grid;
  gap: clamp(1rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 60rem) {
  .section-head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 40rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------- 5. Components --------- */

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 245, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 3.25rem; height: 1.625rem; flex: none; color: var(--violet); }
/* The wave is brand violet against the ink wordmark, and lifts to a lighter
   violet on the dark footer so it still carries. */
.site-footer .brand__mark { color: #9b85ff; }
.brand__text { line-height: 1.05; }
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .5625rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Keep the lockup and the Menu button on one row at phone widths */
@media (max-width: 30rem) {
  .brand { gap: .5rem; font-size: .9375rem; }
  .brand__mark { width: 2.75rem; height: 1.375rem; }
  .brand__sub { font-size: .5rem; letter-spacing: .14em; }
  .nav-toggle { padding: .5rem .75rem; margin-left: auto; }
}

/* Very narrow phones: drop the descriptor so the lockup still fits one row */
@media (max-width: 23rem) {
  .brand { font-size: .8125rem; }
  .brand__sub { display: none; }
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1.4vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-block;
  padding: .5rem .25rem;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__link:hover { color: var(--ink); border-bottom-color: var(--violet); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--violet); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 1rem; height: .625rem; flex: none; }
.nav-toggle__bars span,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 4px; }
.nav-toggle__bars::after { bottom: 0; }

/* Second copy of the Book-a-call CTA: it only earns its place in the stacked
   mobile panel, where the one at the end of the list can be out of view. */
.nav__item--cta-top { display: none; }

/* Mobile nav. Without JavaScript the panel stays in flow and fully usable;
   the collapsible behaviour is scoped to .js, which main.js sets on <html>. */
@media (max-width: 61.999rem) {
  .site-header__inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }

  .site-nav { width: 100%; padding-bottom: .5rem; }
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    width: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.75rem;
    display: none;
    /* The panel hangs below a sticky header, so it has to scroll itself:
       without a cap it runs past the viewport and only the page moves.
       --header-h is measured in main.js; the fallback covers first paint. */
    max-height: calc(100vh - var(--header-h, 4.25rem));
    max-height: calc(100dvh - var(--header-h, 4.25rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .js .site-nav.is-open { display: block; }

  /* Hold the page still while the panel is open, so a swipe moves the menu
     rather than the content behind it. The lock goes on <body>, never on
     <html>: hiding the root's overflow removes the scrollport that the
     sticky header depends on, and the header scrolls away with the panel. */
  .js.nav-open body { overflow: hidden; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link {
    padding: .95rem .25rem .95rem .75rem;
    font-size: 1.0625rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .nav__link[aria-current="page"] { border-left-color: var(--violet); }
  .nav__item--cta { border-bottom: 0; padding-top: 1.1rem; }
  .nav__item--cta .btn { width: 100%; justify-content: center; }

  /* The panel scrolls, so the CTA at the end of the list is below the fold on
     a short phone. Repeat it above the menu items, where it is in view the
     moment the panel opens. */
  .nav__item--cta-top {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1.1rem;
  }
}
@media (min-width: 62rem) {
  .nav__item--cta { margin-left: .75rem; }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-dark); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--grape); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }

.btn--light { background: #fff; color: var(--grape-deep); }
.btn--light:hover { background: var(--paper-2); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--grape);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-block: .3rem;  /* keeps the hit area past the 24px minimum */
}
.link-arrow:hover { color: var(--violet); }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Badge / pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: var(--pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.badge--live { background: rgba(79, 50, 255, .08); border-color: rgba(79, 50, 255, .25); color: var(--grape); }
.badge--on-dark {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.badge--on-dark .badge__dot { background: var(--magenta-light); }
.badge__dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--violet); flex: none;
}

/* Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: 0; }
.card p { font-size: .9375rem; color: var(--muted); }
.card__index {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--violet);
}
.card__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--grape);
  margin-bottom: .25rem;
}
.card__foot { margin-top: auto; padding-top: .75rem; }
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card--flat { background: var(--paper-2); border-color: transparent; }
.card--dark {
  background: var(--grape);
  border-color: transparent;
  color: #fff;
}
.card--dark p { color: rgba(255,255,255,.76); }
.card--dark .card__icon { background: rgba(255,255,255,.12); color: #fff; }

/* Pillar card — the three business lines */
.pillar { overflow: hidden; }
.pillar__tag {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}
.pillar__list {
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.pillar__list li { position: relative; padding-left: 1.4rem; }
.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .5rem; height: .5rem;
  border: 1.5px solid var(--violet);
  border-radius: 2px;
  transform: rotate(45deg);
}
.card--dark .pillar__list { color: rgba(255,255,255,.82); }
.card--dark .pillar__list li::before { border-color: var(--magenta-light); }
.card--dark .pillar__tag,
.card--dark .card__index { color: var(--magenta-light); }
.card--dark .link-arrow { color: #fff; }
.card--dark .link-arrow:hover { color: var(--magenta-light); }

/* Stats */
.stat {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.03em;
  display: block;
}
.stat__label {
  display: block;
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--muted);
  max-width: 24ch;
}
.band--dark .stat { border-top-color: rgba(255,255,255,.2); }
.band--dark .stat__label { color: rgba(255,255,255,.72); }

/* Steps / process */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.step {
  counter-increment: step;
  display: grid;
  gap: .4rem 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) {
  .step { grid-template-columns: 4rem minmax(0, 16rem) minmax(0, 1fr); align-items: start; }
}
.step__num {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  color: var(--violet);
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.125rem; margin: 0; }
.step p { font-size: .9375rem; color: var(--muted); margin: 0; }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.015em;
  cursor: pointer;
}
.accordion__btn:hover { color: var(--grape); }
.accordion__sign { position: relative; width: 1rem; height: 1rem; flex: none; }
.accordion__sign::before,
.accordion__sign::after {
  content: "";
  position: absolute;
  background: var(--violet);
  border-radius: 2px;
  inset: 50% 0 auto;
  height: 2px;
  margin-top: -1px;
  transition: transform .2s ease;
}
.accordion__sign::after { transform: rotate(90deg); }
.accordion__btn[aria-expanded="true"] .accordion__sign::after { transform: rotate(0deg); }
.accordion__panel { padding: 0 0 1.5rem; max-width: 62ch; }
.accordion__panel[hidden] { display: none; }
.accordion__panel p { font-size: .9375rem; color: var(--muted); }

/* Logo / trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.5rem;
}
.trust__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.trust__items {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.875rem, 1.3vw, 1rem);
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--ink-2);
}

/* Coverage panel */
.coverage {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .coverage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.map {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--grape-deep);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .7;
}
.map__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}
.map__title {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.map__svg { position: relative; width: 100%; height: auto; }
.map__legend {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255,255,255,.2);
  list-style: none;
  font-size: .8125rem;
  color: rgba(255,255,255,.8);
}
.map__legend li { display: flex; align-items: center; gap: .5rem; }
.map__swatch { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.map__swatch--active { background: var(--violet); }
.map__swatch--routes { background: var(--magenta); }

/* Coverage list */
.state-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.state-list > li {
  display: grid;
  gap: .25rem .75rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 4.75rem 1fr;
  align-items: baseline;
}
.state-list > li:last-child { border-bottom: 1px solid var(--line); }
.state-list__abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.01em;
}
.state-list__name { font-weight: 600; font-size: .9375rem; }
.state-list__detail { grid-column: 2; font-size: .875rem; color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
/* Ambient glow ------------------------------------------------------------
   Every major surface carries a soft brand light so the pages are not flat
   paper below the fold. Glows are pseudo-elements behind the content, never
   under running text at full strength, and they drift slowly unless the
   visitor asks for reduced motion. */
.hero,
.page-hero,
.band--dark,
.site-footer,
.section--glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::after,
.hero::before,
.page-hero::after,
.section--glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: glow-drift 26s ease-in-out infinite alternate;
}

.hero::after {
  top: -24rem; right: -14rem;
  width: 50rem; height: 50rem;
  background: radial-gradient(circle at 35% 35%, var(--glow-violet) 0%, var(--glow-magenta) 38%, rgba(185,80,200,.05) 58%, transparent 76%);
}
.hero::before {
  bottom: -34rem; left: -24rem;
  width: 48rem; height: 48rem;
  background: radial-gradient(circle at 60% 40%, var(--glow-magenta) 0%, rgba(79,50,255,.06) 45%, transparent 72%);
  animation-delay: -13s;
}

.page-hero::after {
  top: -26rem; right: -12rem;
  width: 44rem; height: 44rem;
  background: radial-gradient(circle at 40% 45%, var(--glow-violet) 0%, var(--glow-magenta) 40%, rgba(185,80,200,.05) 60%, transparent 78%);
}

.section--glow::before {
  bottom: -26rem; left: -16rem;
  width: 42rem; height: 42rem;
  background: radial-gradient(circle at 55% 45%, var(--glow-violet) 0%, rgba(79,50,255,.07) 42%, transparent 72%);
  animation-delay: -8s;
}

/* On the dark bands the light reads as an aurora rather than a tint */
.band--dark::before,
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: glow-drift 30s ease-in-out infinite alternate;
}
.band--dark::before {
  top: -22rem; left: -10rem;
  width: 52rem; height: 52rem;
  background: radial-gradient(circle at 45% 50%, var(--glow-dark-a) 0%, var(--glow-dark-b) 40%, rgba(185,80,200,.08) 62%, transparent 80%);
}
.site-footer::before {
  top: -30rem; right: -12rem;
  width: 46rem; height: 46rem;
  background: radial-gradient(circle at 50% 55%, rgba(124, 92, 255, .30) 0%, rgba(124, 92, 255, .08) 45%, transparent 74%);
}

@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2.5rem, -1.75rem, 0) scale(1.1); }
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero__copy .lead { margin-top: 1.25rem; max-width: 46ch; }
.hero__actions { margin-top: 2rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* Hero visual — layered product mock */
.mock {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 30px 70px -36px rgba(79, 50, 255, .55);
  padding: 1.125rem;
  display: grid;
  gap: .875rem;
}
.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--line);
}
.mock__title {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock__rows { display: grid; gap: .5rem; }
.mock__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
}
.mock__row strong { font-weight: 600; display: block; }
.mock__row span { color: var(--muted); font-size: .75rem; }
.mock__chip {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: var(--pill);
  background: rgba(79,50,255,.1);
  color: var(--grape);
  white-space: nowrap;
}
.mock__chip--done { background: rgba(18,18,18,.07); color: var(--ink-2); }
.mock__meter {
  display: grid;
  gap: .4rem;
  padding: .85rem;
  background: var(--grape);
  border-radius: var(--radius);
  color: #fff;
}
.mock__meter-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.mock__meter-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.mock__track { height: .4rem; border-radius: var(--pill); background: rgba(255,255,255,.22); overflow: hidden; }
.mock__fill { height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, #fff, var(--magenta)); }

.hero__visual { position: relative; }

/* Bands */
.band--paper-2 { background: var(--paper-2); }
.band--white { background: var(--white); }
.band--dark { background: var(--grape-deep); color: #fff; }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark .lead { color: rgba(255,255,255,.82); }
.band--line-top { border-top: 1px solid var(--line); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--grape);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  right: -8%;
  width: 34rem; height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,80,200,.55), transparent 65%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 50ch; }

/* Quote */
.quote {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.quote figcaption { font-size: .875rem; color: var(--muted); }

/* Forms */
.form-wrap {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62rem) {
  .form-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
/* align-content keeps rows content-sized, so a field with a hint below it
   does not stretch the label and input of the field beside it. */
.field { display: grid; gap: .4rem; align-content: start; }
.field > label { font-size: .875rem; font-weight: 600; }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .875rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field__error {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #a1121f;
}
.field__error::before { content: "\26A0"; font-size: .9em; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #a1121f; background: #fdf6f6; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__note { font-size: .8125rem; color: var(--muted); }
.form-status {
  display: none;
  gap: .6rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  background: rgba(79,50,255,.08);
  border: 1px solid rgba(79,50,255,.3);
  color: var(--grape);
}
.form-status.is-visible { display: flex; }

.contact-aside { display: grid; gap: 1.5rem; }
.contact-block { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contact-block h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.contact-block p, .contact-block a { font-size: .9375rem; color: var(--muted); }
.contact-block a { color: var(--grape); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .footer__grid { grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 2.25rem 1.75rem; } }
.footer__brand .brand { color: #fff; margin-right: 0; }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); }
.footer__blurb { margin-top: 1rem; max-width: 34ch; color: rgba(255,255,255,.66); font-size: .9375rem; }
.footer__col h2 {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
}

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 60rem) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
.breadcrumb { margin-bottom: 1.25rem; font-size: .8125rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* Split feature rows */
.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 62rem) {
  .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--flip .feature__media { order: -1; }
}
.feature h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.feature__media {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}
.spec-list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.spec-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; font-size: .9375rem; }
.spec-list svg { margin-top: .3rem; color: var(--violet); }

/* Table */
/* tabindex="0" in the markup makes this scroll region keyboard-operable */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.table-wrap:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 34rem; }
caption { text-align: left; padding: 1rem 1.25rem; font-size: .8125rem; color: var(--muted); }
th, td { padding: .9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}
tbody tr:last-child td { border-bottom: 0; }
th[scope="row"] { font-weight: 600; }


/* Footer additions */
.footer__address { margin-top: 1.25rem; font-style: normal; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.66); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

/* Services menu. Desktop: opens on hover and on keyboard focus (focus-within), so it
   needs no JavaScript. Below the desktop breakpoint it renders inline as a sub-list. */
.nav__item--menu { position: relative; }
.nav__menu { margin: 0; padding: 0; list-style: none; }
.nav__menu a { display: grid; gap: .1rem; text-decoration: none; }
.nav__menu strong { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.nav__menu span { font-size: .8125rem; color: var(--muted); }
.nav__menu-all a { font-size: .875rem; font-weight: 600; color: var(--grape); }
@media (min-width: 62rem) {
  .nav__item--menu > .nav__link::after {
    content: ""; display: inline-block; width: .4rem; height: .4rem; margin-left: .45rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-.2rem) rotate(45deg);
  }
  .nav__menu {
    position: absolute; top: 100%; left: -1rem; z-index: 120;
    width: 22rem; padding: .6rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  .nav__item--menu:hover .nav__menu,
  .nav__item--menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { padding: .65rem .8rem; border-radius: var(--radius-sm); }
  .nav__menu a:hover, .nav__menu a:focus-visible { background: var(--paper); }
  .nav__menu-all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
}
@media (max-width: 61.999rem) {
  .nav__menu { padding: 0 0 .75rem 1rem; display: grid; gap: .1rem; }
  .nav__menu a { padding: .5rem .25rem; }
  .nav__menu span { display: none; }
}
@media (min-width: 62rem) and (max-width: 74rem) {
  .nav__list { gap: .15rem .6rem; }
  .nav__link { font-size: .875rem; }
}

/* Screenshot frame: a real product screen inside a light browser chrome */
.shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.shot__bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line-strong); }
.shot__bar span { margin-left: .6rem; font-family: var(--font-mono); font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; }
.shot figcaption, .figure-note { padding: .75rem 1rem; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot--phone { max-width: 16rem; margin-inline: auto; border-radius: 28px; padding: .5rem; background: var(--ink); border-color: var(--ink); }
.shot--phone img { border-radius: 22px; }

/* Screenshot gallery */
.gallery { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 52rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery .shot--phone { align-self: center; }
.shot__zoom { display: block; cursor: zoom-in; }
.shot__zoom:hover img { opacity: .92; }

/* Work / product cards */
.work-card { display: grid; gap: 0; padding: 0; overflow: hidden; text-decoration: none; }
.work-card__media { background: var(--paper-2); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.work-card:hover .work-card__media img { transform: scale(1.02); }
.work-card__body { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: grid; gap: .6rem; align-content: start; }
.work-card__body h3 { margin: 0; }
.work-card__body p { color: var(--ink-2); font-size: .9375rem; }
.work-card__stat { display: flex; align-items: baseline; gap: .5rem; margin: 0; }
.work-card__stat strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.work-card__stat span { font-size: .8125rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tags li { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--pill); color: var(--ink-2); }

/* Key facts strip used in case studies */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { background: var(--white); padding: 1.1rem 1.25rem; }
.facts dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
/* .facts holds big display numbers by default. --text is for word values
   (a company name, a city), which need a reading size and only two columns. */
.facts--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .facts--text { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts--text dd { font-size: 1.1rem; }
.facts dd small { display: block; margin-top: .3rem; font-family: var(--font-body); font-weight: 400; font-size: .8125rem; letter-spacing: 0; color: var(--muted); }

/* Long-form reading (case studies, insights) */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--grape); font-weight: 500; }
.prose figure { margin: 2rem 0; }
.prose .table-wrap { margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--violet); font-size: 1.0625rem; }
.prose .quote blockquote { margin: 0 0 1rem; padding: 0; border-left: 0; font-size: clamp(1.125rem, 2vw, 1.375rem); }
.layout-article { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .layout-article { grid-template-columns: minmax(0, 1fr) 18rem; } }
.aside-card { position: sticky; top: 6rem; display: grid; gap: 1rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); align-self: start; }
.aside-card h2 { font-size: 1rem; margin: 0; }
.aside-card p { font-size: .875rem; color: var(--muted); margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .875rem; color: var(--muted); margin-top: 1rem; }
.callout { padding: 1.25rem 1.4rem; background: var(--paper-2); border-radius: var(--radius); margin: 1.5rem 0; }
.callout p { margin: 0; font-size: .9375rem; }

/* Check list */
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; font-size: .9375rem; }
.checks svg { margin-top: .3rem; color: var(--violet); }
.band--dark .checks svg, .card--dark .checks svg { color: var(--magenta-light); }

/* Out-of-state partner band */
.partner-band { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 62rem) { .partner-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.dispatch { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: d; }
.dispatch li { counter-increment: d; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.dispatch li::before { content: counter(d, decimal-leading-zero); font-family: var(--font-mono); font-size: .8125rem; color: var(--magenta-light); padding-top: .15rem; }
.dispatch strong { display: block; color: #fff; margin-bottom: .15rem; }
.dispatch span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* Person / credential */
.person { display: grid; gap: 1.25rem; grid-template-columns: 1fr; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 48rem) { .person { grid-template-columns: 5rem 1fr; } }
.person__mono { width: 5rem; height: 5rem; border-radius: 50%; display: grid; place-items: center; background: var(--grape); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.person h3 { margin: 0 0 .2rem; }
.person__role { font-size: .875rem; color: var(--muted); margin-bottom: .9rem; }

/* ------------------------------------------------- 7. Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.center .lead, .center .section-head { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 2.5rem; }
.mb-4 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------- 8. Motion ------------- */
/* The motion system has three jobs and nothing else (see README, "Motion"):

     entrances  content arrives as you reach it, and never moves while you read
     signals    slow loops that say the work is live: dispatch routes running,
                rollout stages ticking through, shipped products cycling.
                They only run while on screen (.is-live, added by main.js)
     feedback   hover, focus and press response on anything you can act on

   Anything that hides content first is gated on .js, so a visitor without
   JavaScript gets the page fully visible and still. The whole section is
   switched off by prefers-reduced-motion at the end. */

:root {
  --ease-out:  cubic-bezier(.2, .65, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur:       .3s;
  --dur-slow:  .6s;
}

/* --- Entrances ---------------------------------------------------------- */
/* .reveal fades up when scrolled into view. main.js staggers siblings by
   setting --reveal-delay, so a grid arrives as a wave, not all at once. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal--scale { transform: scale(.985); }   /* screenshots and panels */
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The hero sits above the fold, so it animates on load instead of on scroll. */
.js .hero__copy > *,
.js .page-hero__grid > * {
  animation: rise .7s var(--ease-out) both;
}
.js .hero__copy > :nth-child(2),
.js .page-hero__grid > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5) { animation-delay: .32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* A hairline accent draws along the top rule of each step and figure as it
   arrives: the same "one stage at a time" idea the copy describes. */
.step, .stat { position: relative; }
.step::before, .stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out) var(--reveal-delay, 0ms);
}
.band--dark .stat::before { background: var(--magenta-light); }
.step.is-visible::before, .stat.is-visible::before { transform: scaleX(1); }

/* Numbers count up once, in view. Tabular figures keep the width steady. */
.stat__num { font-variant-numeric: tabular-nums; }

/* Check marks draw themselves in, left to right down the list. */
.js .checks:not(.is-drawn) li svg path { stroke-dashoffset: 17; }
.checks li svg path {
  stroke-dasharray: 17;            /* the tick is ~16.5 units long */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .45s var(--ease-out);
}
.checks li:nth-child(2) svg path { transition-delay: .07s; }
.checks li:nth-child(3) svg path { transition-delay: .14s; }
.checks li:nth-child(4) svg path { transition-delay: .21s; }
.checks li:nth-child(5) svg path { transition-delay: .28s; }
.checks li:nth-child(n+6) svg path { transition-delay: .35s; }

/* --- Signals: the business, running ------------------------------------- */
/* Coverage map: a packet of light runs each rollout route, Pittsburgh out to
   Albany and back through the Poconos. pathLength="100" on the paths makes the
   dash lengths route-independent, so the speed reads the same on every line. */
.map__signal { fill: none; stroke: #fff; stroke-opacity: 0; stroke-width: 1.8; stroke-linecap: round; }
.map__svg.is-live .map__signal {
  stroke-opacity: .85;
  stroke-dasharray: 7 93;
  animation: route-run 5.5s linear infinite;
}
.map__svg.is-live .map__signal:nth-of-type(2) { animation-duration: 4.6s; animation-delay: -2s; }
.map__svg.is-live .map__signal:nth-of-type(3) { animation-duration: 4s;   animation-delay: -3.4s; }
@keyframes route-run {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* Site pulses fire in route order, west to east, rather than in unison. The
   groups are the metro markers in markup order: routes, signals, then Albany,
   NYC, Newark, Philadelphia, Allentown, Pittsburgh, the HQ dot and the
   Poconos. If that order ever changes the markers simply pulse in step. */
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map__svg > g:nth-of-type(8)  .pulse { animation-delay: -1.5s; }  /* Pittsburgh */
.map__svg > g:nth-of-type(7)  .pulse { animation-delay: -1.25s; } /* Allentown */
.map__svg > g:nth-of-type(6)  .pulse { animation-delay: -1s; }    /* Philadelphia */
.map__svg > g:nth-of-type(10) .pulse { animation-delay: -.75s; }  /* Poconos */
.map__svg > g:nth-of-type(5)  .pulse { animation-delay: -.5s; }   /* Newark */
.map__svg > g:nth-of-type(4)  .pulse { animation-delay: -.25s; }  /* NYC metro */
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

/* The "Crews dispatching" dot breathes, like a status light. */
.badge__dot { animation: dot-breathe 2.4s var(--ease-soft) infinite; }
@keyframes dot-breathe {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* Dispatch pipeline: a work order moves through the four stages, one at a
   time, which is exactly how an out-of-state ticket actually runs. */
.dispatch li { transition: background-color var(--dur) ease, border-color var(--dur) ease; }
.dispatch.is-live li { animation: ticket-row 6.4s var(--ease-soft) infinite; }
.dispatch.is-live li::before { animation: ticket-num 6.4s var(--ease-soft) infinite; }
.dispatch.is-live li:nth-child(2), .dispatch.is-live li:nth-child(2)::before { animation-delay: .5s; }
.dispatch.is-live li:nth-child(3), .dispatch.is-live li:nth-child(3)::before { animation-delay: 1s; }
.dispatch.is-live li:nth-child(4), .dispatch.is-live li:nth-child(4)::before { animation-delay: 1.5s; }
@keyframes ticket-row {
  0%, 16%, 100% { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
  5%, 11%       { background-color: rgba(255,255,255,.12); border-color: rgba(185,80,200,.55); }
}
/* The numerals stay at full strength throughout: the stage that is live goes
   white and lit, the others keep their normal contrast rather than dimming. */
@keyframes ticket-num {
  0%, 16%, 100% { color: var(--magenta-light); text-shadow: none; }
  5%, 11%       { color: #fff; text-shadow: 0 0 10px rgba(185, 80, 200, .9); }
}

/* Rollout mock: the same tick-through on a light surface. */
.mock__row { transition: background-color var(--dur) ease, border-color var(--dur) ease; }
.mock__rows.is-live .mock__row { animation: stage-run 7s var(--ease-soft) infinite; }
.mock__rows.is-live .mock__row:nth-child(2) { animation-delay: .55s; }
.mock__rows.is-live .mock__row:nth-child(3) { animation-delay: 1.1s; }
.mock__rows.is-live .mock__row:nth-child(4) { animation-delay: 1.65s; }
@keyframes stage-run {
  0%, 18%, 100% { background-color: var(--paper); border-color: var(--line); }
  6%, 13%       { background-color: var(--white); border-color: var(--violet); }
}

/* Reading progress along the bottom edge of the sticky header. main.js keeps
   --scroll between 0 and 1; it only shows once the page has moved. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity var(--dur) ease;
  pointer-events: none;
}
.site-header.is-stuck::after { opacity: 1; }

/* --- Feedback ----------------------------------------------------------- */
/* A light sweeps across the solid buttons on hover. */
.btn--primary, .btn--dark { position: relative; overflow: hidden; }
.btn--primary::after, .btn--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 22%, rgba(255,255,255,.22) 46%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .6s var(--ease-soft);
  pointer-events: none;
}
.btn--primary:hover::after, .btn--dark:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(.985); }

/* A pulse of light runs the wave end to end, each line of the fan a beat behind
   the one outside it, so the layers light up in sequence. It is a short dash on
   a copy of each curve, travelling by stroke-dashoffset; the delays are set in
   the markup by tools/logo.py. Only while the mark is on screen: main.js adds
   .is-live. */
.brand__mark.is-live .brand__spark {
  filter: drop-shadow(0 0 1.6px currentColor);
  animation: brand-spark 6.5s linear infinite;
}
@keyframes brand-spark {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  5%   { opacity: 1; }
  50%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* The wave answers when you reach for the logo: the inner lines swell towards
   the outer one, so the fan opens out and settles. */
.brand__fan {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: transform var(--dur-slow) var(--ease-out);
}
.brand:hover .brand__fan, .brand:focus-visible .brand__fan { transform: scaleY(1.22); }

.shot { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.shot__zoom:hover img { opacity: .92; }
.shot:has(.shot__zoom:hover) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ------------------------------------------------- Mega dropdown --------- */
/* A wide panel of headed columns plus one promo card. Desktop: opens on hover
   and on keyboard focus (focus-within), anchored to the header container so a
   panel wider than its nav item cannot run off the viewport. Below the desktop
   breakpoint it renders inline as a plain stack and the promo card is dropped. */
.nav__mega { display: grid; gap: 1.25rem; }
.nav__sub { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.nav__sub a { display: grid; gap: .1rem; text-decoration: none; }
.nav__sub strong { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.nav__sub span { font-size: .8125rem; color: var(--muted); }
.nav__mega-head {
  margin: 0 0 .5rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.nav__mega-foot { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.nav__mega-foot a { font-size: .875rem; font-weight: 600; color: var(--grape); text-decoration: none; }
.nav__mega-foot a:hover { text-decoration: underline; }
.nav__promo { display: none; }

@media (min-width: 62rem) {
  .site-header__inner { position: relative; }
  .nav__item--mega > .nav__link::after {
    content: ""; display: inline-block; width: .4rem; height: .4rem; margin-left: .45rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-.2rem) rotate(45deg);
  }
  .nav__mega {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 120;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 17rem);
    gap: 1.75rem;
    padding: 1.5rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  .nav__item--mega:hover .nav__mega,
  .nav__item--mega:focus-within .nav__mega { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { padding: .55rem .7rem; border-radius: var(--radius-sm); }
  .nav__sub a:hover, .nav__sub a:focus-visible { background: var(--paper); }
  .nav__mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }

  .nav__promo {
    display: grid; align-content: start; gap: .3rem;
    padding: .75rem; text-decoration: none;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s ease, transform .2s ease;
  }
  .nav__promo:hover, .nav__promo:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); }
  .nav__promo img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
    border-radius: var(--radius-sm); margin-bottom: .4rem;
  }
  .nav__promo-label {
    font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
  }
  .nav__promo-title { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; line-height: 1.2; color: var(--ink); }
}
@media (max-width: 61.999rem) {
  .nav__mega { padding: 0 0 1rem 1rem; gap: 1rem; }
  .nav__sub a { padding: .5rem .25rem; }
  .nav__sub span { display: none; }
  .nav__mega-foot { padding-left: .25rem; }
}

/* ------------------------------------------------- Photo + split --------- */
/* A context photograph. Illustrative only: anything that claims our own work
   uses a .shot screenshot instead. */
.photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 21 / 9; }
.photo figcaption { padding: .75rem 1rem; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--white); }

/* Text beside a picture. Alternate the order with .split--flip. */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 60rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--flip > :first-child { order: 2; }
}
.split__copy > :last-child { margin-bottom: 0; }

/* A proof figure with its source underneath. */
.figures { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
@media (min-width: 52rem) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figures > div { background: var(--white); padding: 1.25rem 1.35rem; display: grid; gap: .3rem; align-content: start; }
.figures dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.03em; line-height: 1; }
.figures dd { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.figures dd a { display: inline-flex; align-items: center; gap: .35rem; color: var(--grape); font-weight: 600; font-size: .8125rem; text-decoration: none; }
.figures dd a svg { flex: none; }
.figures dd a:hover { text-decoration: underline; }
.figures__src { display: block; margin-top: .35rem; }

/* Panels that open: the collapse stays instant, only the opening animates. */
.accordion__panel.is-opening { animation: panel-open .3s var(--ease-out) both; }
@media (max-width: 61.999rem) {
  .js .site-nav.is-open { animation: panel-open .25s var(--ease-out) both; }
}
@keyframes panel-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --- Opt out ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The glows remain; only their drift is removed. */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .checks:not(.is-drawn) li svg path { stroke-dashoffset: 0; }
  .map__svg .map__signal { display: none; }
  .site-header::after { display: none; }
}

@media (forced-colors: active) {
  .card, .mock, .form, .table-wrap { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
  .btn--primary::after, .btn--dark::after, .site-header::after { display: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .mock { box-shadow: none; }
}
