:root {
  color-scheme: dark;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #000;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

body.scroll-page {
  display: block;
  overflow-x: clip;
  padding: 48px var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

body.scroll-page .page {
  margin: 0 auto;
  padding: 0;
}

.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 6vh, 56px);
  padding: 24px;
}

.hub-logo {
  width: clamp(64px, 14vw, 120px);
  height: auto;
  display: block;
}

.hub-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.22em;
}

.hub-links a {
  color: #cfcfcf;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.hub-links a:hover {
  opacity: 1;
}

.hub-links a:focus-visible {
  opacity: 1;
  outline: 1px solid #cfcfcf;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hub-links a,
  .back-link {
    transition: none;
  }
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 32px);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.page-logo {
  width: clamp(40px, 8vw, 64px);
  height: auto;
  display: block;
}

.page-title {
  margin: 0;
  color: #f2f2f2;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.22em;
  font-weight: 400;
}

.page-text {
  margin: 0;
  color: #a8a8a8;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.6;
}

.back-link {
  color: #cfcfcf;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.22em;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.back-link:hover {
  opacity: 1;
}

.back-link:focus-visible {
  opacity: 1;
  outline: 1px solid #cfcfcf;
  outline-offset: 4px;
}

.bio-page {
  max-width: 720px;
}

.bio-page .page-text {
  text-align: left;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
  width: 100%;
}

.inline-link {
  color: #f2f2f2;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #6a6a6a;
  transition: text-decoration-color 0.15s ease;
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration-color: #f2f2f2;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a6a6a;
  text-transform: uppercase;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.18em;
}

.bio-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  width: 100%;
}

.bio-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid #2a2a2a;
}

.bio-panorama {
  width: 100%;
  aspect-ratio: 10 / 1;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.bio-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-video-wide {
  width: 100%;
}

@media (min-width: 701px) {
  .work-page {
    max-width: 1080px;
  }

  .work-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
  }

  .work-row > .work-media {
    order: 1;
    flex: 1 1 55%;
    min-width: 0;
  }

  .work-row > .page-text {
    order: 2;
    flex: 1 1 45%;
  }
}

.work-video-wide video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}

.bio-videos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
}

.bio-videos video {
  flex: 1 1 200px;
  width: 200px;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  display: block;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}

.work-page .bio-content {
  gap: clamp(20px, 4vh, 32px);
}

.work-meta {
  margin: calc(-1 * clamp(12px, 2vh, 20px)) 0 0;
  color: #8a8a8a;
  text-transform: uppercase;
  font-size: clamp(10px, 1.2vw, 11px);
  letter-spacing: 0.2em;
}

.work-disclaimer {
  margin: 0;
  color: #6a6a6a;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.work-image-wide {
  width: 100%;
}

.work-image-wide img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #2a2a2a;
}

.bio-photos.tall img {
  aspect-ratio: 9 / 16;
}

.work-video-tall {
  width: 100%;
  display: flex;
  justify-content: center;
}

.work-video-tall video {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  display: block;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hub-links a,
.menu-list a {
  animation: menu-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.22em;
}

.menu-list a {
  color: #cfcfcf;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  opacity: 1;
}

.menu-list a:focus-visible {
  outline: 1px solid #cfcfcf;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hub-links a,
  .menu-list a {
    animation: none;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 16px;
  }

  body.scroll-page {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .bio-photos,
  .bio-videos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-self: stretch;
    width: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    scroll-padding-left: var(--gutter);
    scroll-padding-right: var(--gutter);
  }

  .bio-photos img {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .bio-videos video {
    flex: 0 0 78%;
    max-width: none;
    scroll-snap-align: center;
  }

}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e1e1e;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  text-transform: uppercase;
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: 0.2em;
}

.site-nav-links a {
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible,
.site-nav-links a[aria-current="section"] {
  color: #f2f2f2;
}

.site-nav-arrow {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  padding: 10px 12px;
  transition: opacity 0.15s ease;
}

.site-nav-arrow:hover,
.site-nav-arrow:focus-visible {
  opacity: 1;
}

.site-nav-arrow.is-hidden {
  visibility: hidden;
}

.works-menu {
  position: relative;
}

.works-menu-toggle {
  background: none;
  border: none;
  color: #8a8a8a;
  font-family: inherit;
  font-size: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.works-menu-toggle:hover,
.works-menu-toggle:focus-visible,
.works-menu-toggle.is-current {
  color: #f2f2f2;
}

.works-menu-toggle::after {
  content: " \25BE";
  color: #8a8a8a;
}

.works-menu.open .works-menu-toggle::after {
  content: " \25B4";
}

.works-menu-list {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid #2a2a2a;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  max-height: calc(100svh - 90px);
  overflow-y: auto;
}

.works-menu.open .works-menu-list {
  display: flex;
}

.works-menu-list a {
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.works-menu-list a:hover,
.works-menu-list a:focus-visible,
.works-menu-list a[aria-current="page"] {
  color: #f2f2f2;
}

body.has-site-nav {
  padding-top: 48px;
}

body.scroll-page.has-site-nav {
  padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-links a,
  .site-nav-arrow,
  .works-menu-toggle,
  .works-menu-list a {
    transition: none;
  }
}
