/* ========================================
   1. 떠다니는 이모지
======================================== */

.ghost-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

.ghost {
  position: absolute;
  display: block;
  font-size: 35px;
  opacity: 0.25;
  filter: blur(1px);
  animation: ghost-float 18s ease-in-out infinite alternate;
}

.ghost:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-duration: 20s;
}

.ghost:nth-child(2) {
  top: 40%;
  left: 75%;
  font-size: 25px;
  animation-duration: 25s;
  animation-delay: -5s;
}

.ghost:nth-child(3) {
  top: 70%;
  left: 20%;
  font-size: 20px;
  animation-duration: 17s;
  animation-delay: -8s;
}

.ghost:nth-child(4) {
  top: 85%;
  left: 85%;
  font-size: 45px;
  animation-duration: 23s;
  animation-delay: -12s;
}

.ghost:nth-child(5) {
  top: 55%;
  left: 45%;
  font-size: 22px;
  animation-duration: 19s;
  animation-delay: -3s;
}

.ghost:nth-child(6) {
  top: 10%;
  left: 90%;
  font-size: 18px;
  animation-duration: 27s;
  animation-delay: -15s;
}

@keyframes ghost-float {
  0% {
    transform: translate(0, 0) rotate(-15deg);
  }

  25% {
    transform: translate(40px, -50px) rotate(10deg);
  }

  50% {
    transform: translate(-30px, 30px) rotate(-10deg);
  }

  75% {
    transform: translate(60px, 20px) rotate(15deg);
  }

  100% {
    transform: translate(-20px, -60px) rotate(-5deg);
  }
}

/* ========================================
   2. 메인 히어로
======================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #111;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1791709342797-d065f0dc070d?q=80&w=627&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D");
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.2;
  filter: drop-shadow(2px 4px 26px green);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

.hero__eyebrow {
  margin-bottom: 36px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.14em;
}

.hero__title {
  max-width: 900px;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.07em;
}

.hero__link {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px 6px;
  border-bottom: 1px solid #111;
  background-color: #333;
  color: #ccc;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition:
    padding 0.25s ease,
    opacity 0.25s ease;
}

.hero__link:hover {
  padding-right: 15px;
}

/* ========================================
   3. 최근 작품
======================================== */

.latest-works {
  width: min(1400px, calc(100% - 80px));
  margin: 100px auto 0;
}

/* Swiper 기본 영역 */

.work-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #111;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.work-slider:active {
  cursor: grabbing;
}

/* 작품 카드 */

.work-card {
  position: relative;
  min-width: 0;
  height: auto;
  box-sizing: border-box;
  border-right: 1px solid #111;
}

.work-card__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding: 30px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.work-card__link:hover {
  background-color: #111;
  color: #f7f6f2;
}

.work-card__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 작품 정보 */

.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.work-card__publication {
  min-width: 0;
}

.work-card__type {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 25px;
  background-color: #739b73;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

/* 작품 제목 */

.work-card__title {
  margin-top: auto;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(28px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

/* 작품 요약 */

.work-card__excerpt {
  display: -webkit-box;
  min-height: calc(1.6em * 2);
  margin-top: 25px;
  overflow: hidden;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 작품 슬라이더 버튼 */

.work-slider__btn,
.memory-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #ddd;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.work-slider__btn {
  width: 50px;
  height: 50px;
  font-size: 20px;
}

.work-slider__btn:hover:not(:disabled),
.memory-slider__btn:hover:not(:disabled) {
  border-color: #739b73;
  background-color: #739b73;
  color: #fff;
}

.work-slider__btn:disabled,
.memory-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.work-slider__btn:focus-visible,
.memory-slider__btn:focus-visible {
  outline: 2px solid #739b73;
  outline-offset: 3px;
}

.work-slider__btn--prev {
  left: 10px;
}

.work-slider__btn--next {
  right: 10px;
}

/* ========================================
   4. 작가 소개
======================================== */

.about {
  position: relative;
  margin-top: 100px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  background-color: #f0ffe9;
}

.about_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-image: url("https://images.unsplash.com/photo-1578059456805-cd4809a05d70?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.25;
}

.about__inner {
  position: relative;
  z-index: 99;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 5rem;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.about__heading {
  max-width: 600px;
}

.about__heading .tell {
  margin-top: 0.5rem;
  text-align: right;
}

.about__heading .tell p {
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.about__heading h2 {
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.08em;
}

.about__content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  height: 100%;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff6b;
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  line-height: 2;
}

.about__content p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.about__content a {
  display: inline-block;
  margin-top: 50px;
  padding-bottom: 5px;
  border-bottom: 1px solid #111;
  font-family: "Pretendard", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.about__content p a {
  margin: 0;
  padding: 0;
  border-bottom: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

/* ========================================
   5. 인터뷰
======================================== */

.interview {
  width: min(1400px, calc(100% - 80px));
  margin: 100px auto 0;
}

.interview-list {
  border-top: 1px solid #111;
}

.interview-item {
  padding-right: 1rem;
  border-bottom: 1px solid #111;
}

.interview-item a {
  display: flex;
  align-items: center;
  column-gap: 5%;
  padding: 20px 0;
  transition: 0.3s ease;
}

.interview-item a:hover {
  padding-left: 15px;
}

.interview-item a .interview-item__category {
  min-width: 100px;
  border-radius: 25px;
  background-color: rgba(186, 238, 66, 0.308);
  color: #004b00;
  text-align: center;
}

.interview-item__date {
  font-size: 11px;
  opacity: 0.6;
}

.interview-item__title {
  display: -webkit-box;
  overflow: hidden;
  font-family: "Noto Serif KR", serif;
  font-size: 20px;
  font-weight: 400;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========================================
   6. ITEM MEMORY PARK
======================================== */

.memory-park {
  width: min(1400px, calc(100% - 80px));
  margin: 5rem auto;
}

/* Swiper 기본 영역 */

.memory-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 메모리 카드 */

.memory-card {
  min-width: 0;
  height: auto;
  box-sizing: border-box;
}

/* 이미지 */

.memory-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #e9e5da;
}

.memory-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.memory-card:hover .memory-card__image img {
  transform: scale(1.04);
}

/* 카드 정보 */

.memory-card__info {
  padding: 1rem;
}

.memory-card__info > span {
  display: block;
  margin-bottom: 6px;
  color: #739b73;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.memory-card__info h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.memory-card__info p {
  margin: 0 0 8px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}

.memory-card__info small {
  display: block;
  margin-top: 1rem;
  color: #888;
}

/* 메모리 슬라이더 버튼 */

.memory-slider__btn {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.memory-slider__btn--prev {
  left: 10px;
}

.memory-slider__btn--next {
  right: 10px;
}

/* 메모리 파크 하단 문구 */

.memory-park__caption-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.memory-park__caption {
  display: inline-block;
  position: relative;
  border: 1px solid #ccc;
  padding: 1rem 2rem;
  border-radius: 5px;
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.95rem;
  text-align: center;
}

/* 말풍선 꼬리 */
.memory-park__caption::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  transform: translateX(-50%) rotate(45deg);
}

.memory-park__icon {
  font-size: 2rem;
  margin-top: 1rem;
  display: inline-block;
  animation: ghost-float 2s ease-in-out infinite;
}

@keyframes ghost-float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  25% {
    transform: translateY(-5px) rotate(3deg);
  }

  50% {
    transform: translateY(-2px) rotate(-3deg);
  }

  75% {
    transform: translateY(-6px) rotate(5deg);
  }
}

/* ========================================
   7. 반응형
======================================== */

@media (max-width: 768px) {
  .hero__inner {
    width: min(1400px, calc(100% - 40px));
  }

  .latest-works {
    width: calc(100% - 40px);
    margin-top: 0;
    padding-block: 60px;
  }

  .work-card__link {
    min-height: 380px;
    padding: 24px;
  }

  .work-card__title {
    font-size: clamp(28px, 8vw, 30px);
  }

  .work-slider__btn {
    width: 40px;
    height: 40px;
  }

  .about {
    margin-top: 0;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: min(1400px, calc(100% - 40px));
  }

  .interview {
    width: min(1400px, calc(100% - 40px));
  }

  .interview-item__title {
    font-size: 1rem;
  }

  .memory-park {
    width: calc(100% - 40px);
  }

  .memory-card__info h3 {
    font-size: 0.95rem;
  }

  .memory-card__info p {
    font-size: 0.85rem;
  }
}

/* ========================================
   8. 모션 최소화 설정
======================================== */

@media (prefers-reduced-motion: reduce) {
  .ghost {
    animation: none;
  }

  .work-card__link,
  .work-slider__btn,
  .memory-slider__btn,
  .memory-card__image img {
    transition: none;
  }
}
