/* Solved-Technologies — dark-only design system.
   Order: tokens, base, type, layout, header, buttons, sections, cards, steps,
   forms, hero, bands, footer, page-specific, motion, reduced motion. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0b0f14;
  --bg-elev: #10161d;
  --surface: #141c25;
  --surface-2: #1a2430;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #e8edf2;
  --text-2: #c3ccd6;
  --muted: #8a99a8;

  --blue: #1769ff; /* fills only: too dark for text on --bg */
  --blue-hover: #3b80ff;
  --blue-text: #6a9eff;
  --blue-soft: rgba(23, 105, 255, 0.14);
  --glow: 0 0 0 1px rgba(23, 105, 255, 0.35), 0 20px 60px -20px rgba(23, 105, 255, 0.45);

  /* Legacy aliases, kept so older markup (e.g. worker pages) still resolves. */
  --ink: var(--text);
  --paper: var(--bg);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lede: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);

  --radius: 6px;
  --radius-lg: 12px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(23, 105, 255, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font: 500 var(--fs-sm) var(--sans);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 10px;
}

/* ---------- Type ---------- */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.45em;
}

h1 span,
h2 span {
  color: var(--blue-text);
}

p {
  color: var(--text-2);
}

strong {
  color: var(--text);
  font-weight: 600;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font: 400 var(--fs-xs) / 1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker > span {
  color: var(--blue-text);
}

.lede,
.page-lede {
  max-width: 38rem;
  color: var(--text-2);
  font-size: var(--fs-lede);
  line-height: 1.6;
}

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

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 2 * var(--gutter));
}

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

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  max-width: 22ch;
  margin: 0;
}
.section-head .lede {
  margin: 0;
}

@media (min-width: 1000px) {
  .section-head--split {
    grid-template-columns: 1fr minmax(0, 26rem);
    align-items: end;
    gap: 3rem;
  }
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 20, 0.9);
  border-bottom-color: var(--line);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font: 500 14px / 1 var(--mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand b {
  font-weight: 400;
  color: var(--muted);
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 6px 20px -8px rgba(23, 105, 255, 0.55);
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-menu {
  display: none;
}

.nav-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.menu-toggle-bars {
  position: relative;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before {
  transform: translateY(-6px);
}
.menu-toggle-bars::after {
  transform: translateY(6px);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: rotate(-45deg);
}

/* Mobile menu panel */
.nav-menu.open {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: grid;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: rgba(11, 15, 20, 0.97);
  border-bottom: 1px solid var(--line);
  animation: menu-in 0.22s var(--ease);
}
.nav-menu.open a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.0625rem;
}
.nav-menu.open a:last-child {
  border-bottom: 0;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.nav-cta .label-short {
  display: none;
}

@media (max-width: 999px) {
  .nav {
    gap: 0.75rem;
  }
  .brand {
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .nav-cta .label-full {
    display: none;
  }
  .nav-cta .label-short {
    display: inline;
  }
}
@media (max-width: 359px) {
  .brand-word {
    display: none;
  }
}

@media (min-width: 1000px) {
  .nav {
    gap: 2rem;
  }
  .menu-toggle {
    display: none;
  }
  .nav-menu,
  .nav-menu.open {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
    animation: none;
  }
  .nav-menu a,
  .nav-menu.open a {
    min-height: 0;
    border: 0;
    color: var(--muted);
    font-size: var(--fs-sm);
    transition: color 0.15s ease;
  }
  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] {
    color: var(--text);
  }
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 0.9375rem / 1.2 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}

.button-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 30px -12px rgba(23, 105, 255, 0.8);
}
.button-blue:hover {
  background: var(--blue-hover);
}
.button-blue:focus-visible {
  box-shadow: var(--glow);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
}
.button-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-sm {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-sm);
}

/* Arrow inside buttons and links: SVG icon or a legacy text span. */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s var(--ease);
}
.button:hover .icon,
.quiet-link:hover .icon {
  transform: translateX(3px);
}
.button > span {
  font-family: var(--sans);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--blue-text);
  font: 500 var(--fs-sm) / 1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.quiet-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}
.quiet-link > span {
  color: currentColor;
}

/* ---------- Page header (inner pages and worker pages) ---------- */
.page-header {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
}
.page-header h1 {
  max-width: 18ch;
}
.page-header .button-row {
  margin-top: 2rem;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s var(--ease), background-color 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  margin: 0;
  font-size: 0.9375rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid {
    gap: 1.25rem;
  }
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid rgba(23, 105, 255, 0.3);
  color: var(--blue-text);
}
.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Services: numbered rows */
.service-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service-item .num {
  grid-row: span 2;
  color: var(--blue-text);
  font: 400 var(--fs-xs) / 2.2 var(--mono);
  letter-spacing: 0.08em;
}
.service-item h3 {
  margin: 0;
}
.service-item p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9375rem;
}
/* Service titles link to their own pages; the padding enlarges the tap target without moving the text. */
.service-item h3 a {
  padding-block: 0.6em;
  transition: color 0.15s ease;
}
.service-item h3 a:hover {
  color: var(--blue-text);
}
.service-item h3 .icon {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: -0.1em;
  color: var(--blue-text);
}
.service-item h3 a:hover .icon {
  transform: translateX(3px);
}
@media (min-width: 1000px) {
  .service-item {
    grid-template-columns: 4rem minmax(0, 22rem) 1fr;
    align-items: baseline;
    gap: 2rem;
    padding: 1.75rem 0;
  }
  .service-item .num {
    grid-row: auto;
  }
}

.section-foot {
  margin-top: 2rem;
}

/* Work examples */
.work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.work-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font: 400 var(--fs-xs) / 1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.work-card h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
}
.work-card > p:not(.work-tag) {
  flex: 1;
}
.work-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  font: 400 0.75rem / 1.4 var(--mono);
  white-space: nowrap;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  color: var(--blue-text);
  font: 400 var(--fs-xs) / 1 var(--mono);
  letter-spacing: 0.1em;
}
/* The blue line shows how far through the process each step is. Four steps: change these if that changes. */
.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: var(--progress);
  height: 1px;
  background: var(--blue);
  transform-origin: left;
}
.step:nth-child(1) {
  --progress: 25%;
}
.step:nth-child(2) {
  --progress: 50%;
}
.step:nth-child(3) {
  --progress: 75%;
}
.step:nth-child(4) {
  --progress: 100%;
}
.step p {
  margin: 0;
  font-size: 0.9375rem;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 0.5rem;
}
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-2);
  font: 500 var(--fs-sm) / 1.3 var(--sans);
}
.field-label small {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea,
.input-row input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: 400 16px / 1.4 var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238a99a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder,
.input-row input::placeholder {
  color: #6b7a89;
}
.field input:hover,
.field select:hover,
.field textarea:hover,
.input-row input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input-row input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
  background: #1c2733;
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .input-row {
    flex-direction: row;
  }
  .input-row input {
    flex: 1;
    min-width: 0;
  }
}

.form-message {
  display: block;
  min-height: 1.4em;
  color: var(--text-2);
  font: 400 var(--fs-sm) / 1.4 var(--sans);
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.form-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Turnstile runs invisibly; while hidden it is taken out of the form's grid so it adds no gap.
   When Cloudflare needs a click, script.js adds .is-shown. */
.form-turnstile:not(.is-shown) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-turnstile.is-shown {
  overflow: hidden;
  border-radius: var(--radius);
  line-height: 0;
  animation: fade-in 0.25s ease both;
}
.form-turnstile iframe {
  display: block;
}

/* Honeypot: off-screen, never shown to people. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
.hero::before {
  /* Faint engineering grid fading out from the top. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: min(900px, 120vw);
  height: 700px;
  background: radial-gradient(closest-side, rgba(23, 105, 255, 0.18), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  max-width: 17ch;
}
.hero .lede {
  margin-bottom: 2rem;
}

/* Full-width strip of selling points scrolling right to left. The list is duplicated (the copy is
   aria-hidden) and the track moves by exactly half its width, so the loop is seamless. */
.ticker {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-list {
  display: flex;
  flex-shrink: 0;
  gap: 2.75rem;
  margin: 0;
  padding: 0 2.75rem 0 0;
  list-style: none;
  color: var(--muted);
  font: 400 var(--fs-xs) / 1.6 var(--mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.ticker-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-text);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.hero-visual svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.schematic .wire {
  fill: none;
  stroke: rgba(106, 158, 255, 0.55);
  stroke-width: 1.25;
}
.schematic .wire-faint {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.schematic .node-box {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.schematic .node-dot {
  fill: var(--blue-text);
}
.schematic .node-label {
  fill: var(--text-2);
  font: 400 11px var(--mono);
  letter-spacing: 0.06em;
}
.schematic .core-box {
  /* Matches the logo tile. */
  fill: var(--surface);
  stroke: rgba(106, 158, 255, 0.45);
  stroke-width: 2.25;
}
.schematic .core-logo path {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schematic .core-logo circle {
  fill: var(--blue);
}
.schematic .pulse {
  fill: var(--blue-text);
}

@media (max-width: 639px) {
  .schematic .node-label {
    font-size: 14px;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }
}

/* ---------- Bands ---------- */
.band {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.products-band .container {
  display: grid;
  gap: 2.5rem;
}
.products-band h2 {
  margin-bottom: 1rem;
}
.products-band p {
  max-width: 32rem;
}
.newsletter-form {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.newsletter-form .field-label {
  margin-bottom: 0.25rem;
}
@media (min-width: 1000px) {
  .products-band .container {
    grid-template-columns: 1fr minmax(0, 30rem);
    align-items: center;
    gap: 4rem;
  }
}

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -60%;
  width: min(1000px, 140vw);
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(23, 105, 255, 0.2), transparent);
  pointer-events: none;
}
.cta-band h2 {
  margin-inline: auto;
  max-width: 18ch;
}
.cta-band p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: var(--fs-lede);
}
.cta-band .button-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--line);
  background: #080b0f;
}
.footer-main {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-main p {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.75rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 28px;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-links .footer-cta {
  color: var(--blue-text);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 var(--fs-xs) / 1.6 var(--mono);
  letter-spacing: 0.04em;
}
@media (min-width: 1000px) {
  .footer-main {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-links {
    grid-template-columns: repeat(3, max-content);
  }
}

/* ---------- Page-specific ---------- */

/* Inquire */
.inquiry-layout {
  display: grid;
  gap: 3rem;
  padding-bottom: var(--section);
}
.inquiry-form {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.inquiry-form .button {
  justify-self: start;
}
.inquiry-aside h2 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.inquiry-aside > * + h2 {
  margin-top: 2.5rem;
}
.check-list,
.next-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li,
.next-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.check-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 0.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%236a9eff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.next-list {
  counter-reset: next;
}
.next-list li::before {
  counter-increment: next;
  content: counter(next);
  color: var(--blue-text);
  font: 400 var(--fs-xs) / 1.9 var(--mono);
}
@media (min-width: 1000px) {
  .inquiry-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
  }
  .inquiry-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
@media (max-width: 999px) {
  .inquiry-form {
    order: -1;
  }
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
}
.prose {
  max-width: 40rem;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  padding-left: 1.2rem;
  color: var(--text-2);
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose li::marker {
  color: var(--blue-text);
}
.prose a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose .updated {
  color: var(--muted);
  font: 400 var(--fs-xs) var(--mono);
  letter-spacing: 0.06em;
}

.fact-card {
  align-self: start;
}
.fact-list {
  display: grid;
  margin: 0;
}
.fact-list div {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-list div:first-child {
  padding-top: 0;
}
.fact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.fact-list dt {
  color: var(--muted);
  font: 400 var(--fs-xs) / 1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fact-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
}
.fact-list a {
  color: var(--blue-text);
}
@media (min-width: 1000px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 5rem;
  }
  .fact-card {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.principle-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Worker-rendered pages (unsubscribe) */
.page-actions {
  margin-top: 2rem;
}
.page-note {
  margin-top: 3rem;
  font-size: var(--fs-sm);
}

/* 404 */
.not-found {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  align-content: center;
}

/* ---------- Business card (/business-card) ---------- */
/* The printed card is 85 x 55 mm. Sizes are in container units (cqw) of .vcard-stage, so the card
   keeps the print proportions at any width: 1 mm on the card = 1.176cqw. */
.vcard-section {
  display: grid;
  justify-items: center;
  gap: 2.5rem;
}
.page-header + .vcard-section {
  padding-bottom: var(--section);
}
.vcard-stage {
  position: relative;
  width: min(560px, 100%);
  container-type: inline-size;
  perspective: 1400px;
  user-select: none;
  -webkit-user-select: none;
}
.vcard {
  position: relative;
  display: grid;
  gap: 1.5rem;
  outline: none;
}
.vcard-face {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 85 / 55;
  padding: 5.88cqw;
  border-radius: 3.5cqw;
  background: var(--bg);
  /* A fine blue rim on both faces, matching the site's focus colour. */
  box-shadow: 0 0 0 1.5px rgba(106, 158, 255, 0.85);
  color: var(--text);
}
.vcard-logo {
  display: block;
}

.vcard-front {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.vcard-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(23, 105, 255, 0.22), transparent) calc(100% + 21cqw) -26cqw / 82cqw 70cqw no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 4.7cqw 4.7cqw,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 4.7cqw 4.7cqw;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 75%);
  mask-image: linear-gradient(200deg, #000 20%, transparent 75%);
}
.vcard-brand {
  display: flex;
  align-items: center;
  gap: 2.35cqw;
}
.vcard-brand .vcard-logo {
  width: 7.65cqw;
  height: 7.65cqw;
}
.vcard-wordmark {
  font: 500 2.57cqw / 1 var(--mono);
  letter-spacing: -0.01em;
}
.vcard-wordmark b {
  font-weight: 400;
  color: var(--muted);
}
.vcard-who {
  align-self: center;
}
.vcard-name {
  margin: 0;
  font-size: 5.81cqw;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.vcard-role {
  margin: 1.41cqw 0 0;
  color: var(--muted);
  font-size: 2.9cqw;
  line-height: 1.3;
}
.vcard-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font: 400 2.66cqw / 1.75 var(--mono);
}
.vcard-trace {
  position: absolute;
  right: 4.7cqw;
  bottom: 7.06cqw;
  width: 25.9cqw;
  fill: none;
  stroke: rgba(106, 158, 255, 0.55);
  stroke-width: 0.9;
}
.vcard-trace circle {
  fill: var(--blue-text);
  stroke: none;
}
.vcard-trace circle:last-child {
  fill: var(--blue);
}

.vcard-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(closest-side, rgba(23, 105, 255, 0.2), transparent) center 42% / 70.6cqw 54cqw no-repeat, var(--bg);
}
.vcard-back .vcard-logo {
  width: 17.6cqw;
  height: 17.6cqw;
  filter: drop-shadow(0 1.8cqw 4.7cqw rgba(23, 105, 255, 0.35));
}
.vcard-tagline {
  margin: 4.7cqw 0 0;
  color: var(--text-2);
  font: 400 2.33cqw var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vcard-foot {
  position: absolute;
  left: 5.88cqw;
  right: 5.88cqw;
  bottom: 4.1cqw;
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
  font: 400 2.33cqw var(--mono);
  letter-spacing: 0.04em;
}
.vcard-url {
  color: var(--blue-text);
}
.vcard-shadow,
.vcard-slice {
  display: none;
}
.vcard-actions {
  justify-content: center;
}

/* With JavaScript: one 3D card that tilts towards the pointer and flips on click.
   script.js sets the card's transform and --gx/--gy (glare position) on .vcard. */
html.js .vcard {
  display: block;
  aspect-ratio: 85 / 55;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
}
html.js .vcard-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 0 0 1.5px rgba(106, 158, 255, 0.85), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
/* Thickness: 1 mm on an 85 mm card = 1.176cqw. The faces sit on either side of it and seven thin
   black layers fill the gap, so the edge follows the rounded corners. */
html.js .vcard {
  --half: 0.588cqw;
}
html.js .vcard-front {
  transform: translateZ(var(--half));
}
html.js .vcard-back {
  transform: rotateY(180deg) translateZ(var(--half));
}
html.js .vcard-slice {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 3.5cqw;
  background: #030507;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
}
html.js .vcard-slice:nth-of-type(1) { transform: translateZ(-0.5cqw); }
html.js .vcard-slice:nth-of-type(2) { transform: translateZ(-0.33cqw); }
html.js .vcard-slice:nth-of-type(3) { transform: translateZ(-0.17cqw); }
html.js .vcard-slice:nth-of-type(4) { transform: translateZ(0); }
html.js .vcard-slice:nth-of-type(5) { transform: translateZ(0.17cqw); }
html.js .vcard-slice:nth-of-type(6) { transform: translateZ(0.33cqw); }
html.js .vcard-slice:nth-of-type(7) { transform: translateZ(0.5cqw); }
html.js .vcard-face::after {
  /* Moving glare, like light catching a matte card. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.09), transparent 55%);
}
/* Keyboard focus: the rim brightens and glows, so it still shows on top of the permanent one. */
html.js .vcard:focus-visible .vcard-face {
  box-shadow: 0 0 0 2.5px var(--blue-text), 0 0 28px rgba(23, 105, 255, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
html.js .vcard-shadow {
  display: block;
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  bottom: -9%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 105, 255, 0.28), transparent);
  filter: blur(14px);
  pointer-events: none;
  will-change: transform, opacity;
}
/* Until script.js starts the entrance (when the card scrolls into view), keep it hidden so it
   doesn't flash flat first. */
html.js .vcard-stage:not(.is-live) {
  opacity: 0;
}
/* The buttons under the card fade up, one after another, once it has landed. */
html.js .vcard-actions > * {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .vcard-section.is-landed .vcard-actions > * {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
html.js .vcard-section.is-landed .vcard-actions > :nth-child(2) {
  transition-delay: 0.1s;
}
/* Touchdown: one soft blue pulse spreading out behind the card. */
html.js .vcard-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 3.5cqw;
  background: radial-gradient(closest-side, rgba(23, 105, 255, 0.45), transparent);
  opacity: 0;
  pointer-events: none;
}
html.js .vcard-stage.has-touched-down::before {
  animation: card-land 1.1s var(--ease) both;
}
@keyframes card-land {
  from {
    opacity: 0.9;
    transform: scale(0.85);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

/* ---------- Motion ---------- */

/* Scroll reveal: content is visible unless JS is running. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
html.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
html.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* Step progress lines grow in one after another once their step appears. */
html.js .step.reveal::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.2s;
}
html.js .step.reveal.is-visible::after {
  transform: none;
}
html.js .step.reveal:nth-child(2)::after {
  transition-delay: 0.4s;
}
html.js .step.reveal:nth-child(3)::after {
  transition-delay: 0.6s;
}
html.js .step.reveal:nth-child(4)::after {
  transition-delay: 0.8s;
}

/* Hero entrance */
.hero-copy > * {
  animation: rise 0.8s var(--ease) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Schematic draws itself once. Lines use pathLength="1". */
.schematic .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) 0.35s forwards;
}
.schematic .draw:nth-of-type(2n) {
  animation-delay: 0.5s;
}
.schematic .node {
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: 1s;
}
.schematic .node:nth-of-type(2n) {
  animation-delay: 1.15s;
}
.schematic .core {
  opacity: 0;
  animation: fade-in 0.6s ease 0.2s forwards;
}
.schematic .pulse {
  opacity: 0;
  animation: fade-in 0.4s ease 1.8s forwards;
}
/* Live schematic (script.js): wires draw in, then the device and junction dot fade in. Removing
   .is-on reverses it, so the wire retracts back into the core. */
.schematic .live-wire {
  fill: none;
  stroke: rgba(106, 158, 255, 0.55);
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease);
}
.schematic .live-dot,
.schematic .device {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.schematic .live-dot {
  fill: var(--blue-text);
}
.schematic .live-wire.is-on {
  stroke-dashoffset: 0;
}
.schematic .live-dot.is-on,
.schematic .device.is-on {
  opacity: 1;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ticker-track {
    width: min(1180px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    animation: none;
  }
  .ticker-list {
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0;
    white-space: normal;
  }
  .ticker-list[aria-hidden="true"] {
    display: none;
  }
  .schematic .draw {
    stroke-dashoffset: 0;
  }
  .schematic .node,
  .schematic .core,
  .schematic .pulse,
  .hero-copy > * {
    opacity: 1;
    animation: none;
  }
}
