:root {
  --ink: #121a24;
  --ink-soft: #1c2733;
  --paper: #f5f7f9;
  --white: #ffffff;
  --steel: #5b6b7b;
  --line: #d8dee5;
  --cobalt: #1f4fd8;
  --cobalt-soft: #e6ecfb;
  --amber: #d9962b;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 62ch;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus { left: 12px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.9375rem;
  color: var(--steel);
  text-decoration: none;
}

.nav-list a:hover { color: var(--ink); }

.nav-list .nav-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 7px 14px;
}

.nav-list .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

/* Hero: headline beside a drawing of the kind of software we build */

.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  max-width: 16ch;
}

.lede {
  margin-top: clamp(18px, 2.5vw, 26px);
  max-width: var(--measure);
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: clamp(26px, 3.5vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.button {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  background: var(--cobalt);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  padding: 13px 22px;
}

.button:hover { background: #173fb0; }

.hero-email {
  font-size: 1rem;
  color: var(--steel);
}

/* The editor drawing */

.editor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 60px -40px rgba(18, 26, 36, 0.45);
  overflow: hidden;
  font-size: 12px;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.editor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.editor-title {
  margin-left: 10px;
  color: var(--steel);
  font-size: 12px;
}

.editor-avatars {
  margin-left: auto;
  display: flex;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.avatar-a { background: var(--cobalt); }
.avatar-b { background: var(--amber); margin-left: -6px; }

.editor-body {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 96px;
  height: clamp(220px, 26vw, 300px);
}

.editor-tools {
  border-right: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.editor-tools span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--line);
}

.editor-tools span:first-child { background: var(--cobalt); }

.canvas {
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 100%,
    #f0f3f6;
  background-blend-mode: normal;
  overflow: hidden;
}

.shape { position: absolute; }

.shape-bg {
  left: 12%;
  top: 14%;
  width: 56%;
  height: 70%;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(18, 26, 36, 0.08);
}

.shape-text {
  left: 18%;
  top: 24%;
  width: 34%;
  display: grid;
  gap: 7px;
}

.shape-text span {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: #c9d1da;
}

.shape-text .short { width: 60%; }

.shape-selected {
  left: 44%;
  top: 48%;
  width: 36%;
  height: 28%;
  background: var(--cobalt-soft);
  outline: 2px solid var(--cobalt);
  border-radius: 2px;
}

.handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--white);
  border: 2px solid var(--cobalt);
  border-radius: 1px;
}

.h-tl { left: -5px; top: -5px; }
.h-tr { right: -5px; top: -5px; }
.h-bl { left: -5px; bottom: -5px; }
.h-br { right: -5px; bottom: -5px; }

.cursor {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.cursor-a { left: 73%; top: 68%; color: var(--cobalt); }
.cursor-b { left: 28%; top: 56%; color: var(--amber); }

.cursor-name {
  margin-top: 10px;
  background: currentColor;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.cursor-name { color: var(--white); }
.cursor-a .cursor-name { background: var(--cobalt); }
.cursor-b .cursor-name { background: var(--amber); }

.editor-panel {
  border-left: 1px solid var(--line);
  padding: 14px 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.row {
  display: block;
  height: 8px;
  width: 60%;
  border-radius: 2px;
  background: var(--line);
}

.row-wide { width: 100%; }
.row-accent { background: var(--cobalt); width: 40%; }

.editor-timeline {
  position: relative;
  height: 42px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.track {
  position: absolute;
  height: 10px;
  border-radius: 3px;
}

.track-a { left: 8%; top: 8px; width: 48%; background: #c9d1da; }
.track-b { left: 30%; top: 24px; width: 42%; background: var(--cobalt-soft); outline: 1px solid var(--cobalt); }

.playhead {
  position: absolute;
  left: 46%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
}

/* Sections */

.section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.section p + p { margin-top: 1em; }

.two-up {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(36px, 6vw, 80px);
}

.two-up article { max-width: var(--measure); }

.two-up h3 { font-size: 1.375rem; }

.engagement {
  margin-top: clamp(40px, 6vw, 64px);
  max-width: var(--measure);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cobalt);
  border-radius: 6px;
  padding: 20px clamp(18px, 3vw, 28px);
}

.engagement h3 {
  font-size: 0.9375rem;
  color: var(--cobalt);
  margin-bottom: 6px;
}

/* Capabilities: six headed paragraphs on a grid, no boxes */

.capabilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 56px);
}

.capabilities li {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.capabilities p { color: var(--ink-soft); }

/* How it works: a sequence, so it is numbered */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.about-copy {
  max-width: var(--measure);
  font-size: 1.125rem;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* Contact: the one dark panel */

.contact {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.contact h2 {
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.contact-email {
  font-weight: 600;
  font-size: clamp(1.5rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-email a {
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.14em;
}

.contact-email a:hover { text-decoration-thickness: 5px; }

.contact-note {
  margin-top: 28px;
  max-width: var(--measure);
  color: #b9c3cf;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #b9c3cf;
  border-top: 1px solid #2a3643;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 30px;
  font-size: 0.9375rem;
}

.site-footer a { text-decoration-color: #b9c3cf; }

/* Error page */

.error-page {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.error-page h1 {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  max-width: 16ch;
}

/* Small screens */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }

  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-list { flex-wrap: wrap; }

  .two-up { grid-template-columns: minmax(0, 1fr); }

  .capabilities { grid-template-columns: minmax(0, 1fr); }

  .steps { grid-template-columns: minmax(0, 1fr); }

  .editor-body { grid-template-columns: 32px minmax(0, 1fr) 0; }

  .editor-panel { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}
