/* =============================================================================
   IoT Edge — marketing site
   Built on the IoT Edge design system. Every value here traces to a token in
   css/tokens/. Rules of the system that this file obeys:
     - two background values on light sections (page + card) plus the dark bands
     - 1px borders do the structural work; shadows never stack
     - mono uppercase 0.08em is a separate register, for machine-adjacent labels
     - exactly one amber element per view
     - hover is never expressed with opacity
   ========================================================================== */

/* ---------------------------------------------------------------- layout -- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Short pages still push the footer to the bottom of the viewport. */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1 0 auto; }
.shell > .site-footer { flex: none; }

.band { position: relative; }
.band__inner { max-width: 1180px; margin: 0 auto; padding-inline: 32px; }

.band--page { background: var(--surface-page); }
.band--dark { background: var(--graphite-950); }
.band--dark-card { background: var(--graphite-900); }

/* Dark bands need their own focus ring: the light one offsets in white. */
.band--dark, .band--dark-card {
  --focus-ring: 0 0 0 var(--focus-ring-w) var(--graphite-950), 0 0 0 4px var(--navy-300);
}

.skip-link {
  position: absolute; left: 32px; top: -100px; z-index: 20;
  background: var(--accent); color: var(--text-on-accent);
  padding: 10px 16px; border-radius: var(--radius-control);
  font-size: var(--text-sm); font-weight: var(--weight-medium); border-bottom: 0;
}
.skip-link:focus { top: 12px; color: var(--text-on-accent); }

/* ------------------------------------------------------------ typography -- */

.eyebrow--accent { color: var(--accent); }
.eyebrow--amber  { color: var(--amber-600); }
.eyebrow--on-dark { color: var(--amber-400); }
.eyebrow--icon { display: inline-flex; align-items: center; gap: 8px; }

.h-hero {
  margin: 20px 0 0;
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 66px; line-height: 1.02; letter-spacing: -0.02em;
  color: var(--graphite-0); text-wrap: balance;
}
.h-section {
  margin: 14px 0 0;
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 38px; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--text-heading); text-wrap: balance;
}
.h-section--sm { font-size: 32px; line-height: 1.06; }
.h-section--md { font-size: 34px; line-height: 1.06; }
.h-section--on-dark { color: var(--graphite-0); font-size: 30px; line-height: 1.08; }

.lede    { margin: 22px 0 0; font-size: 17px; line-height: 1.6; max-width: 50ch; }
.deck    { margin: 14px 0 0; font-size: 16px; line-height: 1.6; max-width: 56ch; color: var(--text-muted); }
.deck--narrow { max-width: 52ch; }

.on-dark-lede { color: rgba(255,255,255,.72); }
.on-dark-body { color: rgba(255,255,255,.70); }
.on-dark-deck { color: rgba(255,255,255,.68); max-width: 44ch; font-size: 15px; }

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------- controls -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--weight-medium);
  border: 1px solid transparent; border-radius: var(--radius-control);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: var(--transition-control), transform var(--dur-fast) var(--ease-standard);
}
.btn:hover { border-bottom-color: transparent; }
.btn:active { transform: translateY(1px); }

.btn--sm { height: var(--control-h-sm); padding: 0 12px; font-size: var(--text-sm); }
.btn--md { height: var(--control-h-md); padding: 0 16px; font-size: var(--text-base); }
.btn--lg { height: var(--control-h-lg); padding: 0 20px; font-size: 15px; }

.btn--primary {
  background: var(--accent); color: var(--text-on-accent); border-color: var(--accent);
}
.btn--primary:hover  { background: var(--accent-hover);  border-color: var(--accent-hover);  color: var(--text-on-accent); }
.btn--primary:active { background: var(--accent-active); border-color: var(--accent-active); }

.btn--secondary {
  background: var(--surface-card); color: var(--text-heading); border-color: var(--border-default);
}
.btn--secondary:hover  { background: var(--surface-hover);  color: var(--text-heading); }
.btn--secondary:active { background: var(--surface-active); }

/* The one amber button on the page. */
.btn--signal {
  background: var(--accent-signal); color: var(--text-on-signal); border-color: var(--accent-signal);
}
.btn--signal:hover  { background: var(--accent-signal-hover); border-color: var(--accent-signal-hover); color: var(--text-on-signal); }
.btn--signal:active { background: var(--amber-700); border-color: var(--amber-700); }

/* Secondary control sitting on a dark band. */
.btn--on-dark {
  background: transparent; color: var(--graphite-0); border-color: rgba(255,255,255,.28);
}
.btn--on-dark:hover  { background: rgba(255,255,255,.08); color: var(--graphite-0); border-color: rgba(255,255,255,.4); }
.btn--on-dark:active { background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------ icons -- */

.icon {
  flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  width: 16px; height: 16px;
}
.icon--14 { width: 14px; height: 14px; }
.icon--15 { width: 15px; height: 15px; }
.icon--17 { width: 17px; height: 17px; }
.icon--18 { width: 18px; height: 18px; }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent);
}

/* ------------------------------------------------------- surfaces & chips -- */

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
}
.card--lg { padding: 28px; }
.card--md { padding: 22px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xs);
  background: var(--surface-card); color: var(--text-body);
  font-size: var(--text-xs); white-space: nowrap;
}

.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: var(--radius-xs); font-size: var(--text-2xs);
  font-weight: var(--weight-medium); letter-spacing: var(--tracking-mono);
}
.badge--online-dark {
  background: rgba(29,143,104,.18);
  border: 1px solid rgba(29,143,104,.38);
  color: color-mix(in oklab, var(--state-online) 62%, white);
}

.status-dot {
  position: relative; flex: none;
  width: 7px; height: 7px; border-radius: var(--radius-pill);
  background: var(--state-online);
}
.status-dot::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--radius-pill); border: 1px solid var(--state-online);
  animation: iotedge-ping 2.4s var(--ease-out) infinite;
}

/* The hairline-by-1px-gap grid. A brand signature — reused on light and dark. */
.hairgrid {
  display: grid; gap: 1px; overflow: hidden;
  border: 1px solid var(--border-subtle); background: var(--border-subtle);
  border-radius: var(--radius-card);
}
.hairgrid > * { background: var(--surface-card); }
.hairgrid--on-dark { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); }
.hairgrid--on-dark > * { background: var(--graphite-900); }
.hairgrid--2 { grid-template-columns: 1fr 1fr; }

/* ----------------------------------------------------------- site header -- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding-inline: 32px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.site-nav { display: flex; gap: 24px; margin-left: 8px; font-size: var(--text-base); }
.site-nav a {
  color: var(--text-muted); border-bottom: 0;
  transition: color var(--dur-instant) var(--ease-standard);
}
.site-nav a:hover { color: var(--text-heading); }
.site-nav a[aria-current="page"] { color: var(--text-heading); font-weight: var(--weight-medium); }

.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-header__mail {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--text-muted); border-bottom: 0;
}
.site-header__mail:hover { color: var(--text-heading); }

/* ------------------------------------------------------------- wordmark --- */

.wordmark { display: inline-flex; align-items: center; gap: 9px; border-bottom: 0; }
.wordmark__mark { width: 26px; height: 26px; flex: none; }
.wordmark__name {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 20px; letter-spacing: -0.015em; line-height: 1;
  color: var(--text-heading);
}
/* "IoT" stays neutral, "Edge" always carries the accent. */
.wordmark__name b { font-weight: inherit; color: var(--accent); }

.wordmark--inverse .wordmark__mark { width: 28px; height: 28px; }
.wordmark--inverse .wordmark__name { font-size: 21px; color: var(--graphite-0); }
.wordmark--inverse .wordmark__name b { color: var(--amber-400); }
.wordmark__tagline {
  display: block; margin-top: 5px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* Mobile menu — CSS only, so it still works with JS disabled. */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-control);
  border: 1px solid var(--border-default); background: var(--surface-card);
  color: var(--text-heading);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--surface-hover); }
.menu[open] > summary { background: var(--surface-active); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 10;
  min-width: 200px; padding: 8px;
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}
.menu__panel a {
  padding: 9px 10px; border-radius: var(--radius-control); border-bottom: 0;
  font-size: var(--text-base); color: var(--text-body);
}
.menu__panel a:hover { background: var(--surface-hover); color: var(--text-heading); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  background: var(--graphite-950);
  /* The one gradient permitted anywhere in this system. */
  background-image: linear-gradient(to bottom, rgba(42,87,238,.14), transparent 60%);
  color: var(--graphite-0);
}
.hero .band__inner { padding-block: 80px 64px; }
/* The handoff specifies 1.08fr/.92fr, but at the specified 66px display size the
   H1's second line overruns a 572px column by ~14px. Widening the split keeps the
   type size as designed and lets the headline hold its two intended lines. */
.hero__grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 56px; align-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Compact dark head for interior pages. */
.page-head .band__inner { padding-block: 64px 56px; }
.h-page { font-size: 48px; }

/* Capability rail — the design's stat rail, carrying capability rather than
   figures we would have to defend. Same rhythm, same weights. */
.cap-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.cap-rail__name {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 32px; line-height: 1; letter-spacing: -0.015em; color: var(--graphite-0);
}
.cap-rail__detail {
  margin-top: 8px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.6); line-height: 1.5;
}

/* Hero panel — a bench readout of the path from the field to your software. */
.panel {
  background: var(--graphite-900);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-overlay);
  padding: 16px;
  box-shadow: var(--shadow-overlay);
}
.panel__head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 14px; }
.panel__id { font-family: var(--font-mono); font-size: var(--text-2xs); color: rgba(255,255,255,.6); }
.panel__head .badge { margin-left: auto; }

.spec { display: grid; gap: 1px; overflow: hidden;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-card); }
.spec__row {
  background: var(--graphite-900); padding: 13px 14px;
  display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline;
}
.spec__key {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.spec__val {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: rgba(255,255,255,.88); line-height: 1.55;
}
.spec__val--lit { color: var(--amber-400); }

.panel__foot {
  display: flex; align-items: center; gap: 10px; padding: 14px 2px 2px;
  font-family: var(--font-mono); font-size: var(--text-2xs); color: rgba(255,255,255,.6);
}
.panel__foot .icon { color: var(--amber-400); }

/* -------------------------------------------------------- two disciplines -- */

.disciplines .band__inner { padding-block: 72px 8px; }
.disciplines__deck { margin-bottom: 40px; }
.disciplines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card__title {
  margin: 18px 0 0; font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 24px; letter-spacing: -0.01em; color: var(--text-heading);
}
.card__body { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 44ch; }

.numlist { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.numlist li {
  display: flex; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-base); color: var(--text-heading);
}
.numlist li:last-child { border-bottom: 0; }
.numlist li::before {
  content: counter(numlist, decimal-leading-zero); counter-increment: numlist;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  color: var(--text-faint); width: 22px; flex: none;
}
.numlist { counter-reset: numlist; }

/* Section header: eyebrow, hairline rule, right-aligned mono note. */
.rulehead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.rulehead__rule { flex: 1; height: 1px; background: var(--border-subtle); }
.rulehead__note { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); }
.rulehead--spaced { margin-top: 44px; }

/* --------------------------------------------------------------- delivery -- */

.delivery .band__inner { padding-block: 56px 0; }
.delivery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.delivery__title {
  margin: 16px 0 0; font-family: var(--font-sans); font-size: 17px;
  font-weight: var(--weight-semibold); letter-spacing: 0; color: var(--text-heading);
}
.delivery__body { margin: 8px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-muted); }
.delivery__note {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: var(--text-2xs);
  line-height: 1.6; color: var(--text-faint);
}

/* ----------------------------------------------------------------- product -- */
/* Used by products/index.html and every products/*.html clone. */

.product-body   .band__inner { padding-block: 64px 0; }
.product-change .band__inner { padding-block: 56px 0; }
.product-spec   .band__inner { padding-block: 56px 72px; }
.products-intro .band__inner { padding-block: 64px 0; }
.products-list  .band__inner { padding-block: 56px 76px; }
.products-intro__grid { margin-top: 34px; }

/* Generic two-column body. Same measure and gap as the team/shapes sections. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }

/* Datasheet: mono key/value pairs on the hairline grid, two pairs per row.
   This is the register the brand reserves for machine values, so a spec table
   is the one place it can run at length. */
.spectable { grid-template-columns: 1fr 1fr; }
.spectable__row {
  padding: 14px 18px; display: grid; grid-template-columns: 112px 1fr;
  gap: 14px; align-items: baseline;
}
.spectable__key {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted);
}
.spectable__val {
  font-family: var(--font-mono); font-size: var(--text-sm);
  color: var(--text-heading); line-height: 1.5; font-variant-numeric: tabular-nums;
}
/* One lit value per table, at most — same rationing as the rest of the system. */
.spectable__val--lit { color: var(--amber-600); }

/* Product photo slot. Drop an <img> inside and it restyles itself: the dashed
   "awaiting photography" treatment gives way to a solid framed image. */
.imageslot {
  height: 260px; border-radius: 8px; overflow: hidden;
  border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
}
.imageslot span {
  padding: 0 16px; text-align: center;
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.imageslot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.imageslot:has(img) { border-style: solid; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }

/* Three headline values under the photo. */
.specstrip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-card); overflow: hidden;
}
.specstrip__cell { background: var(--graphite-900); padding: 12px 14px; }
.specstrip__key {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(255,255,255,.6);
}
.specstrip__val { margin-top: 5px; font-family: var(--font-mono); font-size: var(--text-base); color: #fff; }
.specstrip__val--lit { color: var(--amber-400); }

/* Product listing cards on products/index.html */
.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product-list__card {
  display: flex; flex-direction: column; padding: 24px; border-bottom: 0;
  color: inherit;
  transition: background-color var(--dur-instant) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.product-list__card:hover { background: var(--surface-hover); border-color: var(--border-default); color: inherit; }
.product-list__cat {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-faint);
  margin-top: 16px;
}
.product-list__name {
  margin: 6px 0 0; font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 21px; letter-spacing: -0.01em; color: var(--text-heading);
}
.product-list__body { margin: 8px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-muted); }
.product-list__more {
  display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--accent);
}
.product-list__card:hover .product-list__more { color: var(--accent-hover); }

/* ------------------------------------------------------------ integration -- */

.integration .band__inner { padding-block: 56px 72px; }
.integration__card {
  padding: 34px 32px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center;
}
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* Retrofit path — CSS/DOM, no image. */
.path {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  background: var(--surface-sunken); padding: 18px;
}
.path__head {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.path__steps { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 0; margin: 0; list-style: none; }
.path__step { display: flex; align-items: center; gap: 10px; }
.path__step .icon { color: var(--text-muted); }
.path__step--lit .icon { color: var(--amber-500); }
.path__step span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-heading); }
.path__link { height: 14px; border-left: 1px dashed var(--border-default); margin-left: 7px; }

/* ------------------------------------------------------------- capability -- */

.capability .band__inner { padding-block: 0 76px; }
.capability__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.capability__grid h3 { margin: 16px 0 0; font-family: var(--font-sans); font-size: 17px; font-weight: var(--weight-semibold); letter-spacing: 0; color: var(--text-heading); }
.capability__grid p  { margin: 8px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-muted); }

/* ------------------------------------------------------------ shapes band -- */

.shapes .band__inner { padding-block: 56px; }
.shapes__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.shapes__cell { padding: 18px 20px; }
.shapes__label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.shapes__body { margin-top: 8px; font-size: var(--text-base); line-height: 1.5; color: rgba(255,255,255,.82); }
.shapes__cell--open { display: flex; align-items: center; gap: 10px; }
.shapes__cell--open .icon { color: var(--amber-400); }
.shapes__cell--open span { font-family: var(--font-mono); font-size: var(--text-xs); color: rgba(255,255,255,.66); }

/* ------------------------------------------------------------------ team -- */

.team .band__inner { padding-block: 72px; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.team__cell { padding: 20px; }
.team__label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-muted);
}
.team__body { margin-top: 8px; font-size: var(--text-base); line-height: 1.5; color: var(--text-heading); }

/* ------------------------------------------------------------------- cta -- */

.cta .band__inner { padding-block: 56px; display: flex; align-items: center; gap: 32px; }
.cta h2 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-semibold);
          font-size: 32px; letter-spacing: -0.015em; color: var(--graphite-0); text-wrap: balance; }
.cta p  { margin: 12px 0 0; max-width: 56ch; }
.cta__action { margin-left: auto; flex: none; }

/* ---------------------------------------------------------------- footer -- */

.site-footer { background: var(--graphite-950); border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .band__inner { padding-block: 48px 20px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.site-footer__legal { margin: 18px 0 0; font-size: var(--text-sm); line-height: 1.6; max-width: 34ch; color: rgba(255,255,255,.6); }
.site-footer__head {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.site-footer__links { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.site-footer__links li { font-size: var(--text-sm); color: rgba(255,255,255,.72); }
.site-footer__links a { color: rgba(255,255,255,.72); border-bottom: 0; }
.site-footer__links a:hover { color: var(--graphite-0); }
.site-footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-mono); font-size: var(--text-2xs); color: rgba(255,255,255,.55);
}
.site-footer__bar a { color: rgba(255,255,255,.55); border-bottom: 0; }
.site-footer__bar a:hover { color: var(--graphite-0); }
.site-footer__mail { margin-left: auto; color: rgba(255,255,255,.7) !important; }

/* ---------------------------------------------------------- contact page -- */

.contact .band__inner { padding-block: 72px 80px; }
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.contact__card { padding: 30px 28px; }
.contact__rows { margin: 0; padding: 0; }
.contact__row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); align-items: baseline; }
.contact__row:last-of-type { border-bottom: 0; }
.contact__row dt {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted);
}
.contact__row dd { margin: 0; font-size: 15px; color: var(--text-heading); }
.contact__checklist { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.contact__checklist li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-base); line-height: 1.55; color: var(--text-heading);
}
.contact__checklist li:last-child { border-bottom: 0; }
.contact__checklist .icon { color: var(--accent); margin-top: 2px; }

/* --------------------------------------------------------- how it is used -- */
/* One deployment diagram per product page, generated by tools/diagram.py and
   committed inline. Same grammar as the retrofit path: hairlines, mono labels,
   one lit element. Solid = wired, dashed = radio, dotted box = a building. */

.product-use .band__inner { padding-block: 56px 0; }
.diagram {
  margin: 0; padding: 18px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  background: var(--surface-sunken);
}
.diagram__head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted);
}
.diagram__key { margin-left: auto; display: flex; gap: 14px; color: var(--text-faint); }
.diagram__key span::before {
  content: ""; display: inline-block; width: 18px; height: 0; margin-right: 6px;
  vertical-align: middle; border-top: 1px solid var(--graphite-400);
}
.diagram__key span:nth-child(2)::before { border-top-style: dashed; }
.diagram__key span:nth-child(3)::before { border-top: 0; width: 16px; height: 8px; border: 1px dotted var(--border-default); border-radius: 2px; }
.diagram__scroll { overflow-x: auto; padding-top: 16px; }
.diagram__scroll svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.diagram__caption {
  margin: 14px 0 0; font-size: var(--text-sm); line-height: 1.55;
  color: var(--text-muted); max-width: 72ch;
}

.dg text { font-family: var(--font-mono); }
.dg-group { fill: none; stroke: var(--border-default); stroke-dasharray: 2 3; }
.dg-group--solid { stroke-dasharray: none; stroke: var(--border-strong-c); fill: var(--surface-card); }
.dg-group--lit { stroke: var(--amber-500); }
.dg-group__label { font-size: 10px; letter-spacing: var(--tracking-label); text-transform: uppercase; fill: var(--text-faint); }
.dg-link { fill: none; stroke: var(--graphite-400); stroke-width: 1; }
.dg-link--radio { stroke-dasharray: 5 4; }
.dg-link__mask { fill: var(--surface-sunken); }
.dg-link__label { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; fill: var(--text-muted); }
.dg-node rect { fill: var(--surface-card); stroke: var(--border-default); }
.dg-node use { color: var(--text-muted); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg-node__label { font-size: 10.5px; letter-spacing: .06em; fill: var(--text-heading); }
.dg-node__sub { font-size: 10px; fill: var(--text-muted); }
.dg-node--lit rect { stroke: var(--amber-500); }
.dg-node--lit use { color: var(--amber-500); }
.dg-node--lit .dg-node__label { fill: var(--amber-600); }

/* Scenario cards under the diagram: the capability grid with a mono tag and a
   "pairs with" foot. */
.scenario-grid { margin-top: 26px; }
.scenario__tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-faint);
}
.capability__grid .scenario h3 { margin-top: 10px; }
.scenario__pairs {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted);
}
.scenario__pairs a { border-bottom: 0; }

/* Reference deployments on products/index.html: diagram + copy side by side. */
.deployments .band__inner { padding-block: 56px 0; }
.deployment { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
.deployment + .deployment { margin-top: 34px; }
.deployment__copy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.deployment__copy p { margin: 8px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.deployment__copy h3 { margin: 0; font-family: var(--font-sans); font-size: 17px; font-weight: var(--weight-semibold); color: var(--text-heading); }
.deployment__parts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.deployment__parts li {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); color: var(--text-heading);
}
.deployment__parts li span { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); white-space: nowrap; }
.deployment__parts a { border-bottom: 0; }

/* -------------------------------------------------------------- responsive -- */

@media (max-width: 1179px) {
  .band__inner, .site-header__inner { padding-inline: 24px; }
  .h-hero { font-size: 48px; }
  .h-section { font-size: 34px; }
  .hero__grid, .shapes__grid, .team__grid, .integration__card, .contact__grid { gap: 32px; }
  .capability__grid { grid-template-columns: repeat(2, 1fr); }
  .cap-rail { gap: 28px; }
  .cap-rail__name { font-size: 27px; }
  .h-page { font-size: 40px; }
}

@media (max-width: 839px) {
  .site-nav, .site-header__mail { display: none; }
  .menu { display: block; }

  .hero .band__inner { padding-block: 56px 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .h-hero { font-size: 38px; }
  .lede { font-size: var(--text-md); max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; }

  .cap-rail { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 40px; }
  .cap-rail__name { font-size: 24px; }
  .h-page { font-size: 32px; }
  .page-head .band__inner { padding-block: 48px 40px; }

  .disciplines .band__inner { padding-block: 56px 8px; }
  .disciplines__grid, .capability__grid, .delivery__grid,
  .shapes__grid, .team__grid, .hairgrid--2,
  .split, .split--wide-left, .spectable, .product-list { grid-template-columns: 1fr; }

  .integration .band__inner { padding-block: 44px 56px; }
  .integration__card { grid-template-columns: 1fr; padding: 26px 22px; }

  .capability .band__inner { padding-block: 0 56px; }
  .delivery .band__inner { padding-block: 44px 0; }
  .shapes .band__inner, .team .band__inner { padding-block: 48px; }

  .h-section, .h-section--md, .h-section--sm { font-size: 28px; }
  .h-section--on-dark { font-size: 26px; }
  .deck, .card__body, .on-dark-deck, .cta p { max-width: none; }

  .cta .band__inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 48px; }
  .cta h2 { font-size: 26px; }
  .cta__action { margin-left: 0; }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }

  .contact .band__inner { padding-block: 48px 56px; }
  .product-body .band__inner, .products-intro .band__inner { padding-block: 48px 0; }
  .product-use .band__inner, .deployments .band__inner { padding-block: 44px 0; }
  .diagram__scroll svg { min-width: 820px; }
  .diagram__key { display: none; }
  .deployment__copy { grid-template-columns: 1fr; gap: 20px; }
  .product-change .band__inner { padding-block: 44px 0; }
  .product-spec .band__inner { padding-block: 44px 56px; }
  .products-list .band__inner { padding-block: 44px 56px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__card { padding: 24px 20px; }
}

@media (max-width: 479px) {
  .band__inner, .site-header__inner { padding-inline: 18px; }
  .cap-rail { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .contact__row, .spectable__row { grid-template-columns: 1fr; gap: 4px; }
}

/* Touch targets never drop below 44px. */
@media (pointer: coarse) {
  .btn--sm { height: 36px; padding: 0 14px; }
  .site-nav a, .menu__panel a, .site-footer__links a { min-height: 44px; display: flex; align-items: center; }
}
