:root {
  color-scheme: only light;
  --paper: #fff;
  --ink: #191919;
  --muted: #555;
  --rule: #dedede;
  --accent: #444;
  font:
    100%/1.6 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  --page-gutter: 1rem;
  --content-inset: max(var(--page-gutter), calc((100% - 72rem) / 2 + var(--page-gutter)));
}
@media (min-width: 768px) {
  .wrap {
    --page-gutter: 1.5rem;
  }
}
h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}
p {
  color: var(--muted);
  max-width: 67ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
a:hover,
summary:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 2;
}
.skip:focus {
  transform: none;
}
header,
footer,
nav,
.links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
header,
footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
}
.mobile-menu {
  display: none;
}
.brand {
  font-size: 1.3rem;
}
header a,
footer a,
.quiet,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
nav,
.links {
  gap: clamp(0.8rem, 2.7vw, 2.2rem);
  font-size: 0.9rem;
}
.button {
  gap: 1rem;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1.15rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 650;
}
.button:hover {
  background: var(--accent);
  color: var(--paper);
}
.arrow {
  font-size: 1.1em;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(12rem, 27vw, 19rem);
  grid-template-areas: 'identity photo' 'intro photo';
  gap: 1.2rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4.5rem, calc(7vw + 0.5rem), 7rem);
}
.identity {
  grid-area: identity;
}
.headshot {
  grid-area: photo;
  position: relative;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: #606060;
  border-radius: 0.4rem;
  overflow: hidden;
}
.headshot span {
  font-size: 2rem;
  font-weight: 550;
  letter-spacing: -0.05em;
}
.headshot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kicker,
.outcome b {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}
.brand,
h1,
h2,
h3,
h4 {
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.hero h1 {
  font-size: 2.9rem;
}
.hero h1 span {
  display: block;
}
.intro {
  grid-area: intro;
}
.lead {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.55;
}
.intro p + p {
  margin-top: 0.85rem;
}
.availability {
  margin-top: 1.35rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.quiet {
  gap: 0.45rem;
  font-size: 0.83rem;
  text-decoration: underline;
}
.meta,
.project-meta,
.number {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}
.hero + .section {
  border-top: 1px solid var(--rule);
}
.section {
  padding: clamp(2.3rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}
h2 {
  font-size: 2.3rem;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.section-head {
  margin-bottom: 1.75rem;
}
.project {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.project .contribution {
  margin-top: 0.75rem;
}
.case-study-link {
  display: inline-block;
  margin-top: 1.25rem;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.number {
  color: var(--accent);
}
h3 {
  font-size: 1.7rem;
  max-width: 39ch;
}
h3 + p,
h4 + p {
  margin-top: 0.7rem;
}
.outcome {
  margin: 1rem 0 0.35rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--ink);
}
.outcome b {
  display: block;
  margin-bottom: 0.2rem;
}
details summary {
  width: fit-content;
  cursor: pointer;
  padding: 0.7rem 0;
  font-size: 0.94rem;
  font-weight: 550;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  display: inline-block;
  margin-left: 0.7em;
  color: var(--accent);
}
details[open] > summary::after {
  content: '−';
}
details h4 {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.1rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}
.small-project {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.small-project .project-meta {
  flex-direction: row;
  max-width: none;
  margin-bottom: 0.75rem;
}
.small-project > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 1rem;
}
.principles li {
  border-top: 1px solid var(--rule);
}
.principles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.principles li {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 0;
}
.contact h2 {
  max-width: 32ch;
}
.contact .button {
  margin-top: 0;
}
.contact .meta {
  margin-top: 0.6rem;
}
.contact .actions {
  margin-top: 1.5rem;
  align-items: center;
}
footer {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.86rem;
}
footer .links {
  gap: 0.5rem;
}
.social-icon {
  min-width: 24px;
  justify-content: center;
}
.contact {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 0;
}
header,
footer,
.hero,
.section,
.reading {
  padding-inline: var(--content-inset);
}
button {
  font: inherit;
  cursor: pointer;
}
.document {
  max-width: 46rem;
  margin: auto;
  padding: 4rem 0;
}
.reading:has(> .contact) {
  padding-inline: 0;
}
.document.case-study {
  max-width: none;
  padding-inline: var(--content-inset);
}
.case-study h1 {
  max-width: 22ch;
}
.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.study-contents {
  display: block;
  align-self: start;
  font-size: 0.94rem;
}
.study-contents ol {
  padding-left: 1.6rem;
  margin-top: 0.65rem;
}
.study-contents li {
  padding: 0.3rem 0;
}
.study-layout .study-story > h2:first-child {
  margin-top: 0;
}
@media (min-width: 768px) {
  .study-layout {
    grid-template-columns: minmax(0, 1fr) clamp(13rem, 23vw, 17rem);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .study-contents {
    grid-area: 1 / 2;
    position: sticky;
    top: 6rem;
    border-left: 1px solid var(--rule);
    padding-left: 1.5rem;
  }
  .study-story {
    grid-area: 1 / 1;
  }
}
.reading > .contact {
  border-top: 1px solid var(--rule);
}
.document h1 {
  font-size: 4.8rem;
  margin: 1rem 0;
}
.document h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}
.document p,
.document pre,
.document ul {
  margin: 1rem 0;
}
.document pre {
  overflow: auto;
}
.document img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 4.5rem;
  }
  html:has(.mobile-menu[open]) {
    scroll-padding-top: min(22rem, 65dvh);
  }
  header {
    padding-block: 0.45rem;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  .mobile-menu summary::after,
  .mobile-menu .cross,
  .mobile-menu[open] .bars {
    display: none;
  }
  .mobile-menu[open] .cross {
    display: inline;
  }
  .mobile-menu:not([open]) nav {
    display: none;
  }
  .mobile-menu nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    padding: 0.25rem var(--content-inset) 1rem;
    background: var(--paper);
    border-block: 1px solid var(--rule);
    max-height: calc(65dvh - 3.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu nav a:not(.button) {
    border-bottom: 1px solid var(--rule);
    padding-block: 0.6rem;
    font-size: 1rem;
  }
  .mobile-menu .button {
    justify-self: start;
    margin-top: 0.75rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding-block: 4rem;
  }
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    text-wrap: balance;
  }
  h2,
  .document h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.35rem;
  }
  .document h1 {
    font-size: 2.6rem;
  }
  .intro {
    display: contents;
  }
  .intro-copy {
    grid-area: copy;
  }
  .intro-copy p {
    line-height: 1.55;
  }
  .availability {
    margin-top: 0.5rem;
    font-size: 0.875rem;
  }
  .headshot {
    display: none;
  }
  .actions {
    grid-area: actions;
    margin: 0;
  }
  .section:not(.contact) .section-head {
    margin-bottom: 1.3rem;
  }
  .project h3,
  .small-project h3 {
    text-wrap: balance;
  }
  .project-grid,
  .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .small-project + .small-project {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
  }
  .principles li {
    display: grid;
    grid-template-columns: 1.65rem minmax(0, 1fr);
    gap: 0.5rem;
  }
  .principles li p {
    margin-top: 0.4rem;
  }
}
@media (max-width: 359px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  nav,
  .button,
  .quiet {
    display: none;
  }
}
