:root {
  --ink: #111318;
  --muted: #606775;
  --line: #dfe3ea;
  --paper: #f7f8fa;
  --white: #ffffff;
  --blue: #174cff;
  --blue-soft: #eef2ff;
  --theme-blue: #86a2ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

main :is(p, li, h1, h2, h3, h4) a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
p { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.navlinks {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
}

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

.eyebrow,
.section-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 { font-weight: 800; }

.hero-copy { display: grid; align-items: end; }

.hero-copy .detail {
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
  justify-self: end;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.button.primary { color: var(--white); background: var(--ink); }
.button:hover { transform: translateY(-1px); }

section { border-bottom: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 58px;
}

h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 770;
}

footer { padding: 42px 0 58px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.footer-row strong { color: var(--ink); }

/* Home */

body.home .hero {
  min-height: 82vh;
  display: grid;
  align-content: center;
  padding: 112px 0 92px;
}

body.home h1 {
  max-width: 1000px;
  margin: 24px 0 30px;
  font-size: clamp(56px, 9.3vw, 132px);
  line-height: .88;
  letter-spacing: -.072em;
}

body.home .hero-copy {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

body.home .hero-copy .lead {
  max-width: 650px;
  font-size: clamp(21px, 2.7vw, 34px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

body.home .hero-copy .detail { line-height: 1.6; }
body.home .actions { margin-top: 38px; }
body.home section { padding: 110px 0; }
body.home h2 { max-width: 820px; }

body.home .principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

body.home .principle {
  min-height: 310px;
  padding: 24px 22px 28px 0;
  border-bottom: 1px solid var(--line);
}

body.home .principle + .principle { border-left: 1px solid var(--line); padding-left: 22px; }
body.home .num { color: var(--blue); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
body.home .principle h3 { margin: 70px 0 15px; font-size: 24px; letter-spacing: -.03em; }
body.home .principle p { color: var(--muted); line-height: 1.55; font-size: 15px; }

body.home .contrast { background: var(--paper); }
body.home .matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}

body.home .matrix > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
body.home .matrix > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
body.home .matrix .label { color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
body.home .matrix .statement { margin-top: 10px; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.025em; }
body.home .matrix .ours .statement { font-weight: 720; }

body.home .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
}

body.home .proof-grid + .button {
  display: flex;
  width: fit-content;
  margin: 56px auto 0;
}

body.home .proof { padding-top: 18px; }
body.home .proof .kicker { color: var(--blue); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
body.home .proof h3 { margin: 24px 0 12px; font-size: 22px; letter-spacing: -.03em; }
body.home .proof p { color: var(--muted); line-height: 1.55; font-size: 15px; }

body.home .public-good {
  background: var(--ink);
  color: var(--white);
}
body.home .public-good .section-label { color: #86a2ff; }
body.home .public-good .body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
body.home .public-good .statement {
  font-size: clamp(35px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 740;
}
body.home .public-good .copy { color: #b9c0cc; font-size: 16px; line-height: 1.7; }
body.home .public-good .copy p + p { margin-top: 20px; }

body.home .research-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
body.home .research-note p { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.75; }
body.home .research-note strong { color: var(--ink); }

/* How it works */

body.how .hero { padding: 118px 0 96px; }

body.how h1 {
  max-width: 1080px;
  margin: 24px 0 34px;
  font-size: clamp(54px, 8.4vw, 116px);
  line-height: .9;
  letter-spacing: -.067em;
}

body.how .hero-copy {
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
}

body.how .hero-copy .lead {
  max-width: 720px;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

body.how .hero-copy .detail { line-height: 1.65; }
body.how .actions { margin-top: 40px; }
body.how section { padding: 106px 0; }
body.how h2 { max-width: 850px; }

body.how .bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.how .bullets li {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 12px;
}

body.how .steps { border-top: 1px solid var(--ink); }

body.how .step {
  display: grid;
  grid-template-columns: 100px .9fr 1.2fr;
  gap: 26px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

body.how .step-num {
  color: var(--blue);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

body.how .step h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

body.how .step p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  max-width: 600px;
}

body.how .examples { background: var(--paper); }

body.how .example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

body.how .example {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 24px 24px 28px 0;
}

body.how .example-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

body.how .example-media :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform .6s ease;
}

body.how .example > :not(.example-media) {
  position: relative;
  z-index: 1;
  transition: opacity .45s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.how .example:hover .example-media { opacity: 1; }
  body.how .example:hover .example-media :is(img, video) { transform: scale(1); }
  body.how .example:hover > :not(.example-media) { opacity: 0; }
}

body.how .example + .example { border-left: 1px solid var(--line); padding-left: 24px; }
body.how .example:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
body.how .example:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
body.how .example .tag { color: var(--blue); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
body.how .example h3 { margin: 72px 0 14px; font-size: 27px; letter-spacing: -.035em; }
body.how .example p { color: var(--muted); line-height: 1.6; font-size: 15px; }
body.how .example .source { margin-top: 18px; color: var(--ink); font-size: 12px; font-weight: 700; }

body.how .flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

body.how .flow-item {
  position: relative;
  min-height: 225px;
  padding: 20px 22px 26px 0;
}

body.how .flow-item + .flow-item { border-left: 1px solid var(--line); padding-left: 22px; }
body.how .flow-item .tiny { color: var(--blue); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
body.how .flow-item h3 { margin: 52px 0 12px; font-size: 20px; letter-spacing: -.03em; }
body.how .flow-item p { color: var(--muted); font-size: 14px; line-height: 1.55; }

body.how .plain {
  background: var(--ink);
  color: var(--white);
}

body.how .plain .section-label { color: #86a2ff; }
body.how .plain-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: start;
}

body.how .plain .big {
  font-size: clamp(35px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -.047em;
  font-weight: 740;
}

body.how .plain .copy { color: #b9c0cc; font-size: 16px; line-height: 1.75; }
body.how .plain .copy p + p { margin-top: 20px; }
body.how .plain .copy strong { color: var(--white); }

body.how .state-demo {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 52px;
}

body.how .state-card {
  border: 1px solid #343944;
  padding: 28px;
  min-height: 190px;
}

body.how .state-card .mono { color: #86a2ff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
body.how .state-card h3 { margin: 42px 0 10px; font-size: 23px; letter-spacing: -.03em; }
body.how .state-card p { color: #b9c0cc; font-size: 14px; line-height: 1.55; }
body.how .arrow { text-align: center; color: #86a2ff; font-size: 26px; }

body.how .text-theme-blue { color: var(--theme-blue); }

body.how .note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

body.how .note {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

body.how .note h3 { margin: 22px 0 10px; font-size: 23px; letter-spacing: -.03em; }
body.how .note p { color: var(--muted); line-height: 1.65; font-size: 15px; }

body.how .cta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: end;
}

body.how .cta-copy h2 { margin-bottom: 22px; }
body.how .cta-copy p { color: var(--muted); max-width: 680px; font-size: 17px; line-height: 1.7; }

@media (max-width: 900px) {
  body.how .navlinks { display: none; }
  body.how .hero-copy,
  body.how .section-head,
  body.how .plain-grid,
  body.how .cta { grid-template-columns: 1fr; }
  body.how .hero-copy .detail { justify-self: start; }
  body.how .example-grid { grid-template-columns: 1fr; }
  body.how .example,
  body.how .example + .example {
    display: flex;
    flex-direction: column;
    border-left: 0;
    padding-left: 0;
    min-height: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
    overflow: visible;
  }

  body.how .example-media {
    position: relative;
    inset: auto;
    order: 1;
    opacity: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-top: 28px;
    animation: none;
    transition: none;
  }

  body.how .example-media :is(img, video) {
    transform: none;
    transition: none;
  }

  body.how .example > :not(.example-media) {
    opacity: 1;
    animation: none;
  }
  body.how .flow { grid-template-columns: 1fr 1fr; }
  body.how .flow-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  body.how .flow-item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 22px; }
}

@media (max-width: 820px) {
  body.home .navlinks { display: none; }
  body.home .hero { min-height: auto; }
  body.home .hero-copy,
  body.home .section-head,
  body.home .research-note,
  body.home .public-good .body { grid-template-columns: 1fr; }
  body.home .hero-copy .detail { justify-self: start; }
  body.home .principles,
  body.home .proof-grid { grid-template-columns: 1fr 1fr; }
  body.home .principle:nth-child(odd) { border-left: 0; padding-left: 0; }
  body.home .principle:nth-child(even) { border-left: 1px solid var(--line); padding-left: 22px; }
}

@media (max-width: 650px) {
  body.how .wrap { width: min(calc(100% - 28px), var(--max)); }
  body.how nav { min-height: 62px; }
  body.how .hero { padding: 88px 0 68px; }
  body.how h1 { font-size: clamp(52px, 17vw, 78px); }
  body.how section { padding: 80px 0; }
  body.how .step { grid-template-columns: 54px 1fr; }
  body.how .step p { grid-column: 2; }
  body.how .flow { grid-template-columns: 1fr; }
  body.how .flow-item,
  body.how .flow-item + .flow-item,
  body.how .flow-item:nth-child(even) { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  body.how .state-demo { grid-template-columns: 1fr; }
  body.how .arrow { transform: rotate(90deg); }
  body.how .note-grid { grid-template-columns: 1fr; }
  body.how .footer-row { flex-direction: column; }
}

@media (max-width: 560px) {
  body.home .wrap { width: min(calc(100% - 28px), var(--max)); }
  body.home nav { min-height: 62px; }
  body.home .hero { padding: 90px 0 70px; }
  body.home h1 { font-size: clamp(54px, 18vw, 78px); }
  body.home section { padding: 82px 0; }
  body.home .principles,
  body.home .proof-grid,
  body.home .matrix { grid-template-columns: 1fr; }
  body.home .principle,
  body.home .principle + .principle,
  body.home .principle:nth-child(even) { border-left: 0; padding-left: 0; }
  body.home .matrix > div:nth-child(even) { padding-left: 0; border-left: 0; }
  body.home .matrix > div:nth-child(2n) { margin-bottom: 20px; }
  body.home .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .15s ease; }
}

@media (prefers-reduced-motion: reduce) {
  body.how .example-media,
  body.how .example-media :is(img, video),
  body.how .example > :not(.example-media) {
    transition: none;
    animation: none;
  }
}
