/* ================================
   메인 페이지(index.html) 전용 CSS
   - 2,130줄의 인라인 CSS를 외부 파일로 분리
   ================================ */

/* ================================
   0) Design Tokens
   ================================ */
:root {
  --primary: #E6B31E;
  /* 골드 옐로우 - 포인트 컬러 */
  --primary-700: #C49A1A;
  /* 다크 골드 */
  --secondary: #9F8574;
  /* 미디엄 브라운 - 보조 컬러 */
  --accent: #C2A59B;
  /* 라이트 로지 브라운 - 액센트 */
  --ink: #343434;
  /* 다크 그레이 - 본문 텍스트 */
  --muted: #5B5B5B;
  /* 미디엄 그레이 - 보조 텍스트 */
  --bg: #FFFFFF;
  /* 오프 화이트/크림 - 배경 */
  --surface: #FFFFFF;
  /* 라이트 크림 - 카드/섹션 배경 */
  --border: #CACACA;
  /* 라이트 그레이 - 테두리 */
  --footer-bg: #343434;
  /* 푸터 배경 컬러 */
  --footer-text: #FFFFFF;
  /* 푸터 텍스트 컬러 */
  --radius: 14px;
  /* 기본 라운드 */
  --shadow: 0 10px 30px rgba(52, 52, 52, .12);
}

/* ================================
   1) Base / Reset
   ================================ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Pretendard', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ================================
   2) Utilities
   ================================ */
/* Smooth scroll for in-page anchors */
html {
  scroll-behavior: smooth;
  overflow-y: scroll; /* 항상 스크롤바 공간 확보 (모달 열 때 페이지 움직임 방지) */
}


/* Global reveal helpers for images (mask slide-in) */
.mask-reveal {
  clip-path: inset(0 100% 0 0);
  transform: translateY(24px);
  opacity: 0;
}

.mask-reveal.in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s ease, transform 1s ease, opacity 1s ease;
  transform: translateY(0);
  opacity: 1;
}

/* Parallax hint elements */
[data-tilt] {
  will-change: transform;
  transition: transform .12s linear;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  font-size: 14px;
}

.btn.ghost {
  background: #fff;
  color: #000;
  border-color: rgba(15, 23, 42, .12);
  font-weight: 700;
}

.btn.ghost:hover {
  background: #fff;
}

/* Hero sequential right-to-left entrance */
.r2l {
  opacity: 0;
  transform: translateX(40px);
}

.r2l.in {
  opacity: 1;
  transform: translateX(0);
  transition: transform .7s ease, opacity .7s ease;
}

.icon-link {
  font-size: 14px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.icon-link:hover {
  transform: scale(1.08);
  transition: transform 0.18s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: #0B0E13;
}

/* 포커스 접근성 */
.focusable:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 125, 135, .25);
}


/* 진입 애니메이션 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* 스크린리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

    /* ================================
   Modal (Login) - 부드러운 애니메이션
   ================================ */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, .5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal {
  position: relative !important;
  width: min(520px, 92vw) !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25) !important;
  transform: scale(0.9) !important;
  opacity: 0 !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.modal-backdrop.show .modal {
  transform: scale(1) !important;
  opacity: 1 !important;
}


/* ================================
   5) Hero - Fullscreen Slider
   ================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeInImage 0.8s ease-in-out;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  max-width: 1100px;
  padding: 0 40px;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* 슬라이더 네비게이션 */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 20;
}

.hero-nav button {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-nav button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.hero-nav button::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

.hero-prev::before {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.hero-next::before {
  transform: rotate(45deg);
  margin-right: 5px;
}

/* 슬라이더 인디케이터 */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  align-items: center;
}

.hero-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-indicator.active {
  background: #fff;
  width: 24px;
  height: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.eyebrow {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Text Styles - Premium Gallery Design */
.hero-eyebrow {
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 1;
  font-family: 'Pretendard', sans-serif;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  margin: 0 auto 32px;
  opacity: 0;
  animation: lineGrow 1.2s ease-out 0.5s forwards;
}

@keyframes lineGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

.hero h1 {
  margin: 0;
  font-size: 100px;
  line-height: 1;
  letter-spacing: 6px;
  font-weight: 400;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #FFFFFF;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 1;
  font-family: 'Work Sans', sans-serif;
  font-style: italic;
}

.hero-description {
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  margin-bottom: 48px;
  opacity: 1;
  font-family: 'Pretendard', sans-serif;
}

.hero-slogan {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  margin: 0 0 40px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
}

.hero-cta .btn {
  padding: 18px 48px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 2px;
  text-transform: uppercase;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

/* Primary Button (시작하기) - Black & White */
.hero-cta #cta-art-match {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF !important;
  box-shadow: none;
}

.hero-cta #cta-art-match::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.hero-cta #cta-art-match:hover {
  color: #000000 !important;
  border-color: #FFFFFF !important;
}

.hero-cta #cta-art-match:hover::before {
  left: 0;
}

/* Secondary Button (포트폴리오) - Same as Primary */
.hero-cta .btn:not(#cta-art-match) {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF !important;
  font-weight: 400;
  box-shadow: none;
}

.hero-cta .btn:not(#cta-art-match)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.hero-cta .btn:not(#cta-art-match):hover {
  color: #000000 !important;
  border-color: #FFFFFF !important;
}

.hero-cta .btn:not(#cta-art-match):hover::before {
  left: 0;
}

/* ================================
   Scroll Indicator - Fixed position
   ================================ */
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 100;
  animation: fadeIn 1s ease-out 1.5s forwards;
  opacity: 0;
}

.scroll-text {
  font-size: 10px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  /* writing-mode: vertical-rl; */
  text-orientation: mixed;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.3));
  animation: scrollProgress 2s ease-in-out infinite;
}

@keyframes scrollProgress {
  0% {
    height: 0;
    opacity: 0.5;
  }
  50% {
    height: 100%;
    opacity: 1;
  }
  100% {
    height: 100%;
    opacity: 0;
  }
}

/* ================================
   Micro Interactions & Effects
   ================================ */



/* Glitch text (apply to .glitch) */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch::before {
  color: #ff005d;
  mix-blend-mode: multiply;
  clip-path: inset(0 0 0 0);
  animation: glitchShift 2.2s infinite linear alternate-reverse;
}

.glitch::after {
  color: #00e5ff;
  mix-blend-mode: multiply;
  clip-path: inset(0 0 0 0);
  animation: glitchShift2 2.2s infinite linear alternate;
}

@keyframes glitchShift {
  0% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }

  10% {
    transform: translate(-1px, 1px);
    clip-path: inset(4% 0 42% 0);
  }

  20% {
    transform: translate(1px, -1px);
    clip-path: inset(0 0 65% 0);
  }

  30% {
    transform: translate(-2px, 0);
    clip-path: inset(30% 0 0 0);
  }

  40% {
    transform: translate(0, 1px);
    clip-path: inset(0 0 18% 0);
  }

  50% {
    transform: translate(2px, -1px);
    clip-path: inset(60% 0 0 0);
  }

  60%,
  100% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes glitchShift2 {
  0% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }

  12% {
    transform: translate(1px, -1px);
    clip-path: inset(60% 0 0 0);
  }

  22% {
    transform: translate(-1px, 1px);
    clip-path: inset(0 0 22% 0);
  }

  32% {
    transform: translate(2px, 0);
    clip-path: inset(0 0 48% 0);
  }

  42% {
    transform: translate(0, -1px);
    clip-path: inset(10% 0 0 0);
  }

  55%,
  100% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
}

/* Reveal ease variant (for site-wide .reveal already defined) */
.reveal.in.slow {
  transition-duration: 1.6s;
}

.artists {
  background: var(--surface);
  padding: 30px 0 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.artists .title-wrap {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artists h2 {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
}

.marquee {
  position: relative;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollLeft 35s linear infinite;
}

.artist {
  width: 260px;
  min-width: 260px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(52, 52, 52, .08);
  text-decoration: none;
  color: inherit;
  display: block;
}

.artist img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(100%);
}

.artist:hover img {
  filter: grayscale(0%) brightness(.78);
}

.artist .name {
  padding: 12px 14px;
  font-weight: 800;
  text-align: center;
  font-size: 17px;
  letter-spacing: 0.3px;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ================================
   6.5) Why AEIO – Intro + Features + Process
   ================================ */

/* ================================
   Why Section Redesign
   ================================ */
.why {
  padding: 100px 0;
  background: #fff;
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Part 1: Split Intro */
.why-intro {
  display: flex;
  gap: 60px;
  margin-bottom: 120px;
  align-items: flex-start;
}

.why-visual-col {
  flex: 1;
  position: sticky;
  top: 100px;
}

.why-visual-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  /* Slightly distinct radius */
}

.why-text-col {
  flex: 1;
  padding-top: 20px;
}

.why-head-title {
  font-size: 32px;
  /* Title size from image */
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.3;
  font-family: 'Pretendard', sans-serif;
  /* Myeongjo feeling if possible, sticking to sans for now */
}

.why-head-title em {
  font-style: normal;
  font-family: "Times New Roman", Times, serif;
  /* Trying to match the serif '4' and '1' in image */
  font-size: 1.1em;
}

.why-desc-block {
  margin-bottom: 60px;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.why-desc-block p {
  margin: 0 0 16px;
}

.feature-list {
  border-top: 2px solid #333;
}

.feature-item {
  border-bottom: 1px solid #ddd;
  padding: 30px 0;
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.feature-subtitle {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  color: #666;
  margin: 0;
}

.feature-content {
  margin-top: 16px;
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  max-width: 90%;
}

.feature-toggle {
  width: 24px;
  height: 24px;
  position: relative;
}

.feature-toggle::before,
.feature-toggle::after {
  content: "";
  position: absolute;
  background: #333;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature-toggle::before {
  width: 14px;
  height: 1px;
}

.feature-toggle::after {
  width: 1px;
  height: 14px;
  transition: transform 0.3s;
}

/* Open state simulation if needed, or just static for now as per image 1 */

.feature-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* Part 2: Process */
.why-process-section {
  text-align: center;
  padding: 80px 0;
  /* background: #f9f9f9; Removed as per request */
  border-top: 1px solid #eee;
  margin-top: 80px;
}

.why-process-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--ink);
}

.process-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  max-width: 1200px;
  /* Increased max-width for 6 items */
  margin: 0 auto;
  gap: 20px;
  /* Reduced gap slightly */
  padding: 0 20px;
  /* Safe padding */
  flex-wrap: wrap;
  /* Allow wrap on smaller screens */
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 120px;
  /* Slightly smaller min-width */
  max-width: 180px;
}

/* Arrow: large white arrow with border? Or simple grey arrow like image */
/* Image shows white arrow shape with border between circles */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 60px;
  /* Align with circle center (60px = 120/2) */
  right: -25px;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') no-repeat center;
  transform: translateY(-50%);
  z-index: 1;
  /* Adjust right position based on gap */
  right: -22px;
}

.p-circle {
  width: 120px;
  height: 120px;
  border: 1px solid #333;
  /* Darker thinner border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  background: #fff;
}

.p-num {
  position: absolute;
  top: -12px;
  /* Position strictly on top border */
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.p-icon {
  font-size: 36px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-label {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.3;
}

.p-sub {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.why-process-note {
  margin-top: 50px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why-intro {
    flex-direction: column;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 40px;
  }

  .process-step {
    flex: 0 0 45%;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-step {
    flex: 0 0 calc(50% - 20px);
  }
}



/* ================================
   BEST ITEMS
   ================================ */
.best {
  background: var(--surface);
  padding: 64px 20px 72px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.best-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.best h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--ink);
  letter-spacing: .08em;
}

.best-viewport {
  position: relative;
  overflow: hidden;
}

.best-track {
  display: flex;
  gap: 14px;
  will-change: transform;
}

.best-item {
  margin: 0;
  flex: 0 0 calc((100% - (14px * 4)) / 5);
  /* 5-up with 4 gaps */
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.best-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

.best-item-image-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.best-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.best-item:hover img {
  transform: scale(1.08);
}

.best-item figcaption {
  width: 100%;
  padding: 16px;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.best-item .best-name {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best-item .best-price {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #000;
  margin: 0;
}

.best-item .best-subtitle {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sold-out-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(4px);
}

/* ================================
   7) Clients / Portfolio Companies
   ================================ */
.clients {
  background: var(--surface);
  padding: 64px 20px 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.clients h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--ink);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  align-items: center;
}

.client {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(52, 52, 52, .06);
}

.client img {
  max-width: 80%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: .95;
}

.client:hover img {
  opacity: .9;
  filter: brightness(.78);
}

@media (max-width: 1100px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .client {
    height: 78px;
  }
}

/* ================================
   8) Responsive
   ================================ */
/* Hero Slider Responsive */
@media (max-width: 1024px) {
  .hero-nav button {
    width: 45px;
    height: 45px;
  }

  .hero h1 {
    font-size: clamp(60px, 11vw, 120px);
    letter-spacing: 8px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-divider {
    width: 50px;
    margin-bottom: 24px;
  }

  .scroll-indicator {
    bottom: 30px;
  }
  
  .scroll-line {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .hero-nav {
    padding: 0 15px;
  }

  .hero-nav button {
    width: 40px;
    height: 40px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 90px);
    letter-spacing: 4px;
    margin-bottom: 24px;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 11px;
    margin-bottom: 36px;
  }

  .hero-divider {
    width: 40px;
    margin-bottom: 20px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 36px;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 12px;
    min-width: auto;
  }

  .scroll-indicator {
    bottom: 25px;
  }
  
  .scroll-line {
    height: 50px;
  }
  
  .scroll-text {
    font-size: 10px;
  }

  .hero-indicators {
    bottom: 20px;
    gap: 8px;
  }

  .hero-indicator {
    width: 8px;
    height: 8px;
  }

  .hero-indicator.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
  }

}

@media (max-width: 1100px) {
  .styles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-inner {
    gap: 10px;
    padding: 15px 20px;
  }

  .menu {
    display: none;
  }

  .styles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .artist {
    width: 220px;
    min-width: 220px;
  }

  .artist img {
    height: 220px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* 사용자 환경설정: 모션 줄임 */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .btn,
  .style-card {
    transition: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ================================
   메인 페이지 전용: 헤더 부드러운 전환 애니메이션
   ================================ */
#header .nav,
.nav {
  transition: background-color 0.5s ease, 
              background 0.5s ease,
              backdrop-filter 0.5s ease,
              border-color 0.5s ease,
              box-shadow 0.5s ease !important;
}

#header .nav *,
.nav * {
  transition: color 0.5s ease, 
              text-shadow 0.5s ease,
              filter 0.5s ease !important;
}

/* ================================
   NOTE: 모바일 메뉴 CSS는 components.css에 정의되어 있습니다.
   (햄버거 메뉴, 슬라이드 메뉴 등)
   ================================ */

/* ================================
   MOBILE RESPONSIVE CSS - 메인 페이지
   브레이크포인트:
   - Laptop: 769px ~ 1024px
   - Tablet: 481px ~ 768px
   - Mobile: ~480px
   ================================ */

/* Laptop (769px ~ 1024px) */
@media (max-width: 1024px) {
  /* Hero 섹션 */
  .hero h1 {
    font-size: clamp(60px, 10vw, 100px);
    letter-spacing: 4px;
  }

  .hero-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-cta .btn {
    padding: 14px 32px;
    font-size: 14px;
    min-width: 160px;
  }

  .hero-nav button {
    width: 48px;
    height: 48px;
  }

  /* Artists 섹션 */
  .artists {
    padding: 60px 0 40px;
  }

  .title-wrap h2 {
    font-size: 28px;
  }

  .artist {
    width: 180px;
    min-width: 180px;
  }

  .artist img {
    height: 180px;
  }

  /* WHY 섹션 */
  .why-artify {
    padding: 60px 20px;
  }

  .why-title {
    font-size: 28px;
  }

  /* Process 섹션 */
  .process-section {
    padding: 60px 20px;
  }

  .process-title {
    font-size: 28px;
  }

  .process-step {
    flex: 0 0 calc(25% - 24px);
    min-width: 180px;
  }

  /* Clients 섹션 */
  .clients-section {
    padding: 60px 20px;
  }

  .clients-title {
    font-size: 28px;
  }

  /* Best Items */
  .best-section {
    padding: 60px 0;
  }
}

/* Tablet (481px ~ 768px) */
@media (max-width: 768px) {
  /* NOTE: 모바일 메뉴 활성화 CSS는 components.css에 정의되어 있습니다 */

  /* Hero 섹션 */
  .hero h1 {
    font-size: clamp(48px, 12vw, 80px);
    letter-spacing: 3px;
    margin-bottom: 16px;
  }

  .hero-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }

  .hero-divider {
    width: 40px;
    margin: 12px auto;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 14px;
    padding: 0 16px;
    line-height: 1.6;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 240px;
    padding: 14px 24px;
    font-size: 14px;
    min-width: auto;
  }

  .hero-nav {
    padding: 0 12px;
  }

  .hero-nav button {
    width: 40px;
    height: 40px;
  }

  .hero-indicators {
    bottom: 100px;
    gap: 6px;
  }

  .hero-indicator {
    width: 7px;
    height: 7px;
  }

  .hero-indicator.active {
    width: 20px !important;
    height: 7px !important;
    border-radius: 3.5px;
  }

  .scroll-indicator {
    display: none;
  }

  /* Artists 섹션 */
  .artists {
    padding: 48px 0 32px;
  }

  .title-wrap {
    padding: 0 16px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .title-wrap h2 {
    font-size: 24px;
  }

  .title-wrap .btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .artist {
    width: 140px;
    min-width: 140px;
  }

  .artist img {
    height: 140px;
  }

  .artist h3 {
    font-size: 13px;
    padding: 10px;
  }

  /* WHY 섹션 */
  .why-artify {
    padding: 48px 16px;
  }

  .why-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .why-intro {
    flex-direction: column;
    gap: 32px;
  }

  .why-visual-col {
    width: 100%;
    position: static !important;
    top: auto !important;
  }

  .why-visual-col img {
    max-width: 100%;
    border-radius: 12px;
  }

  .why-text-col {
    width: 100%;
  }

  .why-list li {
    font-size: 14px;
    padding-left: 24px;
  }

  /* Process 섹션 */
  .process-section {
    padding: 48px 16px;
  }

  .process-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .process-slider {
    gap: 16px;
    padding: 0 16px;
  }

  .process-step {
    flex: 0 0 calc(50% - 12px);
    min-width: 140px;
    padding: 24px 16px;
  }

  .process-step .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .process-step h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .process-step p {
    font-size: 13px;
  }

  /* Clients 섹션 */
  .clients-section {
    padding: 48px 16px;
  }

  .clients-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .client-logo {
    padding: 16px 12px;
  }

  .client-logo img {
    max-height: 32px;
  }

  /* Best Items */
  .best-section {
    padding: 48px 0;
  }

  .best-title {
    font-size: 24px;
    padding: 0 16px;
  }
}

/* Mobile (~480px) */
@media (max-width: 480px) {
  /* NOTE: 모바일 메뉴 CSS는 components.css에 정의되어 있습니다 */

  /* Hero 섹션 */
  .hero h1 {
    font-size: clamp(36px, 14vw, 60px);
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  .hero-divider {
    width: 32px;
    margin: 10px auto;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 13px;
    padding: 0 12px;
    line-height: 1.5;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-cta {
    margin-top: 20px;
    gap: 10px;
  }

  .hero-cta .btn {
    max-width: 200px;
    padding: 12px 20px;
    font-size: 13px;
  }

  .hero-nav {
    padding: 0 8px;
  }

  .hero-nav button {
    width: 36px;
    height: 36px;
  }

  .hero-indicators {
    bottom: 80px;
    gap: 5px;
  }

  .hero-indicator {
    width: 6px;
    height: 6px;
  }

  .hero-indicator.active {
    width: 16px !important;
    height: 6px !important;
    border-radius: 3px;
  }

  /* Artists 섹션 */
  .artists {
    padding: 40px 0 24px;
  }

  .title-wrap {
    padding: 0 12px 20px;
    gap: 12px;
  }

  .title-wrap h2 {
    font-size: 20px;
  }

  .title-wrap .btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .artist {
    width: 120px;
    min-width: 120px;
  }

  .artist img {
    height: 120px;
  }

  .artist h3 {
    font-size: 12px;
    padding: 8px;
  }

  /* WHY 섹션 */
  .why-artify {
    padding: 40px 12px;
  }

  .why-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .why-intro {
    gap: 24px;
  }

  .why-visual-col {
    position: static !important;
    top: auto !important;
  }

  .why-list li {
    font-size: 13px;
    padding-left: 20px;
    margin-bottom: 12px;
  }

  .why-list li::before {
    font-size: 12px;
  }

  /* Process 섹션 */
  .process-section {
    padding: 40px 12px;
  }

  .process-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .process-slider {
    gap: 12px;
    padding: 0 12px;
  }

  .process-step {
    flex: 0 0 calc(50% - 20px);
    min-width: auto;
    padding: 20px 14px;
  }

  .process-step .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .process-step h3 {
    font-size: 15px;
  }

  .process-step p {
    font-size: 12px;
  }

  /* Clients 섹션 */
  .clients-section {
    padding: 40px 12px;
  }

  .clients-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .client-logo {
    padding: 14px 10px;
  }

  .client-logo img {
    max-height: 28px;
  }

  /* Best Items */
  .best {
    padding: 40px 12px 48px;
  }

  .best-inner h2 {
    font-size: 20px;
    margin-bottom: 24px;
    padding: 0;
  }

  .best-track {
    gap: 16px;
  }

  .best-item {
    flex: 0 0 calc(50% - 8px);
    height: 280px;
  }

  .best-item-image-wrapper {
    height: 180px;
  }

  .best-item figcaption {
    padding: 12px;
    gap: 4px;
  }

  .best-item .best-name {
    font-size: 14px;
    line-height: 1.3;
  }

  .best-item .best-price {
    font-size: 13px;
    font-weight: 700;
  }

  .best-item .best-subtitle {
    font-size: 11px;
    line-height: 1.3;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  /* 스타일 그리드 */
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .style-card {
    aspect-ratio: 1;
  }

  .style-card h3 {
    font-size: 12px;
    padding: 10px;
  }
}
