/* =========================================================
   JB MULTIMEDIA — PROJECT PAGE
   Simple / Cinematic / Editorial
========================================================= */

:root {
  --black: #090909;
  --white: #f1eee7;
  --muted: #99978f;
  --line: #292929;
  --soft: #151515;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Manrope", Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HEADER
========================================================= */

.project-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 20;

  height: 76px;
  padding: 0 4vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;

  background:
    linear-gradient(
      to bottom,
      rgba(9, 9, 9, .9),
      transparent
    );
}

.brand,
.back-link {
  transition: opacity .3s ease;
}

.brand:hover,
.back-link:hover {
  opacity: .55;
}


/* =========================================================
   HERO
========================================================= */

.project-hero {
  position: relative;

  min-height: 78vh;

  display: flex;
  align-items: flex-end;

  padding: 9rem 5vw 5vw;

  overflow: hidden;
}

.project-hero-image {
  position: absolute;
  inset: 0;

  background: #222;
}

.project-hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: saturate(.8);

  transform: scale(1.02);
}

.project-hero-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, .88),
      rgba(0, 0, 0, .08) 70%
    );
}

.project-hero-content {
  position: relative;
  z-index: 2;

  width: min(1100px, 100%);
}

.project-kicker {
  margin-bottom: 1rem;

  color: #bbb;

  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.project-title {
  margin: 0;

  max-width: 1000px;

  font-size: clamp(4rem, 10vw, 10rem);
  line-height: .82;
  letter-spacing: -.08em;
}

.project-title em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.project-logline {
  max-width: 560px;

  margin: 2rem 0 0;

  color: #d0cdc5;

  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.project-info {
  display: grid;
  grid-template-columns: 1fr 2fr;

  gap: 8vw;

  padding: 7rem 8vw;

  border-bottom: 1px solid var(--line);
}

.project-label {
  color: var(--muted);

  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.project-story {
  max-width: 720px;
}

.project-story h2 {
  margin: 0 0 2rem;

  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.project-story h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.project-story p {
  max-width: 650px;

  margin: 0;

  color: #aaa;

  font-size: 1rem;
  line-height: 1.8;
}


/* =========================================================
   DETAILS
========================================================= */

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  margin-top: 4rem;

  border-top: 1px solid var(--line);
}

.project-detail {
  padding: 1.5rem 1.5rem 0 0;

  border-right: 1px solid var(--line);
}

.project-detail:last-child {
  border-right: 0;
}

.project-detail span {
  display: block;

  margin-bottom: .6rem;

  color: #666;

  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.project-detail strong {
  font-size: .95rem;
  font-weight: 500;
}


/* =========================================================
   GALLERY
========================================================= */

.project-gallery {
  padding: 4vw;
}

.gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;

  margin-bottom: 2rem;
}

.gallery-intro h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.gallery-intro span {
  color: #666;

  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 1rem;
}

.gallery-column {
  display: grid;
  gap: 1rem;
}

.gallery-image {
  position: relative;

  overflow: hidden;

  background: var(--soft);
}

.gallery-image.large {
  min-height: 58vw;
}

.gallery-image.small {
  min-height: 28vw;
}

.gallery-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.gallery-image:hover img {
  transform: scale(1.04);
}


/* =========================================================
   PROJECT NAVIGATION
========================================================= */

.project-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  padding: 2rem 4vw;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-navigation a {
  transition: opacity .3s ease;
}

.project-navigation a:hover {
  opacity: .5;
}

.project-next {
  text-align: right;
}

.project-all {
  color: #777;
}


/* =========================================================
   FOOTER CTA
========================================================= */

.project-end {
  padding: 8rem 5vw;

  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 3rem;
}

.project-end h2 {
  margin: 0;

  max-width: 700px;

  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .82;
  letter-spacing: -.08em;
}

.project-end h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.project-contact {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;

  border-bottom: 1px solid #666;

  padding-bottom: .7rem;

  white-space: nowrap;
}

.project-contact:hover {
  opacity: .5;
}


/* =========================================================
   ANIMATION
========================================================= */

.project-hero-content,
.project-info,
.project-gallery,
.project-navigation,
.project-end {
  animation: projectIn .8s ease both;
}

@keyframes projectIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

  .project-header {
    height: 64px;
    padding: 0 5vw;
  }

  .project-hero {
    min-height: 72vh;
    padding: 7rem 5vw 3rem;
  }

  .project-title {
    font-size: 19vw;
  }

  .project-logline {
    font-size: .95rem;
  }

  .project-info {
    grid-template-columns: 1fr;
    gap: 3rem;

    padding: 5rem 5vw;
  }

  .project-details {
    grid-template-columns: 1fr;
  }

  .project-detail {
    padding: 1.2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-detail:last-child {
    border-bottom: 0;
  }

  .gallery-intro {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

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

  .gallery-image.large,
  .gallery-image.small {
    min-height: 75vw;
  }

  .project-navigation {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .project-all {
    display: none;
  }

  .project-next {
    text-align: right;
  }

  .project-end {
    padding: 6rem 5vw;

    flex-direction: column;
    align-items: flex-start;
  }

  .project-end h2 {
    font-size: 15vw;
  }

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}