@charset "UTF-8";

/* ========================================
   Rotation Page
======================================== */

.rotation-page {
  width: 100%;
  overflow-x: clip;
}


/* ========================================
   Rotation Hero
======================================== */

.rotation-hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  height: 43.75rem;

  overflow: hidden;

  background-color: #eee;
}


/* ========================================
   Background Image
======================================== */

.rotation-hero-image {
  position: absolute;
  z-index: 0;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0;

  transform: scale(1.06);
  transform-origin: center center;

  will-change:
    opacity,
    transform;
}


/* ========================================
   Overlay
======================================== */

.rotation-hero-overlay {
  position: absolute;
  z-index: 1;

  inset: 0;

  display: block;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 255, 255, 0.72) 30%,
      rgba(255, 255, 255, 0.2) 58%,
      rgba(255, 255, 255, 0) 100%
    );

  pointer-events: none;
}


/* ========================================
   Inner
======================================== */

.rotation-hero-inner {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-end;

  width: min(
    calc(100% - 2.5rem),
    91.25rem
  );

  height: 100%;

  margin: 0 auto;

  padding-bottom: 4.375rem;
}


/* ========================================
   Content
======================================== */

.rotation-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 100%;
  max-width: 31.25rem;

  color: #111;

  text-align: left;
}


/* ========================================
   Title
======================================== */

.rotation-hero-title {
  margin: 0;

  color: #111;

  font-family:
    var(
      --font-shilla-culture,
      var(--font-shilla, "Shilla")
    ),
    serif;

  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.45;

  letter-spacing: -0.02em;

  word-break: keep-all;

  will-change:
    opacity,
    transform,
    filter;
}


/* ========================================
   Description
======================================== */

.rotation-hero-description {
  margin: 2.25rem 0 0;

  color: #333;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;

  word-break: keep-all;

  will-change:
    opacity,
    transform,
    filter;
}


/* section02  */
.rotation-model {
  position: relative;

  width: 100%;

  padding-top: 7.5rem;
  padding-bottom: 7.5rem;

  overflow: hidden;

  background-color: #f6f5f3;
}


/* ========================================
   Inner
======================================== */

.rotation-model-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: center;
  gap: 5rem;

  width: min(
    calc(100% - 2.5rem),
    91.25rem
  );

  margin: 0 auto;
}


/* ========================================
   Visual
======================================== */

.rotation-model-visual {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 1.25rem;

  overflow: visible;
}

.rotation-model-image {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  object-fit: contain;
  object-position: center;
}


/* ========================================
   Content
======================================== */

.rotation-model-content {
  width: 100%;
  max-width: 40rem;

  color: #333;
}


/* ========================================
   Heading
======================================== */

.rotation-model-heading {
  width: 100%;
}


.rotation-model-brand {
  margin: 0 0 0.375rem;

  color: #333;

  font-family:
    var(
      --font-shilla-culture,
      var(--font-shilla, "Shilla")
    ),
    serif;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}


.rotation-model-title {
  margin: 0;

  color: #111;

  font-family:
    var(
      --font-shilla-culture,
      var(--font-shilla, "Shilla")
    ),
    serif;

  font-size: 2rem;
  font-weight: 700;
  line-height: 1.45;

  letter-spacing: -0.02em;

  word-break: keep-all;
}


/*
 * 한자 부분만 별도 폰트
 */
.rotation-model-title-hanja {
  font-family:
    var(
      --font-yuji-syuku,
      "Yuji Syuku"
    ),
    serif;

  font-weight: 400;
}


/* ========================================
   Divider
======================================== */

.rotation-model-divider {
  display: flex;
  align-items: center;
  gap: 0.25rem;

  width: 100%;

  margin-top: 0.75rem;
}


.rotation-model-divider-line {
  display: block;
  flex: 1;

  height: 0.0625rem;

  background-color:
    rgba(51, 51, 51, 0.55);
}


.rotation-model-divider-symbol {
  display: block;

  width: 0.625rem;
  height: 0.625rem;

  object-fit: contain;
}


/* ========================================
   Lead
======================================== */

.rotation-model-lead {
  margin: 0.875rem 0 0;

  color: #333;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;

  word-break: keep-all;
}


/* ========================================
   Description
======================================== */

.rotation-model-description {
  display: flex;
  flex-direction: column;
  gap: 2rem;

  margin-top: 3rem;

  color: #333;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;

  word-break: keep-all;
}


.rotation-model-description p {
  margin: 0;
}


/* section03 */
.rotation-floor {
  position: relative;

  width: 100%;

  padding-top: 7.5rem;
  padding-bottom: 7.5rem;

  overflow: hidden;

  background-color: #fff;
}


/* ========================================
   Inner
======================================== */

.rotation-floor-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: stretch;

  gap: 1.25rem;

  width: min(
    calc(100% - 2.5rem),
    91.25rem
  );

  margin: 0 auto;
}


/* ========================================
   Artwork Card
======================================== */

.rotation-floor-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: 1.25rem;

  background-color: #fff;

  border:
    0.0625rem solid
    rgba(51, 51, 51, 0.12);

  will-change:
    opacity,
    transform;
}


/* ========================================
   Card Image
======================================== */

.rotation-floor-card-image-wrap {
  width: 100%;

  overflow: hidden;

  background-color: #f3f3f3;
}


.rotation-floor-card-image {
  display: block;

  width: 100%;
  height: 24.375rem;

  object-fit: cover;
  object-position: center;
}


/* ========================================
   Card Information
======================================== */

.rotation-floor-card-information {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr);

  align-items: center;
  gap: 2rem;

  margin-top: 1.75rem;
}


/* ========================================
   Card Heading
======================================== */

.rotation-floor-card-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;

  white-space: nowrap;
}


.rotation-floor-card-number {
  color: #737373;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}


.rotation-floor-card-title {
  margin: 0;

  color: #333;

  font-family:
    var(
      --font-yuji-syuku,
      "Yuji Syuku"
    ),
    serif;

  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}


.rotation-floor-card-title span {
  font-family:
    var(--font-joseon-100-years),
    serif;

  font-size: 1rem;
}


/* ========================================
   Card Description
======================================== */

.rotation-floor-card-description {
  margin: 0;

  color: #333;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;

  text-align: right;

  word-break: keep-all;
}


/* ========================================
   Card Divider
======================================== */

.rotation-floor-card-divider {
  display: flex;
  align-items: center;
  gap: 0.25rem;

  width: 100%;

  margin-top: 1.5rem;
}


.rotation-floor-card-divider-line {
  display: block;
  flex: 1;

  height: 0.0625rem;

  background-color:
    rgba(51, 51, 51, 0.5);
}


.rotation-floor-card-divider-symbol {
  display: block;

  width: 0.625rem;
  height: 0.625rem;

  object-fit: contain;
}


/* ========================================
   Floor Map Area
======================================== */

.rotation-floor-map-area {
  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: 1.25rem;

  background-color: #fff;

  border:
    0.0625rem solid
    rgba(51, 51, 51, 0.12);
}


/* ========================================
   Floor Map
======================================== */

.rotation-floor-map {
  position: relative;

  width: 100%;

  overflow: hidden;
}


.rotation-floor-map-image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}


/* ========================================
   Number Button
======================================== */

.rotation-floor-button {
  position: absolute;

  top: var(--floor-y);
  left: var(--floor-x);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  padding: 0;

  color: #fff;

  background-color: #333;

  border:
    0.125rem solid
    transparent;

  border-radius: 50%;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 0.875rem;
  line-height: 1;

  cursor: pointer;

  transform:
    translate3d(-50%, -50%, 0);

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}


/* Hover */

.rotation-floor-button:hover {
  color: #333;

  background-color: #fff;

  border-color: #333;

  transform:
    translate3d(-50%, -50%, 0)
    scale(1.08);
}


/* Active */

.rotation-floor-button.is-active {
  color: #fff;

  background-color: #737373;

  border-color: #333;

  transform:
    translate3d(-50%, -50%, 0)
    scale(1.12);
}


/* ========================================
   Floor Guide
======================================== */

.rotation-floor-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  margin-top: 1rem;

  color: #737373;
}


.rotation-floor-guide-symbol {
  display: block;

  width: 0.75rem;
  height: 0.75rem;

  object-fit: contain;
}


.rotation-floor-guide-text {
  margin: 0;

  font-family:
    var(
      --font-noto-serif-kr,
      "Noto Serif KR"
    ),
    serif;

  font-size: 0.875rem;
  line-height: 1.5;
}



/* ========================================
   Tablet
======================================== */

@media (
  min-width: 48rem
) and (
  max-width: 64rem
) {

  .rotation-hero {
    height: 37.5rem;
  }


  .rotation-hero-inner {
    width:
      calc(100% - 2.5rem);

    padding-bottom: 3.75rem;
  }


  .rotation-hero-content {
    max-width: 27.5rem;
  }


  .rotation-hero-title {
    font-size: 2rem;
  }


  .rotation-hero-description {
    margin-top: 1.75rem;

    font-size: 0.9375rem;
    line-height: 1.75;
  }


  /* section02  */
  .rotation-model {
    padding-top: 6.25rem;
    padding-bottom: 6.25rem;
  }


  .rotation-model-inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 2.5rem;

    width:
      calc(100% - 2.5rem);
  }


  .rotation-model-title {
    font-size: 1.75rem;
  }


  .rotation-model-lead {
    font-size: 0.9375rem;
  }


  .rotation-model-description {
    gap: 1.5rem;

    margin-top: 2rem;

    font-size: 0.875rem;
    line-height: 1.75;
  }


  /* section03 */
  .rotation-floor {
    padding-top: 6.25rem;
    padding-bottom: 6.25rem;
  }


  .rotation-floor-inner {
    gap: 1rem;

    width:
      calc(100% - 2.5rem);
  }


  .rotation-floor-card,
  .rotation-floor-map-area {
    padding: 1rem;
  }


  .rotation-floor-card-image {
    height: 20rem;
  }


  .rotation-floor-card-information {
    gap: 1.25rem;

    margin-top: 1.5rem;
  }


  .rotation-floor-card-number {
    font-size: 2.5rem;
  }


  .rotation-floor-card-title {
    font-size: 1.25rem;
  }


  .rotation-floor-card-description {
    font-size: 0.875rem;
  }


  .rotation-floor-button {
    width: 1.75rem;
    height: 1.75rem;

    font-size: 0.75rem;
  }


}


/* ========================================
   Mobile
======================================== */

@media (max-width: 47.9375rem) {

  .rotation-hero {
    /*
     * 모바일 화면설계서처럼
     * 너무 긴 100vh를 사용하지 않습니다.
     */
    height: 31.25rem;
  }


  .rotation-hero-image {
    /*
     * 입구와 우측 건축물이
     * 자연스럽게 보이도록 구도 이동
     */
    object-position: 58% center;
  }


  .rotation-hero-overlay {
    /*
     * 모바일에서도 PC와 동일하게
     * 왼쪽 텍스트 영역 가독성 확보
     */
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.75) 45%,
        rgba(255, 255, 255, 0.16) 78%,
        rgba(255, 255, 255, 0) 100%
      );
  }


  .rotation-hero-inner {
    /*
     * 모바일도 PC와 동일하게
     * 좌측 하단 위치 유지
     */
    align-items: flex-end;

    width:
      calc(100% - 2.5rem);

    height: 100%;

    padding-bottom: 2.5rem;
  }


  .rotation-hero-content {
    width: 74%;
    max-width: 20rem;

    text-align: left;
  }


  .rotation-hero-title {
    font-size: 1.5rem;
    line-height: 1.45;
  }


  .rotation-hero-description {
    margin-top: 1.25rem;

    font-size: 0.8125rem;
    line-height: 1.65;
  }


  /* section02  */
  .rotation-model {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }


  .rotation-model-inner {
    display: flex;
    flex-direction: column;

    gap: 2.5rem;

    width:
      calc(100% - 2.5rem);
  }


  /* 3D Model */

  .rotation-model-visual {
    width: 100%;

    padding: 1rem;
  }

  .rotation-model-image {
    width: 100%;
    height: auto;

    object-fit: contain;
  }


  /* Content */

  .rotation-model-content {
    width: 100%;
    max-width: none;
  }


  .rotation-model-brand {
    margin-bottom: 0.25rem;

    font-size: 0.75rem;
  }


  .rotation-model-title {
    font-size: 1.5rem;
    line-height: 1.45;
  }


  .rotation-model-divider {
    margin-top: 0.75rem;
  }


  .rotation-model-divider-symbol {
    width: 0.5rem;
    height: 0.5rem;
  }


  .rotation-model-lead {
    margin-top: 0.75rem;

    font-size: 0.8125rem;
    line-height: 1.65;
  }


  .rotation-model-description {
    gap: 1.5rem;

    margin-top: 2rem;

    font-size: 0.8125rem;
    line-height: 1.7;
  }

  /* section03 */
  .rotation-floor {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }


  /*
   * 모바일 화면설계서:
   * 평면도 → 작품 카드
   */
  .rotation-floor-inner {
    display: flex;
    flex-direction: column;

    gap: 0;

    width:
      calc(100% - 2.5rem);
  }


  /* Floor Map First */

  .rotation-floor-map-area {
    order: 1;

    padding:
      0
      0
      1.5rem;

    border: 0;
  }


  .rotation-floor-map {
    width: 100%;
  }


  .rotation-floor-map-image {
    width: 100%;
  }


  .rotation-floor-guide {
    order: -1;

    margin:
      0
      0
      0.875rem;

    gap: 0.5rem;
  }


  .rotation-floor-guide-symbol {
    width: 0.625rem;
    height: 0.625rem;
  }


  .rotation-floor-guide-text {
    font-size: 0.6875rem;
  }


  .rotation-floor-button {
    width: 1.5rem;
    height: 1.5rem;

    font-size: 0.625rem;
  }


  /*
   * 작품 Card
   */
  .rotation-floor-card {
    order: 2;

    padding:
      0
      0
      1.25rem;

    border: 0;
  }


  .rotation-floor-card-image {
    height: auto;

    aspect-ratio: 1 / 0.78;

    object-fit: cover;
  }


  .rotation-floor-card-information {
    display: grid;

    grid-template-columns:
      auto
      minmax(0, 1fr);

    gap: 0.75rem;

    margin-top: 1rem;
  }


  .rotation-floor-card-heading {
    gap: 0.375rem;
  }


  .rotation-floor-card-number {
    font-size: 2rem;
  }


  .rotation-floor-card-title {
    font-size: 1rem;
  }


  .rotation-floor-card-title span {
    font-size: 0.6875rem;
  }


  .rotation-floor-card-description {
    font-size: 0.6875rem;
    line-height: 1.55;

    text-align: right;
  }


  .rotation-floor-card-divider {
    margin-top: 1rem;
  }

}


/* ========================================
   Small Mobile
======================================== */

@media (max-width: 30rem) {

  .rotation-hero {
    height: 28.125rem;
  }


  .rotation-hero-inner {
    padding-bottom: 2rem;
  }


  .rotation-hero-content {
    width: 82%;
  }


  .rotation-hero-title {
    font-size: 1.375rem;
  }


  .rotation-hero-description {
    font-size: 0.75rem;
  }

  /* section02  */
  .rotation-model-inner {
    gap: 2rem;
  }


  .rotation-model-title {
    font-size: 1.375rem;
  }


  .rotation-model-lead,
  .rotation-model-description {
    font-size: 0.75rem;
  }

  /* section03 */
  .rotation-floor-card-number {
    font-size: 1.75rem;
  }


  .rotation-floor-card-title {
    font-size: 0.875rem;
  }


  .rotation-floor-card-description {
    font-size: 0.625rem;
  }

}


/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {

  .rotation-hero-image,
  .rotation-hero-title,
  .rotation-hero-description {
    opacity: 1 !important;

    filter: none !important;
    transform: none !important;

    animation: none !important;
    transition: none !important;
  }

  /* section02  */
  .rotation-model-image,
  .rotation-model-brand,
  .rotation-model-title,
  .rotation-model-divider,
  .rotation-model-lead,
  .rotation-model-description p {
    visibility: visible !important;
    opacity: 1 !important;

    filter: none !important;
    transform: none !important;

    animation: none !important;
    transition: none !important;
  }

}