/* =========================================================
   CAR.IR — PROJECT PAGE ONLY
   car-ir.css
========================================================= */


/* =========================================================
   PROJECT PAGE
========================================================= */

.project-page {
  position: relative;
  z-index: 10;

  width: 100%;

  padding: 130px 48px 80px;
}


/* =========================================================
   PROJECT INTRO
========================================================= */

.project-intro {
  padding: 42px 0 54px;
}

.project-intro h1 {
  margin: 0 0 12px;

  max-width: none;

  font-size: clamp(42px, 4.2vw, 60px);
  line-height: .95;

  letter-spacing: -.045em;

  font-weight: 650;
}

.project-category {
  margin: 0;

  color: rgba(255,255,255,.72);

  font-size: 14px;
  font-weight: 500;

  line-height: 1.5;
}


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

.project-hero {
  width: 100%;

  margin: 0 0 80px;

  overflow: hidden;

  border-radius: 20px;

  background: rgba(255,255,255,.08);

  border: 1px solid rgba(255,255,255,.14);

  box-shadow:
    0 18px 45px rgba(0,0,0,.08);
}

.project-hero img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 16 / 9;

  object-fit: cover;
}


/* =========================================================
   CASE STUDY ROW

   LEFT  = SECTION TITLE
   RIGHT = SECTION CONTENT
========================================================= */

.case-row {
  display: grid;

  grid-template-columns:
    280px
    minmax(0, 1fr);

  gap: 48px;

  align-items: start;

  width: 100%;

  margin-bottom: 78px;
}


/* =========================================================
   LEFT SECTION LABEL
========================================================= */

.case-label {
  min-width: 0;

  padding-top: 2px;
}

.case-eyebrow {
  margin: 0 0 7px;

  color: rgba(255,255,255,.60);

  font-size: 9px;
  font-weight: 650;

  line-height: 1.2;

  letter-spacing: .12em;

  text-transform: uppercase;
}

.case-label h2 {
  margin: 0;

  max-width: none;

  color: #fff;

  font-size:
    clamp(17px, 1.4vw, 21px);

  line-height: 1.08;

  letter-spacing: -.02em;

  font-weight: 620;

  white-space: nowrap;
}


/* =========================================================
   RIGHT CONTENT
========================================================= */

.case-content {
  min-width: 0;

  width: 100%;
}


/* =========================================================
   BRAND OVERVIEW
========================================================= */

.overview-copy {
  width: 100%;

  max-width: 850px;
}

.overview-copy p {
  margin: 0 0 20px;

  color: rgba(255,255,255,.84);

  font-size: 15px;

  font-weight: 400;

  line-height: 1.75;
}

.overview-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   BRAINSTORMING PNG
========================================================= */

.brainstorm-image {
  display: block;

  width: 100%;

  max-width: 760px;

  height: auto;

  margin: 0;

  object-fit: contain;
}


/* =========================================================
   IDENTITY SYSTEM
========================================================= */

.identity-row {
  align-items: start;
}


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

.project-gallery {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  width: 100%;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {
  position: relative;

  overflow: hidden;

  border-radius: 16px;

  background:
    rgba(255,255,255,.08);

  border:
    1px solid rgba(255,255,255,.12);

  box-shadow:
    0 14px 35px rgba(0,0,0,.05);

  cursor: zoom-in;
}


/* FULL WIDTH */

.project-image.wide {
  grid-column: 1 / -1;
}


/* IMAGE */

.project-image img {
  display: block;

  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  cursor: zoom-in;

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

.project-image:hover img {
  transform: scale(1.012);
}


/* =========================================================
   PROJECT END
========================================================= */

.project-end {
  position: relative;

  z-index: 10;

  display: flex;

  justify-content: center;

  width: 100%;

  padding: 60px 0 10px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.project-lightbox {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 50px 90px;

  background:
    rgba(8,10,12,.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .28s ease,
    visibility .28s ease;
}


/* =========================================================
   LIGHTBOX OPEN
========================================================= */

.project-lightbox.open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}


/* =========================================================
   LIGHTBOX IMAGE WRAPPER
========================================================= */

.lightbox-image-wrapper {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  max-width: 1500px;
}


/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

.lightbox-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;

  max-height:
    calc(100vh - 110px);

  object-fit: contain;

  border-radius: 10px;

  box-shadow:
    0 30px 90px rgba(0,0,0,.4);

  user-select: none;

  -webkit-user-drag: none;
}


/* =========================================================
   LIGHTBOX CLOSE
========================================================= */

.lightbox-close {
  position: absolute;

  top: 24px;
  right: 28px;

  z-index: 10;

  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid rgba(255,255,255,.18);

  border-radius: 50%;

  background:
    rgba(255,255,255,.08);

  color: #fff;

  font-family: Inter, sans-serif;

  font-size: 27px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}

.lightbox-close:hover {
  background:
    rgba(255,255,255,.16);

  transform: scale(1.05);
}


/* =========================================================
   LIGHTBOX ARROWS
========================================================= */

.lightbox-arrow {
  position: absolute;

  top: 50%;

  z-index: 10;

  transform:
    translateY(-50%);

  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid rgba(255,255,255,.16);

  border-radius: 50%;

  background:
    rgba(255,255,255,.07);

  color: #fff;

  font-family: Inter, sans-serif;

  font-size: 32px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease;
}

.lightbox-arrow:hover {
  background:
    rgba(255,255,255,.16);
}


/* PREVIOUS */

.lightbox-prev {
  left: 28px;
}


/* NEXT */

.lightbox-next {
  right: 28px;
}


/* =========================================================
   LIGHTBOX COUNTER
========================================================= */

.lightbox-counter {
  position: absolute;

  left: 50%;
  bottom: 4px;

  transform:
    translateX(-50%);

  padding: 6px 12px;

  border-radius: 999px;

  background:
    rgba(0,0,0,.42);

  color:
    rgba(255,255,255,.78);

  font-size: 11px;

  font-weight: 500;

  line-height: 1;

  letter-spacing: .08em;

  white-space: nowrap;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   DISABLE BODY SCROLL WHILE LIGHTBOX IS OPEN
========================================================= */

body.lightbox-open {
  overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .project-page {
    padding:
      120px
      36px
      70px;
  }


  .case-row {
    grid-template-columns:
      230px
      minmax(0, 1fr);

    gap: 36px;

    margin-bottom: 70px;
  }


  .case-label h2 {
    font-size: 18px;
  }


  .overview-copy {
    max-width: 100%;
  }


  .brainstorm-image {
    max-width: 100%;
  }


  .project-lightbox {
    padding:
      50px
      70px;
  }

}


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

@media (max-width: 760px) {

  /* PAGE */

  .project-page {
    padding:
      100px
      20px
      55px;
  }


  /* INTRO */

  .project-intro {
    padding:
      38px
      0
      42px;
  }

  .project-intro h1 {
    font-size:
      clamp(38px, 13vw, 54px);
  }

  .project-category {
    font-size: 13px;
  }


  /* HERO */

  .project-hero {
    margin-bottom: 60px;

    border-radius: 15px;
  }


  /* CASE ROW */

  .case-row {
    display: block;

    margin-bottom: 64px;
  }


  /* SECTION LABEL */

  .case-label {
    margin-bottom: 24px;

    padding-top: 0;
  }

  .case-label h2 {
    font-size: 20px;

    white-space: normal;
  }


  /* OVERVIEW */

  .overview-copy {
    max-width: none;
  }

  .overview-copy p {
    margin-bottom: 18px;

    font-size: 14px;

    line-height: 1.7;
  }


  /* BRAINSTORM */

  .brainstorm-image {
    width: 100%;

    max-width: none;

    height: auto;
  }


  /* GALLERY */

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

    gap: 16px;
  }

  .project-image.wide {
    grid-column: auto;
  }

  .project-image {
    border-radius: 14px;
  }


  /* PROJECT END */

  .project-end {
    padding:
      55px
      0
      5px;
  }


  /* LIGHTBOX */

  .project-lightbox {
    padding:
      60px
      14px;
  }


  .lightbox-image {
    max-width: 100%;

    max-height:
      calc(100vh - 120px);

    border-radius: 8px;
  }


  /* CLOSE */

  .lightbox-close {
    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;

    font-size: 24px;
  }


  /* ARROWS */

  .lightbox-arrow {
    width: 40px;
    height: 40px;

    font-size: 27px;

    background:
      rgba(0,0,0,.42);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }


  /* COUNTER */

  .lightbox-counter {
    bottom: 2px;

    font-size: 10px;
  }

}
