:root {
  --paper: #ECEEEB;
  --ink: #262B2F;
  --graphite: #5A6268;
  --rule: #C9CDC9;
  --pencil: #8CC4E3;
  --pencil-deep: #1F5F8B;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
}

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

a { color: var(--pencil-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pencil-deep); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 28px; padding-bottom: 28px;
}
.brand { display: inline-flex; line-height: 0; }
.brand svg { height: 30px; width: auto; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap;
}
.site-header nav a:hover { text-decoration: underline; }

/* Type */
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 {
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 {
  font-stretch: 112%;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
p { margin: 0; max-width: var(--measure); }

.button {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 14px 22px; border-radius: 3px;
}
.button:hover { background: #3a4147; text-decoration: none; }

/* Panels: used for the hero and contact only */
.panel { border-radius: 24px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: #F6F7F5;
  padding: clamp(28px, 5vw, 72px);
  margin-top: 4px;
}
.hero-copy { display: grid; gap: 28px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 44ch; }
.hero-copy .button { justify-self: start; margin-top: 4px; }
.cube { width: 100%; height: auto; display: block; overflow: visible; }
.cube .body, .cube .shadow { transition: transform .8s cubic-bezier(.2,.7,.2,1); }

/* The cube draws itself in: the one orchestrated moment */
.cube line { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cube line { stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.4,0,.2,1) forwards; }
  .cube .edges line { animation-delay: .1s; animation-duration: .8s; }
  .cube .f1 line { animation-delay: .8s; }
  .cube .f2 line { animation-delay: 1.25s; }
  .cube .f3 line { animation-delay: 1.7s; }
  .cube .f4 line { animation-delay: 2.1s; }
  .cube .f5 line { animation-delay: 2.45s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Section heads */
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px); align-items: baseline;
  padding-bottom: 36px;
}
.section-head p { color: var(--graphite); font-size: 19px; }

.work, .process, .terms {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* Capabilities */
.caps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cap {
  --bgfill: #F6F7F5;
  background: #F6F7F5; border-radius: 20px;
  padding: 28px 28px 30px;
  display: grid; grid-template-rows: 1fr auto; gap: 22px;
  outline-offset: 4px;
}
.cap.feature {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto; align-items: end;
}
.cap-art { display: grid; place-items: center; min-height: 170px; }
.cap .illo { width: 100%; max-width: 220px; height: auto; }
.cap.feature .illo { max-width: 360px; }
.cap h3 { font-size: 22px; }
.cap.feature h3 { font-stretch: 125%; font-weight: 650; font-size: 30px; line-height: 1.1; }
.cap p { margin-top: 6px; color: var(--graphite); font-size: 17px; }
.cap.feature p { font-size: 19px; }

/* Hover or focus inks in the last hatch layer */
.illo .extra line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.4,0,.2,1); }
.cap:hover .illo .extra line, .cap:focus-visible .illo .extra line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .illo .extra line { transition: none; } }

/* Process */
.process-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step-btn {
  width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-radius: 14px;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px 18px; cursor: pointer;
  transition: background-color .3s;
}
.step-btn:hover { background: #F6F7F5; }
.step-btn[aria-pressed="true"] { background: #F6F7F5; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--rule); font-weight: 600; font-size: 17px; color: var(--graphite);
  transition: background-color .3s, color .3s, border-color .3s;
}
.step-btn[aria-pressed="true"] .step-n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.step-t { display: grid; gap: 4px; padding-top: 8px; }
.step-t strong { font-stretch: 112%; font-weight: 600; font-size: 21px; line-height: 1.2; }
.step-t span { color: var(--graphite); font-size: 17px; }
.stage { background: #F6F7F5; border-radius: 24px; padding: clamp(24px, 4vw, 56px); }
.stage-cube { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }

.stage-layer line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1); }
.stage-cube[data-at="1"] .stage-layer[data-stage="1"] line,
.stage-cube[data-at="2"] .stage-layer[data-stage="1"] line, .stage-cube[data-at="2"] .stage-layer[data-stage="2"] line,
.stage-cube[data-at="3"] .stage-layer:not([data-stage="4"]) line,
.stage-cube[data-at="4"] .stage-layer line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .stage-layer line { transition: none; } }

/* Terms */
.term-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.term-list p { margin-top: 8px; font-size: 17px; }

/* Contact */
.contact {
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 7vw, 104px) clamp(28px, 5vw, 72px);
  margin-top: clamp(24px, 4vw, 48px);
}
.contact-inner { display: grid; gap: 24px; justify-items: start; }
.contact h2 { color: var(--paper); font-size: clamp(34px, 5vw, 64px); }
.contact-inner > p:first-of-type { color: #C9CFD2; max-width: 56ch; }
.contact .button { background: var(--paper); color: var(--ink); }
.contact .button:hover { background: #fff; }
.contact .place { color: #9AA3A8; font-size: 16px; }
.contact :focus-visible { outline-color: var(--pencil); }

/* Blog */
.blog-index { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.blog-title { font-stretch: 125%; font-weight: 700; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-item a {
  --bgfill: #F6F7F5;
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center;
  background: #F6F7F5; border-radius: 20px; padding: 24px 28px; text-decoration: none; color: var(--ink);
}
.post-item a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.pi-art { display: grid; place-items: center; }
.pi-art .illo, .pi-art .stage-cube { width: 100%; max-width: 150px; height: auto; }
.pi-art .stage-layer line { stroke-dashoffset: 0; }
.pi-text { display: grid; gap: 6px; }
.pi-text time { color: var(--graphite); font-size: 15px; }
.pi-text strong { font-stretch: 112%; font-weight: 600; font-size: 24px; line-height: 1.2; }
.pi-text > span { color: var(--graphite); font-size: 17px; max-width: 64ch; }

.post { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.post-head { max-width: 820px; display: grid; gap: 18px; }
.post-head h1 { font-size: clamp(36px, 4.6vw, 60px); }
.post-meta { color: var(--graphite); font-size: 15px; }
.post-meta a { color: var(--graphite); }
.post-summary { font-size: 21px; line-height: 1.45; color: var(--ink); max-width: 60ch; }
.draft-flag { justify-self: start; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 3px; }
.post-art { --bgfill: var(--paper); max-width: 820px; margin: 36px 0 12px; }
.post-art .illo, .post-art .stage-cube { width: 100%; max-width: 300px; height: auto; display: block; }
.post-art .stage-layer line { stroke-dashoffset: 0; }
.prose { max-width: 68ch; font-size: 19px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-stretch: 112%; font-weight: 650; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 1.9em; }
.prose p { max-width: none; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.post-cta { background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 48px); margin-top: 56px; max-width: 820px; display: grid; gap: 20px; }
.post-cta h2 { color: var(--paper); font-size: clamp(26px, 3vw, 36px); }
.post-cta .button { background: var(--paper); color: var(--ink); }
.post-cta :focus-visible { outline-color: var(--pencil); }
.related { margin-top: 48px; max-width: 820px; }
.related h2 { font-size: 24px; }
.related ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.related a { font-size: 19px; }
@media (max-width: 700px) {
  .post-item a { grid-template-columns: 1fr; }
  .pi-art { justify-items: start; }
}

/* Footer */
.site-footer { padding-top: 28px; padding-bottom: 36px; color: var(--graphite); font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; row-gap: 14px; }
  .site-header nav { gap: 20px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-art { max-width: 440px; justify-self: center; width: 100%; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap.feature { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .term-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { gap: 18px; }
  .caps { grid-template-columns: 1fr; }
  .cap.feature { grid-column: auto; }
  .lede { font-size: 18px; }
}
