/* ========================================
   Origin Partners - Advanced Styles
   ======================================== */

:root {
  --point-color: #1e40af;
  --point-light: #3b82f6;
  --point-dark: #1e3a8a;
}

/* 포인트 컬러 텍스트 */
.point-color {
  color: var(--point-light);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #999;
}

/* ========================================
   Split Text Animation Base
   ======================================== */

.split-text .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em; /* descender(g, y, p 등) 보호 */
  margin-bottom: -0.15em; /* 패딩으로 인한 여백 상쇄 */
}

/* ========================================
   Horizontal Scroll Section
   ======================================== */

.horizontal-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.horizontal-container {
  display: flex;
  width: fit-content;
  height: 100vh;
  will-change: transform;
}

.h-slide {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5vw;
  position: relative;
}

.h-slide .content {
  max-width: 1200px;
  width: 100%;
}

/* ========================================
   Slide Backgrounds - 이미지 + 오버레이
   ======================================== */

/* Hero: 추상적 테크 이미지 */
.slide-hero {
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 26, 46, 0.9) 100%),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover no-repeat;
}

/* Vision: 협업/팀워크 이미지 */
.slide-vision {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.88) 0%, rgba(15, 15, 30, 0.92) 100%),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover no-repeat;
}

/* Philosophy (Mission): 빛나는 아이디어 */
.slide-philosophy {
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 35, 0.88) 100%),
    url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1920&q=80') center/cover no-repeat;
}

/* Difference (02 전문가): 네트워크/연결 */
.slide-difference {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(15, 20, 35, 0.88) 100%),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80') center/cover no-repeat;
}

/* Network (03 파트너): 도시/판교 느낌 */
.slide-network {
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.88) 0%, rgba(20, 25, 40, 0.9) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center/cover no-repeat;
}

/* Growth (04 여정): 상승/성장 */
.slide-growth {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.88) 0%, rgba(15, 15, 30, 0.92) 100%),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80') center/cover no-repeat;
}

.slide-hero h1 {
  margin-bottom: 1.5rem;
}

.slide-hero .hero-slogan {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.slide-hero .tagline {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #666;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #666;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--point-light), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Vision Slide */
.slide-vision h2 {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 그라데이션 텍스트 내부 포인트 컬러 강제 적용 */
.slide-vision h2 .point-color {
  -webkit-text-fill-color: var(--point-light);
}

/* 모든 h2 내 포인트 컬러 */
.h-slide h2 .point-color {
  color: var(--point-light);
  -webkit-text-fill-color: var(--point-light);
}

.vision-text .line {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #888;
  margin-bottom: 0.5rem;
}

/* Philosophy Slides */
.philosophy-number {
  font-size: clamp(4rem, 8vw, 10rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 10%;
  right: 10%;
  line-height: 1;
}

/* Slide Label (영문 타이틀 + 번호) */
.slide-label {
  position: absolute;
  top: 10%;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.slide-label .label-title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--point-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.slide-label .label-number {
  font-size: clamp(4rem, 8vw, 10rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.philosophy-desc .line {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: #777;
  margin-top: 0.5rem;
}

/* Capability Tags */
.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.tag {
  padding: 10px 20px;
  background: rgba(30, 64, 175, 0.15);
  border: 1px solid rgba(30, 64, 175, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
  color: #93c5fd;
  transition: all 0.3s;
}

.tag:hover {
  background: rgba(30, 64, 175, 0.3);
  border-color: var(--point-light);
  color: #fff;
}

/* Network Stats */
.network-stats {
  display: flex;
  gap: 60px;
  margin-top: 50px;
}

.network-stat {
  text-align: left;
}

.network-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.network-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* Journey Steps */
.journey-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 50px;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-dot {
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
  border: 2px solid #444;
  transition: all 0.3s;
}

.journey-step span {
  font-size: 0.85rem;
  color: #666;
  transition: color 0.3s;
}

.journey-step.active .step-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.journey-step.active span {
  color: #fff;
  font-weight: 600;
}

.journey-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #333, #444);
  min-width: 40px;
  max-width: 80px;
}

/* ========================================
   Vertical Sections
   ======================================== */

.vertical-section {
  min-height: 100vh;
  padding: 120px 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  margin-bottom: 80px;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-desc .line {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #666;
}

/* ========================================
   Service Cards
   ======================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(60px);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--point-color);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(30, 64, 175, 0.2);
}

/* 이메일 박스와 동일한 유리 반사 애니메이션 */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.card-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(30, 64, 175, 0.4);
  margin-bottom: 20px;
}

.service-card h3 {
  color: #fff;
  margin-bottom: 15px;
}

.card-title-sub {
  display: block;
  margin-top: 2px;
}

.service-card > p {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.card-features {
  list-style: none;
  padding: 0;
}

.card-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #444;
  border-radius: 50%;
}

/* ========================================
   Service Section - 미세 도트 패턴
   ======================================== */

#service-section {
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d15 100%);
  background-size: 40px 40px, 100% 100%;
}

/* ========================================
   Portfolio/Clients Section - 부드러운 웨이브
   ======================================== */

#portfolio-section {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(15, 15, 26, 0.95) 100%),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&q=80') center/cover no-repeat;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(40px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portfolio-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #222 0%, #111 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.portfolio-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #555;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.portfolio-info p {
  font-size: 0.85rem;
  color: #666;
}

/* ========================================
   Team Stats Section - 그리드 패턴
   ======================================== */

#team-section {
  background:
    linear-gradient(rgba(10, 10, 10, 0.97) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.97) 1px, transparent 1px),
    linear-gradient(180deg, #0d0d15 0%, #0a0a0a 100%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  background-position: center center;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(30px);
}

.stat-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   Contact Section - 우주/별 패턴 (Origin = 시작)
   ======================================== */

.contact-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(30, 40, 80, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.015) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(180deg, #0a0a0a 0%, #050510 100%);
  background-size: 100% 100%, 3px 3px, 5px 5px, 7px 7px, 4px 4px, 6px 6px, 100% 100%;
  text-align: center;
  position: relative;
}

.contact-section .content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 2rem;
}

.contact-desc .line {
  font-size: 1.25rem;
  color: #666;
}

/* Contact Buttons Container */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 260px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #fff;
  text-decoration: none;
  padding: 20px 40px;
  border: 1px solid #333;
  border-radius: 50px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.contact-btn:hover {
  border-color: var(--point-light);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

.contact-btn:hover::before {
  left: 100%;
}

.btn-icon {
  font-size: 1.3em;
}

.btn-text {
  font-weight: 400;
}

/* Partnership CTA */
.partnership-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.cta-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--point-color), transparent);
}

.cta-text {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--point-light);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* 기존 클래스 유지 (하위 호환) */
.contact-email {
  display: inline-block;
  margin-top: 3rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  text-decoration: none;
  padding: 20px 50px;
  border: 1px solid #333;
  border-radius: 50px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.contact-email::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.contact-email:hover {
  border-color: #555;
  transform: scale(1.05);
}

.contact-email:hover::before {
  left: 100%;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: #444;
}

/* ========================================
   Responsive - Tablet/Mobile (1024px 이하)
   완전히 세로 스크롤 레이아웃으로 전환
   ======================================== */

@media (max-width: 1024px) {
  /* 전역 오버플로우 제어 */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
  }

  /* ===== 가로 스크롤 섹션 → 세로 스크롤로 완전 전환 ===== */
  .horizontal-wrapper {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  .horizontal-container {
    display: flex;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important; /* GSAP 가로 이동 완전 비활성화 */
  }

  .h-slide {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: auto !important;
    padding: 80px 24px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 첫 번째 슬라이드(히어로)만 전체 화면 높이 */
  .h-slide.slide-hero {
    min-height: 100vh !important;
    min-height: 100svh !important;
  }

  .h-slide .content {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .philosophy-number {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    font-size: 3rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.08);
  }

  /* Slide Label 모바일 */
  .slide-label {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .slide-label .label-title {
    font-size: 0.85rem;
    color: var(--point-light);
    opacity: 0.6;
  }

  .slide-label .label-number {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.08);
  }

  /* ===== 세로 섹션 스타일 ===== */
  .vertical-section {
    padding: 60px 24px;
    min-height: auto;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* ===== 서비스 카드 - 모바일에서 무조건 표시 ===== */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    opacity: 1 !important;
    transform: none !important;
    padding: 30px 24px;
  }

  /* ===== 포트폴리오/클라이언트 - 세로 1열 ===== */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .portfolio-item {
    opacity: 1 !important;
    transform: none !important;
    flex-direction: row;
    text-align: left;
  }

  /* ===== 팀 통계 ===== */
  .team-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item {
    opacity: 1 !important;
    transform: none !important;
  }

  /* ===== 네트워크 통계 ===== */
  .network-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  /* ===== 여정 스텝 ===== */
  .journey-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .journey-line {
    display: none;
  }

  /* ===== 태그 ===== */
  .capability-tags {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* ===== 스크롤 인디케이터 ===== */
  .scroll-indicator {
    display: block;
  }

  /* ===== 모바일 배경 이미지 최적화 ===== */
  .slide-hero,
  .slide-vision,
  .slide-philosophy,
  .slide-difference,
  .slide-network,
  .slide-growth {
    background-attachment: scroll !important; /* 모바일에서 fixed 비활성화 */
  }

  /* 모바일용 작은 이미지로 교체 */
  .slide-hero {
    background:
      linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%),
      url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=800&q=60') center/cover no-repeat !important;
  }

  .slide-vision {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(15, 15, 30, 0.95) 100%),
      url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&q=60') center/cover no-repeat !important;
  }

  .slide-philosophy {
    background:
      linear-gradient(135deg, rgba(10, 10, 10, 0.93) 0%, rgba(20, 20, 35, 0.92) 100%),
      url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=800&q=60') center/cover no-repeat !important;
  }

  .slide-difference {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.93) 0%, rgba(15, 20, 35, 0.92) 100%),
      url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800&q=60') center/cover no-repeat !important;
  }

  .slide-network {
    background:
      linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(20, 25, 40, 0.94) 100%),
      url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800&q=60') center/cover no-repeat !important;
  }

  .slide-growth {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(15, 15, 30, 0.95) 100%),
      url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=60') center/cover no-repeat !important;
  }

  #portfolio-section {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.97) 0%, rgba(15, 15, 26, 0.97) 100%),
      url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=800&q=60') center/cover no-repeat !important;
  }

  /* 모바일에서 카드 스타일 */
  .service-card {
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%) !important;
  }

  .portfolio-item {
    background: rgba(255, 255, 255, 0.03) !important;
  }
}

/* ========================================
   Responsive - Mobile (768px 이하)
   ======================================== */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* ===== 타이포그래피 ===== */
  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
    word-break: keep-all;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    word-break: keep-all;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }

  /* ===== 슬라이드 섹션 ===== */
  .h-slide {
    padding: 60px 20px !important;
  }

  .h-slide.slide-hero {
    min-height: 100svh !important;
    padding: 80px 20px !important;
  }

  .slide-hero .tagline {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .vision-text .line {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  .philosophy-number {
    font-size: 2.5rem;
  }

  .slide-label .label-title {
    font-size: 0.75rem;
  }

  .slide-label .label-number {
    font-size: 2.5rem;
  }

  .philosophy-desc .line {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  /* ===== 태그 ===== */
  .capability-tags {
    gap: 8px;
    margin-top: 24px;
  }

  .tag {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* ===== 네트워크 통계 ===== */
  .network-stats {
    gap: 20px;
    margin-top: 30px;
  }

  .network-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .network-label {
    font-size: 0.8rem;
  }

  /* ===== 여정 스텝 ===== */
  .journey-steps {
    gap: 8px;
    margin-top: 30px;
  }

  .journey-step span {
    font-size: 0.75rem;
  }

  .step-dot {
    width: 12px;
    height: 12px;
  }

  /* ===== 세로 섹션 ===== */
  .vertical-section {
    padding: 50px 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    margin-bottom: 0.75rem;
  }

  /* ===== 서비스 카드 ===== */
  .service-grid {
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .card-number {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .service-card > p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .card-features li {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  /* ===== 포트폴리오/클라이언트 ===== */
  .portfolio-grid {
    gap: 12px;
  }

  .portfolio-item {
    padding: 20px 16px;
    gap: 14px;
  }

  .portfolio-logo {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .portfolio-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .portfolio-category {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .portfolio-info p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* ===== 팀 통계 ===== */
  .team-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* ===== 연락처 ===== */
  .contact-section {
    padding: 60px 20px 100px;
  }

  .contact-desc .line {
    font-size: 0.95rem;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .contact-btn {
    min-width: 220px;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    padding: 14px 28px;
  }

  .contact-email {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    padding: 14px 28px;
    margin-top: 1.5rem;
  }

  .contact-phone {
    font-size: 0.85rem !important;
    padding: 0 10px;
    word-break: keep-all;
    line-height: 1.6;
  }

  .footer {
    position: relative;
    bottom: auto;
    margin-top: 40px;
  }

  .footer p {
    font-size: 0.7rem;
  }

  /* ===== 스크롤 인디케이터 ===== */
  .scroll-indicator {
    bottom: 3vh;
  }

  .scroll-line {
    height: 40px;
  }
}

/* ========================================
   Responsive - Small Mobile (480px 이하)
   ======================================== */

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .h-slide {
    padding: 50px 16px !important;
  }

  .h-slide.slide-hero {
    padding: 60px 16px !important;
  }

  .philosophy-number {
    font-size: 2rem;
  }

  .slide-label .label-title {
    font-size: 0.7rem;
  }

  .slide-label .label-number {
    font-size: 2rem;
  }

  /* 태그 */
  .capability-tags {
    gap: 6px;
  }

  .tag {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  /* 네트워크 통계 */
  .network-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* 여정 스텝 */
  .journey-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .journey-step {
    width: 100%;
  }

  .journey-step span {
    font-size: 0.65rem;
  }

  /* 섹션 */
  .vertical-section {
    padding: 40px 16px;
  }

  /* 서비스 카드 */
  .service-card {
    padding: 20px 16px;
  }

  .card-number {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card > p {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .card-features li {
    font-size: 0.75rem;
  }

  /* 팀 통계 */
  .team-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  /* 포트폴리오/클라이언트 */
  .portfolio-item {
    padding: 16px 14px;
    gap: 12px;
  }

  .portfolio-logo {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .portfolio-info h4 {
    font-size: 0.95rem;
  }

  .portfolio-info p {
    font-size: 0.75rem;
  }

  /* 연락처 */
  .contact-buttons {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .contact-btn {
    min-width: 180px;
    padding: 12px 20px;
    font-size: 0.8rem;
    gap: 8px;
  }

  .btn-icon {
    font-size: 1.1em;
  }

  .contact-email {
    padding: 12px 20px;
    font-size: 0.8rem;
  }

  .contact-phone {
    font-size: 0.75rem !important;
  }
}

/* ========================================
   iOS Safari 대응
   ======================================== */

@supports (-webkit-touch-callout: none) {
  .h-slide {
    min-height: -webkit-fill-available;
  }

  .horizontal-wrapper {
    min-height: -webkit-fill-available;
  }
}

/* ========================================
   터치 디바이스 호버 효과 제거
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }

  .tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #888;
  }

  .portfolio-item:hover {
    border-color: #1a1a1a;
    background: rgba(255, 255, 255, 0.02);
  }

  .contact-email:hover {
    transform: none;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
  opacity: 0;
  visibility: hidden;
}

.visible {
  opacity: 1;
  visibility: visible;
}
