/* ===================================================
   YOUNG WAVE CREATIVE — Global Homepage Styles
   Dark Premium Theme · Indigo × Amber Gradient
   v2 — Photo Gallery + Hero Slider + Project Grids
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1220;
  --bg-card: #111827;
  --bg-card-hover: #1a2438;
  --accent-1: #6366f1;    /* indigo */
  --accent-2: #f59e0b;    /* amber */
  --accent-3: #a855f7;    /* purple */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.4);
  --gradient: linear-gradient(135deg, #6366f1, #a855f7, #f59e0b);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.08));
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --font-main: 'Space Grotesk', 'Inter', 'Noto Sans KR', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: 108px 0; }
.section-dark { background: var(--bg-secondary); }
p.en { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; margin-bottom: 10px; }
p.kr { color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; font-family: 'Noto Sans KR', sans-serif; }

/* ---------- Scroll Progress Bar ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient);
  width: var(--scroll-progress, 0%);
  z-index: 9999;
  transition: width 0.1s;
}

/* ---------- Section Label ---------- */
.section-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-label span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  margin-top: 2px;
}
.text-center .section-label { align-items: center; margin-bottom: 24px; }

/* ---------- Section Title ---------- */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  margin-bottom: 56px;
  font-family: 'Noto Sans KR', sans-serif;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}
.btn span { line-height: 1.2; }
.btn em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.7;
  font-family: 'Noto Sans KR', sans-serif;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-hover);
  color: var(--text-primary);
}
.btn-outline:hover { background: var(--gradient-subtle); border-color: var(--accent-1); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn i { margin-left: 6px; }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
}
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link span { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }
.nav-link em { font-style: normal; font-size: 0.62rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; }
.nav-link:hover { background: var(--gradient-subtle); }
.nav-link:hover span { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-insta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(220,39,67,0.3);
}
.nav-insta:hover { transform: scale(1.1); box-shadow: 0 4px 20px rgba(220,39,67,0.5); }
.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-secondary); border-radius: 2px; transition: var(--transition); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #000;
}
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 2;
}

/* ── 배경 슬라이드 컨테이너 ── */
.hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* ── 그라디언트 오버레이 ── */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.20) 45%,
    rgba(8,12,20,0.70) 80%,
    rgba(8,12,20,0.95) 100%
  );
  z-index: 3;
  transition: background 0.8s ease;
}
.hero-overlay.photo-mode {
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.25) 45%,
    rgba(8,12,20,0.75) 80%,
    rgba(8,12,20,0.97) 100%
  );
}

/* ── 중앙 재생 버튼 ── */
.hero-center-content {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-play-btn {
  pointer-events: all;
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 0 0 0 rgba(99,102,241,0.5);
  animation: pulse-ring 2.5s ease-out infinite;
}
.hero-play-btn i { font-size: 2rem; line-height: 1; margin-left: 4px; }
.hero-play-btn .hpb-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  margin-top: -2px;
}
.hero-play-btn:hover {
  background: rgba(99,102,241,0.55);
  transform: scale(1.12);
}
.hpb-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  pointer-events: none;
}
.hero-play-btn.photo-mode {
  display: none !important;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
  60%  { box-shadow: 0 0 0 20px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

/* ── 슬라이드 정보 바 (좌하단) ── */
.hero-info-bar {
  position: absolute;
  bottom: 148px; left: 32px;
  z-index: 10;
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 9px 20px 9px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: calc(100vw - 64px);
}
.hero-info-bar.visible { opacity: 1; transform: translateY(0); }
.hib-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 50px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hib-badge.photo { color: var(--accent-2); background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.4); }
.hib-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hib-sub { font-style: normal; font-size: 0.68rem; color: rgba(255,255,255,0.60); font-family: 'Noto Sans KR', sans-serif; display: block; }

/* ── 진행바 ── */
.hero-progress-bar {
  position: absolute;
  bottom: 138px; left: 0; right: 0;
  z-index: 10;
  height: 3px;
  background: rgba(255,255,255,0.15);
}
.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transition: width linear;
  border-radius: 0 3px 3px 0;
}

/* ── 도트 네비게이션 ── */
.hero-dots {
  position: absolute;
  bottom: 152px; right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.5);
}
.hero-dot.video-dot.active { background: var(--accent-1); }
.hero-dot.photo-dot.active { background: var(--accent-2); }

/* ── 하단 썸네일 네비게이션 ── */
.hero-thumb-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-thumb-nav::-webkit-scrollbar { display: none; }
.htn-sep {
  width: 1px; height: 52px;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0; margin: 0 3px;
}
.htn-item {
  flex-shrink: 0;
  position: relative;
  width: 96px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer; padding: 0;
  background: none;
  transition: border-color 0.25s, transform 0.25s;
}
.htn-thumb {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: filter 0.25s;
}
.htn-item:hover .htn-thumb,
.htn-item.active .htn-thumb { filter: brightness(1); }
.htn-item.active { border-color: var(--accent-1); transform: scale(1.08); }
.htn-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 14px 5px 4px;
  font-size: 0.58rem;
  color: #fff; font-weight: 600;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.htn-info i { font-size: 0.52rem; opacity: 0.8; }

/* ── 브랜드 텍스트 코너 (좌측, 썸네일 위) ── */
.hero-brand-corner {
  position: absolute;
  bottom: 150px; left: 32px;
  z-index: 9;
  text-align: left;
  max-width: 340px;
  display: none; /* info-bar 있을 때 숨김 — JS로 제어 */
}
.hbc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  line-height: 1.3;
}
.hbc-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hbc-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.52);
  margin-bottom: 10px;
}
.hbc-cta { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }

/* ── 통계 코너 (우상단) ── */
.hero-stats-corner {
  position: absolute;
  top: 90px; right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.hsc-item {
  text-align: right;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 7px 14px;
  display: flex; align-items: baseline; gap: 3px;
}
.hsc-item .stat-num { font-size: 1.55rem; line-height: 1; }
.hsc-item > span { font-size: 1rem; font-weight: 700; color: var(--accent-2); }
.hsc-item > em { font-style: normal; font-size: 0.68rem; color: rgba(255,255,255,0.52); margin-left: 4px; }

/* ── hero-scroll (숨김) ── */
.hero-scroll { display: none; }
/* hero legacy styles repurposed */
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-unit { font-size: 1.2rem; font-weight: 700; color: var(--accent-2); line-height: 1; margin-left: 2px; }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 32px; }
.stat-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; text-align: center; }
.stat-item p em { display: block; font-style: normal; font-size: 0.72rem; font-family: 'Noto Sans KR', sans-serif; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }
.hero-stats { display: flex; justify-content: center; align-items: center; gap: 0; flex-wrap: wrap; }
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-badge { display: none; }
.hero-title { display: none; }
.hero-subtitle-en { display: none; }
.hero-subtitle-kr { display: none; }
.hero-content { display: none; }

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-sub-en, .about-sub-kr {
  font-size: 1rem;
  margin-bottom: 12px;
}
.about-sub-en { color: var(--text-secondary); }
.about-sub-kr { color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; margin-bottom: 32px; }
.about-info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.info-row { display: flex; align-items: flex-start; gap: 14px; }
.info-row i { color: var(--accent-1); font-size: 1rem; margin-top: 4px; flex-shrink: 0; }
.info-row strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.info-row span { font-size: 0.82rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; }

/* Connection Map */
.connection-map {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.connection-map::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.map-node { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0; }
.node-dot {
  width: 16px; height: 16px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  animation: nodePulse 2s infinite;
}
.node-label span { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-primary); }
.node-label em { display: block; font-style: normal; font-size: 0.72rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; }
.map-line {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px 0;
}
.pulse-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
  transform: translateX(-50%);
}
.center-logo {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-glow);
}
.asean-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.asean-tags span {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(99,102,241,0.05);
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}
.service-card h3 { margin-bottom: 16px; }
.service-card h3 span { display: block; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.service-card h3 em { display: block; font-style: normal; font-size: 0.8rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; }

/* ========== WHY US ========== */
.whyus-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}
.whyus-text .section-title { margin-bottom: 20px; }
.whyus-cards { display: flex; flex-direction: column; gap: 16px; }
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: var(--transition);
}
.why-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.why-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 4px;
}
.why-item strong { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.why-item strong em { font-style: normal; font-size: 0.78rem; color: var(--accent-2); font-family: 'Noto Sans KR', sans-serif; margin-left: 6px; }
.why-item p { font-size: 0.85rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; }

/* CTA Banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-subtle);
}
.cta-banner-inner {
  position: relative;
  padding: 48px;
  text-align: center;
}
.cta-banner .en {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 8px;
}
.cta-banner .kr {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.cta-banner .btn { display: inline-flex; }

/* ========== PROJECTS ========== */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.project-featured:last-of-type { margin-bottom: 48px; border-bottom: none; }
.project-featured-reverse { direction: rtl; }
.project-featured-reverse > * { direction: ltr; }
.yt-embed-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.project-news-img { margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; }
.project-news-img img { width: 100%; height: auto; aspect-ratio: 16/6; object-fit: cover; }
.project-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(99,102,241,0.12);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--accent-1);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 16px;
}
.project-info h3 { margin-bottom: 16px; }
.project-info h3 span { display: block; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.project-info h3 em { display: block; font-style: normal; font-size: 0.88rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; }
.project-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.project-meta span { font-size: 0.8rem; color: var(--text-muted); }
.project-meta span i { color: var(--accent-1); margin-right: 6px; }
.project-news { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  transition: var(--transition);
  width: fit-content;
}
.news-link:hover { background: rgba(245,158,11,0.15); border-color: var(--accent-2); }

/* Mini project cards */
.projects-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  transition: var(--transition);
}
.mini-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.mini-icon {
  width: 42px; height: 42px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-1);
  margin-bottom: 14px;
}
.mini-card h4 { margin-bottom: 8px; }
.mini-card h4 span { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.mini-card h4 em { display: block; font-style: normal; font-size: 0.72rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; margin-top: 2px; }
.mini-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; font-family: 'Noto Sans KR', sans-serif; }

/* ========== PARTNERS ========== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.partner-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.partner-icon {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 16px;
}
.partner-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.partner-card .en { font-size: 0.85rem; }
.partner-card .kr { font-size: 0.78rem; }

/* Brands marquee */
.brands-section { margin-top: 60px; }
.brands-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.brands-label span { color: var(--text-secondary); font-weight: 600; }
.brands-label em { font-style: normal; font-family: 'Noto Sans KR', sans-serif; }
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.marquee-track span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex-shrink: 0;
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto 48px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.team-avatar { margin-bottom: 20px; }
.avatar-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto;
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.team-role { margin-bottom: 10px; }
.team-role span { font-size: 0.8rem; color: var(--accent-1); font-weight: 600; background: rgba(99,102,241,0.1); padding: 3px 12px; border-radius: 20px; }
.team-desc { font-size: 0.82rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; }
.dept-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.dept-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.dept-chip:hover { border-color: var(--accent-1); color: var(--text-primary); }
.dept-chip i { color: var(--accent-1); font-size: 0.85rem; }
.dept-chip span { font-weight: 500; }
.dept-chip em { font-style: normal; font-size: 0.72rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; margin-left: 4px; }
.team-count { text-align: center; font-size: 0.88rem; color: var(--text-muted); }
.team-count i { color: var(--accent-1); margin-right: 8px; }

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
  margin-top: 16px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item i {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-item span, .contact-item a { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; font-family: 'Noto Sans KR', sans-serif; }
.contact-item a:hover { color: var(--accent-1); }
.contact-social { margin-top: 8px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220,39,67,0.3);
}
.social-btn.instagram:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,39,67,0.5); }
.social-btn i { font-size: 1.1rem; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); font-family: 'Noto Sans KR', sans-serif; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-1); background: rgba(99,102,241,0.05); }
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.82rem; text-align: center; margin-top: 12px; font-family: 'Noto Sans KR', sans-serif; min-height: 20px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  margin-bottom: 16px;
}
.footer-logo span { font-size: 0.72rem; letter-spacing: 0.15em; }
.footer-brand .en { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px; }
.footer-brand .kr { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-icon:hover { background: var(--gradient); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col h5 em { display: block; font-style: normal; font-size: 0.72rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; text-transform: none; letter-spacing: 0; margin-top: 2px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.footer-col ul li a span { color: var(--text-secondary); }
.footer-col ul li a em { font-style: normal; font-size: 0.72rem; font-family: 'Noto Sans KR', sans-serif; margin-top: 1px; }
.footer-col ul li a:hover { color: var(--accent-1); }
.footer-contact-list { gap: 10px; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.5;
}
.footer-contact-list li i { color: var(--accent-1); font-size: 0.8rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-list li a:hover { color: var(--accent-1); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.8; font-family: 'Noto Sans KR', sans-serif; }

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px; height: 46px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(99,102,241,0.6); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

/* ========================================================
   RESPONSIVE — 4단계 브레이크포인트
   ① 1400px+  : 와이드 데스크톱
   ② 1024px   : 태블릿 가로
   ③ 768px    : 태블릿 세로 / 모바일 가로
   ④ 480px    : 모바일 세로
   ======================================================== */

/* ── ① 와이드 데스크톱 (1400px+) ── */
@media (min-width: 1400px) {
  .container { max-width: 1360px; padding: 0 40px; }
  .section { padding: 120px 0; }
  .section-title { font-size: 3.4rem; }
  .section-desc { font-size: 1.1rem; max-width: 600px; }

  /* Hero */
  .hero-play-btn { width: 100px; height: 100px; }
  .hero-play-btn i { font-size: 2.4rem; }
  .hero-info-bar { bottom: 165px; left: 40px; padding: 11px 24px 11px 14px; }
  .hib-title { font-size: 0.95rem; max-width: 360px; }
  .hib-sub { font-size: 0.76rem; }
  .hero-progress-bar { bottom: 153px; }
  .hero-dots { bottom: 168px; right: 36px; gap: 8px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-thumb-nav { padding: 12px 24px 18px; gap: 7px; }
  .htn-item { width: 110px; height: 64px; }
  .htn-info { font-size: 0.64rem; }
  .hero-stats-corner { top: 100px; right: 36px; gap: 14px; }
  .hsc-item .stat-num { font-size: 1.8rem; }

  /* Projects */
  .project-featured { gap: 56px; }
  .projects-mini-grid { grid-template-columns: repeat(3, 1fr); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }

  /* About / Why Us */
  .about-grid { gap: 80px; }
  .whyus-grid { gap: 80px; }
}

/* ── ② 태블릿 가로 (768px ~ 1024px) ── */
@media (max-width: 1024px) {
  .container { max-width: 100%; padding: 0 28px; }
  .section { padding: 88px 0; }
  .section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
  .section-desc { font-size: 0.98rem; }

  /* Layout */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .projects-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { gap: 48px; }
  .whyus-grid { gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Hero */
  .hero-stats-corner { top: 88px; right: 20px; gap: 10px; }
  .hsc-item { padding: 7px 12px; }
  .hsc-item .stat-num { font-size: 1.4rem; }
  .hero-info-bar { bottom: 148px; left: 28px; }
  .hero-progress-bar { bottom: 138px; }
  .hero-dots { bottom: 150px; right: 20px; }
  .htn-item { width: 88px; height: 52px; }
  .hero-play-btn { width: 80px; height: 80px; }
  .hero-play-btn i { font-size: 1.8rem; }
}

/* ── ③ 태블릿 세로 / 모바일 가로 (≤ 768px) ── */
@media (max-width: 768px) {
  html { font-size: 15px; }

  /* ─ 전체 너비 기초 ─ */
  *, *::before, *::after { box-sizing: border-box; }
  body { overflow-x: hidden; width: 100%; }
  .container { width: 100%; padding: 0 16px; max-width: 100%; }
  .section { padding: 64px 0; }
  .section-title { font-size: clamp(1.45rem, 5vw, 2rem); margin-bottom: 18px; }
  .section-desc { font-size: 0.9rem; margin-bottom: 36px; max-width: 100%; }

  /* ─ 모든 이미지 넘침 방지 ─ */
  img { max-width: 100% !important; height: auto; display: block; }

  /* ─ Nav ─ */
  .nav { height: 60px; }
  .nav-menu {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(8,12,20,0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px 14px; gap: 2px;
    transform: translateY(-16px); opacity: 0; pointer-events: none;
    transition: var(--transition); border-bottom: 1px solid var(--border); z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 11px 14px; border-radius: 10px; }
  .hamburger { display: flex; }
  .logo-main { font-size: 1rem; }
  .logo-sub { font-size: 0.5rem; }
  .nav-insta, .nav-yt { width: 34px; height: 34px; font-size: 0.9rem; }

  /* ─ 그리드 레이아웃 ─ */
  .about-grid   { grid-template-columns: 1fr !important; gap: 32px; direction: ltr; }
  .whyus-grid   { grid-template-columns: 1fr !important; gap: 32px; }
  .services-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .partners-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .projects-mini-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .team-grid    { grid-template-columns: 1fr 1fr !important; gap: 14px; max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-grid  { grid-template-columns: 1fr 1fr !important; gap: 24px; }
  .form-row     { grid-template-columns: 1fr !important; }
  .project-featured { grid-template-columns: 1fr !important; direction: ltr; gap: 24px; }
  .project-featured-reverse { direction: ltr !important; }

  /* ─ 이미지 고정 높이 해제 ─ */
  .about-visual { height: auto !important; }
  .photo-stack-main img { height: auto; aspect-ratio: 16/9; width: 100%; object-fit: cover; }
  .photo-stack-sub img  { height: auto; aspect-ratio: 16/9; width: 100%; object-fit: cover; }
  .project-media { min-height: unset !important; }
  .project-news-img img { height: auto; aspect-ratio: 16/6; }
  .mini-img-wrap { height: auto; aspect-ratio: 16/9; }
  .mini-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

  /* ─ 프로젝트 블록 ─ */
  .project-block { padding: 24px 16px; max-width: 100%; overflow: hidden; }
  .project-media-row { grid-template-columns: 1fr !important; gap: 16px; width: 100%; }
  .project-yt-col { width: 100%; min-width: 0; }
  .project-photo-col { width: 100%; min-width: 0; }
  .project-photo-grid { grid-template-columns: 1fr 1fr !important; gap: 6px; width: 100%; }
  .proj-img-wrap { width: 100%; min-width: 0; overflow: hidden; }
  .proj-img-wrap img { aspect-ratio: 16/9 !important; height: auto !important; width: 100% !important; max-width: 100% !important; }
  .proj-img-wrap.large { grid-column: span 2 !important; }
  .proj-img-wrap.large img { aspect-ratio: 4/3 !important; height: auto !important; }

  /* ─ 갤러리 ─ */
  .gallery-grid { columns: 2 !important; column-gap: 8px; }
  .g-item { margin-bottom: 8px; break-inside: avoid; }
  .g-item img { min-height: unset; height: auto; width: 100%; }
  .g-item-tall img { min-height: unset; height: auto; }

  /* ─ 비디오 카드 그리드 ─ */
  .vc-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .vc-card-featured { grid-column: span 2 !important; }
  .vc-thumb { padding-top: 56.25% !important; }
  .vc-card-featured .vc-thumb { padding-top: 52% !important; }
  .vc-info { padding: 12px 14px 14px; gap: 4px; }
  .vc-info h4 { font-size: 0.85rem; }
  .vc-info p { font-size: 0.75rem; }
  .vc-tag { font-size: 0.62rem; }
  .vc-yt-label { font-size: 0.66rem; }

  /* ─ 마키 브랜드 띠 ─ */
  .marquee-track { gap: 24px; }
  .marquee-item { height: 36px; }
  .marquee-item img { height: 100%; width: auto; max-width: none; }

  /* ─ 기타 섹션 ─ */
  .contact-form { padding: 24px 16px; }
  .cta-banner-inner { padding: 36px 16px; }
  .partner-card { padding: 22px 16px; }
  .team-card { padding: 28px 16px; }
  .project-block-header h3 span { font-size: 1.1rem; }
  .stat-chip { font-size: 0.72rem; padding: 5px 11px; }

  /* ─ Hero ─ */
  .hero-stats-corner { top: 72px; right: 10px; gap: 7px; }
  .hsc-item { padding: 5px 8px; }
  .hsc-item .stat-num { font-size: 1rem; }
  .hsc-item > span { font-size: 0.8rem; }
  .hsc-item > em { font-size: 0.58rem; }
  .hero-info-bar { bottom: 138px; left: 12px; max-width: calc(100vw - 68px); padding: 6px 12px 6px 10px; gap: 6px; }
  .hib-title { font-size: 0.75rem; max-width: 180px; }
  .hib-sub { font-size: 0.62rem; }
  .hib-badge { font-size: 0.52rem; padding: 2px 6px; }
  .hero-progress-bar { bottom: 128px; height: 2px; }
  .hero-dots { bottom: 140px; right: 10px; gap: 5px; }
  .hero-dot { width: 5px; height: 5px; }
  .hero-thumb-nav { padding: 7px 10px 11px; gap: 4px; }
  .htn-item { width: 72px; height: 42px; border-radius: 6px; }
  .htn-info { font-size: 0.52rem; }
  .htn-sep { height: 40px; }
  .hero-play-btn { width: 68px; height: 68px; }
  .hero-play-btn i { font-size: 1.5rem; }
  .hero-play-btn .hpb-label { font-size: 0.48rem; }
  .hpb-ring { inset: -6px; }

  /* ─ 모달 ─ */
  .video-modal { align-items: flex-end; }
  .vm-box { width: 100vw; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .vm-feature-thumb { padding-top: 56%; border-radius: 18px 18px 0 0; }
  .vm-feature-overlay { padding: 18px 14px 16px; gap: 12px; }
  .vm-title { font-size: 1.05rem; }
  .vm-watch-btn { padding: 11px 14px; gap: 10px; border-radius: 12px; }
  .vm-watch-icon { width: 38px; height: 38px; font-size: 1.2rem; }
  .vm-watch-text strong { font-size: 0.86rem; }
  .vm-watch-text em { font-size: 0.72rem; }
  .vm-playlist { padding: 12px 14px 16px; }
  .vm-pl-item { padding: 8px 10px; gap: 10px; }
  .vm-pl-item img { width: 70px; height: 42px; }
  .vm-pl-meta strong { font-size: 0.84rem; }
  .vm-pl-meta em { font-size: 0.7rem; }
}

/* ── ④ 모바일 세로 (≤ 480px) ── */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 0 12px; width: 100%; }
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(1.25rem, 6.5vw, 1.65rem); }
  .section-desc { font-size: 0.86rem; margin-bottom: 28px; }

  /* ─ 이미지 완전 봉쇄 ─ */
  img { max-width: 100% !important; width: 100%; height: auto; }

  /* ─ 그리드 1열 전환 ─ */
  .partners-grid  { grid-template-columns: 1fr !important; gap: 10px; }
  .projects-mini-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .team-grid      { grid-template-columns: 1fr !important; gap: 10px; max-width: 100%; }
  .footer-grid    { grid-template-columns: 1fr !important; gap: 20px; }
  .gallery-grid   { columns: 1 !important; column-gap: 0; }
  .g-item img     { min-height: unset; height: auto; width: 100%; }
  .g-item-tall img { min-height: unset; height: auto; }

  /* ─ 비디오 카드 1열 ─ */
  .vc-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .vc-card-featured { grid-column: span 1 !important; }
  .vc-info h4 { font-size: 0.9rem; }

  /* ─ 프로젝트 ─ */
  .project-block { padding: 18px 12px; max-width: 100%; overflow: hidden; }
  .project-photo-grid { grid-template-columns: 1fr !important; gap: 8px; width: 100%; }
  .proj-img-wrap { min-width: 0; overflow: hidden; width: 100%; }
  .proj-img-wrap.large { grid-column: span 1 !important; }
  .proj-img-wrap img { aspect-ratio: 16/9 !important; height: auto !important; width: 100% !important; max-width: 100% !important; }
  .proj-img-wrap.large img { aspect-ratio: 16/9 !important; height: auto !important; }
  .photo-stack-main img { height: auto; aspect-ratio: 16/9; }
  .photo-stack-sub img  { height: auto; aspect-ratio: 16/9; }
  .mini-img-wrap { height: auto; aspect-ratio: 16/9; }

  /* ─ 버튼 ─ */
  .btn { padding: 10px 20px; font-size: 0.8rem; }
  .btn-sm { padding: 8px 16px; font-size: 0.74rem; }
  .hbc-cta { flex-wrap: wrap; gap: 8px; }
  .hbc-cta .btn { flex: 1; min-width: 120px; text-align: center; justify-content: center; }

  /* ─ 기타 ─ */
  .contact-form { padding: 18px 14px; }
  .cta-banner-inner { padding: 24px 14px; }
  .partner-card { padding: 18px 12px; }
  .dept-chip { padding: 6px 12px; font-size: 0.76rem; }
  .section-label span { font-size: 0.66rem; }
  .project-block-header h3 span { font-size: 1rem; }

  /* ─ Nav ─ */
  .nav { height: 56px; }
  .nav-menu { top: 56px; padding: 14px 12px; }
  .logo-main { font-size: 0.95rem; }
  .logo-sub { display: none; }
  .nav-insta, .nav-yt { width: 30px; height: 30px; font-size: 0.85rem; }

  /* ─ Hero ─ */
  .hero-stats-corner { display: none; }
  .hero-info-bar { bottom: 130px; left: 8px; right: 8px; max-width: calc(100% - 16px); padding: 6px 10px; gap: 7px; }
  .hib-title { font-size: 0.72rem; max-width: 100%; white-space: normal; overflow: visible; }
  .hib-sub { font-size: 0.58rem; }
  .hib-badge { display: none; }
  .hero-progress-bar { bottom: 120px; }
  .hero-dots { bottom: 133px; right: 8px; gap: 4px; flex-direction: row; }
  .hero-dot { width: 5px; height: 5px; }
  .hero-thumb-nav { padding: 5px 8px 9px; gap: 3px; }
  .htn-item { width: 62px; height: 37px; border-radius: 5px; }
  .htn-info { font-size: 0.48rem; padding: 8px 2px 2px; }
  .htn-sep { height: 34px; margin: 0 1px; }
  .hero-play-btn { width: 60px; height: 60px; animation: none; }
  .hero-play-btn i { font-size: 1.25rem; }
  .hero-play-btn .hpb-label { display: none; }
  .hpb-ring { inset: -4px; }

  /* ─ 모달 ─ */
  .vm-box { max-height: 95dvh; border-radius: 16px 16px 0 0; }
  .vm-feature-thumb { padding-top: 60%; }
  .vm-feature-overlay { padding: 14px 12px 12px; gap: 10px; }
  .vm-title { font-size: 0.95rem; }
  .vm-sub { font-size: 0.76rem; }
  .vm-watch-btn { padding: 10px 12px; }
  .vm-watch-icon { width: 34px; height: 34px; font-size: 1.1rem; }
  .vm-watch-text strong { font-size: 0.82rem; }
  .vm-playlist { padding: 10px 12px 14px; }
  .vm-pl-item { padding: 7px 8px; gap: 8px; }
  .vm-pl-item img { width: 60px; height: 36px; border-radius: 6px; }
  .vm-pl-meta strong { font-size: 0.8rem; }
  .vm-pl-meta em { font-size: 0.66rem; }
  .vm-pl-num { display: none; }

  /* ─ 가로 스크롤 갤러리 (galleryGrid) ─ */
  .gallery-scroll-wrap { margin: 0 -16px; }
  .gallery-scroll { padding: 6px 16px 14px; gap: 10px; }
  .gs-item { flex: 0 0 160px; min-width: 160px; }
  .gs-item.gs-wide { flex: 0 0 220px; min-width: 220px; }
  .gs-caption p  { font-size: 0.72rem; }
  .gs-caption em { font-size: 0.62rem; }

  /* ─ galleryGrid 섹션 패딩 ─ */
  #galleryGrid { padding-top: 60px; }

  /* ─ Projects 슬라이더 카드 ─ */
  .proj-card { padding: 18px 14px 22px; }
  .proj-card-title { font-size: 1rem; }

  /* ─ 섹션 레이블 ─ */
  .section-label { margin-bottom: 12px; }
  .section-label span { font-size: 0.62rem; }
  .section-label em   { font-size: 0.72rem; }

  /* ─ Client 섹션 ─ */
  .client-full-image img { border-radius: 10px; }
  .client-categories { grid-template-columns: 1fr 1fr; gap: 10px; }
  .client-cat-card { padding: 18px 12px; }

  /* ─ Contact 섹션 ─ */
  .contact-info-card { padding: 22px 16px; }
  .contact-info-item { gap: 12px; }

  /* ─ Footer ─ */
  .footer { padding: 48px 0 28px; }
}

/* ===================================================
   v3 ADDITIONS — Logo Intro · Video Playlist ·
   OST Player · Hero Dots · Featured Video Section
   =================================================== */

/* -------- Logo Intro Fullscreen -------- */
.logo-intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #080c14;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.logo-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}
.logo-intro.done { display: none; }

.logo-intro-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}

.logo-intro-anim { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.logo-intro-wave {
  display: flex; gap: 6px;
}
.logo-intro-wave span {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(40px);
  animation: introLetterIn 0.5s ease forwards;
  background: linear-gradient(135deg, #6366f1, #a855f7, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-intro-wave2 span { color: #f1f5f9; -webkit-text-fill-color: #f1f5f9; background: none; -webkit-background-clip: unset; background-clip: unset; }

/* stagger */
.li-y { animation-delay: 0.1s; }
.li-o { animation-delay: 0.18s; }
.li-u { animation-delay: 0.26s; }
.li-n { animation-delay: 0.34s; }
.li-g { animation-delay: 0.42s; }
.li-w { animation-delay: 0.54s; }
.li-a { animation-delay: 0.62s; }
.li-v { animation-delay: 0.70s; }
.li-e { animation-delay: 0.78s; }

@keyframes introLetterIn {
  to { opacity: 1; transform: translateY(0); }
}

.logo-intro-sub {
  font-size: clamp(0.65rem, 2vw, 0.95rem);
  letter-spacing: 0.35em;
  color: #94a3b8;
  text-transform: uppercase;
  opacity: 0;
  animation: introFadeIn 0.6s ease 1s forwards;
}
.logo-intro-tagline {
  font-size: 0.88rem;
  color: rgba(99,102,241,0.85);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: introFadeIn 0.6s ease 1.3s forwards;
}
@keyframes introFadeIn { to { opacity: 1; } }

.logo-intro-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.logo-intro-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.08s linear;
}

/* -------- Hero Dots -------- */
.hero-dots {
  position: absolute;
  bottom: 90px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--accent-2);
  transform: scale(1.4);
}

/* -------- Featured Videos Section -------- */
.featured-video-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.featured-video-main { display: flex; flex-direction: column; gap: 16px; }
/* .featured inherits 56.25% padding-top from base — no override needed */

.featured-info { padding: 4px 0; }
.featured-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0 6px;
}
.featured-info .project-tag { margin-bottom: 6px; }

/* -------- Video Playlist -------- */
.video-playlist {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  max-height: 480px;
  overflow-y: auto;
}
.video-playlist::-webkit-scrollbar { width: 4px; }
.video-playlist::-webkit-scrollbar-track { background: transparent; }
.video-playlist::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.vpl-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.vpl-item:hover { background: var(--bg-card-hover); border-color: var(--border); }
.vpl-item.active { background: rgba(99,102,241,0.12); border-color: var(--accent-1); }

.vpl-thumb {
  position: relative;
  flex-shrink: 0;
  width: 100px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.vpl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vpl-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #fff; font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.vpl-item:hover .vpl-play, .vpl-item.active .vpl-play { opacity: 1; }

.vpl-meta { flex: 1; min-width: 0; }
.vpl-tag {
  font-size: 0.65rem;
  color: var(--accent-1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}
.vpl-meta p {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.vpl-meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------- YouTube CTA -------- */
.video-yt-cta {
  display: flex; justify-content: center; margin-top: 40px;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  gap: 10px;
  border-radius: 50px;
}
.btn-yt.btn-lg {
  display: inline-flex; align-items: center; gap: 12px;
  flex-direction: row;
}
.btn-yt.btn-lg i { font-size: 1.3rem; }
.btn-yt.btn-lg span { font-size: 1rem; }
.btn-yt.btn-lg em { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* -------- OST Player (in Projects) -------- */
.ost-videos-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.ost-videos-label i { color: var(--accent-1); }

.ost-video-row { display: flex; gap: 10px; flex-wrap: wrap; }

.ost-thumb-item {
  position: relative;
  width: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.ost-thumb-item:hover { border-color: var(--accent-1); transform: translateY(-3px); }
.ost-thumb-item img { width: 100%; height: 80px; object-fit: cover; display: block; }

.ost-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 28px; height: 28px;
  background: rgba(99,102,241,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem;
}
.ost-thumb-caption {
  padding: 6px 8px;
  background: var(--bg-card);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ost-thumb-caption em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  margin-top: 2px;
}

.ost-player-wrap {
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}
.ost-close-btn {
  margin-top: 8px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.ost-close-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* -------- Responsive: Featured Videos -------- */
@media (max-width: 900px) {
  .featured-video-wrap { grid-template-columns: 1fr; }
  .video-playlist { max-height: 320px; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
  .vpl-item { flex-direction: column; min-width: 160px; text-align: center; align-items: center; }
  .vpl-thumb { width: 100%; height: 90px; }
}
@media (max-width: 600px) {
  .logo-intro-wave span { font-size: clamp(2.2rem, 13vw, 4rem); }
  /* OST 썸네일 — 모바일에서 flex 균등 분배 */
  .ost-video-row { gap: 8px; }
  .ost-thumb-item { width: calc(50% - 4px); flex: 0 0 calc(50% - 4px); }
  .ost-thumb-item img { height: auto; aspect-ratio: 16/9; }
}

/* ===================================================
   v2 ADDITIONS — Hero Slider · Project Blocks ·
   Photo Gallery · Lightbox · New UI Components
   =================================================== */

/* -------- Hero Background Slider -------- */
.hero-bg-slider {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-bg-slide.active { opacity: 1; }

/* -------- YouTube Nav Button -------- */
.nav-yt {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(255,0,0,0.3);
}
.nav-yt:hover { transform: scale(1.1); box-shadow: 0 4px 20px rgba(255,0,0,0.5); }

/* -------- About Photo Stack -------- */
.about-visual { display: flex; flex-direction: column; gap: 20px; }
.about-photo-stack { display: flex; flex-direction: column; gap: 10px; }
.photo-stack-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-stack-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;  /* 잘림 없이 전체 이미지 표시 */
  object-position: center center;
  background: #0d1220;
  display: block;
  transition: transform 0.5s ease;
}
.photo-stack-main:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 20px 16px 10px;
}
.photo-caption span { display: block; font-size: 0.85rem; font-weight: 600; color: #fff; }
.photo-caption em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.7); font-family: 'Noto Sans KR', sans-serif; }
.photo-stack-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-stack-sub img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;  /* 잘림 없이 전체 이미지 표시 */
  object-position: center center;
  background: #0d1220;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.4s ease, border-color 0.3s;
}
.photo-stack-sub img:hover { transform: scale(1.03); border-color: var(--border-hover); }

/* -------- About Social Row -------- */
.about-social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-yt {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,0,0,0.25);
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 22px; font-size: 0.82rem; border-radius: 50px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition);
}
.btn-yt:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,0,0,0.45); }
.btn-yt i { margin-right: 6px; }

/* -------- Project Block (new layout) -------- */
.project-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 40px;
  transition: border-color 0.3s;
}
.project-block:hover { border-color: var(--border-hover); }
.project-block-header { margin-bottom: 28px; }
.project-block-header h3 { margin: 10px 0 12px; }
.project-block-header h3 span { display: block; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.project-block-header h3 em { display: block; font-style: normal; font-size: 0.88rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; margin-top: 4px; }
.project-media-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.project-yt-col { display: flex; flex-direction: column; gap: 12px; }
.project-photo-col { display: flex; flex-direction: column; gap: 14px; }
.project-stat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(99,102,241,0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.stat-chip i { color: var(--accent-1); }
.project-news-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------- Project Photo Grid -------- */
.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.proj-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.proj-img-wrap.large {
  grid-column: span 2;
}
.proj-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;  /* 잘림 없이 전체 이미지 */
  object-position: center center;
  background: #0d1220;
  display: block;
  transition: transform 0.4s ease;
}
.proj-img-wrap.large img {
  aspect-ratio: 4/3;
  height: auto;
  object-fit: contain;
  background: #0d1220;
}
.proj-img-wrap:hover img { transform: scale(1.06); }
.img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 16px 10px 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-img-wrap:hover .img-overlay { opacity: 1; }
.img-overlay span { display: block; font-size: 0.78rem; font-weight: 600; color: #fff; }
.img-overlay em { font-style: normal; font-size: 0.68rem; color: rgba(255,255,255,0.7); font-family: 'Noto Sans KR', sans-serif; }

/* -------- Mini Card (new with image) -------- */
.projects-mini-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 8px; }
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.mini-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.mini-img-wrap { width: 100%; height: auto; aspect-ratio: 16/9; overflow: hidden; }
.mini-img-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #0d1220; transition: transform 0.4s; }
.mini-card:hover .mini-img-wrap img { transform: scale(1.07); }
.mini-card-body { padding: 16px; }
.project-tag.small { font-size: 0.65rem; padding: 2px 10px; margin-bottom: 8px; display: inline-block; }
.mini-card-body h4 { margin-bottom: 6px; }
.mini-card-body h4 span { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.mini-card-body h4 em { display: block; font-style: normal; font-size: 0.72rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; margin-top: 2px; }
.mini-card-body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; font-family: 'Noto Sans KR', sans-serif; }

/* -------- Gallery Section -------- */
.gallery-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.gtab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.gtab:hover { border-color: var(--border-hover); color: var(--text-primary); }
.gtab.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

/* Gallery Masonry Grid */
.gallery-grid {
  columns: 4;
  column-gap: 14px;
  transition: all 0.4s;
  width: 100%;
}
.g-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.g-item.hidden { display: none; }
.g-item:hover { border-color: var(--border-hover); box-shadow: 0 8px 30px rgba(99,102,241,0.2); }
.g-item img {
  width: 100%;
  height: auto;
  object-fit: contain;  /* 잘림 없이 전체 이미지 */
  object-position: center center;
  background: #0d1220;
  display: block;
  transition: transform 0.5s ease;
}
.g-item-wide { column-span: none; } /* handled via tall image */
.g-item-tall img { height: auto; }
.g-item:hover img { transform: scale(1.05); }
.g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,9,20,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-overlay p { font-size: 0.88rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.g-overlay em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.7); font-family: 'Noto Sans KR', sans-serif; margin-top: 3px; display: block; }

/* -------- Lightbox -------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lb-img-wrap { max-width: 90vw; max-height: 78vh; }
.lb-img-wrap img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 80px rgba(0,0,0,0.7); }
.lb-caption { margin-top: 16px; text-align: center; color: var(--text-secondary); font-size: 0.88rem; font-family: 'Noto Sans KR', sans-serif; }
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  z-index: 9995;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(99,102,241,0.5); border-color: var(--accent-1); }

/* -------- Contact Social Buttons -------- */
.contact-social { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
.social-btn.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; box-shadow:0 4px 16px rgba(220,39,67,.3); }
.social-btn.instagram:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(220,39,67,.5); }
.social-btn.youtube { background: #ff0000; color:#fff; box-shadow:0 4px 16px rgba(255,0,0,.3); }
.social-btn.youtube:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(255,0,0,.5); }
.social-btn i { font-size: 1.1rem; }

/* -------- Client Full Image -------- */
.client-full-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}
.client-full-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.client-full-image:hover img { transform: scale(1.015); }

/* -------- Client Category Cards -------- */
.client-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.client-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.client-cat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.cat-icon {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  margin-bottom: 16px;
}
.client-cat-card h4 { margin-bottom: 14px; }
.client-cat-card h4 span { display: block; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.client-cat-card h4 em { display: block; font-style: normal; font-size: 0.78rem; color: var(--accent-2); font-family: 'Noto Sans KR', sans-serif; }
.client-cat-card ul { display: flex; flex-direction: column; gap: 8px; }
.client-cat-card ul li { font-size: 0.85rem; color: var(--text-muted); font-family: 'Noto Sans KR', sans-serif; padding-left: 14px; position: relative; }
.client-cat-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent-1); font-size: 0.75rem; }

/* -------- Project Info Card -------- */
.project-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
}
.info-card-icon {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  margin-bottom: 16px;
}
.project-info-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }

/* -------- Responsive v2 -------- */
@media (max-width: 1024px) {
  .gallery-grid { columns: 3; }
  .project-media-row { grid-template-columns: 1fr; }
  .projects-mini-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .client-categories { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
  .project-block { padding: 24px; }
  .project-photo-grid { grid-template-columns: repeat(2,1fr); }
  .proj-img-wrap.large { grid-column: span 2; }
  .projects-mini-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-stack { display: none; }
  .about-visual .connection-map { display: block; }
  .client-categories { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .project-photo-grid { grid-template-columns: 1fr !important; }
  .proj-img-wrap.large { grid-column: span 1 !important; }
  .projects-mini-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .client-categories { grid-template-columns: 1fr; }
}

/* ===================================================
   SLIDER COMPONENTS — 프로젝트 카드 슬라이더 · 갤러리 · 비디오
   =================================================== */

/* ── 프로젝트 카드 슬라이더 ── */
.proj-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 0 16px;
}
.proj-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 12px;
  cursor: grab;
}
.proj-slider::-webkit-scrollbar { display: none; }
.proj-slider.grabbing { cursor: grabbing; }

/* 프로젝트 카드 */
.proj-card {
  flex: 0 0 300px;
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.proj-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.proj-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;  /* 잘림 없이 전체 이미지 표시 */
  object-position: center center;
  background: #0d1220;
  display: block;
  transition: transform 0.4s;
}
.proj-card:hover .proj-card-thumb img { transform: scale(1.05); }
.proj-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(99,102,241,0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.proj-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.proj-card-body .project-tag { margin-bottom: 0; font-size: 0.68rem; }
.proj-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.proj-card-body h3 em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  font-family: 'Noto Sans KR', sans-serif;
}
.proj-card-body p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
}
.proj-card-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.proj-card-chips span {
  font-size: 0.68rem;
  padding: 3px 10px;
  background: rgba(99,102,241,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.proj-card-chips span i { color: var(--accent-1); }

/* 카드 내 이미지 미니 슬라이더 */
.proj-img-slider {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 4px;
}
.proj-img-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 4px;
}
.proj-img-track::-webkit-scrollbar { display: none; }
.proj-img-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.proj-img-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.proj-card-links {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.proj-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(99,102,241,0.1);
  border: 1px solid var(--border);
  color: var(--accent-1);
  transition: var(--transition);
  text-decoration: none;
}
.proj-link-btn:hover { background: rgba(99,102,241,0.2); border-color: var(--accent-1); }
.proj-link-btn.news { background: rgba(245,158,11,0.08); color: var(--accent-2); border-color: rgba(245,158,11,0.2); }
.proj-link-btn.news:hover { background: rgba(245,158,11,0.15); border-color: var(--accent-2); }

/* 슬라이더 버튼 */
.proj-slider-btn {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.proj-slider-btn:hover { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.proj-slider-btn.prev { left: -6px; }
.proj-slider-btn.next { right: -6px; }

/* 슬라이더 도트 인디케이터 */
.proj-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 16px;
}
.proj-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.proj-dot.active {
  background: var(--accent-1);
  width: 22px;
  border-radius: 4px;
}

/* ── 갤러리 가로 스크롤 ── */
.gallery-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 16px;
  cursor: grab;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll.grabbing { cursor: grabbing; }

.gs-item {
  flex: 0 0 200px;
  min-width: 200px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.gs-item.gs-wide {
  flex: 0 0 300px;
  min-width: 300px;
}
.gs-item:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.gs-item.gs-hidden { display: none; }

.gs-item img {
  width: 100%;
  aspect-ratio: 4/3;
  /* contain: 이미지 전체 표시, 잘림 없음, 빈 여백은 배경색 */
  object-fit: contain;
  object-position: center center;
  background: #0d1220;
  display: block;
  transition: transform 0.4s;
}
.gs-item:hover img { transform: scale(1.05); }

.gs-caption {
  padding: 8px 10px;
  background: var(--bg-card);
}
.gs-caption p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.gs-caption em {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  display: block;
  margin-top: 2px;
}

/* ── Videos 가로 스크롤 ── */
.vc-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.vc-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 16px;
  cursor: grab;
}
.vc-scroll::-webkit-scrollbar { display: none; }
.vc-scroll.grabbing { cursor: grabbing; }

.vc-scroll .vc-card {
  flex: 0 0 240px;
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
}

/* 모바일에서 카드 크기 조정 */
@media (max-width: 768px) {
  .proj-card { flex: 0 0 260px; min-width: 260px; max-width: 260px; }
  .gs-item { flex: 0 0 160px; min-width: 160px; }
  .gs-item.gs-wide { flex: 0 0 240px; min-width: 240px; }
  .vc-scroll .vc-card { flex: 0 0 200px; min-width: 200px; max-width: 200px; }
  .proj-slider-btn { display: none; }
}
@media (max-width: 480px) {
  .proj-card { flex: 0 0 calc(85vw); min-width: calc(85vw); max-width: calc(85vw); }
  .gs-item { flex: 0 0 140px; min-width: 140px; }
  .gs-item.gs-wide { flex: 0 0 200px; min-width: 200px; }
  .vc-scroll .vc-card { flex: 0 0 170px; min-width: 170px; max-width: 170px; }
  .proj-slider { padding: 6px 2px 10px; gap: 12px; }
  .gallery-scroll { gap: 8px; }
  .vc-scroll { gap: 10px; }
}

/* ===================================================
   VIDEO POPUP MODAL
   =================================================== */

/* hero-video-layer wrapper */
.hero-video-layer {
  position: absolute; inset: 0; z-index: 1;
}

/* ── 모달 전체 오버레이 ── */
/* ===== VIDEO MODAL (iframe 없음 — 오류 153 완전 차단) ===== */
.video-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.video-modal.open { opacity: 1; pointer-events: all; }

.vm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

/* 모달 박스 */
.vm-box {
  position: relative;
  width: min(780px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 22px;
  box-shadow: 0 32px 96px rgba(0,0,0,0.75), 0 0 0 1px rgba(99,102,241,0.18);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.video-modal.open .vm-box { transform: translateY(0) scale(1); }
.vm-box::-webkit-scrollbar { width: 4px; }
.vm-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* 닫기 버튼 (우상단 절대 위치) */
.vm-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.vm-close:hover { border-color: var(--accent-1); background: rgba(99,102,241,0.35); }

/* ── 피처드 썸네일 영역 ── */
.vm-feature { width: 100%; }
.vm-feature-thumb {
  position: relative;
  width: 100%;
  padding-top: 52%;           /* 약 ~16:8.3 비율 */
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #000;
}
.vm-feature-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.vm-feature-thumb:hover img { transform: scale(1.03); }

/* 오버레이 그라디언트 */
.vm-feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 28px 24px;
  gap: 16px;
}

/* 태그·제목·서브 */
.vm-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 20px; padding: 3px 11px;
  margin-bottom: 6px;
}
.vm-title {
  font-size: 1.35rem; font-weight: 800;
  color: #fff; line-height: 1.25; margin-bottom: 4px;
}
.vm-sub { font-size: 0.82rem; color: rgba(255,255,255,0.65); font-family: 'Noto Sans KR', sans-serif; }

/* ── YouTube 바로 보기 버튼 (핵심!) ── */
.vm-watch-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(255,0,0,0.4);
}
.vm-watch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,0,0,0.6); }
.vm-watch-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.vm-watch-text { flex: 1; }
.vm-watch-text strong { display: block; font-size: 0.95rem; font-weight: 800; color: #fff; }
.vm-watch-text em { font-style: normal; font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.vm-watch-arrow { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ── 재생목록 ── */
.vm-playlist {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}
.vm-playlist-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.vm-pl-list { display: flex; flex-direction: column; gap: 4px; }
.vm-pl-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer; text-align: left;
  transition: var(--transition); width: 100%;
}
.vm-pl-item:hover { background: var(--bg-card-hover); border-color: var(--border); }
.vm-pl-item.active { background: rgba(99,102,241,0.1); border-color: var(--accent-1); }
.vm-pl-num {
  font-size: 0.65rem; font-weight: 800; color: var(--text-muted);
  width: 22px; text-align: center; flex-shrink: 0;
}
.vm-pl-item.active .vm-pl-num { color: var(--accent-1); }
.vm-pl-item img {
  width: 86px; height: 50px;
  object-fit: cover; border-radius: 7px;
  flex-shrink: 0; display: block;
  transition: opacity 0.2s;
}
.vm-pl-item:hover img { opacity: 0.9; }
.vm-pl-meta { flex: 1; min-width: 0; }
.vm-pl-meta strong {
  display: block; font-size: 0.86rem; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.vm-pl-meta em {
  font-style: normal; font-size: 0.72rem; color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.vm-pl-yt {
  color: #ff4444; font-size: 1rem; flex-shrink: 0; opacity: 0.6;
  transition: opacity 0.2s;
}
.vm-pl-item:hover .vm-pl-yt { opacity: 1; }

/* ── 모달 반응형 ── */
@media (max-width: 600px) {
  .video-modal { align-items: flex-end; }
  .vm-box { width: 100vw; max-height: 94dvh; border-radius: 20px 20px 0 0; }
  .vm-feature-thumb { padding-top: 56%; border-radius: 20px 20px 0 0; }
  .vm-feature-overlay { padding: 20px 16px 18px; }
  .vm-title { font-size: 1.1rem; }
  .vm-watch-btn { padding: 11px 14px; gap: 10px; }
  .vm-watch-icon { width: 38px; height: 38px; font-size: 1.2rem; }
  .vm-watch-text strong { font-size: 0.88rem; }
  .vm-playlist { padding: 14px 14px 18px; }
  .vm-pl-item { padding: 8px 10px; }
  .vm-pl-item img { width: 72px; height: 42px; }
  .vm-pl-num { display: none; }
}

/* ===== VIDEO CARD GRID (OUR CONTENT 섹션) ===== */
.vc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 48px;
}
/* 피처드 카드: 첫 번째 카드가 2열 span */
.vc-card-featured {
  grid-column: span 2;
}

.vc-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.vc-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-1);
  box-shadow: 0 16px 40px rgba(99,102,241,0.2);
}

/* 썸네일 */
.vc-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.vc-card-featured .vc-thumb { padding-top: 52%; }
.vc-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s;
}
.vc-card:hover .vc-thumb::after { background: rgba(0,0,0,0.05); }

/* 재생 아이콘 오버레이 */
.vc-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.vc-play i {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff;
  box-shadow: 0 4px 24px rgba(255,0,0,0.5);
}
.vc-card-featured .vc-play i { width: 80px; height: 80px; font-size: 2rem; }
.vc-card:hover .vc-play { opacity: 1; }

/* 배지 */
.vc-duration {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.75);
  color: rgba(255,255,255,0.9);
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: 0.04em;
}

/* 정보 영역 */
.vc-info {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.vc-card-featured .vc-info { padding: 18px 22px 22px; }
.vc-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--accent-1);
}
.vc-info h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.3;
}
.vc-card-featured .vc-info h4 { font-size: 1.15rem; }
.vc-info p {
  font-size: 0.8rem; color: var(--text-secondary);
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.5; flex: 1;
}
.vc-yt-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700;
  color: #ff4444;
  margin-top: 4px;
}
.vc-yt-label i { font-size: 0.9rem; }
.vc-card:hover .vc-yt-label { color: #ff2222; }

/* 반응형 */
@media (max-width: 900px) {
  .vc-grid { grid-template-columns: 1fr 1fr; }
  .vc-card-featured { grid-column: span 2; }
}
@media (max-width: 560px) {
  .vc-grid { grid-template-columns: 1fr; gap: 14px; }
  .vc-card-featured { grid-column: span 1; }
  .vc-play i { width: 52px; height: 52px; font-size: 1.3rem; }
}


/* =====================================================================
   GALLERY FULLSCREEN SLIDER  v3  — 완전 모바일 퍼스트 재설계
   우→좌 슬라이드 전환 · 켄번스 줌 · 자동재생 · 반응형
   ===================================================================== */

/* ── 전체 래퍼 ── */
.gfs-section {
  position: relative;
  width: 100%;
  /* 모든 브라우저 대응: dvh > svh > 100vh 순서 */
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 480px;
  max-height: 100vmax; /* 가로 모드에서 너무 커지는 것 방지 */
  background: #05080f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  /* iOS 홈바 영역 대응 */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ──────────────────────────────────────────────
   GFS Topbar
────────────────────────────────────────────── */
.gfs-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px 16px;
  background: linear-gradient(180deg, rgba(5,8,15,0.9) 0%, rgba(5,8,15,0) 100%);
  /* 노치 안전 영역 */
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  /* iOS 노치 상단 */
  padding-top: max(14px, env(safe-area-inset-top));
}

/* 브랜드 */
.gfs-brand {
  display: flex; flex-direction: column;
  line-height: 1.15; flex-shrink: 0;
  margin-right: 4px;
}
.gfs-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.75rem, 2.5vw, 1.05rem);
  font-weight: 800; letter-spacing: 0.1em;
  background: linear-gradient(135deg, #6366f1, #a855f7, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; white-space: nowrap;
}
.gfs-logo-sub {
  font-size: 0.5rem; font-weight: 600;
  color: rgba(255,255,255,0.35); letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap;
}

/* 필터 탭 — 가로 스크롤 */
.gfs-tabs {
  display: flex; gap: 5px;
  flex: 1 1 auto;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; scrollbar-height: none;
  padding-bottom: 0;
}
.gfs-tabs::-webkit-scrollbar { display: none; }
.gfs-tab {
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  padding: 5px 14px; border-radius: 999px;
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.22s;
  white-space: nowrap; scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gfs-tab:hover  { background: rgba(99,102,241,0.22); border-color: rgba(99,102,241,0.5); color: #fff; }
.gfs-tab.active { background: linear-gradient(135deg,#6366f1,#a855f7); border-color: transparent; color: #fff; }

/* 카운터 */
.gfs-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
  white-space: nowrap; flex-shrink: 0;
  margin-left: 4px;
}

/* 상단 nav 링크 (PC 전용) */
.gfs-nav-links {
  display: none; /* 기본 숨김, PC에서만 표시 */
  gap: 16px; align-items: center; flex-shrink: 0; margin-left: 8px;
}
.gfs-nav-links a {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45); text-transform: uppercase;
  transition: color 0.2s; white-space: nowrap;
}
.gfs-nav-links a:hover { color: #fff; }

/* ──────────────────────────────────────────────
   슬라이드 트랙
────────────────────────────────────────────── */
.gfs-track-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.gfs-track-wrap:active { cursor: grabbing; }
.gfs-track {
  position: absolute;
  inset: 0;
}

/* 슬라이드 */
.gfs-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: translateX(100%);
  will-change: transform, opacity;
  pointer-events: none;
  background: #050810; /* contain 모드 여백 배경 */
}
.gfs-slide.gfs-active {
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ── 슬라이드 배경 컨테이너 ── */
.gfs-slide-bg {
  position: absolute;
  inset: 0;
  background: #05080f;  /* 이미지 로딩 전 배경색 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 핵심: <img> 태그로 이미지 표시 — PC/모바일 모두 잘림 없음 ── */
.gfs-slide-img {
  /* contain: 이미지 전체가 항상 보임, 잘림 없음 */
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  animation: gfsKenBurns 8s ease-out forwards;
  will-change: transform;
  /* 드래그 방지 */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* 켄번스 애니메이션 */
@keyframes gfsKenBurns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.0); }
}

/* 그라디언트 오버레이 — img 위에 ::after 불가, 별도 div로 */
.gfs-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5,8,15,0.25) 0%,
      rgba(5,8,15,0.0)  30%,
      rgba(5,8,15,0.55) 72%,
      rgba(5,8,15,0.85) 100%
    ),
    linear-gradient(90deg,
      rgba(5,8,15,0.28) 0%,
      rgba(5,8,15,0.0)  42%
    );
  pointer-events: none;
  z-index: 1;
}

/* 캡션·화살표·도트는 오버레이 위에 */
.gfs-caption-box,
.gfs-arrow,
.gfs-dots,
.gfs-autoplay-btn,
.gfs-scroll-hint {
  z-index: 20;
}

/* 모바일: 켄번스만 약하게 */
@media (max-width: 767px) {
  .gfs-slide-img {
    animation: gfsKenBurnsMobile 7s ease-out forwards;
  }
  @keyframes gfsKenBurnsMobile {
    0%   { transform: scale(1.02); }
    100% { transform: scale(1.0); }
  }
}

/* ──────────────────────────────────────────────
   좌우 화살표
────────────────────────────────────────────── */
.gfs-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 20;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 0.95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all 0.22s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gfs-arrow:hover, .gfs-arrow:active {
  background: rgba(99,102,241,0.45);
  border-color: rgba(99,102,241,0.75);
  transform: translateY(-50%) scale(1.1);
}
.gfs-prev { left: 16px; }
.gfs-next { right: 16px; }

/* ──────────────────────────────────────────────
   캡션 오버레이
────────────────────────────────────────────── */
.gfs-caption-box {
  position: absolute;
  /* 썸네일 스트립(약 68px) + 여유 = 기본 bottom */
  bottom: 108px;
  left: 28px; right: 28px;
  z-index: 20;
  pointer-events: none;
}
.gfs-cap-tag {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #a855f7;
  margin-bottom: 6px;
  opacity: 1; transition: opacity 0.35s;
}
.gfs-cap-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 800; line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
  margin-bottom: 6px;
  opacity: 1; transform: translateY(0);
}
.gfs-cap-sub {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(0.72rem, 2.5vw, 0.88rem);
  color: rgba(255,255,255,0.68);
  opacity: 1; transform: translateY(0);
  line-height: 1.5;
}

/* 확대보기 버튼 */
.gfs-expand-btn {
  pointer-events: auto;
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.45);
  color: rgba(255,255,255,0.82);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  cursor: pointer; transition: all 0.22s;
  touch-action: manipulation;
}
.gfs-expand-btn:hover { background: rgba(99,102,241,0.48); color: #fff; }

/* ──────────────────────────────────────────────
   진행바
────────────────────────────────────────────── */
.gfs-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 25;
}
.gfs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #f59e0b);
  width: 0%;
}

/* ──────────────────────────────────────────────
   자동재생 버튼
────────────────────────────────────────────── */
.gfs-autoplay-btn {
  position: absolute;
  bottom: 72px; right: 18px; z-index: 22;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 0.72rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: all 0.22s;
  touch-action: manipulation;
}
.gfs-autoplay-btn:hover, .gfs-autoplay-btn:active { background: rgba(99,102,241,0.38); }

/* ──────────────────────────────────────────────
   스크롤 다운 힌트
────────────────────────────────────────────── */
.gfs-scroll-hint {
  position: absolute;
  bottom: 115px; right: 22px; z-index: 22;
}
.gfs-scroll-hint a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.38);
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  animation: gfsScrollBounce 2.4s ease-in-out infinite;
  transition: color 0.2s;
}
.gfs-scroll-hint a:hover { color: rgba(255,255,255,0.75); }
.gfs-scroll-hint i { font-size: 0.85rem; }
@keyframes gfsScrollBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(8px); }
}

/* ──────────────────────────────────────────────
   도트 인디케이터
────────────────────────────────────────────── */
.gfs-dots {
  position: absolute;
  bottom: 75px; left: 50%; transform: translateX(-50%);
  z-index: 22;
  display: flex; gap: 6px; align-items: center;
  pointer-events: none; /* 썸네일 스트립이 있으므로 터치 막지 않게 */
}
.gfs-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s;
  pointer-events: auto;
}
.gfs-dot.gfs-dot-active {
  background: #6366f1;
  width: 18px; border-radius: 3px;
  box-shadow: 0 0 8px rgba(99,102,241,0.65);
}

/* ──────────────────────────────────────────────
   썸네일 스트립
────────────────────────────────────────────── */
.gfs-strip-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 22;
  background: linear-gradient(0deg, rgba(5,8,15,0.92) 0%, rgba(5,8,15,0) 100%);
  padding-top: 18px;
  /* iOS 홈바 대응 */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.gfs-strip {
  display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 0 16px 12px;
  cursor: grab;
}
.gfs-strip::-webkit-scrollbar { display: none; }
.gfs-strip.grabbing { cursor: grabbing; }

/* 썸네일 아이템 */
.gfs-thumb {
  flex-shrink: 0;
  width: 80px; height: 52px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.22s;
  scroll-snap-align: start;
  opacity: 0.5; background: none; padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gfs-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; display: block;
}
.gfs-thumb:hover { opacity: 0.82; border-color: rgba(255,255,255,0.3); }
.gfs-thumb.gfs-thumb-active {
  border-color: #6366f1;
  opacity: 1;
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 0 10px rgba(99,102,241,0.55);
}

/* ──────────────────────────────────────────────
   라이트박스
────────────────────────────────────────────── */
.gfs-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(0,0,0,0.96);
  align-items: center; justify-content: center;
}
.gfs-lightbox.gfs-lb-open { display: flex; }
.gfs-lb-img-wrap {
  position: relative; z-index: 1;
  max-width: min(92vw, 1200px); max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.gfs-lb-img-wrap img {
  max-width: 100%; max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain; border-radius: 8px; display: block;
}
.gfs-lb-close, .gfs-lb-prev, .gfs-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s; z-index: 2;
  touch-action: manipulation;
}
.gfs-lb-close  { top: 16px; right: 16px; width: 42px; height: 42px; font-size: 1rem; }
.gfs-lb-prev, .gfs-lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1rem; }
.gfs-lb-prev { left: 12px; }
.gfs-lb-next { right: 12px; }
.gfs-lb-close:hover,.gfs-lb-prev:hover,.gfs-lb-next:hover,
.gfs-lb-close:active,.gfs-lb-prev:active,.gfs-lb-next:active {
  background: rgba(99,102,241,0.5); border-color: rgba(99,102,241,0.8);
}
.gfs-lb-cap {
  position: fixed;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.65); font-size: 0.82rem;
  text-align: center; max-width: 85vw;
  font-family: 'Noto Sans KR', sans-serif; z-index: 2;
  line-height: 1.5;
}

/* galleryGrid 섹션 구분 */
#galleryGrid { padding-top: 80px; }

/* ================================================================
   GFS 반응형 — 모바일 퍼스트
   ================================================================ */

/* ─── PC (≥1200px) — 데스크톱 풀 버전 ─── */
@media (min-width: 1200px) {
  .gfs-topbar { padding: 18px 36px 22px; gap: 14px; }
  .gfs-nav-links { display: flex; }
  .gfs-counter { display: block; }
  .gfs-caption-box { bottom: 120px; left: 44px; right: 130px; }
  .gfs-cap-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
  .gfs-dots { bottom: 86px; }
  .gfs-autoplay-btn { bottom: 78px; right: 26px; width: 38px; height: 38px; }
  .gfs-scroll-hint { display: block; bottom: 120px; right: 28px; }
  .gfs-strip { padding: 0 24px 18px; }
  .gfs-thumb { width: 88px; height: 58px; }
  .gfs-arrow { width: 52px; height: 52px; }
  .gfs-prev { left: 22px; }
  .gfs-next { right: 22px; }
  .gfs-expand-btn { display: inline-flex; }
}

/* ─── 태블릿 (768px – 1199px) ─── */
@media (min-width: 768px) and (max-width: 1199px) {
  .gfs-topbar { padding: 16px 28px 18px; gap: 10px; }
  .gfs-nav-links { display: none; }
  .gfs-counter { display: block; font-size: 0.7rem; }
  .gfs-caption-box { bottom: 112px; left: 32px; right: 80px; }
  .gfs-cap-title { font-size: clamp(1.2rem, 3vw, 1.7rem); }
  .gfs-dots { bottom: 80px; }
  .gfs-autoplay-btn { bottom: 72px; right: 20px; }
  .gfs-scroll-hint { display: none; }
  .gfs-arrow { width: 44px; height: 44px; }
  .gfs-thumb { width: 72px; height: 46px; }
  .gfs-expand-btn { display: inline-flex; }
}

/* ─── 모바일 세로 (< 768px) — 핵심 모바일 최적화 ─── */
@media (max-width: 767px) {
  /* 전체 높이: dynamic viewport — 주소표시줄 포함/제외 자동 */
  .gfs-section {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 500px;
  }

  /* topbar: 2줄 구조 */
  .gfs-topbar {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px 8px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 6px;
    background: linear-gradient(180deg,
      rgba(5,8,15,0.96) 0%,
      rgba(5,8,15,0.6) 75%,
      transparent 100%
    );
  }
  /* 브랜드 — 1줄 */
  .gfs-brand {
    flex-direction: row; align-items: center;
    gap: 5px; flex: 0 0 auto;
  }
  .gfs-logo { font-size: 0.8rem; }
  .gfs-logo-sub { display: none; }

  /* 카운터 오른쪽 */
  .gfs-counter { font-size: 0.65rem; margin-left: auto; }

  /* 탭 — 두 번째 줄 전체 너비 */
  .gfs-tabs {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
    gap: 4px;
    padding: 0 0 2px;
  }
  .gfs-tab { font-size: 0.62rem; padding: 4px 11px; }

  /* nav 링크 숨김 */
  .gfs-nav-links { display: none !important; }

  /* 화살표 */
  .gfs-arrow { width: 36px; height: 36px; font-size: 0.8rem; backdrop-filter: none; }
  .gfs-prev  { left: 8px; }
  .gfs-next  { right: 8px; }

  /* 캡션 위치 — 썸네일 위 */
  .gfs-caption-box {
    bottom: 80px;
    left: 12px; right: 12px;
  }
  .gfs-cap-tag   { font-size: 0.56rem; margin-bottom: 4px; }
  .gfs-cap-title { font-size: clamp(0.95rem, 4.5vw, 1.3rem); margin-bottom: 3px; }
  .gfs-cap-sub   { font-size: clamp(0.68rem, 3vw, 0.8rem); }
  .gfs-expand-btn { display: none; }

  /* 도트 */
  .gfs-dots { bottom: 62px; gap: 5px; }
  .gfs-dot { width: 5px; height: 5px; }
  .gfs-dot.gfs-dot-active { width: 15px; }

  /* 자동재생 버튼 */
  .gfs-autoplay-btn { bottom: 56px; right: 8px; width: 28px; height: 28px; font-size: 0.6rem; }

  /* 스크롤 힌트 */
  .gfs-scroll-hint { display: none; }

  /* 썸네일 스트립 */
  .gfs-strip-wrap { padding-top: 0; }
  .gfs-strip {
    padding: 5px 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 4px;
  }
  .gfs-thumb { width: 58px; height: 38px; border-radius: 5px; border-width: 2px; }
  .gfs-thumb.gfs-thumb-active { transform: scale(1.04); }

  /* 진행바 */
  .gfs-progress-bar { height: 2px; }
}

/* ─── 소형 모바일 (< 480px) ─── */
@media (max-width: 479px) {
  .gfs-section { min-height: 460px; }
  .gfs-topbar { padding: 8px 10px 6px; padding-top: max(8px, env(safe-area-inset-top)); }
  .gfs-brand { display: none; }  /* 탭 공간 확보 */
  .gfs-counter { margin-left: auto; }
  .gfs-tab { font-size: 0.58rem; padding: 3px 9px; }

  .gfs-arrow { width: 30px; height: 30px; font-size: 0.72rem; }
  .gfs-prev  { left: 4px; }
  .gfs-next  { right: 4px; }

  .gfs-caption-box { bottom: 72px; left: 8px; right: 8px; }
  .gfs-cap-title { font-size: clamp(0.85rem, 5vw, 1.1rem); }
  .gfs-cap-sub   { font-size: 0.65rem; }

  .gfs-dots { bottom: 54px; gap: 4px; }
  .gfs-dot { width: 4px; height: 4px; }
  .gfs-dot.gfs-dot-active { width: 12px; }

  .gfs-autoplay-btn { bottom: 48px; right: 6px; width: 24px; height: 24px; font-size: 0.55rem; }

  .gfs-thumb { width: 50px; height: 33px; border-radius: 4px; }
  .gfs-strip { padding: 4px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); gap: 3px; }
}

/* ─── 가로 모드 (Landscape) ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .gfs-section { height: 100svh; min-height: 280px; max-height: 100svh; }
  .gfs-topbar { padding: 5px 12px 4px; flex-wrap: nowrap; }
  .gfs-tabs { display: none; }   /* 가로 모드 탭 숨김 */
  .gfs-brand { display: flex; }
  .gfs-counter { display: block; }
  .gfs-caption-box { bottom: 46px; left: 10px; right: 42px; }
  .gfs-cap-title { font-size: clamp(0.8rem, 3vw, 1rem); }
  .gfs-cap-sub   { font-size: 0.62rem; }
  .gfs-dots { bottom: 32px; gap: 4px; }
  .gfs-dot { width: 5px; height: 5px; }
  .gfs-dot.gfs-dot-active { width: 14px; }
  .gfs-autoplay-btn { bottom: 26px; right: 8px; width: 24px; height: 24px; font-size: 0.55rem; }
  .gfs-thumb { width: 52px; height: 33px; }
  .gfs-strip { padding: 3px 8px 6px; gap: 3px; }
  .gfs-arrow { width: 32px; height: 32px; font-size: 0.75rem; }
  .gfs-progress-bar { height: 2px; }
  .gfs-strip-wrap { padding-top: 0; }
}

/* ─── Lightbox 모바일 ─── */
@media (max-width: 767px) {
  .gfs-lb-prev { left: 4px; }
  .gfs-lb-next { right: 4px; }
  .gfs-lb-prev, .gfs-lb-next { width: 38px; height: 38px; font-size: 0.88rem; }
  .gfs-lb-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 0.9rem; }
  .gfs-lb-cap { font-size: 0.75rem; bottom: 12px; max-width: 90vw; }
  .gfs-lb-img-wrap img { max-width: 96vw; max-height: 78vh; }
}
