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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f6f2;
  color: #111;
  overflow-x: hidden;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 기본 페이지 레이아웃: 왼쪽 메인(약 85%), 오른쪽 사이드(약 15%) */
.page {
  display: flex;
  align-items: stretch;
}

/* 데스크탑 이상에서 2단 레이아웃으로 보여주기 위한 기본값 (미디어쿼리로 재정의 가능) */
.main-area {
  width: calc(100% - 15%);
  min-height: 100vh;
  padding: 56px 64px;
  position: relative;
  background: transparent;
}

.side-area {
  width: 15%;
  min-width: 180px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0b0b0b;
  color: #fff;
}

/* 사이드바 내부 링크 색상 고정 (브라우저 기본 방문색 보라 제거) */
.side-area a,
.side-area a:visited {
  color: inherit;
  text-decoration: none;
}

.side-area .menu-item .menu-title,
.side-area .menu-item .menu-subtitle,
.side-area .menu-number {
  color: rgba(255,255,255,0.92);
}

.social-links a,
.side-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.menu-item a:hover,
.archive-submenu .archive-submenu-link:hover {
  opacity: 0.85;
  transform: translateX(2px);
}


.contact-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
  color: #111;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-link:hover {
  transform: translateY(-3px);
}

.contact-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-block;
}

.contact-icon.ig-icon {
  background: radial-gradient(circle at 30% 25%, #fdd090 0%, #f47464 30%, #cb2d7f 60%, #4b52e5 95%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon.email-icon {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  border: 1px solid rgba(17,17,17,0.06);
}

.contact-icon.ig-icon::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  top: 8px;
  left: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.contact-icon.ig-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.contact-icon.ig-icon .flash,
.contact-icon.email-icon .flash {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.contact-icon.email-icon .envelope {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  height: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 40%, 0 65%);
  border-radius: 2px;
}

.contact-text {
  font-size: 12px;
  letter-spacing: 1.5px;
}

.small-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 5px;
}

/* 왼쪽 상단 로고 링크 색상 고정 (보라색 방문색 제거) */
.small-logo,
.small-logo:visited {
  color: #111;
  text-decoration: none;
}

.small-logo:hover,
.small-logo:focus-visible {
  opacity: 0.8;
  transform: translateY(-1px);
}

.top-nav {
  display: flex;
  gap: 42px;
  margin-right: 20px;
}

/* 상단 헤더 고정: 왼쪽 상단에 작은 로고 배치 */
.top-header {
  position: absolute;
  top: 28px;
  left: 64px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 모바일에서는 내부 여백에 맞춰 위치 조정 */
@media (max-width: 700px) {
  .top-header {
    position: relative;
    top: 0;
    left: 0;
    padding: 8px 0;
  }
}

.top-nav a {
  font-size: 12px;
  letter-spacing: 1px;
  transition: opacity 0.3s ease, transform 0.25s ease;
  padding: 2px 0;
  position: relative;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  transform: scaleX(1);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 0.45;
  transform: translateY(-1px);
}

.hero {
  position: absolute;
  top: 50%;
  left: 14%;
  z-index: 2;
  transform: translateY(-50%);
  transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  max-width: min(560px, 76vw);
  opacity: 1;
}

.hero.hero--section {
  top: 42%;
  transform: translateY(-50%) translateX(4px);
}

.hero h1 {
  font-size: clamp(38px, 3.9vw, 72px);
  font-weight: 500;
  letter-spacing: clamp(12px, 1.2vw, 20px);
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 0.35s ease;
}

.hero p {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: 1.8px;
  opacity: 0.9;
  line-height: 1.5;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.contact-card {
  margin-top: 24px;
  max-width: 320px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
  color: #111;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 25%, #fdd090 0%, #f47464 30%, #cb2d7f 60%, #4b52e5 95%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 26px rgba(0, 0, 0, 0.12);
}

.contact-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.contact-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.contact-icon .flash {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.contact-text {
  font-size: 12px;
  letter-spacing: 1.5px;
}

.hero.hero--section h1 {
  transform: translateY(-2px);
  letter-spacing: 22px;
}

.hero.hero--section p {
  transform: translateY(-2px);
  opacity: 1;
}

.main-area.artwork-visible .hero {
  top: 112px;
  left: clamp(50px, 7vw, 110px);
  transform: none;
}

.main-area.artwork-visible .hero h1 {
  font-size: clamp(34px, 3.2vw, 56px);
  letter-spacing: clamp(12px, 1.6vw, 20px);
}

.main-area.artwork-visible .hero p {
  margin-top: 10px;
}

.scroll {
  position: absolute;
  right: 50px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-align: right;
  z-index: 2;
}

.main-area.artwork-visible .scroll {
  display: none;
}

.scroll-arrow {
  font-size: 20px;
  line-height: 1;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  z-index: 1;
  padding-top: 160px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
}

.hero-media.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-artwork {
  display: block;
  width: min(820px, 100%);
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100% - 46px);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 26px 56px rgba(17, 17, 17, 0.08);
  background: #f7f6f2;
}

.painting-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  padding: 24px 0 0;
}

.painting-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 17, 17, 0.9);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.painting-nav:hover,
.painting-nav:focus-visible {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
  outline: none;
  background: rgba(255, 255, 255, 1);
}

.painting-nav--left {
  left: 16px;
}

.painting-nav--right {
  right: 16px;
}

.painting-left {
  position: relative;
  flex: 0 0 auto;
  width: min(840px, 100%);
  max-width: 840px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.painting-image-wrap {
  position: relative;
  width: 100%;
  transition: opacity 0.35s ease;
}

.painting-left.fade-out .painting-image-wrap {
  opacity: 0.35;
}

.painting-left img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.35s ease, filter 0.35s ease;
  filter: saturate(1.04) contrast(1.03);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.painting-left:hover img {
  transform: scale(1.01);
  filter: saturate(1.08) contrast(1.05);
}

.painting-caption {
  margin: 16px 5% 24px;
  width: 90%;
  max-width: 840px;
  text-align: left;
  font-size: 15px;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.8;
  letter-spacing: 0.25px;
}

.painting-right h2{
  font-size:48px;
  margin:0;
  line-height:1.05;
}

.hero-media-caption {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.45px;
  color: #555;
  max-width: 700px;
  line-height: 1.8;
  text-align: center;
}

.side-logo-wrap {
  display: flex;
  justify-content: center;
}

.side-logo {
  width: 115px;
  height: 55px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
}

.side-logo span {
  font-size: 14px;
  letter-spacing: 4px;
  transform: rotate(2deg);
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.menu-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: start;
}

.archive-submenu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.archive-submenu-link {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 0;
  text-align: left;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.archive-submenu-link:hover,
.archive-submenu-link:focus-visible {
  opacity: 0.8;
  transform: translateX(2px);
}

.menu-number {
  color: #969696;
  font-size: 13px;
  letter-spacing: 2px;
  padding-top: 2px;
}

.menu-title {
  display: block;
  font-size: 15px;
  letter-spacing: 4px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.menu-subtitle {
  font-size: 11px;
  color: #d4d4d4;
  line-height: 1.5;
  display: block;
}

.section-anchor {
  display: block;
  height: 0;
}

.menu-link {
  display: block;
}

.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
}

.archive-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  padding-left: 0;
}

.archive-item:hover .archive-submenu,
.archive-item:focus-within .archive-submenu {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.archive-submenu .archive-submenu-link {
  font-size: 11px;
  letter-spacing: 2px;
  color: #d4d4d4;
  text-transform: lowercase;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.25s ease;
}

.archive-submenu .archive-submenu-link:hover,
.archive-submenu .archive-submenu-link:focus-visible {
  color: #fff;
  opacity: 0.8;
  transform: translateX(2px);
}

.interaction-label {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 30;
  border: 1px solid rgba(255,255,255,0.18);
}

.interaction-label.show {
  opacity: 1;
  transform: translateY(0);
}

.archive-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 246, 242, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 40;
}

.archive-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.archive-overlay.show .archive-panel {
  transform: translateY(0);
  opacity: 1;
}

.archive-panel {
  width: min(760px, 100%);
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  color: #111;
  transform: translateY(8px);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.archive-panel h2 {
  font-size: 26px;
  letter-spacing: 5px;
  margin-bottom: 14px;
  text-transform: uppercase;
  line-height: 1.2;
}

.archive-panel p {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 1px;
  margin-bottom: 12px;
  max-width: 560px;
  margin-inline: auto;
}

.archive-close {
  margin-top: 24px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  background: transparent;
  color: #111;
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.archive-close:hover,
.archive-close:focus-visible {
  background-color: rgba(17, 17, 17, 0.06);
  transform: translateY(-1px);
}

.side-footer {
  font-size: 8px;
  color: #ddd;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 7px;
  letter-spacing: 0.5px;
}

.copyright {
  font-size: 7px;
  line-height: 1.5;
  color: #bdbdbd;
}

/* 흰색과 검은색 사이의 손그림 선 */
.divider-line {
  position: fixed;
  top: 0;
  right: calc(15% - 5px);
  width: 12px;
  height: 100vh;
  z-index: 20;
  pointer-events: auto;
  cursor: ns-resize;
}

.divider-line::before,
.divider-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: #111;
  pointer-events: none;
}

.divider-line::before {
  left: 3px;
  transform: rotate(0.15deg);
}

.divider-line::after {
  left: 8px;
  opacity: 0.45;
  transform: rotate(-0.1deg);
}

/* 태블릿 */
@media (max-width: 1100px) {
  .main-area {
    width: 82%;
  }

  .side-area {
    width: 18%;
    min-width: 180px;
  }

  .divider-line {
    right: calc(18% - 5px);
  }

  .top-nav {
    display: none;
  }

  .hero {
    left: 10%;
  }

  .hero h1 {
    letter-spacing: 18px;
  }
}

/* 모바일 */
@media (max-width: 700px) {
  .page {
    display: block;
  }

  .main-area {
    width: 100%;
    min-height: 75vh;
    padding: 28px 24px;
  }

  .side-area {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100vh;
    padding: 38px 28px;
  }

  .divider-line {
    display: none;
  }

  .hero {
    top: 48%;
    left: 24px;
    right: 24px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: 12px;
  }

  .hero p {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .main-area.artwork-visible {
    min-height: 640px;
  }

  .main-area.artwork-visible .hero {
    top: 92px;
    left: 24px;
    right: 24px;
  }

  .main-area.artwork-visible .hero h1 {
    font-size: 30px;
    letter-spacing: 8px;
  }

  .hero-media {
    top: 190px;
    right: auto;
    bottom: 32px;
    left: 24px;
    width: calc(100vw - 48px);
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .hero-artwork {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .scroll {
    left: 24px;
    bottom: 25px;
  }

  .side-menu {
    margin: 80px 0;
  }

  .side-logo {
    width: 150px;
    height: 70px;
  }

  .side-footer {
    font-size: 10px;
  }

  .social-links,
  .copyright {
    font-size: 9px;
  }
}
