/* ================================================================
   Studio Kick — Main Stylesheet
   Dark theme inspired by superfreak.kr
================================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080808;
  --surface:   #111114;
  --surface2:  #18181c;
  --accent:    #ff3c3c;
  --accent2:   #ff7a00;
  --text:      #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --border:    rgba(255,255,255,0.08);
  --radius:    16px;
  --max-w:     1100px;
  --header-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Accent text ────────────────────────────────────────────── */
.accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Kick deep red ──────────────────────────────────────────── */
.kick-text {
  color: #b71c1c;
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo-img   { height: 36px; width: auto; }

.nav { display: flex; gap: 36px; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(16px);
  padding: 24px 32px;
  gap: 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--text); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
}

/* YouTube video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #050505; /* iframe 로딩 중 빈 화면 방지 */
  z-index: 0;
}
.hero-video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;   /* 16:9 */
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;                        /* 처음엔 숨김 */
  transition: opacity 1.2s ease;     /* 재생 시작 후 페이드인 */
}
.hero-video-bg iframe.ready {
  opacity: 1;                        /* JS에서 .ready 추가 시 표시 */
}

/* 오버레이: YouTube UI가 비치지 않도록 불투명도 강화 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,0.72) 0%,
    rgba(5,5,5,0.55) 45%,
    rgba(5,5,5,0.88) 100%
  );
  z-index: 1;
}

/* When no video: animated gradient bg */
.hero.no-video {
  background: radial-gradient(ellipse at 30% 40%, #1a0a0a 0%, #080808 60%),
              linear-gradient(135deg, #0d0d0d 0%, #050505 100%);
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 44px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: background 0.25s, border-color 0.25s;
}
.hero-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ════════════════════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-inner {
  display: flex;
  animation: marquee 22s linear infinite;
  will-change: transform;
}
.marquee-set {
  display: flex;
  gap: 36px;
  padding-right: 36px; /* trailing gap = inner gap → 완벽한 루프 */
  flex-shrink: 0;
}
.marquee-set span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-set .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════
   SECTIONS — common
════════════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
}

.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════ */
.about-section { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.outline-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 32px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}
.outline-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num small { font-size: 0.45em; }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════
   VALUES
════════════════════════════════════════════════════════════ */
.values-section {
  background: var(--surface);
  padding: 100px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.value-item {
  padding: 60px 48px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: rgba(255,255,255,0.02); }
.value-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}
.value-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.value-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════════ */
.services-section { background: var(--bg); }

.services-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform 0.3s, border-color 0.3s;
}
.service-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}
.service-panel.featured {
  background: linear-gradient(145deg, #1a0a0a, #111);
  border-color: rgba(255,60,60,0.3);
}
.service-panel.featured:hover { border-color: var(--accent); }

.sp-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(255,60,60,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.sp-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sp-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.service-panel.featured .sp-title { color: var(--accent); }

.sp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.sp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.sp-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  padding-left: 18px;
  position: relative;
}
.sp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75em;
}

.sp-btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s, border-color 0.2s;
}
.sp-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}
.service-panel.featured .sp-btn {
  background: var(--accent);
  border-color: var(--accent);
}
.service-panel.featured .sp-btn:hover {
  background: #e02020;
  border-color: #e02020;
}

/* ════════════════════════════════════════════════════════════
   WORKS / GALLERY SLIDER
════════════════════════════════════════════════════════════ */
.works-section {
  background: var(--surface);
  padding-bottom: 80px;
}

.works-header { margin-bottom: 48px; }

/* ── 슬라이더 외부 래퍼 (컨테이너처럼 좌우 여백) ── */
.slider-outer {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ── 슬라이더 트랙 ── */
.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.grabbing { cursor: grabbing; }

/* ── 카드: 한 번에 3개 보이게 ── */
.work-card,
.work-card-skeleton {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}

/* Skeleton shimmer */
.work-card-skeleton {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, var(--surface2) 25%, #222226 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 포트폴리오 카드 ── */
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface2);
  aspect-ratio: 16/9;
  transition: transform 0.3s ease;
}
.work-card:hover { transform: scale(1.03); }

.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}
.work-card:hover img { transform: scale(1.07); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.work-card-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.work-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.work-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.work-card-arrow {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.work-card:hover .work-card-desc,
.work-card:hover .work-card-arrow { opacity: 1; transform: translateY(0); }

/* No-thumbnail placeholder */
.work-card-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1e, #222226);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

/* ── 화살표 버튼 ── */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.slider-btn:hover {
  background: rgba(255,60,60,0.8);
  border-color: var(--accent);
}
.slider-btn:disabled { opacity: 0.2; pointer-events: none; }
.slider-btn--prev { left: 16px; }
.slider-btn--next { right: 16px; }

/* ── 점(dot) 인디케이터 ── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* ── Empty/error ── */
.empty-state, .error-state {
  flex: 0 0 100%;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .work-card, .work-card-skeleton {
    flex: 0 0 calc((100% - 20px) / 2); /* 2개 보이기 */
  }
}
@media (max-width: 600px) {
  .work-card, .work-card-skeleton {
    flex: 0 0 85%; /* 1개 + 다음 카드 살짝 보임 */
  }
  .slider-outer { padding: 0 20px; }
  .slider-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .slider-btn--prev { left: 8px; }
  .slider-btn--next { right: 8px; }
}

/* ════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════ */
.contact-section { background: var(--bg); }

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 64px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--accent); }

.contact-cta { display: flex; justify-content: center; }

.big-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.2s;
}
.big-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo { height: 32px; width: auto; }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.footer-biz {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-biz p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   DETAIL PAGE
════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   DETAIL PAGE — 2-column layout
════════════════════════════════════════════════════════════ */
.detail-page {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 120px;
  min-height: 100vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* 2-column grid */
.detail-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 72px;
  align-items: start;
}

/* Left — sticky media */
.detail-media {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.detail-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
}
.detail-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.detail-thumb-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* Right — info panel */
.detail-info { padding-top: 4px; }

.detail-category-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,60,60,0.4);
  border-radius: 4px;
  padding: 5px 11px;
  margin-bottom: 22px;
}

.detail-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.detail-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.detail-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}

.detail-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.detail-overview {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  white-space: pre-line;
  margin-bottom: 36px;
}

.detail-meta-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.detail-meta-item { display: flex; flex-direction: column; gap: 5px; }
.detail-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.detail-meta-value { font-size: 0.9rem; font-weight: 600; }

.detail-actions { display: flex; flex-direction: column; gap: 12px; }

.detail-btn-primary {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 15px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}
.detail-btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.detail-btn-secondary {
  display: block;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.detail-btn-secondary:hover { border-color: rgba(255,255,255,0.35); color: var(--text); }

/* Detail skeleton */
.detail-skeleton-title {
  height: 40px; width: 70%;
  border-radius: 8px; margin-bottom: 16px;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, var(--surface2) 25%, #222226 50%, var(--surface2) 75%);
  background-size: 200% 100%;
}
.detail-skeleton-text {
  height: 18px;
  background: linear-gradient(90deg, var(--surface2) 25%, #222226 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  border-radius: 4px; margin-bottom: 12px;
  animation: shimmer 1.5s infinite;
}

/* ── Works More 버튼 ─────────────────────────────────────── */
.works-more {
  text-align: center;
  margin-top: 40px;
}
.works-more-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.works-more-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.works-more-btn .plus {
  color: var(--accent);
  font-weight: 700;
  margin-left: 6px;
}

/* ════════════════════════════════════════════════════════════
   GALLERY MODAL — All Works
════════════════════════════════════════════════════════════ */
/* ── 인라인 갤러리 확장 ──────────────────────────────────── */
.works-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.works-expand.open { grid-template-rows: 1fr; }
.works-expand-inner { overflow: hidden; }
.works-expand-content {
  padding-top: 48px;
  padding-bottom: 60px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.gallery-modal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.gallery-filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-subfilters {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.gallery-filter-sub {
  font-size: 0.75rem;
  padding: 4px 12px;
  opacity: 0.85;
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s;
}
.gallery-card:hover { transform: translateY(-5px); }

.gallery-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
}
.gallery-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-card:hover .gallery-card-thumb img { transform: scale(1.06); }

.gallery-card-info { padding: 16px 20px 20px; }
.gallery-card-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.gallery-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.gallery-card-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ── Contact 레이아웃 ────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
.contact-info-col { display: flex; flex-direction: column; gap: 0; }

/* ── Contact 폼 ──────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cf-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.cf-input:focus { border-color: rgba(255,255,255,0.3); }
.cf-input::placeholder { color: rgba(255,255,255,0.25); }
.cf-textarea { resize: vertical; min-height: 130px; }
.cf-submit {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
}
.cf-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.cf-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* Detail page responsive */
@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .detail-media { position: static; }
}

/* Gallery & Contact responsive */
@media (max-width: 900px) {
  .gallery-modal-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .gallery-modal-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   ADMIN PAGE
════════════════════════════════════════════════════════════ */
/* (see admin.css) */

/* ════════════════════════════════════════════════════════════
   TOUCH 기기: 갤러리 오버레이 항상 표시 (hover 없는 기기)
   + 모바일 섹션 중앙정렬 보조
════════════════════════════════════════════════════════════ */
/* Hero 콘텐츠 — 항상 중앙 */
.hero { text-align: center; }
.hero-content { margin: 0 auto; }

/* About 섹션 모바일 중앙 텍스트 */
@media (max-width: 1024px) {
  .about-text { text-align: center; }
  .about-text .outline-btn { margin: 0 auto; display: block; width: fit-content; }
  .about-stats { justify-content: center; }
}

/* Services title 중앙 */
.services-section .section-title { text-align: center; }
.services-section .section-eyebrow { text-align: center; }

/* Works title 중앙 */
.works-section .section-title { text-align: center; }
.works-section .section-eyebrow { text-align: center; }

/* Contact 중앙 정렬 보조 */
.contact-section .section-title { text-align: center; }
.contact-section .section-eyebrow { text-align: center; }
.contact-desc { text-align: center; }
@media (hover: none) {
  .work-card-overlay { opacity: 1; }
  .work-card:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1280px 이하 (작은 데스크톱)
════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .container { padding: 0 24px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px 이하 (태블릿 가로)
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section { padding: 96px 0; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-stats { flex-direction: row; padding-top: 0; gap: 24px; }
  .stat-item { flex: 1; }

  /* Services: 2열 태블릿 */
  .services-panels { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service-panel.featured { grid-column: span 2; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-cta { justify-content: flex-start; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { white-space: normal; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 768px 이하 (모바일 가로 / 태블릿 세로)
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  /* Header */
  .nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-title { font-size: clamp(3rem, 15vw, 5.5rem); }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { padding: 13px 28px; font-size: 0.85rem; }

  /* Section titles */
  .section-title { margin-bottom: 36px; }

  /* About */
  .about-stats { flex-direction: column; gap: 28px; }
  .stat-item { border-left-width: 2px; padding-left: 18px; }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }
  .value-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
  }
  .value-item:last-child { border-bottom: none; }

  /* Services: 1열 */
  .services-panels { grid-template-columns: 1fr; }
  .service-panel.featured { grid-column: span 1; }

  /* Works grid: 2열 */
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Contact */
  .contact-cta { width: 100%; }
  .big-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
  }

  /* Footer */
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-copy { white-space: normal; }
  .footer-biz p { font-size: 0.75rem; }

  /* Detail page */
  .detail-title { font-size: clamp(1.5rem, 6vw, 2.4rem); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 480px 이하 (모바일 세로 일반)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  /* Hero */
  .hero-title { font-size: clamp(2.8rem, 18vw, 4rem); }
  .hero-scroll-hint { display: none; }

  /* Works: 1열 */
  .works-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Services */
  .service-panel { padding: 28px 20px; }
  .sp-title { font-size: 1.4rem; }

  /* Values */
  .value-title { font-size: 1.8rem; }
  .value-item { padding: 28px 0; }

  /* Contact */
  .contact-row { gap: 4px; }
  .contact-value { font-size: 0.95rem; }
  .big-cta-btn { font-size: 0.95rem; padding: 16px 24px; }

  /* Section titles */
  .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* About */
  .about-body { font-size: 0.95rem; }
  .stat-num { font-size: clamp(2rem, 10vw, 3rem); }

  /* Footer */
  .footer { padding: 48px 0 32px; }
  .footer-nav { gap: 12px; }
  .footer-nav a { font-size: 0.75rem; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 360px 이하 (소형 모바일)
════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 2.6rem; }
  .hero-eyebrow { display: none; }
  .marquee-wrap { display: none; }
}
