/* ========================================
   Shared UIUX Project Hero
   Main .main-project-panel + Works .project-detail-hero
======================================== */

.project-hero {
  position: relative;
  overflow: hidden;

  color: var(--color-white);
  background-color: var(--color-black);
}


.project-hero.is-jeockyo{
  color: var(--color-white);
  background-color: var(--color-black);
}

.project-hero.is-dropfilm {
  color: var(--color-white);
  background-color: #F26A39;
}


.project-hero.is-equil,
.project-hero.is-aetherx {
  color: var(--color-black);
  background-color: #fafafa;
}


.project-hero.project-detail-hero {
  z-index: 2;

  width: 100%;
  min-height: calc(100svh - 72px);
}


/* 1. 배경색은 .project-hero
   2. UIUX 배경 이미지
   3. 목업
   4~7. 로고 / 정보 / CTA / 화살표 */


.project-hero-bg-type {
  position: absolute;
  inset: 0;
  z-index: 1;

  overflow: hidden;
  pointer-events: none;
}


.project-hero-bg-type img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;

  display: block;

  width: 104%;
  max-width: none;
  height: auto;

  object-fit: contain;
  object-position: center;

  transform: translate(-50%, -50%);
  pointer-events: none;
}


.project-hero-inner,
.project-hero .main-project-inner,
.project-hero .project-detail-inner {
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 100%;
  min-height: inherit;
  padding: 40px 0;
  box-sizing: border-box;
}


.project-hero-arrow,
.project-hero .main-project-head,
.project-hero .project-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;

  position: relative;
  z-index: 4;
}


.project-hero .main-project-title,
.project-hero .project-detail-title {
  display: none;
}


.project-hero .main-project-link,
.project-hero .project-hero-link {
  display: block;

  width: 50px;
  margin-top: 8px;
  flex-shrink: 0;
}


.project-hero .main-project-link img,
.project-hero .project-hero-link img {
  display: block;

  width: 100%;
  height: auto;
}


.project-hero-visual,
.project-hero .main-project-mockup,
.project-hero .project-detail-mockup {
  position: absolute;
  top: 10%;
  right: 0;
  bottom: 20%;
  left: 0;
  z-index: 2;

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

  min-height: 0;
  padding: 0;
  pointer-events: none;
}


.project-hero-mockup-float {
  display: flex;
  align-items: center;
  justify-content: center;

  width: min(72%, 1200px);
  height: 100%;
  will-change: transform;
}


.project-hero.is-equil .project-hero-mockup-float {
  width: min(54%, 780px);
}


.project-hero.is-dropfilm .project-hero-mockup-float {
  width: min(70%, 1180px);
}


.project-hero.is-aetherx .project-hero-mockup-float {
  width: min(52%, 780px);
}


.project-hero-visual img,
.project-hero .main-project-mockup img,
.project-hero .project-detail-mockup img {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;

  object-fit: contain;
}


.project-hero .main-project-bottom,
.project-hero .project-detail-bottom {
  position: relative;
  z-index: 4;

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

  gap: 24px;
}


.project-hero-brand,
.project-hero .main-project-brand,
.project-hero .project-detail-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  gap: 12px;
}


.project-hero-logo {
  width: 300px;
  height: 120px;
}


.project-hero-logo img,
.project-hero .main-project-logo,
.project-hero .project-detail-logo {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: left bottom;
}


.project-hero .main-project-description,
.project-hero .project-detail-description {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid currentColor;

  font-family: var(--font-ko);
  font-size: 22px;
  font-weight: var(--font-regular);
  line-height: 1.5;

  word-break: keep-all;
}


.project-hero .main-project-aside,
.project-hero .project-detail-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;

  gap: 20px;
}


.project-hero-info,
.project-hero .main-project-meta,
.project-hero .project-detail-info {
  margin: 0;
  padding: 0;

  font-family: var(--font-ko);
  font-size: 20px;
  font-weight: var(--font-regular);
  line-height: 1.7;

  text-align: right;
  list-style: none;
}


.project-hero-actions,
.project-hero .project-detail-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 12px;
}


.project-hero-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  min-width: 148px;
  min-height: 44px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;

  font-family: var(--font-en);
  font-size: 16px;
  font-weight: var(--font-regular);
  line-height: 1;
  letter-spacing: 0.06em;

  color: var(--color-black);
  background-color: #fafafa;

  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}


.project-hero.is-equil .project-hero-cta-link,
.project-hero.is-aetherx .project-hero-cta-link {
  color: var(--color-white);
  background-color: var(--color-black);
}


.project-hero-cta-icon {
  display: inline-block;

  font-size: 13px;
  line-height: 1;

  transition: transform 0.25s ease;
}


@media (hover: hover) and (pointer: fine) {

  .project-hero .main-project-link,
  .project-hero .project-hero-link {
    transition: transform 0.3s ease;
  }

  .project-hero .main-project-link:hover,
  .project-hero .project-hero-link:hover {
    transform: translate(6px, -6px) scale(1.04);
  }


  .project-hero-cta-link:hover {
    color: var(--color-white);
    background-color: var(--color-dark);
  }


  .project-hero-cta-link:hover .project-hero-cta-icon {
    transform: translate(2px, -2px);
  }


  .project-hero.is-equil .project-hero-cta-link:hover,
  .project-hero.is-aetherx .project-hero-cta-link:hover {
    color: var(--color-black);
    background-color: #ececec;
  }

}


@media (min-width: 768px) and (max-width: 1024px) {

  .project-hero-inner,
  .project-hero .main-project-inner,
  .project-hero .project-detail-inner {
    padding: 32px 0;
  }


  .project-hero-bg-type img {
    width: 108%;
  }


  .project-hero .main-project-link,
  .project-hero .project-hero-link {
    width: 28px;
  }


  .project-hero-visual,
  .project-hero .main-project-mockup,
  .project-hero .project-detail-mockup {
    top: 12%;
    bottom: 22%;
  }


  .project-hero-mockup-float {
    width: min(78%, 860px);
  }


  .project-hero.is-equil .project-hero-mockup-float {
    width: min(34%, 280px);
  }


  .project-hero.is-aetherx .project-hero-mockup-float {
    width: min(48%, 420px);
  }


  .project-hero-logo {
    width: 140px;
    height: 112px;
  }


  .project-hero .main-project-description,
  .project-hero .project-detail-description {
    font-size: 18px;
  }


  .project-hero-info,
  .project-hero .main-project-meta,
  .project-hero .project-detail-info {
    font-size: 20px;
  }


  .project-hero-cta-link {
    min-width: 128px;
    font-size: 18px;
  }

}


@media (max-width: 767px) {

  .project-hero.project-detail-hero {
    min-height: 0;
  }


  .project-hero-inner,
  .project-hero .main-project-inner,
  .project-hero .project-detail-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding: 32px 0 40px;
    gap: 28px;
  }


  .project-hero-bg-type {
    position: absolute;
    inset: 0;
  }


  .project-hero-bg-type img {
    width: 148%;
    max-height: none;
  }


  .project-hero-visual,
  .project-hero .main-project-mockup,
  .project-hero .project-detail-mockup {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;

    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px 0;
  }


  .project-hero-mockup-float,
  .project-hero.is-equil .project-hero-mockup-float,
  .project-hero.is-dropfilm .project-hero-mockup-float,
  .project-hero.is-aetherx .project-hero-mockup-float {
    width: calc(100% + (var(--container-gutter) * 2));
    max-width: none;
    height: auto;
    margin-left: calc(var(--container-gutter) * -1);
    margin-bottom: calc((var(--container-gutter) * -1) * 712 / 885);
  }


  .project-hero-visual img,
  .project-hero .main-project-mockup img,
  .project-hero .project-detail-mockup img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
  }


  .project-hero .main-project-link,
  .project-hero .project-hero-link {
    width: 24px;
    margin-top: 4px;
  }


  .project-hero .main-project-bottom,
  .project-hero .project-detail-bottom {
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;
  }


  .project-hero .main-project-aside,
  .project-hero .project-detail-aside {
    align-items: stretch;

    width: 100%;
    gap: 18px;
  }


  .project-hero-info,
  .project-hero .main-project-meta,
  .project-hero .project-detail-info {
    text-align: left;
    font-size: 16px;
  }


  .project-hero .main-project-description,
  .project-hero .project-detail-description {
    font-size: 20px;
  }


  .project-hero-logo {
    width: 160px;
    height: 128px;
  }


  .project-hero-actions,
  .project-hero .project-detail-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;

    width: 100%;
  }


  .project-hero-cta-link {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

}
