/* ========================================
   Main KV
======================================== */

.main-kv {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  min-height: 100vh;
  min-height: 100svh;
  margin-top: -72px;
  padding-top: 72px;
  padding-bottom: env(safe-area-inset-bottom, 0px);

  background-color: var(--color-dark);
}


.main-kv-inner {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;

  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}


.main-kv-stage {
  position: relative;

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

  width: 100%;
  min-height: 100%;
}


.main-kv-board {
  position: relative;

  width: min(100%, calc((100svh - 180px) * 1640 / 748 * 0.8));
  aspect-ratio: 1640 / 748;
}


.main-kv-piece {
  position: absolute;
  margin: 0;

  overflow: visible;
  opacity: 0;
  visibility: hidden;

  pointer-events: none;
  will-change: transform, opacity;
}


.main-kv-piece img,
.main-kv-clip img {
  display: block;

  width: 100%;
  height: 100%;

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


.main-kv-left {
  top: 0;
  left: 0;

  width: calc(50% - 21px);
  height: 100%;
}


.main-kv-right {
  top: 0;
  right: 0;

  width: calc(50% - 21px);
  height: 100%;
}


@media (min-width: 1025px) {

  .main-kv-inner {
    max-width: none;
  }


  .main-kv-left {
    top: -6.5%;
    left: auto;
    right: calc(50% + 21px);

    width: calc((50% - 21px) * 1.13);
    height: 113%;
  }


  .main-kv-right {
    top: -6.5%;
    right: auto;
    left: calc(50% + 21px);

    width: calc((50% - 21px) * 1.13);
    height: 113%;
  }

}


.main-kv-clip {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;

  width: 15.12%;
  height: 87.17%;
  margin: 0;

  opacity: 0;
  visibility: hidden;

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


.main-kv-title {
  position: absolute;
  inset: 0;
  z-index: 8;

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

  width: 100%;
  margin: 0;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;
}


.main-kv-title-stack {
  display: block;

  width: min(58%, 860px);
  margin: 0 auto;
}


@media (min-width: 1025px) {

  .main-kv-title-stack {
    width: min(calc(58% * 1.3), calc(860px * 1.3));
  }

}


.main-kv-title-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}


.main-kv-title-port,
.main-kv-title-folio {
  display: block;
  position: relative;

  width: 100%;
  line-height: 0;

  pointer-events: none;
}


.main-kv-title-mask {
  position: relative;

  display: block;
  overflow: hidden;

  aspect-ratio: 814 / 200;
}


.main-kv-title-reveal {
  position: absolute;
  inset: 0;

  overflow: hidden;
}


.main-kv-title-sheet {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
}


.main-kv-title-folio .main-kv-title-sheet {
  top: -100%;
  transform: none;
}


.main-kv-title-base {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}


.main-kv-mark {
  position: absolute;
  z-index: 5;

  overflow: visible;
  pointer-events: auto;
}


.main-kv-mark-shape,
.main-kv-mark-letter {
  display: block;
  pointer-events: none;
}


.main-kv-mark-shape {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  opacity: 1;
  transform: scale(1);
  transform-origin: center center;
}


.main-kv-mark-letter {
  position: absolute;
  top: 50%;
  left: 50%;

  height: auto;
  max-width: none;

  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}


.main-kv-mark-star {
  top: 7%;
  left: 19.165%;
  width: 18.059%;
  height: 36.75%;
}


.main-kv-mark-star .main-kv-mark-letter {
  width: 90%;
}


.main-kv-mark-circle {
  top: 58%;
  left: 44.35%;
  width: 14.459%;
  height: 35%;
}


.main-kv-mark-circle .main-kv-mark-letter {
  width: 121%;
}


.main-kv-scroll {
  position: relative;
  z-index: 6;
  flex-shrink: 0;

  width: 45px;
  margin: 0 0 40px;
  padding: 0;

  background: none;
  border: 0;
}


.main-kv-scroll img {
  display: block;
  width: 100%;
  height: auto;
}


.main-kv-scroll:focus-visible {
  outline: 2px solid var(--color-point);
  outline-offset: 4px;
  border-radius: 50%;
}


/* ========================================
   Custom Cursor
   PC + 마우스 환경만
======================================== */

.custom-cursor {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;

  width: 48px;

  pointer-events: none;
  opacity: 0;

  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
}


.custom-cursor img {
  display: block;
  width: 100%;
  height: auto;
}


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

  .custom-cursor {
    display: block;
  }

  .custom-cursor.is-active {
    opacity: 1;
  }

  html,
  body,
  a,
  button {
    cursor: none;
  }


  .main-kv-mark-shape,
  .main-kv-mark-letter {
    transition:
      opacity 0.28s ease,
      transform 0.28s ease;
  }


  .main-kv-mark:hover .main-kv-mark-shape {
    opacity: 0;
    transform: scale(0.9);
  }


  .main-kv-mark:hover .main-kv-mark-letter {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

}


/* ========================================
   Tablet
   768px ~ 1024px
======================================== */

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

  .main-kv-board {
    width: min(100%, calc((100svh - 160px) * 1640 / 748 * 0.8));
  }


  .main-kv-title-stack {
    width: min(64%, 720px);
  }


  .main-kv-scroll {
    width: 42px;
    margin-bottom: 36px;
  }

}


/* ========================================
   Mobile
   ~ 767px
======================================== */

@media (max-width: 767px) {

  .main-kv {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    margin-top: -56px;
    padding-top: 56px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    overflow: hidden;
  }


  .main-kv-inner {
    min-height: 0;
    align-items: stretch;
  }


  .main-kv-stage {
    container-type: size;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;

    width: 100%;
    height: 100%;
    min-height: 0;
    padding-inline: var(--container-gutter);
    box-sizing: border-box;

    --kv-gap: clamp(4px, 1.2svh, 12px);
  }


  .main-kv-title {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    z-index: 8;

    width: 100%;
    height: auto;
  }


  .main-kv-title-stack {
    width: min(82%, 340px);
  }


  .main-kv-board {
    container-type: size;
    grid-area: 1 / 1;
    --kv-seam: clamp(8px, 2svh, 18px);
    --kv-title-h: calc(min(82cqw, 340px) * 400 / 814);

    width: 100%;
    height: calc(100cqh - var(--kv-title-h) - var(--kv-gap));
    min-height: 0;
    aspect-ratio: auto;
  }


  .main-kv-left,
  .main-kv-right {
    --kv-frame-w: min(100cqw, calc((50cqh - var(--kv-seam) / 2) * 1150 / 841));

    top: auto;
    right: 0;
    bottom: auto;
    left: 0;

    width: var(--kv-frame-w);
    height: calc(50cqh - var(--kv-seam) / 2);
    margin-inline: auto;
  }


  .main-kv-left {
    top: 0;
  }


  .main-kv-right {
    bottom: 0;
  }


  .main-kv-left img {
    object-position: center bottom;
  }


  .main-kv-right img {
    object-position: center top;
  }


  .main-kv-clip {
    container-type: size;
    --kv-frame-w: min(100cqw, calc((50cqh - var(--kv-seam) / 2) * 1150 / 841));

    width: calc(var(--kv-frame-w) * 0.62);
    height: calc(var(--kv-frame-w) * 0.62 * 249 / 652);
  }


  .main-kv-clip img {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100cqh;
    height: 100cqw;
    max-width: none;

    object-fit: contain;
    transform: translate(-50%, -50%) rotate(90deg);
  }


  .main-kv-scroll {
    width: clamp(22px, 4.6svh, 32px);
    margin-top: clamp(4px, 1svh, 8px);
    margin-bottom: 0;
  }

}


@media (max-width: 767px) and (max-height: 700px) {

  .main-kv-stage {
    --kv-gap: 4px;
  }


  .main-kv-title-stack {
    width: min(74%, 280px);
  }


  .main-kv-board {
    --kv-seam: 8px;
    --kv-title-h: calc(min(74cqw, 280px) * 400 / 814);
  }

}


/* ========================================
   Main Intro
======================================== */

.main-intro {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;

  overflow: hidden;

  color: var(--color-black);
  background-color: #f4f4f4;
  background-image: url("../../iamges/main/kv/main-kv-bg.png");
  background-repeat: repeat;
  background-position: center center;
  background-size: 100vw auto;
}


.main-intro-stage {
  position: relative;

  width: 100%;
  height: 100%;
}


.main-intro-copy {
  position: absolute;
  top: 50%;
  left: 9.6%;
  z-index: 3;

  width: 34.8%;

  transform: translateY(-50%);

  pointer-events: none;
}


.main-intro-book {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  width: min(61.5vw, calc(80svh * 1188 / 872));
  aspect-ratio: 1188 / 872;

  transform: translate(-50%, -50%);
}


.main-intro-note {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: fill;

  pointer-events: none;
  user-select: none;
}


.main-intro-page {
  position: absolute;

  overflow: hidden;
}


.main-intro-page-left {
  top: 6.08%;
  left: 7.41%;

  width: 43.43%;
  height: 86.93%;
}


.main-intro-page-right {
  top: 6.08%;
  left: 63.89%;

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

  width: 29.29%;
  height: 86.93%;
  padding: 14px 0;
  box-sizing: border-box;
}


.main-intro-profile {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;

  box-sizing: border-box;
}


.main-intro-profile-text {
  margin: 0;

  width: 100%;

  font-family: var(--font-en);
  font-size: 30px;
  font-weight: var(--font-regular);
  line-height: 1.18;
  text-align: center;

  opacity: 0;
}


.main-intro-image {
  width: 68%;
  aspect-ratio: 300 / 450;

  overflow: hidden;

  opacity: 0;
}


.main-intro-image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;
}


.main-intro-tools {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 72px;

  padding: 7% 7.5%;
  box-sizing: border-box;

  background: transparent;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.main-intro-tool-row {
  opacity: 0;
  transform: translateY(25px);
}


.main-intro-tool-label {
  margin: 0 0 14px;

  font-family: var(--font-en);
  font-size: 23px;
  font-weight: var(--font-medium);
  line-height: 1;
  text-align: left;
}


.main-intro-tool-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}


.main-intro-tool-icons img {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto;

  object-fit: contain;
}


.main-intro-content {
  width: 100%;

  text-align: center;
}


.main-intro-headline {
  position: relative;

  width: 100%;
  margin: 0 0 86px;
}


.intro-parenthesis {
  position: absolute;
  top: 50%;
  z-index: 2;

  font-family: var(--font-ko);
  font-size: 132px;
  font-weight: var(--font-regular);
  line-height: 0.8;

  color: var(--color-dark);

  pointer-events: none;
  user-select: none;

  will-change: transform;
}


.intro-parenthesis-left {
  left: 0;
}


.intro-parenthesis-right {
  right: 0;
}


.main-intro-title {
  margin: 0;

  font-family: var(--font-ko);
  font-size: 54px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;

  white-space: nowrap;
  word-break: keep-all;

  opacity: 0;
}


.main-intro-subtitle {
  margin: 0 0 32px;

  font-family: var(--font-en);
  font-size: 30px;
  font-weight: var(--font-medium);
  line-height: 1.3;
  text-align: center;

  white-space: nowrap;

  opacity: 0;
}


.main-intro-description {
  margin: 0;

  font-family: var(--font-ko);
  font-size: 18px;
  font-weight: var(--font-regular);
  line-height: 1.55;
  text-align: center;

  word-break: keep-all;

  opacity: 0;
}


.main-intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32%;
  padding: 12px 0;
  border-radius: 999px;

  font-family: var(--font-en);
  font-size: 15px;
  font-weight: var(--font-regular);

  color: var(--color-white);
  background-color: var(--color-dark);

  text-decoration: none;

  opacity: 0;
}


.main-intro.is-visible .main-intro-title,
.main-intro.is-visible .main-intro-subtitle,
.main-intro.is-visible .main-intro-description,
.main-intro.is-visible .main-intro-cta,
.main-intro.is-visible .main-intro-tool-row,
.main-intro.is-visible .main-intro-profile-text,
.main-intro.is-visible .main-intro-image {
  opacity: 1;
  transform: none;
}


.main-intro.is-settled .main-intro-profile {
  opacity: 0;
  visibility: hidden;
}


.main-intro.is-settled .main-intro-tools {
  opacity: 1;
  visibility: visible;
}


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

  .main-intro-cta:hover {
    background-color: #4a4944;
  }

}


/* ========================================
   Main Intro — Tablet
   768px ~ 1024px
======================================== */

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

  .main-intro-copy {
    left: 6%;
    width: 40%;
  }


  .main-intro-book {
    width: min(64vw, calc(72svh * 1188 / 872));
  }


  .intro-parenthesis {
    font-size: 84px;
  }


  .main-intro-headline {
    margin-bottom: 40px;
  }


  .main-intro-title {
    font-size: 32px;
  }


  .main-intro-subtitle {
    margin-bottom: 18px;

    font-size: 18px;
  }


  .main-intro-description {
    font-size: 14px;
    line-height: 1.5;
  }


  .main-intro-profile {
    gap: 28px;
  }


  .main-intro-profile-text {
    font-size: 18px;
  }


  .main-intro-tools {
    gap: 28px;
    padding: 8% 6%;
  }


  .main-intro-tool-label {
    margin-bottom: 8px;

    font-size: 13px;
  }


  .main-intro-tool-icons img {
    width: 48px;
    height: 48px;
  }


  .main-intro-cta {
    padding: 8px 0;

    font-size: 12px;
  }

}


/* ========================================
   Main Intro — Mobile
   ~ 767px
======================================== */

@media (max-width: 767px) {

  .main-intro {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;
  }


  .main-intro-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 100%;

    padding: 56px 0 20px;
    gap: 20px;
  }


  .main-intro-copy {
    position: relative;
    top: auto;
    left: auto;

    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;

    transform: none;
    pointer-events: auto;
  }


  .main-intro-book {
    position: relative;
    top: auto;
    left: auto;
    order: -1;

    width: min(100% - 40px, 520px);
    aspect-ratio: 1188 / 872;
    margin: 0 auto;

    transform: none;
  }


  .intro-parenthesis {
    font-size: 56px;
  }


  .main-intro-content {
    width: 100%;
    max-width: none;
  }


  .main-intro-headline {
    margin-bottom: 22px;
  }


  .main-intro-title {
    font-size: 22px;
    white-space: normal;
    text-align: center;
  }


  .main-intro-subtitle {
    margin-bottom: 14px;

    font-size: 16px;
    white-space: normal;
  }


  .main-intro-description {
    font-size: 13px;
    line-height: 1.5;

    white-space: normal;
  }


  .main-intro-profile {
    gap: 16px;
  }


  .main-intro-profile-text {
    font-size: 13px;
  }


  .main-intro-tools {
    gap: 12px;
    padding: 6% 6%;
  }


  .main-intro-tool-label {
    margin-bottom: 4px;
    font-size: 10px;
  }


  .main-intro-tool-icons img {
    width: 28px;
    height: 28px;
  }


  .main-intro-cta {
    width: 46%;
    padding: 8px 0;

    font-size: 11px;
  }

}


@media (max-width: 767px) and (prefers-reduced-motion: reduce) {

  .main-intro {
    height: auto;
    min-height: 0;

    overflow: visible;
  }


  .main-intro-stage {
    height: auto;
    padding: 64px 0 80px;
  }

}

/* ========================================
   Main Projects
   가로 패널 / 등장 상태만 관리
   Hero 비주얼은 project-hero.css
======================================== */

.main-projects {
  position: relative;
  z-index: 2;

  overflow: hidden;

  width: 100%;
  height: 100vh;
  height: 100svh;
}


.main-projects-track {
  display: flex;
  flex-wrap: nowrap;

  height: 100vh;
  height: 100svh;

  will-change: transform;
}


.main-project-panel {
  flex: 0 0 100vw;

  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  height: 100svh;
}


.main-project-reveal,
.main-project-mockup {
  opacity: 0;
}


.main-projects.is-visible .main-project-reveal,
.main-projects.is-visible .main-project-mockup {
  opacity: 1;
}


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

  .main-project-reveal,
  .main-project-mockup {
    opacity: 1;
    transform: none;
  }

}


/* ========================================
   Main Projects — Mobile
   ~ 767px
======================================== */

@media (max-width: 767px) {

  .main-projects {
    height: auto;
  }


  .main-projects-track {
    display: block;

    width: 100%;
    height: auto;

    will-change: auto;
    transform: none;
  }


  .main-project-panel {
    flex: none;

    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100svh;
  }

}


/* ========================================
   Main Other Projects
======================================== */

.main-other-projects {
  position: relative;
  z-index: 2;

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

  width: 100%;
}


.main-other-project {
  display: flex;
  flex-direction: column;

  min-height: 100vh;
  min-height: 100svh;

  padding: 120px var(--container-gutter);
  gap: 50px;
}


.main-other-project-display {
  background-color: var(--color-black);
  color: var(--color-white);

  padding-left: max(var(--container-gutter), calc((100vw - var(--container-width)) / 2));
}


.main-other-project-exhibition {
  background-color: #fafafa;
  color: var(--color-black);

  padding-right: max(var(--container-gutter), calc((100vw - var(--container-width)) / 2));
}


.main-other-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  flex-shrink: 0;
}


.main-other-project-title {
  margin: 0;
}


.main-other-project-name {
  display: block;

  font-family: var(--font-en);
  font-size: clamp(28px, 2.4vw, 80px);
  font-weight: var(--font-extrabold);
  line-height: 0.95;
  letter-spacing: -0.02em;
}


.main-other-project-label {
  display: block;

  margin-top: 4px;

  font-family: var(--font-en);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: var(--font-extrabold);
  line-height: 1;

  color: var(--color-point);
}


.main-other-project-link {
  display: block;

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


.main-other-project-link img {
  display: block;
  width: 100%;
  height: auto;
}


.main-other-project-media {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;

  min-height: 0;
}


.main-other-project-image {
  display: block;

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

  object-fit: contain;
}


.main-other-project-exhibition .main-other-project-image {
  width: auto;
  max-width: 72%;
  max-height: 88%;
}


.main-other-project-info {
  flex-shrink: 0;
}


.main-other-project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;  

  margin: 0;
  padding: 0;
  gap: 0 16px;

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

  list-style: none;
}


.main-other-project-meta li {
  display: flex;
  align-items: center;
}


.main-other-project-meta li + li::before {
  content: "|";

  margin-right: 16px;

  opacity: 0.45;
}


.main-other-project-pagination {
  display: none;
}


.main-other-project-title,
.main-other-project-link,
.main-other-project-media,
.main-other-project-info {
  opacity: 0;
}


.main-other-projects.is-visible .main-other-project-title,
.main-other-projects.is-visible .main-other-project-link,
.main-other-projects.is-visible .main-other-project-media,
.main-other-projects.is-visible .main-other-project-info {
  opacity: 1;
}


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

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

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

}


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

  .main-other-project-title,
  .main-other-project-link,
  .main-other-project-media,
  .main-other-project-info {
    opacity: 1;
    transform: none;
  }

}


/* ========================================
   Main Other Projects — Tablet
   768px ~ 1024px
======================================== */

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

  .main-other-project {
    padding: 56px var(--container-gutter);
    gap: 40px;
  }


  .main-other-project-name {
    font-size: 28px;
  }


  .main-other-project-label {
    font-size: 16px;
  }


  .main-other-project-link {
    width: 26px;
  }


  .main-other-project-meta {
    font-size: 13px;
  }

}


/* ========================================
   Main Other Projects — Mobile
   ~ 767px
======================================== */

@media (max-width: 767px) {

  .main-other-projects {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }


  .main-other-projects::-webkit-scrollbar {
    display: none;
  }


  .main-other-project {
    flex: 0 0 100%;

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

    padding: 48px var(--container-gutter) 72px;
    gap: 32px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }


  .main-other-project-link {
    width: 24px;
    transform: none;
  }


  .main-other-project-meta {
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    font-size:16px;
  }


  .main-other-project-meta li + li::before {
    content: none;
    margin: 0;
  }


  .main-other-project-pagination {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 3;

    display: flex;
    align-items: center;

    gap: 10px;

    transform: translateX(-50%);
  }


  .main-other-project-dot {
    width: 8px;
    height: 8px;
    padding: 0;

    border-radius: 50%;
    background-color: var(--color-point);
    opacity: 0.28;
  }


  .main-other-project-dot.is-active {
    opacity: 1;
  }


  .main-other-project-title,
  .main-other-project-link,
  .main-other-project-media,
  .main-other-project-info {
    transform: translateY(24px);
    transition:
      opacity 0.65s ease,
      transform 0.65s ease;
  }


  .main-other-project-media {
    transform: translateY(24px) scale(0.97);
  }


  .main-other-project.is-visible .main-other-project-title,
  .main-other-project.is-visible .main-other-project-link,
  .main-other-project.is-visible .main-other-project-media,
  .main-other-project.is-visible .main-other-project-info {
    opacity: 1;
    transform: none;
  }

}


/* ========================================
   Main Letter
======================================== */

.main-letter {
  position: relative;
  z-index: 2;

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

  width: 100%;
  height: 100vh;
  min-height: 100vh;

  padding: 0;
  box-sizing: border-box;

  overflow: hidden;

  background-color: #fff;
}


.main-letter-inner {
  position: relative;

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

  width: 100%;
  height: 100%;

  overflow: visible;
}


.main-letter-object {
  position: relative;
  top: 100px;

  width: min(820px, 80vw);
  aspect-ratio: 2000 / 1500;

  overflow: visible;
  perspective: 1600px;
  perspective-origin: 50% 8%;
  transform-style: preserve-3d;

  cursor: pointer;
}


.main-letter-object.is-opened {
  cursor: default;
}


.main-letter-envelope-back,
.main-letter-envelope-flap,
.main-letter-paper-image,
.main-letter-envelope-front {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: 100%;
  height: 100%;

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


.main-letter-envelope-back {
  z-index: 2;
}


.main-letter-flap-hinge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;

  width: 100%;
  height: 100%;

  transform-origin: 50% 11.07%;
  transform-style: preserve-3d;
}


.main-letter-envelope-flap {
  transform-origin: 50% 11.07%;
  backface-visibility: visible;
}


.main-letter-paper-mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;

  width: 100%;
  height: 100%;

  overflow: hidden;
  clip-path: inset(0 0 12.6% 0);
  isolation: isolate;
}


.main-letter-object.is-opened .main-letter-paper-mask,
.main-letter-object.is-opening .main-letter-paper-mask {
  overflow: visible;
  clip-path: inset(-80% 0 12.6% 0);
}


.main-letter-paper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 3;

  width: 100%;
  height: 100%;
}


.main-letter-paper-image {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: 100%;
  height: 100%;

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


.main-letter-envelope-front {
  z-index: 4;
}


.main-letter-sticker {
  position: absolute;
  right: -5%;
  bottom: 20%;
  z-index: 8;

  width: 22%;

  font-size: clamp(7px, 1vw, 10px);
}


.main-letter-sticker-image {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(1.5) scaley(1.5);
}


.main-letter-sticker-text {
  position: absolute;
  top: 50%;
  left: 52%;

  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: var(--font-regular);
  line-height: 1;
  color: #101010;
  white-space: nowrap;
  letter-spacing: 0.08rem;

  transform: translate(-50%, -50%) rotate(11deg);
}


.main-letter-paper-text {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 62%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  padding: 8% 7% 0;
  box-sizing: border-box;
  overflow: visible;

  font-family: var(--font-en);
  font-size: 24px;
  font-weight: var(--font-regular);
  line-height: 1.45;
  color: var(--color-black);
  text-align: center;

  opacity: 0;
}


.main-letter-paper-copy,
.main-letter-paper-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


.main-letter-paper-copy {
  gap: 4px;
}


.main-letter-paper-contact {
  margin-top: 40px;
  gap: 10px;

  font-weight: var(--font-medium);
  line-height: 1.3;
  white-space: nowrap;
}


.main-letter-symbol {
  margin: 0;

  font-size: 24px;
  font-weight: var(--font-regular);
  line-height: 1;
  letter-spacing: 0.04em;
}


.main-letter-message {
  margin: 0;

  font-family: var(--font-en);
  font-size: 24px;
  font-weight: var(--font-regular);
  line-height: 1.35;
}


.main-letter-paper-text p {
  margin: 0;

  font-family: var(--font-en);
  font-size: 24px;
  line-height: 1.45;
}


.main-letter-paper-copy p {
  font-weight: var(--font-regular);
  line-height: 1.35;
}


.main-letter-paper-text .main-letter-symbol {
  line-height: 1;
}


.main-letter-paper-contact p {
  font-weight: var(--font-medium);
  line-height: 1.3;
  white-space: nowrap;
}


.main-letter-cta {
  position: absolute;

  /* 봉투 뚜껑 끝점 중앙 */
  left: 50%;
  top: 61%;

  z-index: 9;

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

  min-width: 0;
  min-height: 0;
  padding: 10px 24px;

  border: none;
  border-radius: 999px;

  font-family: var(--font-en);
  font-size: 22px;
  font-weight: var(--font-medium);
  line-height: 1;

  color: #202020;
  background-color: #f6e7a2;

  transform: translate(-50%, -50%);

  cursor: pointer;
}


.main-letter.is-complete .main-letter-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.main-letter.is-complete .main-letter-flap-hinge {
  z-index: 1;

  transform-origin: 50% 11.07%;
}


.main-letter.is-complete .main-letter-paper-text {
  opacity: 1;
}


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

  .main-letter-cta {
    transition: background-color 0.3s ease;
  }

  .main-letter-cta:hover {
    background-color: #f3de86;
  }

}


/* ========================================
   Main Letter — Tablet
   768px ~ 1024px
======================================== */

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

  .main-letter {
    padding: 180px 0 120px;
  }


  .main-letter-inner {
    padding: 0;
  }


  .main-letter-object {
    width: min(728px, 86vw);
  }

}


/* ========================================
   Main Letter — Mobile
   ~ 767px
======================================== */

@media (max-width: 767px) {

  .main-letter {
    padding: 140px 0 100px;
  }


  .main-letter-inner {
    padding: 0;
  }


  .main-letter-object {
    width: min(520px, 90vw);
  }


  .main-letter-cta {
    min-width: 76px;
    min-height: 32px;
    font-size: 14px;
  }


  .main-letter-paper-text {
    gap: 24px;
    font-size: 16px;
  }


  .main-letter-symbol,
  .main-letter-message,
  .main-letter-paper-text p {
    font-size: 16px;
  }


  .main-letter-paper-contact {
    margin-top: 0;
  }


  .main-letter-paper-text .main-letter-paper-contact p {
    font-size: 14px;
  }


  .main-letter-sticker-text {
    font-size: 0.875rem;
  }

}
