/* =========================================================
   WORK PAGE
   ========================================================= */

.work-page {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
}

.work-shell {
  width: 100%;
  min-height: 100vh;
  position: relative;
}


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

.work-page .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1000;

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

  box-sizing: border-box;

  background: #ffffff;
}

.work-page .logo {
  text-decoration: none;
  color: #000000;
  white-space: nowrap;
}

.work-page .nav {
  display: flex;
  align-items: flex-start;
}

.work-page .nav a {
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
}

.work-page .nav a:hover {
  opacity: 0.55;
}

/* =========================================================
   MAIN
   ========================================================= */

.work-main {
  width: 100%;
  box-sizing: border-box;

  padding: clamp(160px, 18vh, 220px) 3.45vw 80px;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.work-heading {
  margin-bottom: 55px;

  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #666666;
}


/* =========================================================
   PROJECT LIST
   ========================================================= */

.project-list {
  display: block;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.work-page.is-modal-open {
  overflow: hidden;
}

.coming-soon-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1100;
}

.coming-soon-modal[hidden] {
  display: none;
}

.coming-soon-modal__dialog {
  background: #ffffff;
  border: 1px solid #dddddd;
  box-sizing: border-box;
  max-width: 420px;
  padding: clamp(24px, 4vw, 40px);
  width: 100%;
}

.coming-soon-modal__project,
.coming-soon-modal__message {
  margin: 0;
}

.coming-soon-modal__project {
  color: #666666;
  font-size: 11px;
  margin-bottom: clamp(34px, 6vw, 60px);
}

.coming-soon-modal h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.coming-soon-modal__message {
  font-size: 15px;
  line-height: 1.45;
  margin-top: 24px;
}

.coming-soon-modal__close {
  background: transparent;
  border: 0;
  color: #000000;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 0;
}

.coming-soon-modal__close:hover,
.coming-soon-modal__close:focus-visible {
  opacity: 0.55;
}

.coming-soon-modal__close:focus-visible {
  outline: 1px solid #000000;
  outline-offset: 5px;
}


/* =========================================================
   PROJECT ROW
   ========================================================= */

.project-row {
  position: relative;

  opacity: 0;
  transform: translateY(30px);

  width: 100%;
  min-height: 224px;

  display: grid;

  grid-template-columns:
    70px
    minmax(0, 1fr)
    36px
    380px;

  column-gap: 20px;

  align-items: center;

  box-sizing: border-box;

  padding: 0;

  color: #000000;
  text-decoration: none;

  border-top: 1px solid #dddddd;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.project-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* 마지막 프로젝트 아래 선 */

.project-row:last-child {
  border-bottom: 1px solid #dddddd;
}


/* =========================================================
   PROJECT NUMBER
   ========================================================= */

.project-number {
  align-self: center;
  grid-column: 1;

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

  color: #777777;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}


/* =========================================================
   PROJECT TITLE
   ========================================================= */

.project-details {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-title {
  font-size: clamp(48px, 4.4vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 400;

  white-space: nowrap;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}


/* =========================================================
   PROJECT CATEGORY
   ========================================================= */

.project-category {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;

  color: #666666;

  text-align: left;
  white-space: nowrap;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}


/* =========================================================
   PROJECT ARROW
   ========================================================= */

.project-arrow {
  align-self: center;
  grid-column: 3;

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

  opacity: 0;

  transform: translateX(-8px);

  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


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

.project-image {
  align-items: center;
  display: flex;
  grid-column: 4;
  width: 380px;
  height: 203px;

  overflow: hidden;

  justify-self: end;
  justify-content: center;

  position: relative;

  background: #f2f2f2;

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

#good-code-club .project-image {
  aspect-ratio: 3 / 2;
  height: auto;
}

.project-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   HOVER
   ========================================================= */

.project-row:hover .project-title {
  transform: translateX(8px);
}

.project-row:hover .project-number {
  transform: translateX(3px);
}

.project-row:hover .project-category {
  opacity: 0.75;
}

.project-row:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

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


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .work-main {
    padding-left: 30px;
    padding-right: 30px;
  }

  .project-row {
    grid-template-columns:
      50px
      minmax(0, 1fr)
      28px
      300px;

    column-gap: 15px;
  }

  .project-image {
    width: 300px;
    height: 165px;
  }

  .project-title {
    font-size: clamp(42px, 5vw, 60px);
  }

}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 850px) {

  .work-main {
    padding-top: 150px;
  }

  .project-row {
    min-height: 190px;

    grid-template-columns:
      40px
      minmax(0, 1fr)
      28px;
  }

  .project-image {
    display: none;
  }

  .project-title {
    font-size: clamp(40px, 6vw, 58px);
  }

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


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .work-main {
    padding:
      140px
      20px
      60px;
  }

  .work-heading {
    margin-bottom: 30px;

    font-size: 11px;
  }

  .project-row {
    display: grid;

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

    grid-template-rows:
      auto
      auto;

    column-gap: 12px;
    min-height: auto;

    padding:
      28px
      0
      30px;
  }

  .project-number {
    grid-column: 1;
    grid-row: 1;

    align-self: start;

    padding-top: 5px;

    font-size: 11px;
  }

  .project-title {
    font-size: clamp(34px, 10vw, 52px);
    line-height: 0.95;

    white-space: normal;
  }

  .project-category {
    margin-top: 0;

    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
  }

  .project-details {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .project-arrow {
    display: none;
  }

  .project-image {
    display: none;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  .project-row,
  .project-title,
  .project-number,
  .project-category,
  .project-arrow,
  .project-image img {
    transition: none;
  }

  .project-row {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .work-main {
    padding-top: 140px;
  }
}
