:root {
  --ink: #f3f3f3;
  --paper: #000000;
  --muted: #b7b7b7;
  --line: rgba(255, 255, 255, 0.16);
  --header: #000000;
  --header-h: 76px;
  --gutter-grid-x: 22px;
  --gutter-grid-y: 14px;
  --masonry-gap: 38px;
  --max: 1500px;
  --inset: min(1120px, calc(100% - 8vw));
  --font-ui: "Abel", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Code Pro", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  color: #fff;
  min-height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  justify-self: start;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 26px;
  justify-content: center;
}

.nav a {
  font-family: var(--font-ui);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.78;
}

.nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.social {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

.social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-social {
  display: none;
}

.nav-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  justify-self: end;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  padding: 8px 12px;
  cursor: pointer;
}

main {
  min-height: calc(100vh - var(--header-h) - 88px);
}

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 28px 18px;
}

.band h1,
.band h2,
.project-copy h1,
.page-copy h1 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.01em;
  margin: 0;
}

.band-gallery {
  padding-top: 72px;
  padding-bottom: 16px;
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gutter-grid-x);
  row-gap: var(--gutter-grid-y);
  padding: 8px 28px 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.work-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}

.work-card .ph,
.player .ph {
  width: 100%;
  height: 100%;
}

.work-card .ph {
  font-size: 0;
}

.ph {
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 10px, #141414 10px, #141414 20px);
  color: #8a8a8a;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.work-card img,
.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card .title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.41);
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.6vw, 26px);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.work-card:hover .title,
.work-card:focus-visible .title {
  opacity: 1;
}

.page-copy,
.project {
  width: var(--inset);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.project-copy p,
.page-copy p {
  max-width: 40rem;
}

.notes {
  list-style: none;
  padding: 0;
  margin: 24px 0 36px;
}

.notes li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.notes li:last-child {
  border-bottom: 1px solid var(--line);
}

.masonry {
  position: relative;
  width: 100%;
}

.masonry.is-ready .tile {
  position: absolute;
  top: 0;
  left: 0;
}

.tile {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
}

.tile img,
.tile video {
  width: 100%;
  height: auto;
}

.tile .ph {
  aspect-ratio: var(--ratio, 3 / 4);
  position: relative;
  width: 100%;
  place-items: end center;
  padding-bottom: 12px;
}

.project-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 80px;
}

.project-page h1 {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.project-lead {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 42px;
  font-size: 18px;
  line-height: 1.55;
}

.project-wide {
  margin: 0 0 22px;
}

.project-wide img {
  width: 100%;
  height: auto;
}

.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin: 0 0 22px;
}

.project-split.is-centered {
  align-items: center;
}

.project-split p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.project-split img,
.project-split video,
.project-wide video,
.snippet img,
.snippet video,
.still-grid img {
  width: 100%;
  height: auto;
  background: #000;
}

.project-center {
  width: min(72%, 100%);
  margin: 0 auto 22px;
}

.snippet {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px 28px;
  align-items: center;
  margin: 0 0 34px;
}

.snippet p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.snippet-stack {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
  justify-items: center;
  text-align: center;
}

.snippet-stack img,
.snippet-stack video {
  width: 100%;
}

.snippet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 12px;
}

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

.gif-row img,
.gif-row video {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  background: #000;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  background: #000;
}

.video-embed iframe,
.yt-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-launch {
  background: #111;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 22px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.still-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.still-grid .tile {
  cursor: zoom-in;
}

.home-gallery {
  max-width: var(--max);
  margin: 8px auto 72px;
  padding: 0 28px;
}

.masonry .tile video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  background: #000;
}

.tile-video {
  cursor: pointer;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.78);
  display: grid;
  place-items: center;
}

.play::before {
  content: "";
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.reel-page {
  min-height: calc(100vh - var(--header-h) - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 48px;
}

.reel-float {
  width: min(1040px, calc(100% - 72px));
}

.reel {
  position: relative;
  width: 100%;
  margin: 0;
  background: #000;
  cursor: pointer;
}

.reel-mirror {
  margin-top: 18px;
  height: 0;
  padding-bottom: 16%;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.reel-mirror canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.reel video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.reel-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  color: #fff;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  background: rgba(16, 16, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.reel.is-ui .reel-bar {
  opacity: 1;
}

.reel-play,
.reel-full {
  background: transparent;
  color: #fff;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.reel-full {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.reel-full svg {
  width: 18px;
  height: 18px;
  display: block;
}

.reel-full .icon-exit {
  display: none;
}

.reel.is-full .icon-enter {
  display: none;
}

.reel.is-full .icon-exit {
  display: block;
}

.reel-play {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.reel-play svg {
  width: 16px;
  height: 16px;
}

.reel-play .icon-pause {
  display: none;
}

.reel-play.is-playing .icon-play {
  display: none;
}

.reel-play.is-playing .icon-pause {
  display: block;
}

.reel-time,
.reel-dur {
  font-size: 13px;
  min-width: 36px;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.reel-scrub {
  position: relative;
  flex: 1;
  height: 28px;
  cursor: pointer;
  touch-action: none;
}

.reel-scrub-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.reel-scrub-fill {
  width: 0;
  height: 100%;
  background: #fff;
}

.reel-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

html.reel-screen,
html.reel-screen body {
  background: #000;
  overflow: hidden;
}

html.reel-screen .site-header,
html.reel-screen .site-footer,
html.reel-screen .reel-mirror {
  display: none;
}

html.reel-screen .reel-page {
  min-height: 100vh;
  height: 100vh;
  padding: 0;
}

html.reel-screen .reel-float,
html.reel-screen .reel {
  width: 100vw;
  height: 100vh;
}

html.reel-screen .reel video,
.reel:fullscreen video,
.reel:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.reel:fullscreen,
.reel:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  background: #000;
  display: block;
}

.player {
  width: min(1100px, calc(100% - 48px));
  margin: 36px auto 72px;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #111;
}

.player .ph {
  background:
    repeating-linear-gradient(-45deg, #2a2a2a, #2a2a2a 10px, #242424 10px, #242424 20px);
  color: #d5d5d5;
}

.player .play {
  top: 46%;
}

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
}

.player-bar .track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.name-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 28px;
  align-items: baseline;
  margin-bottom: 28px;
}

.name-lockup h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.glyph {
  font-family: var(--font-ui);
  font-size: 28px;
  color: var(--muted);
}

.mail {
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}

.lightbox {
  width: calc(100vw - 32px);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 24px);
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-frame {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lightbox-stage {
  width: 100%;
  max-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  position: relative;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-stage.is-video {
  aspect-ratio: auto;
  background: transparent;
  max-height: none;
}

.lightbox-label {
  margin: 0;
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 3;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  pointer-events: auto;
}

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-nav.prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.video-shell {
  width: min(100%, 860px);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

@media (hover: none) {
  .work-card .title {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .social {
    display: none;
  }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--header);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 18px;
    z-index: 9;
  }

  .nav.is-open {
    display: flex;
    justify-content: flex-start;
    align-content: flex-start;
  }

  .nav.is-open .nav-social {
    display: flex;
    justify-content: center;
    gap: 22px;
    width: 100%;
    margin-top: 36px;
  }

  .nav-social a {
    opacity: 1;
    width: 36px;
    height: 36px;
  }

  .nav-social svg {
    width: 20px;
    height: 20px;
  }

  .nav a {
    font-size: 28px;
    opacity: 1;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .header-inner,
  .band,
  .site-footer {
    padding-inline: 16px;
  }

  .page-copy,
  .project,
  .project-page {
    width: min(100% - 32px, var(--inset));
    padding-inline: 0;
  }

  .project-split,
  .snippet,
  .snippet-pair,
  .still-grid {
    grid-template-columns: 1fr;
  }

  .project-center {
    width: 100%;
  }

  .home-gallery {
    padding-inline: 16px;
  }

  .name-lockup {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lightbox {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .lightbox-stage img,
  .lightbox-stage video {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 72px);
  }

  .lightbox-nav {
    display: none;
  }
}

@media (hover: none) {
  .lightbox-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-card .title {
    transition: none;
  }
}
