/* SNC Software site: everything the pages share.
   Every colour, size, and spacing value comes from tokens.css.
   Mobile first. Breakpoints: 640px, 900px, 1180px.
   Page specific styles live beside this file: home.css, founders.css, lead-package.css,
   partners.css, contact.css. */

/* ---------- Fallback faces ----------
   Local Arial, resized to the web fonts' average character width, so lines
   break in the same places before and after Archivo and Plex Sans load. */

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 900;
  size-adjust: 104%;
  ascent-override: 86%;
  descent-override: 20%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Plex Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400;
  size-adjust: 101.21%;
  ascent-override: 101.28%;
  descent-override: 27.17%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Plex Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 500 600;
  size-adjust: 103.35%;
  ascent-override: 99.18%;
  descent-override: 26.61%;
  line-gap-override: 0%;
}

/* ---------- Surfaces ----------
   Components read these, never the raw palette, so the same button, link, rule, or
   focus ring is right on paper and on navy. A section opts in with one class. */

:root,
.on-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --rule: var(--line);
  --link: var(--teal);
  --link-hover: var(--teal-deep);
  --focus: var(--navy);
  --surface: var(--white);
  --accent-text: var(--brass-deep);
  --live: var(--teal);
  --err: var(--error);
  --ok: var(--good);
}

.on-navy,
.on-deep {
  --fg: var(--on-navy);
  --fg-soft: var(--on-navy-soft);
  --rule: var(--navy-line);
  --link: var(--on-navy);
  --link-hover: var(--white);
  --focus: var(--brass-bright);
  --surface: var(--navy-800);
  --accent-text: var(--brass);
  --live: var(--aqua);
  --err: var(--error-on-navy);
  --ok: var(--good-on-navy);
  color: var(--fg);
}

.on-navy {
  --bg: var(--navy);
  background: var(--bg);
}

.on-deep {
  --bg: var(--navy-950);
  background: var(--bg);
}

.on-panel {
  --bg: var(--panel);
  background: var(--bg);
}

/* A light island inside a navy section, such as a phone screen. */
.on-light {
  color: var(--fg);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--teal);
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--display-weight);
  font-stretch: var(--heading-stretch);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--heading-weight);
  font-stretch: var(--heading-stretch);
  letter-spacing: var(--tracking-heading);
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--heading-weight);
  letter-spacing: var(--tracking-heading);
}

p {
  text-wrap: pretty;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--link);
  text-decoration-thickness: var(--hair);
  text-underline-offset: var(--space-1);
  transition: color var(--fast) var(--ease);
}

a:hover {
  color: var(--link-hover);
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--hair-strong);
}

.visually-hidden {
  position: absolute;
  width: var(--hair);
  height: var(--hair);
  margin: calc(var(--hair) * -1);
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 40;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-4)));
}

.skip-link:focus-visible {
  color: var(--ink);
  transform: none;
}

.top-sentinel {
  position: absolute;
  top: 0;
  width: var(--hair);
  height: var(--hair);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

/* Two sections on the same ground share one gap, not two. */
.section--join {
  padding-block-start: 0;
}

.section-head {
  display: grid;
  gap: var(--space-4);
  margin-block-end: var(--space-6);
}

.section-head p,
.section-after {
  max-width: var(--measure);
  color: var(--fg-soft);
}

.section-head p {
  font-size: var(--text-lg);
  line-height: var(--leading-lead);
}

.section-after {
  margin-block-start: var(--space-6);
}

.section-after a {
  font-weight: 500;
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--space-9);
  }

  .section--join {
    padding-block-start: 0;
  }

  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: end;
    margin-block-end: var(--space-7);
  }

  .section-head h2 {
    grid-column: 1 / span 7;
  }

  .section-head p {
    grid-column: 8 / span 5;
  }

  /* A heading with nothing beside it runs the full width. */
  .section-head--solo h2,
  .section-head--solo p {
    grid-column: 1 / span 9;
  }
}

/* The blueprint grid behind navy sections. Drawn, fading out from one corner, so it reads
   as a drafting surface and never competes with the text. */
.gridlines {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.gridlines::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-ink) var(--hair), transparent var(--hair)),
    linear-gradient(90deg, var(--grid-ink) var(--hair), transparent var(--hair));
  background-size: var(--grid-cell) var(--grid-cell);
  background-position: center top;
  mask-image: radial-gradient(120% 90% at 85% 0%, var(--ink) 0%, transparent 72%);
}

/* ---------- Small parts: kicker, tags ---------- */

/* One line above a page title. Sentence case, set in mono, led by the brass bar from the
   C of the mark. */
.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
}

.kicker::before {
  content: "";
  flex: none;
  inline-size: var(--space-5);
  block-size: calc(var(--space-1) + var(--hair-strong));
  background: var(--brass);
}

/* Marks anything that runs but is not real: a demo with sample data. */
.tag-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  white-space: nowrap;
}

.tag-live::before {
  content: "";
  flex: none;
  inline-size: var(--space-2);
  block-size: var(--space-2);
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s var(--ease-fade) infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---------- Buttons and links ---------- */

/* Brass is the one action colour. Ink text on brass is 7.6:1. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: var(--space-2) var(--space-5);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-key);
  transition:
    background-color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.btn:hover {
  background: var(--brass-bright);
  color: var(--ink);
}

.btn:active {
  transform: translateY(var(--hair));
  box-shadow: none;
}

.btn[disabled] {
  background: var(--fg-soft);
  color: var(--bg);
  box-shadow: none;
  cursor: progress;
}

.btn--sm {
  min-height: var(--control-h-sm);
  padding-inline: var(--space-4);
  font-size: var(--text-sm);
}

/* The quiet second action: an outline in the text colour of whatever it sits on. */
.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 var(--hair) var(--fg-soft);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--fg) 9%, transparent);
  color: var(--fg);
  box-shadow: inset 0 0 0 var(--hair) var(--fg);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h-sm);
  font-weight: 500;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: var(--hair);
  text-underline-offset: var(--space-1);
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}

.link-button:hover {
  color: var(--link-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

/* ---------- Header: logo navy, on every page ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: var(--hair) solid transparent;
  transition: border-color var(--fast) var(--ease);
}

.site-header[data-scrolled] {
  border-bottom-color: var(--navy-line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h-sm);
  margin-inline-end: auto;
  text-decoration: none;
}

.brand img {
  flex: none;
}

.site-nav,
.header-cta {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: var(--space-6);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h-sm);
  color: var(--on-navy-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--white);
}

/* The current page carries the brass bar under it. */
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: var(--space-1);
  block-size: var(--hair-strong);
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--medium) var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.menu-toggle {
  min-height: var(--control-h-sm);
  padding-inline: var(--space-4);
  border: var(--hair) solid var(--fg-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}

/* Hover only where there is a real pointer, so the state cannot stick after a tap. */
@media (hover: hover) {
  .menu-toggle:hover {
    border-color: var(--fg);
    background: color-mix(in srgb, var(--fg) 9%, transparent);
  }
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: block;
  }

  .header-row > .menu-toggle {
    display: none;
  }
}

/* Without JavaScript the menu button cannot open anything, so show the links instead. */
@media (scripting: none) {
  .site-header {
    position: static;
    border-bottom-color: var(--navy-line);
  }

  .header-row {
    flex-wrap: wrap;
    padding-block: var(--space-3);
  }

  .site-nav {
    display: block;
    order: 3;
    width: 100%;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
  }

  .header-row > .menu-toggle {
    display: none;
  }
}

@media (scripting: none) and (min-width: 960px) {
  .site-nav {
    order: 0;
    width: auto;
  }
}

/* ---------- Mobile menu: a full screen navy panel ---------- */

.menu {
  inline-size: 100%;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
}

.menu[open] {
  display: flex;
  flex-direction: column;
}

.menu::backdrop {
  background: transparent;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  flex: none;
}

.menu-links {
  border-top: var(--hair) solid var(--rule);
}

.menu-links li {
  border-bottom: var(--hair) solid var(--rule);
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--display-weight);
  font-stretch: var(--heading-stretch);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-decoration: none;
}

.menu-links a[aria-current] {
  color: var(--brass);
}

.menu-links span {
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
}

.menu-foot {
  display: grid;
  gap: var(--space-4);
  margin-block-start: auto;
  padding-block: var(--space-6);
}

/* ---------- Page hero: the top of every page except home ---------- */

.page-hero {
  padding-block: var(--space-7) var(--space-8);
}

.page-hero-grid {
  display: grid;
  gap: var(--space-7);
}

.page-hero-copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  justify-items: start;
}

.lead {
  max-width: var(--measure);
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: var(--leading-lead);
}

/* Three plain facts under a page lead: what it costs to start, how long, what you get. */
.facts {
  display: grid;
  gap: var(--space-3);
  inline-size: 100%;
  margin-block-start: var(--space-3);
  padding-block-start: var(--space-5);
  border-top: var(--hair) solid var(--rule);
}

/* Each fact keeps its two lines together at the top, whatever the tallest one beside it needs. */
.facts li {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}

.facts strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--heading-weight);
  font-stretch: var(--heading-stretch);
  line-height: var(--leading-snug);
}

.facts span {
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

@media (min-width: 900px) {
  .page-hero {
    padding-block: var(--space-8) var(--space-9);
  }

  .page-hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: center;
  }

  .page-hero-copy {
    grid-column: 1 / span 7;
  }

  .page-hero-art {
    grid-column: 9 / -1;
  }

  /* A hero with no artifact beside it lets the copy run wider. */
  .page-hero-grid--solo .page-hero-copy {
    grid-column: 1 / span 9;
  }
}

/* ---------- The phone: one drawn device, used by every demo ---------- */

.phone {
  position: relative;
  inline-size: min(100%, var(--phone-w));
  aspect-ratio: 300 / 610;
  padding: calc(var(--space-2) + var(--hair-strong));
  border-radius: var(--radius-device);
  background: var(--bezel);
  box-shadow: var(--shadow-device);
}

.on-light .phone,
.phone--on-light {
  box-shadow: var(--shadow-device-light);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  block-size: 100%;
  border-radius: var(--radius-screen);
  background: var(--white);
  font-size: var(--text-xs);
  line-height: 1.35;
  overflow: hidden;
}

.phone-island {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--space-2);
  inset-inline-start: 50%;
  inline-size: 28%;
  block-size: calc(var(--space-5) - var(--hair-strong));
  border-radius: var(--radius-pill);
  background: var(--bezel);
  transform: translateX(-50%);
}

.phone-status {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  block-size: calc(var(--space-7) - var(--space-2));
  padding-inline: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* A battery, drawn. */
.phone-status i {
  position: relative;
  inline-size: calc(var(--space-5) - var(--hair-strong));
  block-size: calc(var(--space-3) - var(--hair));
  border: var(--hair) solid currentColor;
  border-radius: calc(var(--radius-sm) - var(--hair));
  opacity: 0.85;
}

.phone-status i::before {
  content: "";
  position: absolute;
  inset: var(--hair);
  inline-size: 70%;
  border-radius: var(--hair);
  background: currentColor;
}

/* ---------- Bench: the surface a working demo sits on ---------- */

.bench {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bench-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  min-height: calc(var(--control-h) + var(--space-4));
  padding: var(--space-3) var(--space-5);
  border-bottom: var(--hair) solid var(--rule);
}

.bench-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--heading-weight);
  letter-spacing: var(--tracking-heading);
}

/* A small button inside a bench bar. */
.bench-btn {
  position: relative;
  min-height: calc(var(--space-6) + var(--space-1));
  padding: var(--space-1) var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brass);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-key);
  transition: background-color var(--fast) var(--ease);
}

/* Grow the tap target to 44px without growing the button. */
.bench-btn::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-1) * -1);
}

.bench-btn:hover {
  background: var(--brass-bright);
}

.bench-btn[disabled] {
  background: var(--navy-700);
  color: var(--on-navy-soft);
  box-shadow: none;
  cursor: default;
}

.bench-btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 var(--hair) var(--fg-soft);
}

.bench-btn--ghost:hover {
  background: color-mix(in srgb, var(--fg) 9%, transparent);
}

/* ---------- How it works: numbered steps ---------- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-block: var(--space-5);
  border-top: var(--hair) solid var(--rule);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
}

.steps p {
  max-width: var(--measure);
  color: var(--fg-soft);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}

@media (min-width: 1180px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-7);
  }

  .steps--row {
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}

/* ---------- Triptych: three short points with a hairline between ---------- */

.points {
  display: grid;
  border-block: var(--hair) solid var(--rule);
}

.points li {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-block: var(--space-5);
}

.points li + li {
  border-top: var(--hair) solid var(--rule);
}

.points p {
  max-width: var(--measure);
  color: var(--fg-soft);
}

@media (min-width: 900px) {
  .points {
    grid-template-columns: repeat(var(--points, 3), minmax(0, 1fr));
  }

  .points li {
    padding: var(--space-6);
  }

  .points li:first-child {
    padding-inline-start: 0;
  }

  .points li:last-child {
    padding-inline-end: 0;
  }

  .points li + li {
    border-top: 0;
    border-inline-start: var(--hair) solid var(--rule);
  }
}

/* ---------- Proof: the dealer auction platform, as a drawn system ---------- */

.proof-grid {
  display: grid;
  gap: var(--space-7);
}

.proof-copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  justify-items: start;
}

.proof-copy p {
  max-width: var(--measure);
  color: var(--fg-soft);
}

.proof-copy .proof-ask {
  padding-block-start: var(--space-5);
  border-top: var(--hair) solid var(--rule);
}

/* Five parts on one platform. Each part is wired to the hub by a line with a signal
   running along it. */
.system {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-6) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
}

.system li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(var(--space-8) + var(--space-2));
  padding: var(--space-3);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
  line-height: var(--leading-snug);
  grid-column: span 2;
}

.system .system-hub {
  grid-column: 1 / -1;
  min-height: calc(var(--space-8) + var(--space-4));
  border-color: var(--aqua);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--heading-weight);
  font-stretch: var(--heading-stretch);
  letter-spacing: var(--tracking-heading);
}

.system .system-low {
  grid-column: span 3;
}

/* The wire from a part to the hub. */
.system li:not(.system-hub)::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inline-size: var(--hair);
  block-size: var(--space-6);
  background: var(--rule);
}

.system .system-top::after {
  inset-block-start: 100%;
}

.system .system-low::after {
  inset-block-end: 100%;
}

/* The signal on the wire. */
.system li:not(.system-hub)::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline-start: calc(50% - var(--hair-strong));
  inline-size: calc(var(--space-1) + var(--hair));
  block-size: calc(var(--space-1) + var(--hair));
  border-radius: 50%;
  background: var(--aqua);
  animation: signal-down 2.8s var(--ease-fade) infinite;
  animation-delay: calc(var(--i, 0) * 0.45s);
}

.system .system-top::before {
  inset-block-start: 100%;
}

.system .system-low::before {
  inset-block-end: 100%;
  animation-name: signal-up;
}

@keyframes signal-down {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  20%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(var(--space-6));
  }
}

@keyframes signal-up {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  20%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(calc(var(--space-6) * -1));
  }
}

.system li:nth-child(2) { --i: 1; }
.system li:nth-child(3) { --i: 2; }
.system li:nth-child(5) { --i: 3; }
.system li:nth-child(6) { --i: 4; }

.system-note {
  margin-block-start: var(--space-4);
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .system {
    gap: var(--space-6) var(--space-5);
    font-size: var(--text-sm);
  }
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: center;
  }

  .proof-copy {
    grid-column: 1 / span 5;
  }

  .proof-art {
    grid-column: 7 / -1;
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-bottom: var(--hair) solid var(--rule);
}

.faq details {
  border-top: var(--hair) solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--heading-weight);
  font-stretch: var(--heading-stretch);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  list-style: none;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--link);
}

/* A plus that loses its upright when the row is open. */
.faq summary::after {
  content: "";
  flex: none;
  inline-size: var(--space-4);
  block-size: var(--space-4);
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) center / 100% var(--hair-strong) no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) center / var(--hair-strong) 100% no-repeat;
  transition: background-size var(--fast) var(--ease);
}

.faq details[open] summary::after {
  background-size:
    100% var(--hair-strong),
    var(--hair-strong) 0;
}

.faq-body {
  display: grid;
  gap: var(--space-3);
  padding-block-end: var(--space-5);
}

.faq-body p {
  max-width: var(--measure);
  color: var(--fg-soft);
}

.faq-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .faq-grid > h2 {
    grid-column: 1 / span 4;
  }

  .faq-grid > .faq {
    grid-column: 6 / -1;
  }
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--medium) var(--ease),
      content-visibility var(--medium) allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- The closing ask: navy, with the direct lines beside it ---------- */

.ask-grid {
  display: grid;
  gap: var(--space-7);
}

.ask-copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  justify-items: start;
}

.ask-copy p {
  max-width: var(--measure);
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: var(--leading-lead);
}

.direct {
  display: grid;
  gap: var(--space-3);
  padding-block-start: var(--space-5);
  border-top: var(--hair) solid var(--rule);
}

/* Each label sits above its value until the column is wide enough to hold them side by
   side without breaking the email address in two. */
.direct > div {
  display: grid;
  align-items: baseline;
  column-gap: var(--space-4);
}

@media (min-width: 1180px) {
  .direct > div {
    grid-template-columns: var(--space-9) minmax(0, 1fr);
  }
}

.direct dt {
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
}

.direct dd {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--heading-weight);
  line-height: var(--leading-snug);
  font-variant-numeric: tabular-nums;
}

.direct a {
  text-decoration: none;
}

.direct a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .ask-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: end;
  }

  .ask-copy {
    grid-column: 1 / span 7;
  }

  .ask-grid > .direct {
    grid-column: 9 / -1;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-7) var(--space-6);
}

.footer-id {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  justify-items: start;
  color: var(--fg-soft);
}

.footer-col {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}

.footer-col h2 {
  margin-block-end: var(--space-2);
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  font-stretch: 100%;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-mono);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--space-6) + var(--space-1));
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
  border-top: var(--hair) solid var(--rule);
  color: var(--fg-soft);
}

/* The switch that turns on the x-ray (xray.js). Hidden until the script can run it. */
.xray-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-h-sm);
  padding: 0 var(--space-4);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  cursor: pointer;
  transition:
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.xray-toggle::before {
  content: "";
  inline-size: var(--space-2);
  block-size: var(--space-2);
  border: var(--hair) solid currentColor;
  border-radius: 50%;
}

.xray-toggle:hover,
.xray-toggle[aria-pressed="true"] {
  border-color: var(--aqua);
  color: var(--aqua);
}

.xray-toggle[aria-pressed="true"]::before {
  background: currentColor;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-id {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .footer-id {
    grid-column: 1 / span 4;
  }

  .footer-col {
    grid-column: span 2;
  }

  .footer-col:first-of-type {
    grid-column: 6 / span 2;
  }

  /* The last column holds the email address, so it gets the room. */
  .footer-col:last-of-type {
    grid-column: span 3;
  }
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
  padding-block: var(--space-9) var(--space-10);
}

.lost h1 {
  max-inline-size: 16ch;
}

/* ---------- Motion ----------
   On load the top of the page settles in sequence, once. Nothing animates on scroll.
   Content is visible by default; the keyframes only describe where it comes from.
   Everything else that moves, moves because the visitor pressed something. */

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(var(--space-3));
  }
}

.settle {
  animation: settle var(--settle) var(--ease) both;
}

.settle-2 { animation-delay: var(--settle-step); }
.settle-3 { animation-delay: calc(var(--settle-step) * 2); }
.settle-4 { animation-delay: calc(var(--settle-step) * 3); }
.settle-5 { animation-delay: calc(var(--settle-step) * 5); }

/* Page to page: a cross fade instead of a cut. The header is named, so it holds still
   while the content under it changes. A Book a call button that was pressed grows into
   the form card on /contact (site.js names it). */

@view-transition {
  navigation: auto;
  types: page;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.site-header {
  view-transition-name: site-header;
}

.header-row > .menu-toggle {
  view-transition-name: menu-surface;
}

html[data-menu-open] .header-row > .menu-toggle {
  view-transition-name: none;
}

.menu[open] {
  view-transition-name: menu-surface;
}

::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: var(--medium);
  animation-timing-function: var(--ease);
}

html:active-view-transition-type(page)::view-transition-old(root),
html:active-view-transition-type(page)::view-transition-new(root) {
  animation-duration: var(--fade);
  animation-timing-function: var(--ease-fade);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
