@font-face {
  font-family: Satoshi;
  src: url('./assets/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url('./assets/Satoshi-VariableItalic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #181915;
  --muted: #565951;
  --line: #d8d8d8;
  --line-dark: #bdbdbd;
  --tint: #f0f0f0;
  --type: Satoshi, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --gutter: clamp(24px, 4.45vw, 78px);
  font-family: var(--type);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; scroll-padding-bottom: 100px; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, dl, dd { margin: 0; }
::selection { background: var(--line); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
main:focus { outline: none; }

.page-width {
  width: min(100% - 2 * var(--gutter), 1500px);
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}
.skip:focus { transform: none; }

.site-header {
  height: 60px;
  display: flex;
  align-items: center;
}
.site-header + main { padding-top: clamp(15px, 2vw, 28px); }
.identity {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.027em;
}
.identity:hover { color: var(--muted); }
.kicker, .index-labels, .year {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .047em;
  text-transform: uppercase;
}
.kicker, .index-labels, .year { color: var(--muted); }

.intro { padding-bottom: clamp(24px, 2.25vw, 36px); }
.intro h1, .about-page h1 {
  font-weight: 610;
  line-height: .91;
  letter-spacing: -.064em;
  margin: 16px 0 0 -.059em;
}
.intro h1 {
  font-size: clamp(50px, 6vw, 92px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.055em;
  margin-top: 0;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 42px 13px;
  align-items: center;
  column-gap: clamp(10px, 1.7vw, 26px);
}
.index-labels { min-height: 32px; border-bottom: 1px solid var(--ink); text-transform: lowercase; }
.index-year { text-align: right; }
.project {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
  scroll-margin-bottom: 105px;
}
.project summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: clamp(44px, 3.35vw, 50px);
  padding-block: 7px;
  transition: color 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.project summary::-webkit-details-marker { display: none; }
.project summary::marker { content: ''; }
.project summary:focus-visible { z-index: 1; outline-offset: 2px; }
@media (hover: hover) {
  .project summary:hover { background: #f6f6f6; }
}
.project[open] summary { background: var(--tint); }
.project-title {
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 560;
  letter-spacing: -.036em;
  line-height: 1.13;
}
.discipline { color: var(--muted); font-size: 13px; line-height: 1.22; }
.year { justify-self: end; font-variant-numeric: tabular-nums; }
.toggle-mark {
  justify-self: center;
  width: 10px;
  height: 10px;
  position: relative;
}
.toggle-mark::before, .toggle-mark::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  height: 1px;
  background: currentColor;
}
.toggle-mark::after { transform: translateY(-50%) rotate(90deg); transition: transform 180ms ease; }
.project[open] .toggle-mark::after { transform: translateY(-50%) rotate(0deg); }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(220px, 1fr);
  gap: clamp(22px, 3.3vw, 58px);
  padding: clamp(18px, 2.7vw, 40px);
  background: var(--tint);
  border-top: 1px solid var(--line);
}
.project:not([open]) > .project-body { display: none; }
.project[open] .project-body { animation: show-project 210ms ease-out; }
@keyframes show-project { from { opacity: .35; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.project-media { display: grid; gap: 11px; align-self: start; align-items: start; min-width: 0; }
.layout-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-screen { grid-template-columns: minmax(0, 2.65fr) minmax(0, 1fr); }
.layout-portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-single { grid-template-columns: minmax(0, 1fr); }
.media-item { min-width: 0; }
.media-link {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid #1a221425;
  cursor: zoom-in;
}
.media-link:hover { border-color: var(--muted); }
.media-link img { width: 100%; height: auto; }
.media-link[data-atto-gif] { position: relative; }
/* The 500px logo square was captured at (600, 244) in the 1700 × 1100 cover. */
img.atto-motion {
  position: absolute;
  top: 22.18%;
  left: 35.294%;
  width: 29.412%;
  height: auto;
  clip-path: inset(23% 12% 39.5%);
  /* Bring the GIF’s #fcfcfc background up to the screenshot’s white. */
  filter: brightness(1.012);
  pointer-events: none;
}
.media-item figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  padding-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.image-number { font-size: 10px; font-variant-numeric: tabular-nums; }
.enlarge svg { display: block; width: 13px; height: 13px; }
.project-info { min-width: 0; }
.project-context {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .046em;
  line-height: 1.42;
  margin-bottom: 11px;
}
.project-description {
  max-width: 36ch;
  font-size: clamp(17px, 1.48vw, 22px);
  line-height: 1.35;
  font-weight: 470;
  letter-spacing: -.033em;
}
.project-facts {
  border-top: 1px solid var(--line-dark);
  margin-top: 20px;
  padding-top: 11px;
  display: grid;
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
}
.project-facts div { display: grid; grid-template-columns: 45px 1fr; gap: 12px; }
.project-facts dt { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.results { margin-top: 19px; }
.metrics { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 11px 22px; }
.metrics li { display: flex; flex-direction: column; gap: 3px; }
.metrics strong { font-size: clamp(22px, 2.45vw, 34px); font-weight: 570; letter-spacing: -.063em; line-height: 1; font-variant-numeric: tabular-nums; }
.metrics span { font-size: 11px; color: var(--muted); }
.metric-note { font-size: 10px; line-height: 1.35; margin-top: 9px; color: var(--muted); }
.project-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 610;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 9px;
}
.project-url svg { flex: none; width: 15px; height: 15px; }
.projects-page { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

.page-switcher {
  position: fixed;
  bottom: calc(19px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  width: min(240px, calc(100% - 36px));
  border: 1px solid #33333326;
  border-radius: 999px;
  background: #eeeeeeed;
  box-shadow: 0 5px 17px #2222221c, 0 1px 3px #2222220d;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.page-switcher a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 43px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -.012em;
  color: #30332d;
}
.page-switcher a[aria-current] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #282b1e0f;
}
.page-switcher a:not([aria-current]):hover { background: #fff8; }
.page-switcher a:focus-visible { outline-offset: -2px; }

.about-page { padding-bottom: calc(122px + env(safe-area-inset-bottom, 0px)); }
.about-page h1 { font-size: clamp(58px, 8.2vw, 124px); margin-bottom: clamp(21px, 3vw, 45px); }
.about-name { white-space: nowrap; }
/* Reserve the photo's width on the baseline without shifting the text down. */
.about-portrait-slot {
  display: inline-block;
  position: relative;
  width: .755em;
  height: 0;
  margin-inline-start: clamp(9px, .18em, 19px);
  vertical-align: baseline;
}
.about-portrait {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.about-lead {
  font-size: clamp(22px, 2.58vw, 39px);
  line-height: 1.16;
  font-weight: 520;
  letter-spacing: -.052em;
  max-width: 23ch;
}
.about-bio {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  letter-spacing: -.019em;
  max-width: 52ch;
  color: var(--muted);
  margin-top: 16px;
}
.contacts {
  max-width: 500px;
  margin-top: clamp(27px, 3.55vw, 52px);
}
.contacts h2 { padding-bottom: 9px; border-bottom: 1px solid var(--ink); }
.contacts a {
  min-height: 47px;
  display: grid;
  grid-template-columns: minmax(66px, .53fr) minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: -.025em;
}
.contacts a span:nth-child(2) { color: var(--muted); overflow-wrap: anywhere; }
.contacts svg { width: 16px; height: 16px; justify-self: end; }
.contacts a:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.image-viewer {
  position: fixed;
  margin: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: 7px;
  border: 1px solid #ffffff50;
  background: #1b1d19;
  color: #fff;
}
.image-viewer::backdrop { background: #11130ee8; }
.viewer-content { padding: 45px 8px 9px; position: relative; }
.viewer-image { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.viewer-image > img:first-child { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 110px); }
.viewer-content figcaption { font-size: 12px; line-height: 1.3; color: #fff; margin-top: 9px; padding-inline: 4px; }
.viewer-close {
  position: absolute;
  right: 4px;
  top: 0;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}
.viewer-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
html:has(.image-viewer[open]) { overflow: hidden; }

@media (max-width: 940px) {
  .project-body { grid-template-columns: minmax(0, 1.65fr) minmax(205px, 1fr); }
}
@media (max-width: 650px) {
  :root { --gutter: 20px; }
  .site-header { height: 52px; }
  .identity { font-size: 14px; }
  .intro { padding-bottom: 18px; }
  .intro h1 { font-size: clamp(41px, 10vw, 55px); }
  .project-row {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) 29px 11px;
    column-gap: 9px;
  }
  .index-labels { min-height: 27px; font-size: 10px; }
  .project-title { font-size: clamp(14px, 3.85vw, 18px); }
  .discipline { font-size: 11px; }
  .year { font-size: 10px; }
  .project-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 15px; }
  .project-description { max-width: 47ch; }
  .project-facts { margin-top: 16px; }
  .project-media { gap: 8px; }
  .layout-landscape, .layout-portrait {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 81%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line-dark) transparent;
    padding: 4px 4px 8px;
    margin: -4px -4px 0;
  }
  .layout-portrait { grid-auto-columns: 68%; }
  .layout-landscape > *, .layout-portrait > * { scroll-snap-align: start; scroll-margin-inline: 4px; }
  .media-item figcaption { font-size: 10px; }
  .layout-screen .media-item:nth-child(2) figcaption { grid-template-columns: minmax(0, 1fr) auto; gap: 4px; }
  .layout-screen .media-item:nth-child(2) .image-number { display: none; }
  .page-switcher { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 224px; }
  .about-page h1 { font-size: clamp(53px, 13.6vw, 58px); margin-top: 11px; }
  .about-lead { max-width: 25ch; }
}
@media (max-width: 355px) {
  :root { --gutter: 15px; }
  .project-row { column-gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .atto-motion { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
