@font-face {
  font-display: swap;
  font-family: "Monument Grotesk Variable";
  src: url("https://type.cargo.site/files/CargoMonumentGroteskPlusVariable.woff2")
    format("woff2-variations");
  font-style: normal;
  font-weight: 200 1000;
}

:root {
  --swatch-1: rgba(0, 0, 0, 0.85);
  --swatch-2: rgba(0, 0, 0, 0.75);
  --swatch-3: rgba(0, 0, 0, 0.6);
  --swatch-4: rgba(0, 0, 0, 0.4);
  --swatch-5: rgba(0, 0, 0, 0.25);
  --gutter: 1rem;
  --pane-padding: 1rem;
  --main-left-gutter: 24%;
  --hero-bottom-space: 8rem;
  --project-gap: 9.5rem;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Monument Grotesk Variable", sans-serif;
  color: var(--swatch-2);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

.site {
  height: 100vh;
}

.desktop-layout {
  display: grid;
  grid-template-columns: 66.66% 33.33%;
  height: 100vh;
}

.left-pane {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--pane-padding);
}

.hero {
  position: relative;
  background: #fff;
  padding-bottom: var(--hero-bottom-space);
}

.hero-head {
  display: grid;
  grid-template-columns: calc(var(--main-left-gutter) - var(--gutter)) minmax(0, 1fr);
  align-items: start;
  gap: var(--gutter);
}

.hero-title h1 {
  font-size: 7rem;
  color: var(--swatch-1);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.logo-placeholder {
  width: 10rem;
  height: 10rem;
  display: block;
  justify-self: start;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-top: 1.5rem;
}

.hero-tags h2 {
  font-size: 2rem;
  color: var(--swatch-1);
  font-weight: 450;
  line-height: 1;
}

.hero-tags a {
  color: var(--swatch-1);
  text-decoration: none;
}

.profile {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--pane-padding);
  background: #fff;
}

.sidebar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-bottom: 0.9rem;
}

.profile section:last-child {
  margin-bottom: 0;
}

.section-label {
  border-top: 1px solid var(--swatch-2);
  padding-top: 0.3rem;
  margin-bottom: 0;
  color: var(--swatch-2);
}

.section-content {
  border-top: 1px solid var(--swatch-2);
  padding-top: 0.3rem;
}

.section-content p + p {
  margin-top: 0.8rem;
}

.projects {
  width: 100%;
  padding-bottom: 1rem;
  padding-left: 0;
}

.projects-header {
  margin-bottom: 2rem;
}

.projects-header h2 {
  font-size: 2rem;
  color: var(--swatch-1);
  font-weight: 450;
  line-height: 1;
}

.project {
  margin-bottom: var(--project-gap);
  padding-left: 0;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: calc(var(--main-left-gutter) - var(--gutter)) repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-bottom: 1rem;
}

.project h2 {
  font-size: 2rem;
  color: var(--swatch-1);
  line-height: 0.9;
  font-weight: 450;
}

.muted {
  color: var(--swatch-4);
}

.image-row,
.thumb-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  margin-bottom: 1rem;
  padding-left: var(--main-left-gutter);
}

.image-row.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 30rem;
  align-items: start;
  gap: 0.35rem;
}

.image-row.three-up img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.thumb-row {
  grid-template-columns: repeat(3, 6rem);
  gap: 0.5rem;
  justify-content: start;
}

.thumb-row img {
  width: 6rem;
  height: 9rem;
  object-fit: cover;
}

.thumb-video {
  width: 5.2rem;
  height: 7.8rem;
  object-fit: cover;
  display: block;
  background: #000;
}

.thumb-video-embed {
  width: 6rem;
  height: 9rem;
  display: block;
  background: #000;
  overflow: hidden;
}

.thumb-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.thumb-video-trigger {
  width: 6rem;
  height: 9rem;
  border: 0;
  padding: 0;
  position: relative;
  cursor: zoom-in;
  background: #000;
  overflow: hidden;
}

.thumb-video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-video-play {
  position: absolute;
  inset: auto auto 0.45rem 0.45rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.55rem;
  text-align: center;
  pointer-events: none; /* let clicks always hit the tile button */
}

img {
  width: 100%;
  display: block;
  height: auto;
  border: 0;
}

.zoomable-image {
  cursor: zoom-in;
}

.lightbox {
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox::backdrop {
  background: rgba(255, 255, 255, 0.94);
}

.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 3.5rem auto 1.5rem;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--swatch-2);
  font: inherit;
  cursor: pointer;
}

.video-lightbox {
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  width: min(94vw, 760px);
  max-height: 94vh;
}

.video-lightbox::backdrop {
  background: rgba(255, 255, 255, 0.94);
}

.video-lightbox iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  display: block;
  margin-top: 0;
  max-height: 94vh;
}

.footer {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: var(--gutter);
  color: var(--swatch-2);
  margin-top: 0;
  padding-bottom: 0;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 1200px) {
  .site {
    height: auto;
  }

  .desktop-layout {
    display: block;
    height: auto;
  }

  .left-pane {
    overflow: visible;
  }

  .profile {
    height: auto;
    overflow: visible;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
  }

  .site {
    height: auto;
    padding: 1rem;
  }

  .desktop-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .left-pane {
    padding: 0;
    overflow: visible;
    order: 2;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .profile.desktop-only {
    display: block;
    order: 3;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-top: 0;
    padding-top: 0;
  }

  .mobile-profile {
    display: block;
    order: 1;
    margin-bottom: 1.5rem;
  }

  .profile .sidebar-row:first-child {
    display: none;
  }

  .hero {
    position: relative;
    top: auto;
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 5rem);
    color: var(--swatch-1);
    line-height: 0.9;
    letter-spacing: -0.03em;
  }

  .hero-head {
    grid-template-columns: 1fr;
  }

  .logo-placeholder {
    width: 6rem;
    height: 6rem;
  }

  .mobile-tagline {
    margin-top: 1.2rem;
    color: var(--swatch-2);
  }

  .mobile-profile {
    margin-bottom: 2rem;
  }

  .projects {
    width: 100%;
    padding-bottom: 2rem;
    padding-left: 0;
  }

  .project {
    padding-left: 0;
  }

  .image-row,
  .thumb-row {
    padding-left: 0;
  }

  .sidebar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
  }

  .section-content {
    border-top: 0;
    padding-top: 0;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .image-row,
  .thumb-row {
    grid-template-columns: 1fr;
  }

  .thumb-row img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .thumb-video {
    width: 100%;
    height: auto;
  }

  .thumb-video-embed {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
  }

  .thumb-video-trigger {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
  }
}
