/* Reset & Universal Box Sizing */
:root {
  --page-edge: max(20px, 2.7778vw);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9f9f9;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #f9f9f9;
}

/* =========================================================
   상단 고정 헤더: 100% 완전 투명 플로팅 레이어 (background: transparent)
   ========================================================= */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 99999;
  display: flex;
  align-items: center;
  border: none !important;
}

.header-inner {
  /* 어떤 화면 너비에서도 좌우 여백 비율 일정 유지 (40/1440 = 2.7778vw) */
  width: 100%;
  height: 100%;
  padding: 0 var(--page-edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
}

.nav-item {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #000000;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.5;
}

/* 중앙 정렬 초선명 원본 로고 */
.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.5;
}

.logo-img {
  height: 18px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* 메인 스크롤 컨테이너 */
.main-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease;
}

.section {
  width: 100%;
  position: relative;
}

/* 1. 히어로 랜딩 이미지 & 인터랙티브 로고 래퍼 */
.hero-section {
  width: 100%;
  /* 헤더(48px) 제외한 뷰포트 전체 높이 */
  height: 100dvh; /* 헤더가 fixed이므로 뷰포트 전체 높이 */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #f9f9f9;
  padding-top: 0;
  margin-top: 0;
  overflow: hidden;
  position: relative; /* 하단.png absolute 기준점 */
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100dvh; /* 뷰포트 전체 높이 - 로고 절대위치 기준 */
}

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

/* 인터랙티브 로고 래퍼: 오리지널 원본 종횡비 2320:550 (4.218:1) 완벽 고정 */
.hero-logo-interactive-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* CONTACT C 정렬 유지 */
  left: calc(2.7778vw - max(0px, (100vw - 1440px) / 2) - min(1.927vw, 27.75px));
  width: 59.38%;
  aspect-ratio: 2320 / 550;
  max-width: 855px;
  z-index: 5;
  cursor: pointer;
  overflow: visible;
  will-change: top, transform;
}

.logo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

/* 2D 먹박 그래픽 로고 (기본 표시) */
.logo-2d-layer {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* 3D 크롬 메탈 시퀀스 캔버스 (호버/스크롤 시 등장) */
.logo-3d-layer {
  opacity: 0;
  transform: scale(0.995);
  pointer-events: none;
}

/* 3D 모드 활성화 (마우스 호버 또는 스크롤 진행 시) */
.hero-logo-interactive-container.is-3d-active .logo-2d-layer {
  opacity: 0;
  transform: scale(1.005);
}

.hero-logo-interactive-container.is-3d-active .logo-3d-layer {
  opacity: 1;
  transform: scale(1);
}

/* 전환 시 은은하게 지나가는 메탈릭 광택 플래시 효과 */
.metallic-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  opacity: 0;
}

.hero-logo-interactive-container.sheen-active .metallic-sheen {
  opacity: 1;
  animation: metallicFlash 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes metallicFlash {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

/* 2. ARCHIVE 섹션 (메인 스크롤 뷰 연동) */
.archive-section {
  position: relative;
  width: 100%;
  min-height: 1700px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  border-top: none;
  background-color: #f9f9f9;
  overflow: hidden;
}

/* 인쇄 롤러 언롤 (Receipt / Paper Unroll) 에디토리얼 모션 */
.archive-interactive-layer {
  position: relative;
  width: 1440px;
  min-height: 1700px;
  z-index: 2;
}

/* 모니터 폭과 무관하게 ARCHIVE 표 전체가 같은 좌우 경계를 사용한다. */
.archive-content-wrapper,
.archive-interactive-layer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.archive-row {
  left: 0 !important;
  width: 100% !important;
}

.archive-main-line,
.archive-divider-line,
.archive-row-bottom-line {
  left: 0 !important;
  right: auto !important;
  width: 100vw !important;
}

/* NAME 제목과 아래 이름 열은 하나의 왼쪽 고정 세트 */
.archive-header-name-wrapper {
  left: calc(var(--page-edge) - 4px) !important;
}

.archive-row > div:nth-child(1) {
  left: calc(var(--page-edge) + 25px) !important;
  top: 12.15px !important;
  transform: translateY(-50%);
  max-width: calc(68.36% - var(--page-edge) - 50px);
  overflow: hidden;
  white-space: nowrap;
  font-size: 19.8px !important;
  line-height: 1.15;
}

/* TYPE 제목·값·미리보기 시작점은 동일한 반응형 세트 */
.archive-header-type-wrapper {
  left: calc(68.36% - 29px) !important;
}

.archive-row > div:nth-child(2),
.archive-image-frame {
  left: 68.36% !important;
}

.archive-row > div:nth-child(2) {
  top: 12.15px !important;
  transform: translateY(-50%);
  max-width: calc(31.64% - var(--page-edge) - 100px);
  overflow: hidden;
  white-space: nowrap;
  font-size: 19.8px !important;
  line-height: 1.15;
}

/* YEAR 제목과 값의 시작점을 묶어 오른쪽 경계 가까이에 고정 */
.archive-header-year-wrapper {
  left: calc(100% - var(--page-edge) - 93px) !important;
}

.archive-row > div:nth-child(3) {
  left: calc(100% - var(--page-edge) - 64px) !important;
  top: 12.15px !important;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 21.77px !important;
  line-height: 1.1;
}

/* 행 제목 안의 한자 등 별도 span도 반응형 공통 글자 크기를 그대로 따른다. */
.archive-row > div:nth-child(1) span {
  font-size: inherit !important;
  line-height: inherit;
}

.archive-header-name-wrapper .archive-th,
.archive-header-type-wrapper .archive-type-label,
.archive-header-year-wrapper .archive-year-label {
  font-size: 24px !important;
}

.archive-header-name-wrapper .archive-th-icon,
.archive-header-type-wrapper .archive-th-icon,
.archive-header-year-wrapper .archive-th-icon {
  width: 16px !important;
  height: 14px !important;
}

/* 1) 메인 기준선 좌->우 드로잉 라인 */
.archive-main-line {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.is-unrolled .archive-main-line,
.archive-section.is-unrolled .archive-main-line,
.archive-container.is-unrolled .archive-main-line,
.archive-container.active .archive-main-line {
  transform: scaleX(1);
}

/* 2) 헤더 아이콘 & 타이포 위->아래 착지 */
.archive-th,
.archive-th-icon {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.is-unrolled .archive-th,
.is-unrolled .archive-th-icon,
.archive-section.is-unrolled .archive-th,
.archive-section.is-unrolled .archive-th-icon,
.archive-container.is-unrolled .archive-th,
.archive-container.is-unrolled .archive-th-icon,
.archive-container.active .archive-th,
.archive-container.active .archive-th-icon {
  opacity: 1;
  transform: translateY(0);
}

/* 3) 상단 서브 메뉴: ARCHIVE와 BRAIN이 동일한 세로 기준을 사용한다. */
.archive-subnav {
  position: absolute;
  top: 125px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: auto;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.5s ease 0.05s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.archive-subnav-item {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.archive-subnav-item:hover {
  opacity: 0.7;
}

.archive-subnav-item.active {
  font-weight: 700;
  opacity: 1;
}

.archive-subnav-divider {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  line-height: 1;
  user-select: none;
  padding: 0 2px;
}

.is-unrolled .archive-subnav,
.archive-section.is-unrolled .archive-subnav,
.archive-container.is-unrolled .archive-subnav,
.archive-container.active .archive-subnav {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TYPE gallery */
.archive-type-gallery {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  min-height: 2580px;
  background: #f9f9f9;
}

.archive-section.type-view-active,
.archive-section.type-view-active .archive-content-wrapper,
.archive-section.type-view-active .archive-interactive-layer {
  min-height: 2580px !important;
}

.archive-section.type-view-active .archive-type-gallery {
  display: block;
}

.archive-section.type-view-active .archive-header-name-wrapper,
.archive-section.type-view-active .archive-header-type-wrapper,
.archive-section.type-view-active .archive-header-year-wrapper,
.archive-section.type-view-active .archive-main-line,
.archive-section.type-view-active .archive-row,
.archive-section.type-view-active .archive-divider-line {
  display: none !important;
}

.archive-type-filters {
  position: absolute;
  top: 188px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 40px);
  white-space: nowrap;
}

.archive-year-filters {
  position: absolute;
  top: 214px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 40px);
  white-space: nowrap;
}

.archive-type-filter {
  border: 0;
  border-radius: 999px;
  padding: 4px 9px 5px;
  background: #dbdbdb;
  color: rgba(0, 0, 0, 0.54);
  font: 700 8.79px/1 "Helvetica Neue", Arial, sans-serif;
  text-transform: capitalize;
  cursor: pointer;
}

.archive-type-filter[data-filter="ALL"] {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  color: #000;
  font-size: 10.91px;
}

.archive-type-filter.is-active {
  color: #000;
}

.archive-year-filter {
  border: 0;
  border-radius: 999px;
  padding: 4px 9px 5px;
  background: #dbdbdb;
  color: rgba(0, 0, 0, 0.54);
  font: 700 8.79px/1 "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.archive-year-filter[data-year="ALL"] {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  color: #000;
  font-size: 10.91px;
}

.archive-year-filter.is-active {
  color: #000;
}

.archive-type-grid {
  position: absolute;
  top: 338px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 105px;
}

.archive-type-card[hidden] {
  display: none;
}

.archive-type-card {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.archive-type-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 217.97 / 308.61;
  object-fit: cover;
  background: #e8e8e8;
}

.archive-type-title {
  box-sizing: border-box;
  width: 100%;
  margin: 26px 0 18px;
  padding: 0 10px;
  color: #000;
  font: 500 10.91px/1.25 "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  text-transform: capitalize;
}

.archive-type-hanja {
  font-weight: 700;
}

.archive-type-tags {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  padding: 0 12px;
}

.archive-type-tag {
  border-radius: 999px;
  padding: 4px 9px 5px;
  background: #dbdbdb;
  color: rgba(0, 0, 0, 0.54);
  font: 700 8.79px/1 "Helvetica Neue", Arial, sans-serif;
  text-transform: capitalize;
}

@media (max-width: 900px) {
  .archive-type-filters,
  .archive-year-filters {
    gap: 6px;
    transform: translateX(-50%) scale(0.78);
    transform-origin: center;
  }

  .archive-type-grid {
    left: 12px;
    right: 12px;
    column-gap: 8px;
  }

  .archive-type-title {
    margin: 26px 0 18px;
    padding: 0 2px;
    font-size: 8px;
  }

  .archive-type-tags {
    gap: 3px;
    padding: 0;
  }

  .archive-type-tag {
    padding: 3px 5px;
    font-size: 6px;
  }
}

/* PDF PORTFOLIO — 검정 반투명 배경 위 중앙 세로 이미지 스트림 */
.pdf-portfolio-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.86);
  scrollbar-gutter: stable;
}

.pdf-portfolio-overlay.is-open {
  display: block;
}

.pdf-portfolio-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 300 27px/32px "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.pdf-portfolio-stream {
  width: min(1000px, 72vw);
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.pdf-portfolio-page {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.28);
}

body.pdf-portfolio-open {
  overflow: hidden;
}

/* ARCHIVE 1 — 현재 페이지 위에 열리는 검정 상세 창 */
.archive-detail-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd transparent;
  scrollbar-gutter: auto;
  background: rgba(0, 0, 0, 0.9);
}

.archive-detail-overlay::-webkit-scrollbar {
  width: 8px;
}

.archive-detail-overlay::-webkit-scrollbar-track {
  background: transparent;
}

.archive-detail-overlay::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 999px;
  background: #bdbdbd;
}

.archive-detail-overlay::-webkit-scrollbar-corner {
  background: transparent;
}

.archive-detail-overlay.is-open {
  display: block;
}

.archive-detail-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 300 27px/32px "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.archive-detail-links {
  position: fixed;
  top: 84px;
  right: max(18px, calc((100vw - min(1188px, calc(76vw - 140px))) / 2 - 50px));
  z-index: 2;
  display: flex;
  width: 32px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.archive-detail-links[hidden] {
  display: none;
}

.archive-detail-link {
  display: flex;
  width: 32px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 6.92px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.archive-detail-link[hidden] {
  display: none;
}

.archive-detail-link img {
  display: block;
  width: 30px;
  height: 30px;
}

.archive-detail-link:hover,
.archive-detail-link:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

.archive-detail-shell {
  width: min(1188px, calc(76vw - 140px));
  margin: 80px auto 10px;
  background: transparent;
}

.archive-detail-stream {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.archive-detail-image {
  display: block;
  width: 100%;
  height: auto;
}

.archive-detail-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1358;
  flex: 0 0 auto;
  border: 0;
  background: #000;
}

.archive-detail-video--portrait {
  aspect-ratio: 1920 / 3208;
}

.archive-detail-video--archive2 {
  aspect-ratio: 1920 / 1357;
}

.archive-detail-video--archive2-top {
  aspect-ratio: 1684 / 1190;
}

.archive-detail-video--archive3-one {
  aspect-ratio: 1080 / 1350;
}

.archive-detail-video--archive3-two {
  aspect-ratio: 1080 / 1440;
}

.archive-detail-video--archive4 {
  width: 80%;
  aspect-ratio: 3840 / 2160;
  align-self: center;
}

.archive-detail-video--archive4-final {
  width: 100%;
}

.archive-detail-video--archive6-opening {
  aspect-ratio: 2858 / 1549;
}

.archive-detail-video--archive6-player {
  aspect-ratio: 3840 / 2160;
}

.archive-detail-video--archive6-after-grid {
  aspect-ratio: 2130 / 1754;
}

.archive-detail-video--archive6-ending {
  aspect-ratio: 1691 / 1074;
}

.archive-detail-video--archive6-final-player {
  aspect-ratio: 3840 / 2160;
}

.archive-detail-video--archive6-award {
  aspect-ratio: 3840 / 2160;
}

.archive-detail-video--archive7-opening {
  aspect-ratio: 2076 / 2595;
}

.archive-detail-video--archive8-opening {
  aspect-ratio: 1920 / 1357;
}

.archive-detail-video--archive9-opening {
  aspect-ratio: 3840 / 2160;
}

.archive-detail-video--archive9-after-ten {
  aspect-ratio: 1920 / 1809;
}

.archive-detail-video--archive10-after-one {
  aspect-ratio: 1920 / 963;
}

.archive10-vimeo-padded-wrapper {
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.archive10-vimeo-padded-wrapper .archive-detail-video {
  width: 87.5%;
  aspect-ratio: 16 / 9;
}

.archive10-vimeo-zoom-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  box-sizing: border-box;
}

.archive10-vimeo-zoom-wrapper .archive-detail-video {
  width: 105%;
  flex: 0 0 105%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.archive10-motion-intro-title {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  text-align: left;
  padding: 28px 20px 14px 20px;
  background: #ffffff;
  line-height: 1.3;
}

.archive10-cg-part-title {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  text-align: left;
  padding: 42px 20px 18px 20px;
  background: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.archive-detail-video--archive10-cg-part {
  aspect-ratio: 1920 / 2000;
}

.archive-detail-video--archive10-wide-1 {
  aspect-ratio: 7681 / 1968;
}

.archive-detail-video--archive10-wide-2 {
  aspect-ratio: 3840 / 1696;
}

.archive10-shorts-link-wrapper {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  padding: 24px 20px;
  text-align: left;
}

.archive10-shorts-link-wrapper a {
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  word-break: break-all;
  transition: opacity 0.2s ease;
}

.archive10-shorts-link-wrapper a:hover {
  opacity: 0.7;
}

.archive-detail-video--archive10-youtube,
.archive-detail-video--archive11,
.archive-detail-video--archive12-seven,
.archive-detail-video--archive14-youtube,
.archive-detail-video--archive15,
.archive-detail-video--archive16,
.archive-detail-video--archive17,
.archive-detail-video--archive18-one,
.archive-detail-video--archive18-three,
.archive-detail-video--archive18-five,
.archive-detail-video--archive21-youtube {
  aspect-ratio: 16 / 9;
}

.archive-detail-video--archive12-five {
  aspect-ratio: 1920 / 1357;
}

.archive-detail-video--archive18-two,
.archive-detail-video--archive18-four {
  aspect-ratio: 2552 / 1728;
}

.archive-detail-video--archive19-one,
.archive-detail-video--archive19 {
  aspect-ratio: 1276 / 720;
}

.archive-detail-video--archive19-two {
  aspect-ratio: 1920 / 2050;
}

.archive-detail-video--archive20-one,
.archive-detail-video--archive20 {
  aspect-ratio: 7681 / 5249;
}

.archive-detail-video--archive20-two {
  aspect-ratio: 3840 / 3010;
}

.archive-detail-video--archive20-three {
  aspect-ratio: 1920 / 1180;
}

.archive-detail-video--archive20-four {
  aspect-ratio: 1950 / 1848;
}

.archive-detail-video--archive20-five {
  aspect-ratio: 7680 / 3924;
}

.archive-detail-video--archive21-one {
  aspect-ratio: 1920 / 1080;
}

.archive-detail-video--archive21-two {
  aspect-ratio: 1920 / 2848;
}

.archive-detail-video--archive21-three {
  aspect-ratio: 426 / 186;
}

.archive-detail-video--archive21-youtube2 {
  aspect-ratio: 16 / 9;
}

.archive-detail-video--archive21-four {
  aspect-ratio: 1920 / 1036;
}

.archive-detail-video--archive21-five {
  aspect-ratio: 1920 / 960;
}

.archive21-video-pair {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
}

.archive21-video-pair .archive-detail-video {
  margin: 0;
  padding: 0;
  display: block;
}

.archive20-text-banner {
  background-color: #ffffff;
  padding: 50px 32px 24px 32px;
  box-sizing: border-box;
  width: 100%;
  color: #000000;
  font-family: inherit;
}

.archive20-desc-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 0;
  box-sizing: border-box;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.archive20-desc-subtext {
  margin-top: 8px;
  margin-bottom: 36px;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  letter-spacing: -0.01em;
}

.archive20-mission-title {
  font-size: 30px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .archive20-text-banner {
    padding: 30px 16px 18px 16px;
  }
  .archive20-desc-box {
    font-size: 18px;
    padding: 0;
    width: 100%;
  }
  .archive20-desc-subtext {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .archive20-mission-title {
    font-size: 19px;
  }
}

.archive20-instagram-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 40px 20px 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

.archive20-instagram-embed {
  width: 100%;
  max-width: 540px;
  height: 600px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #ffffff;
}

@media (max-width: 600px) {
  .archive20-instagram-wrap {
    padding: 24px 12px 36px 12px;
  }
  .archive20-instagram-embed {
    height: 520px;
  }
}

.archive21-text-banner {
  background-color: #ffffff;
  padding: 50px 24px 40px 24px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.archive21-banner-title {
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  line-height: 1.2;
}

.archive21-banner-subtext {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .archive21-text-banner {
    padding: 32px 16px 24px 16px;
    gap: 8px;
  }
  .archive21-banner-title {
    font-size: 20px;
    gap: 8px;
  }
  .archive21-banner-subtext {
    font-size: 13px;
  }
}

.archive-detail-video-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.archive-detail-video-thumb-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.archive-detail-video-thumb-link:hover img {
  filter: brightness(0.85);
  transform: scale(1.02);
}

.archive-detail-youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.archive-detail-video-thumb-link:hover .archive-detail-youtube-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}

.archive-detail-award-link {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.archive-detail-award-link a {
  color: #ff6a00;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-detail-video-stage--archive4 {
  display: flex;
  width: 100%;
  justify-content: center;
  background: #000;
}

.archive-detail-stage--archive14-gif3 {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 80px;
  background: #000;
}

.archive-detail-stage--archive14-gif3 img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .archive-detail-stage--archive14-gif3 {
    padding: 0 24px;
  }
}

.archive-detail-grid--archive6 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #000;
}

.archive-detail-grid--archive6 img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-detail-grid--archive11-2col {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: #000;
}

.archive-detail-grid--archive11-2col img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-detail-grid--archive11-3col {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: #000;
}

.archive-detail-grid--archive11-3col img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-detail-collage {
  display: grid;
  width: 100%;
  aspect-ratio: 5.77 / 1;
  padding: 18px 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 28px;
  overflow: hidden;
  background: #000;
}

.archive-detail-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.archive-1-trigger {
  cursor: pointer;
}

.archive-1-trigger:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

html.archive-detail-open,
body.archive-detail-open {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

@media (max-width: 800px) {
  .pdf-portfolio-stream {
    width: 92vw;
    margin: 48px auto;
  }

  .archive-detail-shell {
    width: max(calc(92vw - 140px), 280px);
  }
}

/* 4) 21개 전체 프로젝트 행 순차적 언롤 스태거 모션 및 아코디언 */
.archive-row {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.38s cubic-bezier(0.25, 1, 0.5, 1), height 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform, top, height;
  cursor: pointer;
  height: 316.31px;
  overflow: visible;
  pointer-events: auto;
}

.archive-row.is-open {
  height: 316.31px !important;
  overflow: visible !important;
}

.archive-project-description {
  position: absolute;
  left: calc(var(--page-edge) + 25px);
  top: 46.31px;
  width: calc(68.36% - var(--page-edge) - 50px);
  margin: 0;
  color: #000;
  font-family: 'Helvetica Neue', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.25s;
  pointer-events: none;
}

.archive-row.is-open .archive-project-description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.archive-row:hover > div:not(.archive-image-frame):not(.archive-row-bottom-line) {
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.archive-divider-line {
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, top;
  pointer-events: none !important;
}

/* Figma 1:1 427px x 263px 회색(#C9C9C9) 이미지 프레임 (상시 렌더링 + overflow 클리핑) */
.archive-image-frame {
  position: absolute;
  left: 985px;
  top: 42.31px;
  width: 427px;
  height: 263px;
  background: #C9C9C9;
  background-color: #C9C9C9;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.32s;
}

.archive-row.is-open .archive-image-frame {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.archive-row.is-open .archive-image-frame {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

.archive-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 아코디언 열림 시 행 하단 구분선 */
.archive-row-bottom-line {
  position: absolute;
  left: 0;
  top: 315px;
  width: 1440px;
  height: 1px;
  background: #000000 !important;
  background-color: #000000 !important;
  display: block !important;
  opacity: 0;
  transform: translateY(-20px);
  visibility: visible !important;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-row.is-revealed,
.is-unrolled .archive-row,
.archive-section.is-unrolled .archive-row,
.archive-container.is-unrolled .archive-row,
.archive-container.active .archive-row {
  opacity: 1;
  transform: translateY(0);
}

.archive-row.archive-row-dim.is-revealed,
.is-unrolled .archive-row.archive-row-dim,
.archive-section.is-unrolled .archive-row.archive-row-dim,
.archive-container.is-unrolled .archive-row.archive-row-dim,
.archive-container.active .archive-row.archive-row-dim {
  opacity: 0.31;
  transform: translateY(0);
}

.archive-divider-line.is-revealed,
.is-unrolled .archive-divider-line,
.archive-section.is-unrolled .archive-divider-line,
.archive-container.is-unrolled .archive-divider-line,
.archive-container.active .archive-divider-line {
  opacity: 1;
}

.archive-divider-line.archive-divider-dim.is-revealed,
.is-unrolled .archive-divider-line.archive-divider-dim,
.archive-section.is-unrolled .archive-divider-line.archive-divider-dim,
.archive-container.is-unrolled .archive-divider-line.archive-divider-dim,
.archive-container.active .archive-divider-line.archive-divider-dim {
  opacity: 0.31;
}

/* TYPE & YEAR 필터 드롭다운 팝오버 */
.archive-filter-trigger-btn:hover,
.archive-year-trigger-btn:hover,
.archive-type-trigger-btn:hover {
  opacity: 0.65;
}

.archive-filter-trigger-btn.is-active svg,
.archive-year-trigger-btn.is-active svg,
.archive-type-trigger-btn.is-active svg {
  transform: rotate(180deg);
}

.archive-filter-dropdown.is-open,
.archive-year-dropdown.is-open,
.archive-type-dropdown.is-open {
  display: flex !important;
}

.archive-type-opt:hover,
.archive-year-opt:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* =========================================================
   3. ABOUT ME 전용 풀페이지 뷰 (피그마 1:1 오차 검증 레이아웃)
   ========================================================= */
.about-me-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background-color: #f9f9f9;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  -webkit-overflow-scrolling: touch;
}

.about-me-container.active {
  visibility: visible;
  opacity: 1;
}

.about-me-wrapper {
  position: relative;
  width: 100%;
  min-height: 1287px;
  margin: 0 auto;
  background-color: #f9f9f9;
  --about-page-edge: var(--page-edge);
  --about-content-inset: 0px;
}

/* 실제 렌더링되는 정밀 HTML 콘텐츠 레이어 */
.about-html-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 1287px;
  z-index: 2;
  pointer-events: auto;
}

.about-hero-logo {
  display: block;
  image-rendering: -webkit-optimize-contrast;
  /* 원본 PNG 안쪽의 9.25px 투명 여백을 제외한 실제 도형을 경계 안쪽에 배치 */
  left: calc(var(--about-page-edge) + var(--about-content-inset) - 9.25px) !important;
}

.about-date-counter,
.about-intro-copy-en,
.about-profile-photo {
  left: calc(var(--about-page-edge) + var(--about-content-inset)) !important;
}

.about-bottom-ticker {
  position: absolute;
  top: 1245.5px;
  /* 부모 레이아웃 크기와 무관하게 실제 뷰포트 양끝에 고정된다. */
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  width: auto;
  overflow: hidden;
  z-index: 1000;
  pointer-events: none;
  color: #000000;
  opacity: 0.27;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 17.28px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-align: left;
}

/* ABOUT ME 우측 아코디언 컴포넌트 (오리지널 1:1 완벽 좌표 보존) */
.about-accordion-container {
  position: absolute;
  left: 847px;
  right: calc(var(--about-page-edge) + var(--about-content-inset));
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.about-accordion-item {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: auto;
  transition: top 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-accordion-header {
  cursor: pointer;
  user-select: none;
}

.about-accordion-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.about-accordion-title {
  color: black;
  font-size: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: normal;
  padding-bottom: 3.65px;
  transition: opacity 0.2s ease;
}

.about-pin-hint {
  font-size: 9.5px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: #777777;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  padding-bottom: 3.65px;
  user-select: none;
}

.about-accordion-header:hover .about-pin-hint {
  opacity: 0.65;
}

.about-accordion-header:hover .about-accordion-title {
  opacity: 0.6;
}

.about-accordion-line {
  width: 100%;
  height: 1px;
  background: black;
}

.about-accordion-body {
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.about-accordion-item.is-open .about-accordion-body {
  max-height: 250px;
  opacity: 1;
  overflow: visible;
}

.about-item-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
  line-height: 14.71px;
}

.about-item-col-left {
  width: 242px;
  flex-shrink: 0;
  color: black;
  font-size: 11px;
  font-family: 'Apple SD Gothic Neo', -apple-system, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.about-item-col-mid {
  flex-grow: 1;
  color: black;
  font-size: 11px;
  font-family: 'Apple SD Gothic Neo', -apple-system, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.about-item-col-right {
  margin-left: auto;
  text-align: right;
  color: black;
  font-size: 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  line-height: 16.81px;
  white-space: nowrap;
}

.about-item-sub-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 14px;
  padding-left: 242px;
}

.about-item-link {
  color: black;
  font-size: 10.50px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  text-decoration: underline;
  line-height: 14.71px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.about-item-link:hover {
  opacity: 0.6;
}

.about-item-arrow {
  margin-left: auto;
  width: 5.5px;
  height: 5.5px;
  display: block;
}

/* =========================================================
   4. BRAIN 전용 풀스크린 뷰
   ========================================================= */
.brain-panorama-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background-color: #000000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.brain-panorama-container.active {
  visibility: visible;
  opacity: 1;
}

/* BRAIN 서브 네비게이션: what i like / personality / ongoing project (Helvetica Neue 13px) */
.brain-subnav {
  position: absolute;
  top: 125px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: auto;
  user-select: none;
}

.brain-subnav-item {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 3px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.brain-subnav-item:hover {
  opacity: 0.7;
}

.brain-subnav-item.active {
  font-weight: 700;
  opacity: 1;
}

.brain-subnav-divider {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  line-height: 1;
  user-select: none;
  padding: 0 1px;
}

/* BRAIN 서브페이지 컨테이너 */
.brain-subpage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.brain-subpage.active {
  display: block;
}

#subpage-what-i-like {
  cursor: grab;
}

#subpage-what-i-like:active {
  cursor: grabbing;
}

#brain-three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#brain-three-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Cinema 4D 스타일 오른쪽 상단 3D 뷰포트 위젯 */
.c4d-viewport-widget {
  position: absolute;
  top: 60px;
  right: 40px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  user-select: none;
  pointer-events: auto;
}

.c4d-tool-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
  padding-bottom: 2px;
  margin-bottom: 2px;
}

.c4d-icon-btn {
  background: none;
  border: none;
  color: #111111;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.75;
}

.c4d-icon-btn:hover {
  color: #000000;
  opacity: 1;
  transform: scale(1.1);
  background: none;
}

.c4d-icon-btn.active {
  color: #000000;
  opacity: 1;
}

.c4d-gizmo-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#c4d-axis-canvas {
  width: 70px;
  height: 70px;
  display: block;
}

/* 서브페이지 플레이스홀더 */
.subpage-placeholder-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 100px 40px;
  text-align: center;
}

.subpage-placeholder-content h2 {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111111;
  margin-bottom: 16px;
}

/* BRAIN / ABOUT ME 뷰 활성화 시 상태 */
html.brain-active,
html.about-active,
body.brain-active,
body.about-active {
  overflow-y: hidden !important;
  scrollbar-gutter: stable !important;
}

body.brain-active .main-container,
body.about-active .main-container {
  opacity: 0;
  pointer-events: none;
}

/* 클릭 시 표시되는 오버레이 모달 (CONTACT) */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.page-overlay.active {
  visibility: visible;
  opacity: 1;
}

.overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.overlay-content {
  position: relative;
  width: 90%;
  max-width: 640px;
  min-height: 360px;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.page-overlay.active .overlay-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #888888;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #000000;
}

/* =========================================================
   CONTACT 플로팅 드롭다운 팝업 (피그마 1:1 정밀 구현)
   ========================================================= */
.contact-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.contact-popup-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.contact-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

.contact-popup-card {
  /* CONTACT 버튼과 동일한 좌측 여백 비율로 항상 버튼 아래 정렬 */
  position: relative;
  margin-top: 48px;
  margin-bottom: 48px;
  margin-left: 2.7778vw;
  width: 602.06px;
  height: 893.99px;
  background: #FFFBCA;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 10;
}

.contact-popup-overlay.active .contact-popup-card {
  transform: translateY(0);
}

/* CONTACT v2 — 제공된 402 × 691 좌표/타이포 코드 기준 */
.contact-popup-card.contact-popup-card-v2 {
  width: 402px;
  height: 691px;
  margin-top: 48px;
  margin-left: 0;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.contact-popup-card-v2 a {
  color: #000;
  text-decoration: none;
}

.contact-v2-info,
.contact-v2-portfolio,
.contact-v2-career {
  position: absolute;
  left: 28px;
  color: #000;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.contact-v2-info {
  top: 28.06px;
  font-size: 11.24px;
  line-height: 12.96px;
}

.contact-v2-section strong,
.contact-v2-section span,
.contact-v2-section a,
.contact-v2-portfolio strong,
.contact-v2-portfolio span,
.contact-v2-career strong,
.contact-v2-career span {
  display: block;
}

.contact-v2-section strong,
.contact-v2-portfolio strong,
.contact-v2-career strong {
  font-weight: 800;
  text-transform: uppercase;
}

.contact-v2-section span,
.contact-v2-section a,
.contact-v2-portfolio span,
.contact-v2-career span {
  font-weight: 500;
}

.contact-v2-address { margin-top: 16px; }
.contact-v2-phone { margin-top: 16px; }

.contact-v2-portfolio {
  top: 207px;
  width: 309.39px;
  font-size: 11.4px;
  line-height: 16.05px;
}

.contact-v2-socials a,
.contact-v2-linkedin,
.contact-v2-bottom-logo {
  position: absolute;
  display: block;
}

.contact-v2-socials img,
.contact-v2-linkedin img {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-v2-instagram { left: 28px; top: 274px; width: 31.86px; height: 31.86px; }
.contact-v2-behance { left: 84.72px; top: 279.4px; width: 31.86px; height: 21.02px; }
.contact-v2-notefolio { left: 138.8px; top: 277.5px; width: 159.3px; height: 24.93px; }

.contact-v2-career {
  top: 372.7px;
  width: 350.07px;
  font-size: 11.1px;
  line-height: 15.63px;
}

.contact-v2-linkedin { left: 28px; top: 423.45px; width: 30.86px; height: 30.86px; }

.contact-v2-bottom-logo {
  left: 11.85px;
  top: 545.2px;
  width: 378.3px;
  height: 131.98px;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 460px) {
  .contact-popup-card.contact-popup-card-v2 {
    width: min(402px, 100vw);
    height: min(691px, 171.8905vw);
    transform-origin: top left;
  }

}

.contact-label {
  display: block;
  color: black;
  font-size: 17.28px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 19.92px;
}

.contact-value {
  display: block;
  color: black;
  font-size: 17.28px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  line-height: 19.92px;
  margin-top: 4px;
}

.contact-desc {
  margin: 0;
  padding: 0;
  color: black;
  font-size: 17.28px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  line-height: 24.33px;
  margin-top: 6px;
}

.contact-link {
  color: black;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.contact-icon-btn {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-icon-btn:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.contact-icon-btn:active {
  transform: scale(0.95);
}

/* =========================================================
   CONTACT / ARCHIVE 전용 페이지 스타일 (독립 페이지 뷰)
   ========================================================= */
.contact-main-container,
.archive-main-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #f9f9f9;
  padding-top: 50px;
  overflow-x: auto;
}

/* ARCHIVE 풀스크린 뷰 (SPA 연동) */
.archive-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #f9f9f9;
  z-index: 100;
  display: none;
  opacity: 0;
  padding-top: 50px;
  transition: opacity 0.3s ease;
}

.archive-container.active {
  display: block;
  opacity: 1;
}

body.archive-active .main-container {
  display: none;
}

@media (max-width: 768px) {
  .about-me-wrapper {
    --about-page-edge: 20px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .brain-subnav-item,
  .brain-subnav-divider {
    font-size: 12px;
  }

  .c4d-viewport-widget {
    top: 50px;
    right: 20px;
    padding: 4px 6px;
  }
}


/* archive.html 전용: 페이지 진입 즉시 100% 상시 가시성 보장 */
.archive-main-container .archive-row,
.archive-main-container .archive-divider-line,
.archive-main-container .archive-main-line,
.archive-main-container .archive-th,
.archive-main-container .archive-th-icon,
.archive-main-container .archive-subnav {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

/* 이미지 프레임 하단과 다음 구분선 사이 간격: 11px */
.archive-main-container .archive-divider-line,
.archive-main-container .archive-row-bottom-line {
  transform: translateY(3.87px) !important;
}

#brain-three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}
