* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Onest", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

a {
  color: #8a8a8a;
  text-decoration: none;
  line-height: 2rem;
  border-bottom: 1px solid;
  font-size: 1em;
  margin-right: 2rem;
}

h2 {
  font-size: 1.5em;
  font-weight: 500;
  line-height: 2rem;
  padding-bottom: 1rem;
}

p {
  padding-bottom: 1rem;
}

.w-100 {
  width: 100%;
}
.w-80 {
  width: calc(80% - (var(--img-gap) * 0.2));
}
.w-70 {
  width: calc(70% - (var(--img-gap) * 0.3));
}
.w-60 {
  width: calc(60% - (var(--img-gap) * 0.4));
}
.w-50 {
  width: calc(50% - (var(--img-gap) * 0.5));
}
.w-40 {
  width: calc(40% - (var(--img-gap) * 0.6));
}
.w-30 {
  width: calc(30% - (var(--img-gap) * 0.7));
}

/* ==========================
     Layout Containers
     ========================== */
.site-header {
  background: #151515;
  color: #fff;
  padding-bottom: 2rem;
  z-index: 1;
  position: relative;
}

.site-title {
  font-size: 4rem;
  line-height: 3.5rem;
  font-weight: 600;
  padding: 0.75rem;
}

.site-footer {
  background: #151515;
  color: #fff;
  padding-top: 30rem;
  position: sticky;
  bottom: 0;
  z-index: 0;
  padding-bottom: 1px;
}

.site-description {
  padding-left: 0.75rem;
  font-size: 0.9rem;
}

.header-details {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 4fr;
  align-items: start;
  position: relative;
}

.site-nav {
  padding-left: 0.75rem;
}

.header-toggle {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0.75rem;
  cursor: pointer;
  color: #8a8a8a;
  text-decoration: none;
  line-height: 0.75rem;
  border-bottom: 1px solid;
  font-size: 0.75em;
}

.header-media {
  margin-top: 3rem;
  padding-right: 0.75rem;
  position: relative;
  min-width: 0;
}

.header-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  overflow: hidden;
}

.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background-color: #151515;
  color: white;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  align-items: start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}

.header-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-info,
.overlay-clients,
.overlay-agencies {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.header-overlay.is-visible .overlay-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.header-overlay.is-visible .overlay-agencies {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.header-overlay.is-visible .overlay-clients {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.overlay-info {
  padding-right: 15%;
}
.overlay-clients,
.overlay-agencies {
  list-style: none;
  display: list-item;
}

.overlay-info.is-visible {
  pointer-events: auto;
}

.content {
  margin: auto;
  z-index: 1;
  background: #fff;
  padding-top: 2rem;
  position: relative;
}

/* ==========================
     Project Blocks
     ========================== */
.project {
  padding-bottom: 8rem;
  display: grid;
  grid-template-columns: 1fr 4fr;
  align-items: start;
}

.project-header {
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  position: sticky;
  top: 0.75rem;
}

.project-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: normal;
}

.project-tags {
  list-style: none;
  display: list-item;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.project-tags li {
  font-size: 0.6rem;
}

.project-toggle {
  background: none;
  margin-top: 2.5rem;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #8a8a8a;
  text-decoration: none;
  line-height: 0.75rem;
  border-bottom: 1px solid;
  font-size: 0.75em;
}

.project-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 500;
}

.project-info {
  font-size: 0.75em;
  padding-top: 1em;
  padding-right: 1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-info.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================
     Project Images
     ========================== */
.project-images {
  --img-gap: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--img-gap);
  padding-right: 0.75rem;
}

.project-images img {
  max-width: 100%;
  height: auto;
  min-width: 0;
}

.media-video {
  width: 100%;
  object-fit: cover;
}

.reveal-crop {
  min-height: 1px;
  display: block;
  --reveal-duration: 0.7s;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  transition: clip-path var(--reveal-duration) cubic-bezier(0.04, 0.57, 0.11, 1),
    -webkit-clip-path var(--reveal-duration) cubic-bezier(0.04, 0.57, 0.11, 1);
}

.reveal-slow {
  --reveal-duration: 1s;
}

.reveal-fast {
  --reveal-duration: 0.7s;
}

/* Visible state */
.reveal-crop.is-visible {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

/* Media fills wrapper */
.reveal-crop img,
.reveal-crop video {
  width: 100%;
  display: block;
  object-fit: cover;
}

@supports not (clip-path: inset(0)) {
  .reveal-crop {
    clip-path: none;
    -webkit-clip-path: none;
  }
}

/* ==========================
     Responsive Adjustments
     ========================== */
@media (max-width: 768px) {
  .w-100,
  .w-80,
  .w-70,
  .w-60,
  .w-50,
  .w-40,
  .w-30 {
    width: 100%;
  }

  .site-header {
    padding: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 0rem;
  }

  .site-title {
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding-bottom: 0.25rem;
  }

  .header-details {
    display: block;
  }

  .header-media {
    padding-right: 0rem;
    position: relative;
  }

  .header-video-wrap {
    aspect-ratio: 1 / 1;
  }

  .header-overlay {
    display: block;
    grid-template-columns: 3fr 0fr 1fr;
  }

  .overlay-info {
    padding-left: 0.5rem;
    padding-right: 2rem;
  }

  .overlay-clients,
  .overlay-agencies {
    display: none;
  }

  h2 {
    font-size: 1.15em;
    line-height: 1.5rem;
    padding-bottom: 1rem;
  }

  .content {
    padding-top: 2rem;
  }

  .project-title {
    font-size: 1rem;
    padding-bottom: 0;
  }

  .project {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    display: block;
    align-items: start;
  }

  .project-header {
    position: relative;
    margin-bottom: 2rem;
    top: 0;
  }

  .project-toggle,
  .project-info {
    display: none;
  }

  .project-images {
    --img-gap: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--img-gap);
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .site-footer {
    background: #151515;
    color: #fff;
    padding-top: 10rem;
    position: sticky;
    bottom: 0;
    z-index: 0;
    padding-bottom: 1px;
  }
}
