/* === Contact Page: Minimal Design === */
#contactDetail {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f8f9fa !important;
}

#contactDetail .back-button {
  position: fixed !important;
  top: 2rem !important;
  left: 2rem !important;
  background: transparent !important;
  color: #1a1a1a !important;
  padding: 0.8rem 1.2rem !important;
  font-size: 0.8rem !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: none !important;
  border-radius: 0 !important;
  z-index: 1001 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
}

#contactDetail .back-button:hover {
  transform: scale(1.1) !important;
  border: 2px solid #222 !important;
  border-radius: 50% !important;
}

/* Minimal Contact Layout */
.contact-minimal {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding: 4rem 2rem !important;
  text-align: center !important;
}

.contact-info {
  margin-bottom: 4rem !important;
  max-width: 600px !important;
}

.contact-info p {
  font-family: var(--font-body) !important;
  font-size: var(--body-size) !important;
  line-height: var(--body-lh) !important;
  color: #444 !important;
  margin: 0 0 2rem 0 !important;
  font-weight: 400 !important;
}

.contact-info p:last-child {
  margin-bottom: 0 !important;
}

.email-section {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.email-icon {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  border: 2px solid #1a1a1a !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.email-icon:hover {
  transform: scale(1.1) !important;
  border-radius: 50% !important;
}

.email-icon svg {
  width: 32px !important;
  height: 32px !important;
  stroke: #1a1a1a !important;
  stroke-width: 2 !important;
}

/* Copy notification styles */
.copy-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.copy-notification.show {
  opacity: 1;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .contact-minimal {
    padding: 3rem 1.5rem !important;
  }

  .contact-info {
    margin-bottom: 3rem !important;
  }

  .email-icon {
    width: 70px !important;
    height: 70px !important;
  }

  .email-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 480px) {
  .contact-minimal {
    padding: 2rem 1rem !important;
  }

  .contact-info {
    margin-bottom: 2.5rem !important;
  }

  .contact-info p {
    font-size: var(--body-size) !important;
    line-height: var(--body-lh) !important;
  }

  .email-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .email-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
}

body {
  background: #fafafa;
  color: #222;
  font-family: "Inter", serif;
  margin: 0;
  padding: 0;
  /* iOS Safari 주소창 안정성을 위한 높이 설정 */
  height: 100vh; /* fallback */
  height: 100dvh; /* dynamic viewport height */
  height: 100svh; /* small viewport height */
  height: calc(var(--vh, 1vh) * 100); /* JS에서 설정한 CSS 변수 사용 */
  overflow-x: hidden;
  overflow-y: auto;
}

.home-icon {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 상세페이지가 열려있을 때 홈 아이콘 숨기기 */
.home-icon.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.home-icon:hover {
  transform: scale(1.1);
  border: 2px solid #222;
  border-radius: 50%;
}

.home-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.about-text {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* iOS Safari 주소창 안정성을 위한 높이 설정 */
  height: 100vh; /* fallback */
  height: 100dvh; /* dynamic viewport height */
  height: 100svh; /* small viewport height */
  height: calc(var(--vh, 1vh) * 100); /* JS에서 설정한 CSS 변수 사용 */
  gap: 2rem;
  padding: 0 2rem;
  transition: transform 1.5s ease-out;
  box-sizing: border-box;
}

.about-text.move-up {
  transform: translateY(-25vh);
  transform: translateY(calc(var(--vh, 1vh) * -25)); /* JS에서 설정한 CSS 변수 사용 */
}

.works-section {
  position: absolute;
  /* iOS Safari 주소창 안정성을 위한 높이 설정 */
  top: 50vh; /* fallback */
  top: 50dvh; /* dynamic viewport height */
  top: 50svh; /* small viewport height */
  top: calc(var(--vh, 1vh) * 50); /* JS에서 설정한 CSS 변수 사용 */
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 2s ease-out;
  text-align: center;
  padding-bottom: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* 컴팩트 레이아웃일 때 works-section 조정 */
.works-section.compact-active {
  overflow: visible !important;
  height: auto !important;
  padding-bottom: 2rem !important;
}

/* 빨리감기 컨트롤 스타일 */
.conveyor-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 1000;
}

.control-btn {
  width: auto;
  height: auto;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  padding: 8px;
  opacity: 0.7;
}

.control-btn:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  opacity: 1;
}

.control-btn svg {
  transition: transform 0.2s ease;
}

.fast-backward:hover svg {
  transform: translateX(-3px);
}

.fast-forward:hover svg {
  transform: translateX(3px);
}

.works-section.fade-in {
  opacity: 1;
}

.works-grid {
  display: flex;
  gap: 1rem;
  max-width: none;
  margin: 0;
  /* iOS Safari 안정성을 위한 padding buffer */
  padding: 0 4rem;
  animation: scroll 40s linear infinite;
  width: max-content;
  overflow: hidden;
  /* 하드웨어 가속 및 성능 최적화 */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
  animation-fill-mode: none;
  /* 드래그 기능을 위한 추가 스타일 */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: all 0.5s ease;
}

/* 컴팩트 레이아웃으로 변경된 상태 */
.works-grid.compact-layout {
  display: flex !important;
  gap: 1.2rem !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  animation: none !important;
  overflow: visible !important;
  cursor: default !important;
  padding: 0 2rem !important;
  transform: none !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  max-height: 80vh !important;
}

/* 컴팩트 레이아웃에서 작업물 크기 조정 */
.works-grid.compact-layout .work-item {
  min-width: 140px !important;
  max-width: 140px !important;
  flex-basis: 140px !important;
  aspect-ratio: 4/3 !important;
  height: auto !important;
}

/* 컴팩트 레이아웃에서 중복된 작업물 숨기기 (원본만 표시) */
.works-grid.compact-layout .work-item:nth-child(n + 14) {
  display: none !important;
}

.works-grid.compact-layout .work-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.works-grid.compact-layout .work-item .title-overlay {
  font-size: 0.7rem !important;
  padding: 0.4rem 0.3rem !important;
  line-height: 1.1 !important;
}

.works-grid.dragging {
  cursor: grabbing;
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

.works-grid.dragging .work-item {
  pointer-events: none;
}

/* 드래그 관련 transition 제거 - 더 이상 필요하지 않음 */

/* prefers-reduced-motion 환경에서 애니메이션 비활성화 */
@media (prefers-reduced-motion: reduce) {
  .works-grid {
    animation: none;
  }
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* iOS Safari 안정성을 위한 비율 및 크기 설정 */
  aspect-ratio: 3/2;
  min-width: 200px;
  max-width: clamp(200px, 25vw, 500px);
  flex-basis: clamp(200px, 25vw, 500px);
  flex-shrink: 0;
  cursor: pointer !important;
  pointer-events: auto !important; /* 클릭 가능하도록 명시적 설정 */
  /* iOS Safari 호환성 개선 */
  will-change: transform;
}

/* 호버 효과 추가 */
.work-item:hover {
  z-index: 10;
}

.work-item:hover img {
  transform: scale(1.1);
}

/* 드래그 관련 스타일 제거 - 더 이상 필요하지 않음 */

@keyframes scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
  /* iOS Safari 안정성을 위해 max-width/max-height 제거하고 카드 크기에 맞춤 */
  /* iOS Safari 이미지 렌더링 최적화 */
  position: relative;
  z-index: 0;
  pointer-events: auto !important; /* 이미지 클릭 가능하도록 설정 */
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: auto;
}

.work-item .title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem 0.8rem 0.8rem 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  pointer-events: auto !important; /* 오버레이 클릭 가능하도록 설정 */
}

/* 슬라이드 전환 애니메이션 */
.page-container {
  position: relative;
  width: 100%;
  /* iOS Safari 주소창 안정성을 위한 높이 설정 */
  height: 100vh; /* fallback */
  height: 100dvh; /* dynamic viewport height */
  height: 100svh; /* small viewport height */
  height: calc(var(--vh, 1vh) * 100); /* JS에서 설정한 CSS 변수 사용 */
  overflow-x: hidden;
  overflow-y: auto;
}

.main-page,
.detail-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* iOS Safari 주소창 안정성을 위한 높이 설정 */
  height: 100vh; /* fallback */
  height: 100dvh; /* dynamic viewport height */
  height: 100svh; /* small viewport height */
  height: calc(var(--vh, 1vh) * 100); /* JS에서 설정한 CSS 변수 사용 */
}

/* 그리드 레이아웃일 때 main-page 높이 조정 */
.main-page.grid-active {
  height: auto !important;
  min-height: 100vh !important;
  position: relative !important;
  overflow: visible !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

/* 그리드 레이아웃일 때 전체 페이지 스크롤 활성화 */
body.grid-active {
  overflow-y: auto !important;
  height: auto !important;
}

.main-page {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: transform;
  transform: translateX(0);
}

.main-page.slide-out {
  transform: translateX(-100%);
}

/* ===== DETAIL PAGE STYLES - MAGAZINE LAYOUT ===== */
.detail-page {
  position: relative;
  width: 100%;
  background: #f8f9fa;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 1000px;
}

.detail-page.slide-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.detail-page::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Back Button - Minimal Navigation */
.back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background: transparent;
  color: #1a1a1a;
  padding: 0.8rem 1.2rem;
  font-size: 0.8rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 0;
  z-index: 1001;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.back-button:hover {
  transform: scale(1.1);
  border: 2px solid #222;
  border-radius: 50%;
}

/* Detail Content Container - Magazine Grid */
.detail-content {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Hero Section - Full Width Title */
.detail-title {
  font-family: var(--font-headline) !important;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin: 0;
  padding: 6rem 4rem 4rem 4rem;
  text-align: center;
  color: #1a1a1a;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  line-height: var(--headline-lh);
  letter-spacing: var(--headline-track);
  text-transform: uppercase;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -5%);
  }
  20% {
    transform: translate(-10%, 5%);
  }
  30% {
    transform: translate(5%, -10%);
  }
  40% {
    transform: translate(-5%, 15%);
  }
  50% {
    transform: translate(-10%, 5%);
  }
  60% {
    transform: translate(15%, 0%);
  }
  70% {
    transform: translate(0%, 10%);
  }
  80% {
    transform: translate(3%, 15%);
  }
  90% {
    transform: translate(-10%, 10%);
  }
}

/* Main Content Section - Magazine Layout */
.description {
  margin: 0;
  padding: 4rem 4rem;
  background: #fff;
  color: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.description p {
  font-family: var(--font-body) !important;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  margin: 0 0 2rem 0;
  color: #444;
  font-weight: 400;
  text-align: justify;
  position: relative;
  z-index: 2;
  max-width: 800px;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: 0.1em;
}

.description p:last-child {
  margin-bottom: 0;
}

/* Video Section - Magazine Layout */
.video-section {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-section h3 {
  font-family: var(--font-headline) !important;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 2rem 0;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
  position: relative;
}

.video-section h3::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: #1a1a1a;
}

.video-section h4 {
  font-family: var(--font-body) !important;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.2rem 0;
  color: #444;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* 이미지가 포함된 video-container는 4:3 비율로 조정 */
.video-container:has(img) {
  aspect-ratio: 4 / 3;
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Additional Videos - Magazine Section */
.additional-videos {
  margin: 0;
  padding: 4rem 4rem;
  background: #f8f9fa;
  color: #1a1a1a;
}

.additional-videos h3 {
  font-family: var(--font-headline) !important;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 3rem 0;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
  position: relative;
}

.additional-videos h3::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: #1a1a1a;
}

/* Additional videos 내부의 video-section 스타일 */
.additional-videos .video-section {
  margin-bottom: 3rem;
  padding: 0;
  background: transparent;
  color: #1a1a1a;
  position: relative;
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.additional-videos .video-section h4 {
  font-family: var(--font-headline) !important;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
}

.additional-videos .video-section .video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

/* ===== IMAGE SECTION STYLES ===== */
.image-section {
  margin: 0;
  padding: 4rem 4rem;
  background: #f8f9fa;
  color: #1a1a1a;
}

.image-section h3 {
  font-family: var(--font-headline) !important;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 3rem 0;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
  position: relative;
}

.image-section h3::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: #1a1a1a;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.image-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.additional-videos .video-section .video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.additional-videos .video-section .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.additional-videos .video-section .video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Credits Section - Magazine End Page */
.credits {
  margin: 0;
  padding: 4rem 4rem;
  background: #fff;
  color: #000;
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.credits h3 {
  font-family: var(--font-headline) !important;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 3rem 0;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
  position: relative;
  z-index: 2;
}

.credits h3::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: #1a1a1a;
}

.credits p {
  font-family: var(--font-body) !important;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  margin: 0 0 1.2rem 0;
  color: #444;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.credits p:hover {
  color: #1a1a1a;
  transform: translateY(-1px);
}

.credits strong {
  color: #000;
  font-weight: 600;
  letter-spacing: 1px;
}

/* PDF Download Links - Minimal Style */
.video-container a {
  display: block;
  padding: 2rem;
  background: #000;
  border: 1px solid #000;
  border-radius: 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-body) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: var(--meta-track);
  position: relative;
  overflow: hidden;
}

.video-container a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: left 0.4s ease;
  z-index: -1;
}

.video-container a:hover::before {
  left: 0;
}

.video-container a:hover {
  color: #000;
  border-color: #000;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .description {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .additional-videos {
    padding: 4rem 2rem;
  }
}

@media (max-width: 768px) {
  .detail-title {
    padding: 6rem 2rem 4rem 2rem;
    font-size: clamp(3rem, 10vw, 6rem);
    text-align: center;
  }

  .description,
  .additional-videos,
  .credits {
    padding: 4rem 2rem;
  }

  .video-section {
    max-width: 800px;
  }

  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .video-section h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .credits h3 {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .additional-videos h3 {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }

  .description p {
    font-size: 1.2rem;
  }

  /* 모바일에서 View All Works 버튼 크기 조정 */
  .view-all-controls {
    padding: 0 1rem;
    margin-bottom: var(--space-4);
  }

  .view-all-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  /* 모바일에서 컴팩트 레이아웃 조정 */
  .works-grid.compact-layout {
    gap: 0.8rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .works-grid.compact-layout .work-item {
    min-width: 110px;
    max-width: 110px;
    flex-basis: 110px;
  }

  .works-grid.compact-layout .work-item .title-overlay {
    font-size: 0.6rem;
    padding: 0.3rem 0.2rem;
  }

  /* 모바일에서도 중복된 작업물 숨기기 */
  .works-grid.compact-layout .work-item:nth-child(n + 14) {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .about-text {
    padding: 0 0.3rem;
    gap: 0.3rem;
    /* 모바일에서 타이틀이 잘리지 않도록 z-index 추가 */
    position: relative;
    z-index: 1;
    /* iOS Safari에서 주소창 변경 시 안정성을 위한 추가 설정 */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: calc(var(--vh, 1vh) * 100);
  }

  /* Contact page mobile layout */
  #contactDetail .detail-content {
    height: calc(100vh - 100px);
  }

  #contactDetail .detail-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  #contactDetail .description div {
    max-width: 100%;
    padding: 0 1rem;
  }

  .contact-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .contact-email {
    margin: 1rem 0;
  }

  .email-icon {
    width: 64px;
    height: 64px;
  }

  .copy-notification {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
    max-width: 180px;
  }
  .about-text h1 {
    font-size: 1.6rem;
    margin: 0;
  }
  .about-text .lead {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .active-since {
    font-size: 0.6rem;
  }

  /* 작은 모바일에서 works-section 위치 조정 */
  .works-section {
    position: absolute;
    top: 40vh; /* fallback */
    top: 40dvh; /* dynamic viewport height */
    top: 40svh; /* small viewport height */
    top: calc(var(--vh, 1vh) * 40); /* JS에서 설정한 CSS 변수 사용 */
    overflow: visible;
    z-index: 10;
    /* iOS Safari 안정성을 위한 높이 설정 제거하고 모바일 전용으로 변경 */
    /* iOS Safari에서 주소창 변경 시 안정성을 위한 추가 설정 */
    min-height: auto;
    height: auto;
  }

  /* 작은 모바일에서 컴팩트 레이아웃 조정 */
  .works-section.compact-active {
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 2rem !important;
  }

  .works-grid {
    gap: 0.3rem;
    padding: 0 0.3rem;
    /* 모바일에서 애니메이션 활성화 */
    animation: scroll 90s linear infinite;
    overflow: visible;
    z-index: 15;
  }

  /* 작은 모바일에서 컴팩트 레이아웃 그리드 스타일 */
  .works-grid.compact-layout {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    padding: 0 0.6rem !important;
    animation: none !important;
    overflow: visible !important;
    transform: none !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .work-item {
    /* 작은 모바일에서 카드 크기 최적화 */
    min-width: 160px;
    aspect-ratio: 4/3;
    max-width: clamp(160px, 42vw, 280px);
    flex-basis: clamp(160px, 42vw, 280px);
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 40;
    position: relative;
    border-radius: 16px;
  }

  /* 작은 모바일에서 컴팩트 레이아웃 작업물 아이템 스타일 */
  .works-grid.compact-layout .work-item {
    min-width: 120px !important;
    max-width: 120px !important;
    flex-basis: 120px !important;
    aspect-ratio: 4/3 !important;
    height: auto !important;
  }

  .work-item img {
    /* 고정 height 제거하고 aspect-ratio로 높이 자동 계산 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* iOS Safari에서 이미지 렌더링 최적화 */
    position: relative;
    z-index: 0;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: auto;
  }

  /* 작은 모바일에서 타이틀 오버레이 최적화 */
  .work-item .title-overlay {
    font-size: 0.7rem;
    padding: 0.7rem 0.5rem 0.5rem 0.5rem;
    line-height: 1.2;
    z-index: 9999;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.8);
    color: white;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    pointer-events: none;
    /* 모바일에서 타이틀이 잘리지 않도록 추가 설정 */
    display: block;
    visibility: visible;
    opacity: 1;
  }

  /* 작은 모바일에서 컴팩트 레이아웃 타이틀 오버레이 스타일 */
  .works-grid.compact-layout .work-item .title-overlay {
    font-size: 0.6rem !important;
    padding: 0.4rem 0.3rem 0.3rem 0.3rem !important;
    line-height: 1.1 !important;
  }

  /* 작은 모바일에서 컴팩트 레이아웃 중복 작업물 숨기기 */
  .works-grid.compact-layout .work-item:nth-child(n + 14) {
    display: none !important;
  }

  /* 작은 모바일에서 빨리감기 버튼 최적화 */
  .conveyor-controls {
    padding: 0 0.5rem;
  }

  .control-btn {
    padding: 5px;
  }

  .home-icon {
    top: 0.8rem;
    left: 0.8rem;
    width: 35px;
    height: 35px;
  }
  .home-icon svg {
    width: 18px;
    height: 18px;
  }

  /* 작은 화면 상세 페이지 개선 */
  .detail-page:not(#contactDetail) {
    padding: 0;
  }

  .detail-content {
    padding-top: 0;
  }

  .detail-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    padding: 3rem 1.5rem 2rem 1.5rem;
    line-height: 0.9;
  }

  /* 작은 모바일에서 디스크립션 최적화 */
  .description {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .description p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
  }

  /* 작은 모바일에서 비디오 섹션 최적화 */
  .video-section {
    margin-top: 1.5rem;
  }

  .video-section h3 {
    font-size: 1.3rem;
    margin: 0 0 1.2rem 0;
  }

  /* 작은 모바일에서 추가 비디오 섹션 최적화 */
  .additional-videos {
    padding: 2rem 1.5rem;
  }

  /* 작은 모바일에서 크레딧 섹션 최적화 */
  .credits {
    padding: 2rem 1.5rem;
  }

  .credits h3 {
    font-size: 1.6rem;
    margin: 0 0 1.5rem 0;
  }

  .credits p {
    font-size: 0.9rem;
    margin: 0 0 0.8rem 0;
  }

  .video-container a {
    padding: 1.5rem;
    font-size: 0.8rem;
  }

  /* 작은 모바일에서 이미지 섹션 최적화 */
  .image-section {
    padding: 2rem 1.5rem;
  }

  .image-section h3 {
    font-size: 1.6rem;
    margin: 0 0 1.5rem 0;
  }

  .image-container {
    margin: 0 auto 2.5rem auto;
  }
}

/* 기본 스타일 추가 */
.name-section {
  text-align: right;
  border-right: 2px solid #222;
  padding-right: 2rem;
}

.info-section {
  text-align: left;
  padding-left: 2rem;
}

.about-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
}

.about-text .lead {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding-top: 3rem;
}

.active-since {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  letter-spacing: 0.05em;
  text-align: right;
}

/* 타이핑 애니메이션 */
.typing-animation {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 2s steps(12, end) 0.5s forwards;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
}

/* 이름에 지속적인 애니메이션 효과 제거 */
.typing-animation.animated {
  animation: typing 2s steps(12, end) 0.5s forwards;
}

.typing-animation:hover {
  color: #333;
  transform: none;
  text-shadow: none;
}

.typing-animation:active {
  transform: none;
  color: #333;
}

/* 클릭 가능함을 나타내는 밑줄 효과 제거 */
.typing-animation::after {
  content: none;
}

.typing-animation-lead {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 3s steps(25, end) 2.5s forwards;
}

.typing-animation-active {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 1.5s steps(15, end) 5.5s forwards;
}

@keyframes typing {
  to {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showText {
  to {
    white-space: normal;
    word-wrap: break-word;
  }
}

/* 모바일에서 타이핑 애니메이션 */
@media (max-width: 768px) {
  .typing-animation-lead {
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(25, end) 2.5s forwards, showText 0.1s 5.5s forwards;
  }
}

@media (max-width: 768px) {
  .about-text {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
    /* iOS Safari 안정성을 위한 높이 설정 */
    height: 100vh; /* fallback */
    height: 100dvh; /* dynamic viewport height */
    height: 100svh; /* small viewport height */
    height: calc(var(--vh, 1vh) * 100); /* JS에서 설정한 CSS 변수 사용 */
    /* 모바일에서 타이틀이 잘리지 않도록 z-index 추가 */
    position: relative;
    z-index: 1;
    /* iOS Safari에서 주소창 변경 시 안정성을 위한 추가 설정 */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: calc(var(--vh, 1vh) * 100);
  }
  .name-section {
    text-align: center;
    border-right: none;
    border-bottom: 2px solid #222;
    padding: 0 0 0.5rem 0;
  }
  .info-section {
    text-align: center;
    padding: 0.5rem 0 0 0;
  }
  .about-text h1 {
    font-size: 2rem;
    margin: 0;
    cursor: pointer;
  }

  /* 모바일에서 이름 호버 효과 조정 */
  .typing-animation:hover {
    transform: scale(1.01);
  }

  .typing-animation::after {
    bottom: -4px;
    height: 1px;
  }

  /* 모바일에서 애니메이션 효과 조정 */
  .typing-animation.animated {
    animation: typing 2s steps(12, end) 0.5s forwards, nameGlow 5s steps(1) infinite 2.5s;
  }
  .about-text .lead {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .active-since {
    text-align: center;
    margin: 0;
    font-size: 0.7rem;
  }

  /* 모바일에서 works-section 위치 조정 - 타이틀과 겹치지 않도록 */
  .works-section {
    position: absolute;
    top: 45vh; /* fallback */
    top: 45dvh; /* dynamic viewport height */
    top: 45svh; /* small viewport height */
    top: calc(var(--vh, 1vh) * 45); /* JS에서 설정한 CSS 변수 사용 */
    overflow: visible;
    z-index: 10;
    /* iOS Safari 안정성을 위한 높이 설정 제거하고 모바일 전용으로 변경 */
    padding-bottom: 0.5rem;
    /* iOS Safari에서 주소창 변경 시 안정성을 위한 추가 설정 */
    min-height: auto;
    height: auto;
  }

  .works-grid {
    gap: 0.5rem;
    padding: 0 0.5rem;
    /* iOS Safari 애니메이션 안정성 개선 */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    /* 모바일에서 애니메이션 활성화 */
    animation: scroll 90s linear infinite;
    overflow: visible;
    z-index: 15;
  }

  .work-item {
    /* 모바일에서 카드 크기 최적화 */
    min-width: 180px;
    aspect-ratio: 4/3;
    max-width: clamp(180px, 45vw, 320px);
    flex-basis: clamp(180px, 45vw, 320px);
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 40;
    position: relative;
  }

  .work-item img {
    /* 고정 height 제거하고 aspect-ratio로 높이 자동 계산 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* iOS Safari에서 이미지 렌더링 최적화 */
    position: relative;
    z-index: 0;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: auto;
  }

  /* 모바일에서 타이틀 오버레이가 보이도록 z-index와 위치 조정 */
  .work-item .title-overlay {
    font-size: 0.8rem;
    padding: 0.8rem 0.6rem 0.6rem 0.6rem;
    line-height: 1.2;
    z-index: 9999;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.8);
    color: white;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    pointer-events: none;
    /* 모바일에서 타이틀이 잘리지 않도록 추가 설정 */
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .home-icon {
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }
  .home-icon svg {
    width: 20px;
    height: 20px;
  }

  /* 모바일 상세 페이지 개선 - 모바일 전용 레이아웃 */
  .detail-page:not(#contactDetail) {
    padding: 0;
    transform: translateX(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detail-page:not(#contactDetail).slide-in {
    transform: translateX(0) !important;
  }

  .detail-content {
    padding-top: 0;
  }

  .detail-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    padding: 4rem 2rem 3rem 2rem;
    line-height: 0.9;
    margin: 0;
  }

  /* 모바일에서 디스크립션을 세로 스택으로 변경 */
  .description {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
    min-height: auto;
  }

  .description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
  }

  /* 모바일에서 비디오 섹션을 디스크립션 아래로 이동 */
  .video-section {
    grid-column: 1;
    grid-row: auto;
    margin-top: 2rem;
  }

  .video-section h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
  }

  .video-container {
    margin-bottom: 1.5rem;
  }

  /* 모바일에서 추가 비디오 섹션 간소화 */
  .additional-videos {
    padding: 3rem 2rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 모바일에서 크레딧 섹션 간소화 */
  .credits {
    padding: 3rem 2rem;
  }

  .credits h3 {
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
  }

  .credits p {
    font-size: 1rem;
    margin: 0 0 1rem 0;
  }

  /* 모바일에서 이미지 섹션 최적화 */
  .image-section {
    padding: 3rem 2rem;
  }

  .image-section h3 {
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
  }

  .image-container {
    margin: 0 auto 3rem auto;
  }

  /* 모바일에서 백 버튼 위치 조정 */
  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
  }
}

@media (max-width: 360px) {
  .about-text {
    padding: 0 0.2rem;
    gap: 0.2rem;
    /* 모바일에서 타이틀이 잘리지 않도록 z-index 추가 */
    position: relative;
    z-index: 1;
    /* iOS Safari에서 주소창 변경 시 안정성을 위한 추가 설정 */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: calc(var(--vh, 1vh) * 100);
  }
  .about-text h1 {
    font-size: 1.4rem;
  }
  .about-text .lead {
    font-size: 0.6rem;
    line-height: 1.1;
  }
  .active-since {
    font-size: 0.5rem;
  }

  /* 매우 작은 모바일에서 works-section 위치 조정 */
  .works-section {
    position: absolute;
    top: 35vh; /* fallback */
    top: 35dvh; /* dynamic viewport height */
    top: 35svh; /* small viewport height */
    top: calc(var(--vh, 1vh) * 35); /* JS에서 설정한 CSS 변수 사용 */
    overflow: visible;
    z-index: 10;
    /* iOS Safari 안정성을 위한 높이 설정 제거하고 모바일 전용으로 변경 */
    /* iOS Safari에서 주소창 변경 시 안정성을 위한 추가 설정 */
    min-height: auto;
    height: auto;
  }

  .works-grid {
    gap: 0.2rem;
    padding: 0 0.2rem;
    /* 모바일에서 애니메이션 활성화 */
    animation: scroll 90s linear infinite;
    overflow: visible;
    z-index: 15;
  }

  .work-item {
    /* 매우 작은 모바일에서 카드 크기 최적화 */
    min-width: 150px;
    aspect-ratio: 4/3;
    max-width: clamp(150px, 40vw, 240px);
    flex-basis: clamp(150px, 40vw, 240px);
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 40;
    position: relative;
  }

  .work-item img {
    /* 고정 height 제거하고 aspect-ratio로 높이 자동 계산 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* iOS Safari에서 이미지 렌더링 최적화 */
    position: relative;
    z-index: 0;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: auto;
  }

  .work-item .title-overlay {
    font-size: 0.6rem;
    padding: 0.6rem 0.4rem 0.4rem 0.4rem;
    line-height: 1.2;
    z-index: 9999;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.8);
    color: white;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    pointer-events: none;
    /* 모바일에서 타이틀이 잘리지 않도록 추가 설정 */
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .home-icon {
    top: 0.6rem;
    left: 0.6rem;
    width: 30px;
    height: 30px;
  }
  .home-icon svg {
    width: 16px;
    height: 16px;
  }

  .back-button {
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

/* About Me Content Styles - CV Design */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  margin: 0 0 1.2rem 0;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 프로필 섹션 */
.profile-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: transparent;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-roles {
  font-size: 1rem;
  color: #555;
  margin: 0;
  font-weight: 500;
}

/* 에듀케이션 섹션 */
.education-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: transparent;
}

.education-degree {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* 타임라인 섹션 */
.timeline-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.timeline-column {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: transparent;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.timeline-item {
  position: relative;
  padding-left: 0;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-period {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Inter", sans-serif;
}

.timeline-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* About Me Gallery Styles */
.gallery-section {
  margin: 0;
  padding: 6rem 4rem;
  background: #000;
  color: #fff;
}

.gallery-section h3 {
  font-size: 3rem;
  font-weight: 100;
  font-family: "Playfair Display", serif;
  margin: 0 0 4rem 0;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.gallery-item {
  text-align: center;
}

.gallery-item h4 {
  font-size: 1.5rem;
  font-weight: 300;
  font-family: "Playfair Display", serif;
  margin: 0 0 1.5rem 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive About Me - CV Design */
@media (max-width: 768px) {
  .about-content {
    padding: 2rem 1rem;
    margin: 0 1rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
  }

  .profile-section,
  .education-section {
    padding: 1.2rem;
    margin-bottom: 2rem;
  }

  .timeline-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-column {
    margin-bottom: 1rem;
    padding: 1.2rem;
  }

  .timeline-item {
    padding-left: 0;
  }

  .timeline-item:hover {
    transform: translateX(5px);
  }

  .timeline-period {
    font-size: 0.85rem;
  }

  .timeline-content {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .about-content {
    padding: 1.5rem 0.8rem;
    margin: 0 0.5rem;
  }

  .section-title {
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
  }

  .profile-section,
  .education-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .profile-roles {
    font-size: 0.9rem;
  }

  .timeline-section {
    gap: 1.5rem;
  }

  .timeline-column {
    padding: 1rem;
  }

  .timeline-item {
    padding-left: 1.2rem;
  }

  .timeline-item:hover {
    transform: translateX(5px);
  }

  .timeline-period {
    font-size: 0.8rem;
  }

  .timeline-content {
    font-size: 0.85rem;
  }

  .gallery-section {
    padding: 3rem 1rem;
  }

  .gallery-section h3 {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-item h4 {
    font-size: 1rem;
  }
}

/* Body Tunes 전용 그리드 스타일 */
.body-tunes-grid {
  margin: 0;
  padding: 6rem 4rem;
  background: #000;
  color: #fff;
}

.body-tunes-grid h3 {
  font-size: 3rem;
  font-weight: 100;
  font-family: "Playfair Display", serif;
  margin: 0 0 4rem 0;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
  position: relative;
}

.body-tunes-grid h3::before {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.video-item {
  background: transparent;
  color: #fff;
  position: relative;
  display: block;
  width: 100%;
}

.video-item h4 {
  font-size: 1.4rem;
  font-weight: 300;
  font-family: "Playfair Display", serif;
  margin: 0 0 1.5rem 0;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.video-item .video-container {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.4s ease;
  background: #000;
  border: 1px solid #333;
  margin-bottom: 1rem;
}

.video-item .video-container:hover {
  transform: scale(1.01);
  border-color: #fff;
}

.video-item .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Additional Videos 반응형 디자인 */
@media (max-width: 768px) {
  .additional-videos {
    padding: 4rem 2rem;
  }

  .additional-videos h3 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 3rem;
  }

  .additional-videos .video-section {
    margin-bottom: 3rem;
  }

  .additional-videos .video-section h4 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  /* Body Tunes 그리드 반응형 */
  .body-tunes-grid {
    padding: 4rem 2rem;
  }

  .body-tunes-grid h3 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 3rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .video-item h4 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .video-item .video-container iframe {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .additional-videos {
    padding: 3rem 1rem;
  }

  .additional-videos h3 {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
  }

  .additional-videos .video-section {
    margin-bottom: 2rem;
  }

  .additional-videos .video-section h4 {
    font-size: 1rem;
  }

  /* Body Tunes 그리드 작은 화면 반응형 */
  .body-tunes-grid {
    padding: 3rem 1rem;
  }

  .body-tunes-grid h3 {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-item h4 {
    font-size: 1rem;
  }

  .video-item .video-container iframe {
    height: 150px;
  }
}

/* ===== Silver / Light Metal Theme for Choreographer Page ===== */

/* 팔레트(실버 톤) */
:root,
.theme-silver {
  --bg-light: #f5f6f8;
  --bg-dark: #0b0d10;
  --ink: #1b1e24;
  --ink-soft: #3a404a;
  --accent: #5ba8ff;
  --accent-hover: #4a8fe6;

  /* 메탈 텍스처/광택 */
  --metal-angle: 8deg;
  --metal-band-alpha: 0.035;
  --metal-band-width: 1px;
  --metal-band-spacing: 4px;
  --noise-opacity: 0.015;
  --sheen-opacity: 0.12;

  /* 그림자/블러 */
  --elev-1: 0 8px 24px rgba(0, 0, 0, 0.12);
  --elev-2: 0 18px 50px rgba(0, 0, 0, 0.18);

  /* 라운드/간격 */
  --radius-8: 8px;
  --radius-12: 12px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* 트랜지션 */
  --tr-fast: 160ms ease;
  --tr-norm: 240ms ease;
  --tr-slow: 450ms ease;
}

/* ===== Luxury Typography (High-Fashion) ===== */
:root {
  /* 폰트 스택: 시스템에 Didot 있으면 우선 사용, 없으면 Bodoni Moda 로드, 그 다음 Playfair */
  --font-headline: Didot, "Bodoni Moda", "Playfair Display", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  /* 헤드라인 트래킹/라인높이 */
  --headline-track: 0.06em;
  --headline-lh: 0.92;

  /* 바디 타이포 사이즈 스케일(필요 시 조절) */
  --body-size: 1rem;
  --body-lh: 1.65;

  /* 보조 캡션/메타 */
  --meta-size: 0.85rem;
  --meta-track: 0.18em;
  --meta-color: #6b7280;
}

/* 기본 바디 폰트 */
html,
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 럭셔리 헤드라인 유틸 */
.lux-headline {
  font-family: var(--font-headline);
  font-weight: 800;
  letter-spacing: var(--headline-track);
  line-height: var(--headline-lh);
  text-transform: uppercase;
}

/* 메타/섹션 레이블 유틸 */
.meta-label {
  font-family: var(--font-body);
  font-size: var(--meta-size);
  letter-spacing: var(--meta-track);
  text-transform: uppercase;
  color: var(--meta-color);
  font-weight: 700;
}

/* 페이지 배경: 깔끔한 아이보리 */
.page-container {
  background: #f8f9fa;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* 노이즈 효과 제거 - 깔끔한 배경 유지 */

/* 헤더 영역(이름/리드 카피) */
.about-text .name-section h1,
.about-text .lead,
.about-text .active-since {
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
}

/* 홈 아이콘 버튼을 완전히 투명하게 */
.home-icon {
  position: fixed;
  top: var(--space-8);
  left: var(--space-8);
  z-index: 2000;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--space-3);
  transition: transform var(--tr-norm);
}
.home-icon:hover {
  transform: translateY(-2px);
}
.home-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--ink);
}

/* View All Works 버튼 */
.view-all-controls {
  position: sticky;
  top: var(--space-4);
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-8);
  margin-bottom: var(--space-6);
}

.view-all-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.8rem 1.5rem;
  color: var(--ink);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-all-btn:hover {
  transform: scale(1.1);
  border: 2px solid #222;
  border-radius: 50%;
}

.view-all-btn svg {
  transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
  transform: scale(1.1);
}
.control-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--elev-2);
  color: var(--accent);
}

/* 작품 카드 타이틀 오버레이: 밝은 배경에서도 선명하게 */
.title-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.8rem;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* 상세 페이지 컨테이너를 깔끔한 배경으로 */
.detail-page {
  background: #f8f9fa;
  color: var(--ink);
}
.detail-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.detail-title {
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
}

/* 뒤로가기 버튼 */
.back-button {
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: 0;
  padding: 0.5rem 0.85rem;
  transition: all 0.3s ease;
}
.back-button:hover {
  transform: scale(1.1);
  border: 2px solid #222;
  border-radius: 50%;
}

/* 유튜브 비디오 프레임 주변 */
.video-container {
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 갤러리 그리드 카드 */
.gallery-item .image-container {
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 텍스트 컬러 톤 다운 */
.description,
.credits,
.video-section h3,
.additional-videos h3,
.additional-videos h4 {
  color: var(--ink-soft);
}

/* 접근성: 포커스 링 */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .conveyor-controls {
    padding: 0 var(--space-4);
  }
  .home-icon {
    top: var(--space-4);
    left: var(--space-4);
  }
}

/* 모션 축소 사용자 */
@media (prefers-reduced-motion: reduce) {
  .control-btn,
  .home-icon {
    transition: none !important;
  }
}

/* ===== HIGH-END FASHION MAGAZINE STYLE FOR ABOUT ME PAGE ===== */

/* About Me Content Styles - High-End Fashion Magazine Design */
.about-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: #1a1a1a;
  position: relative;
}

/* Profile Section - Editorial Header Style */
.profile-section {
  margin: 0;
  padding: 6rem 4rem 4rem 4rem;
  background: transparent;
  text-align: center;
  position: relative;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.profile-main {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  margin: 0;
  color: #444 !important;
  letter-spacing: 0.005em;
  text-transform: none;
  line-height: var(--body-lh);
}

.profile-roles {
  font-family: var(--font-body) !important;
  font-size: var(--body-size);
  font-weight: 400;
  margin: 0;
  color: #666;
  letter-spacing: 0.005em;
  line-height: var(--body-lh);
}

/* Education Section - Minimalist Style */
.education-section {
  margin: 0;
  padding: 4rem 4rem;
  background: transparent;
  text-align: center;
}

.education-degree {
  font-family: var(--font-body) !important;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
  color: #444;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: var(--body-lh);
}

/* Timeline Section - Fashion Editorial Layout */
.timeline-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  background: transparent;
  position: relative;
}

.timeline-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transform: translateX(-0.5px);
}

.timeline-column {
  display: flex;
  flex-direction: column;
  padding: 4rem 4rem;
  position: relative;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-period {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: var(--meta-track);
  text-transform: uppercase;
  font-weight: 800;
  color: #14171c;
  margin: 0 0 0.8rem 0;
  line-height: 1.2;
}

.timeline-content {
  font-family: var(--font-body) !important;
  font-size: var(--body-size);
  font-weight: 400;
  margin: 0;
  color: #444;
  line-height: var(--body-lh);
  letter-spacing: 0.005em;
}

/* Section Titles - Editorial Typography */
.section-title {
  font-family: var(--font-headline) !important;
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 3rem 0;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--meta-track);
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
}

/* Gallery Section - Fashion Editorial Grid */
.gallery-section {
  margin: 0;
  padding: 4rem 4rem 6rem 4rem;
  background: transparent;
}

.gallery-section h3 {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 3rem 0;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--headline-track);
  line-height: var(--headline-lh);
}

/* Responsive Design for Fashion Magazine */
@media (max-width: 1200px) {
  .timeline-section {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .profile-section,
  .education-section,
  .timeline-column,
  .gallery-section {
    padding: 3rem 2rem;
  }

  .profile-roles {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .timeline-item {
    padding-left: 0;
    margin-bottom: 2rem;
  }

  .timeline-content {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-spacing: 0.1em;
  }

  .timeline-period {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.15em;
  }

  /* 모바일에서 과도한 트래킹 완화 */
  .about-text h1,
  .detail-title {
    letter-spacing: 0.04em;
  }

  .description p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .profile-section,
  .education-section,
  .timeline-column,
  .gallery-section {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .timeline-items {
    gap: 1.5rem;
  }

  .timeline-item {
    margin-bottom: 1.5rem;
  }

  .timeline-content {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-spacing: 0.15em;
  }

  .timeline-period {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.18em;
  }
}

/* ==== SPA layering model (revert stacking): main ↔ detail pages ==== */
/* The page uses a single-page layering model. Only the active detail page should be scrollable and visible. */

/* Keep container as the viewport and prevent stacking scroll of all pages */
.page-container {
  position: relative !important;
  width: 100% !important;
  height: 100dvh !important; /* viewport height with iOS address bar handling */
  overflow: hidden !important; /* only active layer scrolls */
}

/* Main and detail pages are layered fullscreen panels */
.main-page,
.detail-page {
  position: absolute !important;
  inset: 0 !important; /* top/right/bottom/left:0 */
  width: 100% !important;
  height: 100dvh !important;
  overflow-x: hidden !important;
}

/* Default state for detail pages: off-canvas and non-interactive */
.detail-page {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(100%) scale(0.98) !important;
}

/* Active detail page: visible and scrollable */
.detail-page.slide-in {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) scale(1) !important;
  overflow-y: auto !important; /* scroll only inside the active detail */
}

/* The main (grid/conveyor) page remains at z-index 1; active detail sits above */
.main-page {
  z-index: 1 !important;
}
.detail-page {
  z-index: 2 !important;
}

/* When grid view is explicitly enabled, allow the main-page to size to content */
.main-page.grid-active {
  height: auto !important;
  min-height: 100dvh !important;
  position: relative !important;
  overflow: visible !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

/* iOS font scaling stability */
:root {
  -webkit-text-size-adjust: 100%;
}

:root {
  /* 좌우 패딩 통일 토큰 */
  --grid-pad: clamp(8px, 3.5vw, 16px);
  /* 지원 브라우저에서 스크롤바 공간을 좌우 동일하게 */
  scrollbar-gutter: stable both-edges;
}

/* 컨테이너 정렬/패딩 표준화 */
.works-section,
.works-grid,
.works-grid.compact-layout {
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--grid-pad) !important;
  padding-right: var(--grid-pad) !important;
}

/* 모바일 전체에서 동일 패딩 강제 */
@media (max-width: 768px) {
  .works-grid {
    justify-content: center !important;
    padding-left: var(--grid-pad) !important;
    padding-right: var(--grid-pad) !important;
  }
  .works-grid.compact-layout {
    justify-content: center !important;
    padding-left: var(--grid-pad) !important;
    padding-right: var(--grid-pad) !important;
  }
}

/* 더 좁은 화면에서도 동일하게 유지 */
@media (max-width: 480px) {
  .works-grid,
  .works-grid.compact-layout {
    padding-left: var(--grid-pad) !important;
    padding-right: var(--grid-pad) !important;
  }
}

/* 아이템 사이 외부 마진 제거(가로 오프셋 방지) */
.work-item {
  margin: 0 !important;
}

/* ---- Mobile compact grid: force columns by grid (모바일만 적용) ---- */
:root {
  --card-gap: 0.6rem;
}

/* 모바일에서만 Grid 레이아웃 적용 */
@media (max-width: 767px) {
  .works-grid.compact-layout {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 모바일 3열 고정 */
    gap: var(--card-gap) !important;
    padding-left: var(--grid-pad) !important;
    padding-right: var(--grid-pad) !important;
  }

  /* 카드가 칸폭에 맞춰 꽉 차도록 폭 고정 제거 */
  .works-grid.compact-layout .work-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    aspect-ratio: 4/3 !important; /* 비율 유지 */
  }

  /* 초소형 화면은 2열 */
  @media (max-width: 360px) {
    .works-grid.compact-layout {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }
}
