:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #5b606b;
  --line: #e2e0d8;
  --accent: #3d55e8;
  --accent-ink: #ffffff;
  --cell: #e7e5dd;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --ink: #eceef2;
    --muted: #9aa0ad;
    --line: #262a33;
    --accent: #8c9dff;
    --accent-ink: #0f1115;
    --cell: #1d2129;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  --gutter: 24px;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 480px) { .wrap { --gutter: 16px; } }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.mark { width: 26px; height: 26px; }
.mark rect { fill: var(--cell); }
.mark rect.on { fill: var(--accent); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 96px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.button:hover { filter: brightness(1.08); }

.hero-art { display: flex; justify-content: center; }
.batch-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  width: min(100%, 400px);
}
.batch-grid span {
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--cell);
  transition: background-color 600ms ease, transform 600ms ease;
}
.batch-grid span.on {
  background: var(--accent);
  transform: scale(0.92);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 40px 64px;
  }
  .hero-art { justify-content: flex-start; }
  .batch-grid { width: min(100%, 240px); gap: 8px; }
}

/* Sections */
.section-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

.approach { padding-block: 24px 72px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.card-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.card h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 12px 0 8px;
}
.card p { color: var(--muted); margin: 0; }

.next { padding-block: 0 72px; }
.next-inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 40px;
}
.next p {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 30em;
}

.contact {
  padding-block: 24px 96px;
}
.contact h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.contact p { color: var(--muted); margin: 0 0 20px; }
.contact-link {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer .wrap {
  /* A rule aligned with the content, not the padded box. */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  padding-top: 28px;
}
.site-footer {
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Prose pages (privacy) */
.prose {
  max-width: 680px;
  padding-block: 40px 80px;
}
.prose h1 { font-size: clamp(34px, 5vw, 48px); }
.prose h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 36px 0 8px;
}
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent); }
.prose .updated {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
