:root {
  --qp-black: #101314;
  --qp-slate-deep: #1f2a2e;
  --qp-slate: #3a4548;
  --qp-fog: #9aa5a3;
  --qp-fog-2: #c7cdcb;
  --qp-paper: #f0f1ee;
  --qp-white: #ffffff;
  --qp-red: #e14434;
  --qp-red-dim: #b8362a;
  --qp-red-tint: #fbeae7;
  --qp-success: #2e7d5b;
  --qp-success-tint: #e7f1ec;
  --qp-warning: #a8790c;
  --qp-warning-tint: #f7efdd;
  --qp-pending: #57636a;
  --qp-pending-tint: #e7eae9;
  --color-bg-page: var(--qp-paper);
  --color-bg-surface: var(--qp-white);
  --color-bg-inverse: var(--qp-black);
  --color-text-primary: var(--qp-black);
  --color-text-secondary: #4b5457;
  --color-text-muted: #7a8386;
  --color-text-on-dark: var(--qp-white);
  --color-text-on-dark-muted: var(--qp-fog);
  --color-border: #d6d9d4;
  --color-border-strong: var(--qp-black);
  --color-border-on-dark: var(--qp-slate);
  --color-accent: var(--qp-red);
  --color-accent-hover: var(--qp-red-dim);
  --font-display: "Unbounded", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --shell: 1248px;
  --shadow-flat: 4px 4px 0 rgba(16, 19, 20, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--qp-red);
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--qp-red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-80px);
  background: var(--qp-white);
  border: 2px solid var(--qp-red);
  color: var(--qp-black);
  padding: 10px 14px;
  text-decoration: none;
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: var(--space-9) 0;
}

.section--paper {
  background: var(--qp-paper);
}

.section--white {
  background: var(--qp-white);
}

.section--dark {
  background: var(--qp-black);
  color: var(--qp-white);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--qp-red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title,
.kit-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  overflow-wrap: break-word;
}

.section-title--about,
.section-title--services {
  font-size: clamp(30px, 4.2vw, 48px);
}

.kit-title {
  font-size: clamp(36px, 6vw, 72px);
}

.lead {
  margin: 0;
  max-width: 680px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.section--dark .lead,
.section--dark .muted {
  color: var(--color-text-on-dark-muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 241, 238, .94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--qp-black);
  text-decoration: none;
}

.brand__logo {
  width: 214px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.nav a {
  color: var(--qp-black);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--qp-red);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--qp-black);
  background: transparent;
  color: var(--qp-black);
}

.menu-toggle__line,
.menu-toggle__line::before,
.menu-toggle__line::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.menu-toggle__line::before {
  transform: translateY(-7px);
}

.menu-toggle__line::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line::before {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line::after {
  transform: translateY(-2px) rotate(-90deg);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--qp-black);
  background: var(--qp-black);
  color: var(--qp-white);
  font-weight: 700;
  line-height: 1.2;
  padding: 14px 20px;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(.98);
}

.button--accent {
  border-color: var(--qp-red);
  background: var(--qp-red);
}

.button--accent:hover {
  border-color: var(--qp-red-dim);
  background: var(--qp-red-dim);
}

.button--ghost {
  background: transparent;
  color: var(--qp-black);
}

.button--ghost:hover {
  background: var(--qp-black);
  color: var(--qp-white);
}

.button--light {
  border-color: var(--qp-white);
  background: transparent;
  color: var(--qp-white);
}

.button--light:hover {
  background: var(--qp-white);
  color: var(--qp-black);
}

.button[disabled],
.button.is-disabled {
  border-color: var(--qp-fog-2);
  background: var(--qp-fog-2);
  color: #6f777a;
  cursor: not-allowed;
  transform: none;
}

.hero {
  --hero-gutter: max(24px, calc((100vw - var(--shell)) / 2));
  position: relative;
  padding: 140px var(--hero-gutter) 160px;
  overflow: hidden;
  background: var(--qp-black);
  color: var(--qp-white);
}

.code-panel {
  position: absolute;
  top: 0;
  right: var(--hero-gutter);
  bottom: 0;
  width: 640px;
  margin: 0;
  padding: 32px 40px;
  color: #4b5d5f;
  font: 13px/1.65 var(--font-mono);
  overflow: hidden;
  white-space: pre;
}

.code-panel.is-typing::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: var(--qp-red);
  vertical-align: -0.12em;
  animation: codeCaretBlink 1s steps(1) infinite;
}

@keyframes codeCaretBlink {
  50% {
    opacity: 0;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(16, 19, 20, .7) 0%, rgba(16, 19, 20, .5) 45%, rgba(16, 19, 20, .2) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#1c2528 1px, transparent 1px), linear-gradient(90deg, #1c2528 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
}

.hero__mark {
  position: absolute;
  top: 64px;
  right: var(--hero-gutter);
  width: 96px;
}

.hero__content {
  position: relative;
  max-width: 820px;
}

.hero__eyebrow {
  margin: 0;
  color: var(--qp-red);
  font: 500 14px/1.4 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__headline {
  margin: 24px 0 0;
  color: var(--qp-white);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.3;
}

.hero__lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--qp-fog);
  font: 400 19px/1.6 var(--font-body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  gap: var(--space-8);
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-6);
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.stat {
  min-height: 156px;
  background: var(--qp-white);
  padding: var(--space-5);
}

.stat__value {
  color: var(--qp-black);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.stat__value--accent {
  color: var(--qp-red);
}

.stat__label {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.card,
.service-card,
.kit-card {
  border: 1.5px solid var(--color-border);
  background: var(--qp-white);
}

.service-card {
  min-height: 296px;
  padding: var(--space-6);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.service-card:hover {
  border-color: var(--qp-black);
  box-shadow: var(--shadow-flat);
  transform: translateY(-3px);
}

.service-card--accent {
  border-top: 6px solid var(--qp-red);
}

.card__number {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.card__title {
  margin: var(--space-4) 0 0;
  color: var(--qp-black);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.card__text {
  margin: var(--space-4) 0 0;
  color: var(--color-text-secondary);
}

#quality {
  background-color: var(--qp-black);
  background-image:
    linear-gradient(rgba(28, 37, 40, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 40, .5) 1px, transparent 1px),
    linear-gradient(to right, rgba(16, 19, 20, .7) 0%, rgba(16, 19, 20, .5) 45%, rgba(16, 19, 20, .2) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

.process {
  display: grid;
  grid-template-columns: minmax(380px, .78fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.process > * {
  min-width: 0;
}

.process .section-title {
  font-size: clamp(32px, 3.6vw, 44px);
}

.process .lead {
  margin-top: 28px;
}

.process-list {
  display: grid;
  gap: 1px;
  background: var(--color-border-on-dark);
  border: 1px solid var(--color-border-on-dark);
}

.process-item {
  --gate-delay: 0s;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--qp-slate-deep);
  padding: var(--space-5);
}

.process-item:nth-child(2) {
  --gate-delay: 4s;
}

.process-item:nth-child(3) {
  --gate-delay: 8s;
}

.process-item:nth-child(4) {
  --gate-delay: 12s;
}

.process-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(225, 68, 52, .18), rgba(225, 68, 52, .04) 58%, transparent),
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 46%);
  opacity: 0;
  transform: scaleX(.86);
  transform-origin: left center;
  animation: gateContourHighlight 16s var(--ease) infinite;
  animation-delay: var(--gate-delay);
  will-change: opacity, transform;
}

.process-item > * {
  position: relative;
  z-index: 1;
}

.process-item__step {
  color: var(--qp-red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.process-item__title {
  margin: 0;
  color: var(--qp-white);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
}

.process-item__text {
  margin: 6px 0 0;
  color: var(--qp-fog);
}

.process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(225, 68, 52, .48);
  background: rgba(225, 68, 52, .08);
  color: var(--qp-red);
}

.process-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

@keyframes gateContourHighlight {
  0% {
    opacity: 0;
    transform: scaleX(.86);
  }

  5% {
    opacity: 1;
    transform: scaleX(1);
  }

  20% {
    opacity: .82;
    transform: scaleX(1);
  }

  25%,
  100% {
    opacity: 0;
    transform: scaleX(1.04);
  }
}

.section--case {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background-color: var(--qp-paper);
  background-image:
    linear-gradient(rgba(16, 19, 20, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 20, .07) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, .72), rgba(240, 241, 238, .42));
  background-size: 40px 40px, 40px 40px, 100% 100%;
  color: var(--qp-black);
}

.case-slider {
  position: relative;
}

.case-slider.is-enhanced .case-slider__viewport {
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.case-slider__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
}

.case-slider__head .eyebrow {
  margin-bottom: 0;
}

.case-dots {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
}

.case-dot {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
}

.case-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--qp-black);
  background: transparent;
}

.case-dot[aria-selected="true"]::before {
  border-color: var(--qp-red);
  background: var(--qp-red);
}

.case-dot:hover::before,
.case-dot:focus-visible::before {
  border-color: var(--qp-red);
}

.case-slider__viewport {
  position: relative;
}

.case-slide {
  animation: caseSlideIn .28s var(--ease);
}

.case-slider.is-enhanced .case-slide {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(112%);
  transition:
    transform .74s var(--ease),
    visibility 0s linear .74s;
  animation: none;
  will-change: transform;
}

.case-slider.is-enhanced .case-slide.is-active {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.case-slider.is-enhanced .case-slide.is-exiting {
  visibility: visible;
  pointer-events: none;
  transform: translateX(-112%);
  transition-delay: 0s;
}

.case-slider.is-enhanced .case-slide.is-resetting {
  visibility: hidden;
  transition: none;
}

.case-slide[hidden] {
  display: none;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .76fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
  align-items: center;
}

.case-layout > * {
  min-width: 0;
}

.case-copy {
  padding: 0;
  background: transparent;
  color: var(--qp-black);
}

.case-copy .section-title {
  max-width: 760px;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.13;
}

.case-copy .lead {
  margin-top: 24px;
  max-width: 650px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  margin-top: var(--space-6);
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.case-metric {
  background: rgba(255, 255, 255, .82);
  padding: var(--space-5);
}

.case-metric__value {
  color: var(--qp-black);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
}

.case-metric__label {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.system-map {
  min-height: 360px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.system-map__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.system-node {
  min-height: 110px;
  border: 1.5px solid var(--qp-black);
  background: rgba(255, 255, 255, .78);
  padding: var(--space-4);
  box-shadow: 3px 3px 0 rgba(16, 19, 20, .08);
}

.system-node--accent {
  border-color: var(--qp-red);
  background: rgba(251, 234, 231, .76);
  box-shadow: 3px 3px 0 rgba(225, 68, 52, .14);
}

.system-node__label {
  display: block;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.system-node__name {
  display: block;
  margin-top: 10px;
  color: var(--qp-black);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
}

@keyframes caseSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--color-border);
  background: var(--qp-white);
  color: var(--qp-black);
  padding: 8px 12px;
  font-weight: 700;
}

.tag--active {
  border-color: var(--qp-red);
  background: var(--qp-red);
  color: var(--qp-white);
}

#stack .section-title {
  font-size: clamp(32px, 3.6vw, 44px);
}

#contact .section-title {
  font-size: clamp(32px, 3.6vw, 44px);
}

#contact .lead {
  margin-top: var(--space-4);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(420px, .8fr);
  gap: var(--space-8);
}

.contact-panel {
  border: 1.5px solid var(--color-border-on-dark);
  background: var(--qp-slate-deep);
  padding: var(--space-6);
}

.contact-list {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--qp-white);
  font-weight: 700;
  text-decoration-color: var(--qp-red);
  text-underline-offset: 4px;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-6);
  border: 1.5px solid var(--color-border-on-dark);
}

.contact-channels a {
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--qp-white);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.contact-channels a + a {
  border-left: 1.5px solid var(--color-border-on-dark);
}

.contact-channels a:hover,
.contact-channels a:focus-visible {
  background: var(--qp-red);
  color: var(--qp-white);
}

.contact-info {
  display: grid;
  margin-top: var(--space-6);
  border-top: 1.5px solid var(--color-border-on-dark);
}

.contact-info__row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-bottom: 1.5px solid var(--color-border-on-dark);
}

.contact-info__row span {
  color: var(--qp-red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-info__row strong {
  color: var(--qp-white);
  font-size: 18px;
  line-height: 1.35;
}

.form {
  display: grid;
  gap: var(--space-4);
  border: 1.5px solid var(--color-border-on-dark);
  background: var(--qp-white);
  padding: var(--space-6);
  color: var(--qp-black);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field__label {
  color: var(--qp-black);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--color-border);
  background: var(--qp-white);
  color: var(--qp-black);
  padding: 12px 14px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
}

.field select::-ms-expand {
  display: none;
}

.select-control {
  position: relative;
}

.select-control select {
  cursor: pointer;
  padding-right: 56px;
}

.select-control::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--qp-black);
  border-bottom: 2px solid var(--qp-black);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.select-control:focus-within::after {
  border-color: var(--qp-red);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--qp-black);
  outline: 3px solid var(--qp-red);
  outline-offset: 2px;
}

.field [aria-invalid="true"] {
  border-color: var(--qp-red);
  background: var(--qp-red-tint);
}

.checkbox [aria-invalid="true"] {
  outline: 2px solid var(--qp-red);
  outline-offset: 2px;
}

.field__error {
  min-height: 20px;
  color: var(--qp-red);
  font-size: 13px;
}

.checkbox {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--qp-red);
  margin-top: 3px;
}

.checkbox a {
  color: inherit;
  font-weight: 700;
  text-decoration-color: var(--qp-red);
  text-underline-offset: 3px;
}

.form-status {
  min-height: 24px;
  color: var(--qp-success);
  font-weight: 700;
}

.legal-hero {
  padding-top: 132px;
}

.legal-hero__inner,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, .92fr);
  gap: var(--space-8);
  align-items: start;
}

.legal-hero .section-title,
.legal-layout .section-title {
  font-size: clamp(32px, 3.6vw, 44px);
}

.legal-hero .lead {
  margin: 0;
}

.legal-hero__aside {
  display: grid;
  gap: var(--space-5);
}

.legal-download {
  justify-self: start;
}

.legal-data {
  display: grid;
  border-top: 1.5px solid var(--color-border);
}

.legal-data__row {
  display: grid;
  grid-template-columns: minmax(160px, .42fr) minmax(0, 1fr);
  gap: var(--space-5);
  border-bottom: 1.5px solid var(--color-border);
  padding: 18px 0;
}

.legal-data__row span,
.legal-list span {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-data__row strong {
  color: var(--qp-black);
  font-weight: 700;
  line-height: 1.45;
}

.legal-copy {
  color: var(--color-text-secondary);
  font-size: 18px;
}

.legal-copy p {
  max-width: 760px;
  margin: 0;
}

.legal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-6);
  border: 1.5px solid var(--color-border);
  background: var(--color-border);
}

.legal-list span {
  min-height: 64px;
  background: var(--qp-white);
  color: var(--qp-black);
  padding: 18px;
  font-weight: 700;
}

.legal-list--compact span {
  min-height: 56px;
}

.legal-note {
  margin-top: var(--space-5);
  border-left: 4px solid var(--qp-red);
  background: var(--qp-red-tint);
  color: var(--qp-black);
  padding: var(--space-4);
  font-weight: 700;
}

.legal-note a,
.legal-data__row a {
  color: inherit;
  text-decoration-color: var(--qp-red);
  text-underline-offset: 4px;
}

.legal-article {
  display: grid;
  gap: var(--space-4);
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.legal-article p {
  margin: 0;
  max-width: 780px;
}

.legal-contact {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.legal-contact a:not(.button) {
  color: var(--qp-white);
  font-size: 20px;
  font-weight: 700;
  text-decoration-color: var(--qp-red);
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1.5px solid var(--qp-black);
  background: var(--qp-paper);
}

.site-footer__inner {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-footer__logo {
  width: 36px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  font-weight: 700;
}

.site-footer__nav a {
  text-decoration-color: var(--qp-red);
  text-underline-offset: 4px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.fixed-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  border: 1.5px solid var(--qp-black);
  background: var(--qp-black);
  color: var(--qp-white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.fixed-link:hover {
  border-color: var(--qp-red);
  background: var(--qp-red);
}

.kit-hero {
  padding: var(--space-8) 0 var(--space-7);
  background: var(--qp-paper);
  border-bottom: 1px solid var(--color-border);
}

.kit-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
  padding: var(--space-7) 0 var(--space-9);
}

.kit-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
}

.kit-side a {
  border-left: 3px solid transparent;
  color: var(--color-text-secondary);
  padding: 8px 0 8px 12px;
  text-decoration: none;
}

.kit-side a:hover {
  border-color: var(--qp-red);
  color: var(--qp-black);
}

.kit-section {
  margin-bottom: var(--space-8);
}

.kit-section__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
}

.kit-card {
  padding: var(--space-5);
}

.kit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}

.logo-tile {
  display: grid;
  min-height: 142px;
  min-width: 180px;
  place-items: center;
  border: 1px solid var(--color-border);
  background: var(--qp-white);
  padding: var(--space-5);
}

.logo-tile--dark {
  background: var(--qp-black);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.swatch {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
}

.type-sample {
  display: grid;
  gap: var(--space-4);
}

.type-sample__display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--color-border);
  background: var(--qp-white);
  color: var(--qp-black);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge--success {
  border-color: var(--qp-success);
  background: var(--qp-success-tint);
  color: var(--qp-success);
}

.badge--warning {
  border-color: var(--qp-warning);
  background: var(--qp-warning-tint);
  color: var(--qp-warning);
}

.badge--danger {
  border-color: var(--qp-red);
  background: var(--qp-red-tint);
  color: var(--qp-red);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.switch {
  display: inline-grid;
  grid-template-columns: 48px auto;
  gap: 12px;
  align-items: center;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch__track {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1.5px solid var(--qp-black);
  background: var(--qp-white);
}

.switch__track::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--qp-black);
  content: "";
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.switch input:checked + .switch__track::after {
  transform: translateX(22px);
  background: var(--qp-red);
}

.tabs {
  display: inline-flex;
  border: 1.5px solid var(--qp-black);
}

.tabs button {
  min-height: 44px;
  border: 0;
  border-right: 1.5px solid var(--qp-black);
  background: var(--qp-white);
  color: var(--qp-black);
  padding: 10px 16px;
  font-weight: 700;
}

.tabs button:last-child {
  border-right: 0;
}

.tabs button[aria-selected="true"] {
  background: var(--qp-black);
  color: var(--qp-white);
}

.tab-panel[hidden] {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--color-border);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--qp-white);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
  max-width: 420px;
  border: 1.5px solid var(--qp-success);
  background: var(--qp-success-tint);
  color: var(--qp-success);
  padding: var(--space-4);
}

.toast--danger {
  border-color: var(--qp-red);
  background: var(--qp-red-tint);
  color: var(--qp-red);
}

.toast[hidden] {
  display: none;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
}

.dialog {
  width: min(520px, calc(100% - 32px));
  border: 2px solid var(--qp-black);
  background: var(--qp-white);
  color: var(--qp-black);
  padding: 0;
  box-shadow: 8px 8px 0 rgba(16, 19, 20, .2);
}

.dialog::backdrop {
  background: rgba(16, 19, 20, .58);
}

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

.dialog__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 24px;
}

.dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  gap: var(--space-4);
}

.icon {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .process-item::before {
    display: none;
  }

  .code-panel.is-typing::after {
    display: none;
  }
}

@media (max-width: 1120px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .button {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 88px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 1.5px solid var(--qp-black);
    background: var(--qp-paper);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-top: 1px solid var(--color-border);
    padding: 18px 24px;
  }

  .two-col,
  .process,
  .case-layout,
  .legal-hero__inner,
  .legal-layout,
  .contact-layout,
  .section__head,
  .kit-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 112px var(--hero-gutter) 136px;
  }

  .code-panel {
    width: 560px;
  }

  .hero__mark {
    top: 48px;
    right: var(--hero-gutter);
  }

  .kit-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .kit-layout {
    width: calc(100% - 32px);
  }

  .kit-layout > *,
  .kit-section,
  .kit-card,
  .kit-row {
    min-width: 0;
    max-width: 100%;
  }

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

  .brand__logo {
    width: 166px;
  }

  .hero {
    --hero-gutter: 16px;
    padding: 88px var(--hero-gutter) 104px;
  }

  .section--case {
    padding: 80px 0 72px;
  }

  .case-slider__head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }

  .case-copy .section-title {
    max-width: none;
  }

  .case-copy .lead {
    max-width: none;
    font-size: 16px;
  }

  .case-metrics {
    max-width: none;
  }

  .stats-grid,
  .service-grid,
  .legal-data__row,
  .legal-list,
  .form__grid,
  .control-grid,
  .swatch-grid {
    grid-template-columns: 1fr;
  }

  .legal-data__row strong,
  .legal-contact a:not(.button) {
    overflow-wrap: anywhere;
  }

  .code-panel {
    right: 0;
    width: 100%;
    opacity: .62;
  }

  .hero__mark {
    top: 32px;
    right: var(--hero-gutter);
    width: 72px;
  }

  .hero__headline {
    max-width: 640px;
    font-size: clamp(32px, 10vw, 46px);
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .fixed-link {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 76px;
  }

  .nav {
    inset: 76px 0 auto 0;
  }

  .hero__actions,
  .dialog__footer,
  .site-footer__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer__meta {
    justify-content: flex-start;
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .code-panel {
    padding: 24px;
    font-size: 11px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .case-metrics,
  .system-map__grid {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .form,
  .case-copy,
  .service-card,
  .kit-card {
    padding: var(--space-5);
  }

  .logo-tile {
    min-width: 0;
    width: 100%;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 48px);
  }
}
