:root {
  color-scheme: dark;
  --bg: #111211;
  --text: #eeeae3;
  --muted: #90938d;
  --line: #2b2e29;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.shell {
  max-width: 1600px;
  margin: auto;
  padding: 0 5.2vw;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px 0 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.5px;
}
.portrait {
  display: block;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #68765f;
  border-radius: 50%;
  background: #203329;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.role {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--muted);
}
.header-note {
  font-size: 12px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 23px;
}
h1 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin: 0;
  color: #afb2a9;
}
#motion {
  font-size: 11px;
  color: var(--muted);
  border: 0;
  background: none;
  cursor: pointer;
  padding: 12px 0 12px 16px;
}
#motion span {
  margin-left: 9px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 28px;
}
.project {
  min-width: 0;
}
.project-link {
  display: block;
}
.preview {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #191c19;
  border: 1px solid #ffffff0c;
  border-radius: 3px;
  isolation: isolate;
}
.preview img,
.preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview video {
  opacity: 0;
  transition: opacity 0.3s;
}
.preview video.playing {
  opacity: 1;
}
.project-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 19px 0 0;
  gap: 15px;
}
.project-title {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: 0.1em;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.meta-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}
.arrow {
  font-size: 19px;
  color: #c7ccc1;
  transition: transform 0.2s;
}
.project-link:hover .arrow {
  transform: translate(3px, -3px);
}
.project-link:hover h2 {
  color: #fff;
}
.project-link:focus-visible {
  outline: 2px solid #b5bda9;
  outline-offset: 8px;
  border-radius: 3px;
}
.project:last-child {
  grid-column: 1/-1;
}
.project:last-child .preview {
  aspect-ratio: 16/10;
}
.project:last-child img,
.project:last-child video {
  object-position: center 40%;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--text);
  color: var(--bg);
  padding: 12px;
  z-index: 5;
}
.skip:focus {
  top: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #b5bda9;
  outline-offset: 5px;
}
footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
footer a span {
  margin-left: 12px;
}
#install {
  color: #b9c8ac;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
#install-help {
  max-width: 620px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
@media (min-width: 1700px) {
  .shell {
    padding: 0 80px;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0 22px;
  }
  header {
    padding: 35px 0 51px;
  }
  .wordmark {
    font-size: 26px;
    gap: 12px;
  }
  .portrait {
    width: 120px;
    height: 120px;
  }
  .role {
    font-size: 12px;
  }
  .header-note {
    display: none;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .preview {
    aspect-ratio: 16/10;
  }
  .project-meta {
    padding-top: 15px;
  }
  .project-title {
    font-size: 23px;
    margin-bottom: 16px;
  }
  .project:last-child {
    grid-column: auto;
  }
  .project:last-child .preview {
    aspect-ratio: 16/10;
  }
  footer {
    margin-top: 57px;
    padding-bottom: 28px;
  }
  .section-heading {
    margin-bottom: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
