/* ========================================
   Global / Reset / Variables
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #181818;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0ede8;
  --text-muted: rgba(240,237,232,0.45);
  --text-dim: rgba(240,237,232,0.25);
  --accent: #e8d5a3;
  --accent2: #a3c4e8;
  --red: #e87a6b;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}


/* ========================================
   Custom Cursor
======================================== */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(232,213,163,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 12px; height: 12px; }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring {
  width: 48px; height: 48px;
  border-color: rgba(232,213,163,0.7);
}

/* 터치 기기는 마우스가 없어 커서가 좌측 상단에 멈춰 보이므로 숨긴다 */
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}


/* ========================================
   Background Grain
======================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 100;
}


/* ========================================
   Header / Navigation
======================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 12px;
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  padding: 8px 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
}

/* 스크롤바 숨기기 */
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }


/* ========================================
   Hero / Viewfinder
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* 위 여백은 고정된 상단 메뉴 높이만큼 확보한다 (자리가 모자라면 hero가 늘어난다) */
  padding: 5.5rem 4.5rem 5rem;
  position: relative;
  overflow: hidden;
}


/* ── HERO: VIEWFINDER ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background: #080808;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 75% 40%, rgba(232,213,163,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 40% at 20% 70%, rgba(232,213,163,0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* Viewfinder center cross */
.hero-vf {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}


/* Center reticle - vertically centered on full viewport */
.vf-reticle {
  position: absolute;
  top: calc((5.5rem + 62%) / 2); left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border: 1px solid rgba(232,213,163,0.15);
  border-radius: 50%;
  z-index: 2;
}
.vf-reticle::before,
.vf-reticle::after {
  content: '';
  position: absolute;
  background: rgba(232,213,163,0.2);
}
.vf-reticle::before {
  width: 1px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.vf-reticle::after {
  width: 14px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* HUD text elements */
.vf-hud {
  position: absolute;
  font-family: 'DM Sans', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(232,213,163,0.45);
  pointer-events: none;
  z-index: 2;
}
.vf-hud.top-left    { top: 5.5rem;  left: 5rem; }
.vf-hud.top-right   { top: 5.5rem;  right: 5rem; text-align: right; }
/* 아래쪽 HUD 줄은 화면이 낮아져도 제목과 겹치지 않도록 최소 간격(23rem)을 지킨다.
   38%가 23rem보다 작아지는 순간부터 23rem으로 고정된다 */
.vf-hud.bot-left    { bottom: max(38%, 23rem); left: 5rem; }
.vf-hud.bot-right   { bottom: max(38%, 23rem); right: 5rem; text-align: right; }

.hero-proj-count {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  font-style: normal;
  color: rgba(232,213,163,0.55);
  vertical-align: super;
  margin-left: 0.3em;
  letter-spacing: 0;
}

.vf-hud span {
  display: block;
  line-height: 1.9;
}
.vf-hud .vf-val {
  color: rgba(232,213,163,0.75);
  font-weight: 400;
}

/* REC indicator */
.vf-rec {
  position: absolute;
  top: 5.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(220, 80, 60, 0.7);
  pointer-events: none;
  z-index: 2;
}
.vf-rec-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(220, 80, 60, 0.8);
  animation: rec-blink 1.4s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.1; }
}

/* Horizontal level line */
.vf-level {
  position: absolute;
  bottom: max(38%, 23rem); left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}
.vf-level-line {
  width: 60px; height: 1px;
  background: rgba(232,213,163,0.2);
}
.vf-level-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(232,213,163,0.4);
}

.vf-tc {
  position: absolute;
  bottom: calc(max(38%, 23rem) + 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232,213,163,0.3);
  pointer-events: none;
  z-index: 2;
}

/* Subtle vignette */
.vf-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 35%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-number {
  position: absolute;
  top: 38%;
  right: -0.05em;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(180px, 28vw, 320px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.eyebrow-line { width: 32px; height: 1px; background: var(--accent); }
.eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}
.hero-title em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 400;
}

.hero-sub {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 400px;
}

.hero-stats { display: flex; gap: 2.5rem; flex-shrink: 0; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}


/* ========================================
   Section Common
======================================== */
section {
  padding: 6rem 4.5rem;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}




/* ========================================
   Work
======================================== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-auto-rows: auto;
  gap: 8px;
}

/* 왼쪽 작은카드 2개 묶음 */
.wc-col-sm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* 패턴B 행: 왼쪽 큰 카드 1개 + 오른쪽 작은 카드 2개 */
.wc-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  grid-column: 1 / -1;
}

.work-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.work-card .work-thumb {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.work-card.wc-big .work-thumb {
  aspect-ratio: unset;
  height: 100%;
  position: absolute;
  inset: 0;
}

.work-card.wc-big {
  position: relative;
  height: 100%;
}

.work-hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; opacity: 0;
  transition: opacity 0.3s ease; z-index: 3;
}
.work-card:hover .work-hover { opacity: 1; }
.work-hover-cat    { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232,213,163,0.8); margin-bottom: 4px; }
.work-hover-title  { font-family: 'Syne',sans-serif; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; }
.work-hover-client { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 3px; }

.thumb-play {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  position: relative; z-index: 2; opacity: 0.6;
}
.work-card:hover .thumb-play {
  background: rgba(232,213,163,0.2);
  border-color: rgba(232,213,163,0.6);
  transform: scale(1.1); opacity: 1;
}
.thumb-play svg { margin-left: 3px; }

.work-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block; transition: transform 0.5s ease;
}
.work-card:hover .work-img { transform: scale(1.04); }

/* 터치 기기(휴대폰·태블릿)는 마우스 오버가 없으므로 제목을 처음부터 보여준다 */
@media (hover: none) {
  .work-hover { opacity: 1; }
}

/* 모바일 */
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .wc-row { grid-template-columns: 1fr; }
  .work-card.wc-big .work-thumb { aspect-ratio: 16/9; position: relative; inset: auto; height: auto; }
  .work-card.wc-big { height: auto; }
}


/* ========================================
   About
======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-text p strong { color: var(--text); font-weight: 400; }

.skills-block { margin-bottom: 2.5rem; }
.skills-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.skill-chip:hover { border-color: var(--border-hover); color: var(--text); }


/* ========================================
   Photo Marquee
======================================== */
.photo-marquee-wrap {
  overflow: hidden;
  margin: 3rem -4.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.photo-marquee-track {
  display: flex;
  gap: 16px;
  animation: photo-scroll 16s linear infinite;
  width: max-content;
}
.photo-marquee-track:hover { animation-play-state: paused; }
/* 사진 8장을 2벌 반복하는 구조라 정확히 절반만 움직여야 이어지는 자리가 티나지 않는다.
   다만 슬라이드 사이 gap(16px)은 맨 끝에는 없으므로, 절반보다 gap의 절반(8px)만큼 더 가야 딱 맞는다.
   -> 사진 벌 수나 gap 을 바꾸면 이 값도 같이 바꿔야 한다. */
@keyframes photo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}
.photo-slide {
  width: 280px;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.photo-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(232,213,163,0.04) 0%, rgba(0,0,0,0.45) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
}
.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.82) contrast(1.05) saturate(0.85);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.photo-slide:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) contrast(1.05) saturate(0.95);
}


/* ========================================
   Gear Marquee
======================================== */
.clients-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.clients-track {
  display: flex;
  gap: 3rem;
  animation: scroll-x 22s linear infinite;
}
.client-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.client-name:hover { color: var(--text-muted); }

@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ========================================
   Contact
======================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-big {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.contact-big em { font-style: italic; color: var(--accent); font-weight: 400; }

.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.75;
}

.contact-right { padding-top: 0.5rem; }
.contact-links { list-style: none; }

.contact-link-item { border-bottom: 1px solid var(--border); }
.contact-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.contact-link-item a:hover { color: var(--accent); }

.link-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.link-value { font-size: 15px; font-weight: 400; }
.link-arrow {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
}
.contact-link-item a:hover .link-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}


/* ========================================
   Footer
======================================== */
footer {
  padding: 2rem 4.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.footer-copy { font-size: 12px; color: var(--text-dim); }


/* ========================================
   Reveal Animation
======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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


/* ========================================
   Scroll To Top — 맨 위로 버튼
======================================== */
/* 평소에는 숨어 있다가, JS가 .visible 을 붙이면 나타난다 */
.to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
              background 0.2s ease, border-color 0.2s ease;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: rgba(232,213,163,0.18);
  border-color: rgba(232,213,163,0.6);
}
.to-top svg { display: block; }


/* ========================================
   Modal — 영상 팝업 / 에피소드 팝업
======================================== */
/* 평소에는 display:none, 열 때 JS가 display:flex 로 바꾼다 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}
.modal-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 단일 영상 팝업 */
#videoModal {
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.video-frame {
  position: relative;
  width: min(90vw, 1000px);
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
#videoModal .modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
}

/* 에피소드(여러 편) 팝업 */
#episodeModal {
  z-index: 9100;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 5vh 2rem;
}
.episode-inner {
  width: min(95vw, 1100px);
  cursor: default;
}
.episode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
#epCat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,213,163,0.6);
  margin-bottom: 6px;
}
#epTitle {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: #f0ede8;
}
#epClient {
  font-size: 13px;
  color: rgba(240,237,232,0.45);
  margin-top: 4px;
}
#episodeModal .modal-close {
  width: 44px; height: 44px;
}
#epGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* 모바일: 에피소드 목록을 세로 한 줄로 쌓는다 */
@media (max-width: 600px) {
  #episodeModal { padding: 0 1.25rem 4vh; }
  #epGrid { grid-template-columns: 1fr; }

  /* 세로로 쌓이면 목록이 길어지므로 제목·닫기 버튼을 위에 고정한다.
     배경 처리는 상단 메뉴(nav)와 동일하게 맞췄다 */
  .episode-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    margin-bottom: 0.75rem;
  }
}


/* ========================================
   Responsive
======================================== */
/* --- 세로(높이) 기준 ---
   첫 화면의 뷰파인더 HUD는 장식 요소다. 화면이 낮아지면 위·아래 HUD와 제목이
   서로 겹치므로, 자리가 부족해지는 순서대로 아래쪽부터 정리한다. */

/* 720px 이하 : 위·아래 HUD가 서로 닿기 시작 → 아래쪽 줄과 조준선을 숨긴다 */
@media (max-height: 720px) {
  .vf-hud.bot-left,
  .vf-hud.bot-right,
  .vf-tc,
  .vf-level,
  .vf-reticle { display: none; }
}

/* 520px 이하 (가로로 눕힌 휴대폰) : 남은 HUD도 숨기고 제목만 보여준다 */
@media (max-height: 520px) {
  .vf-hud,
  .vf-rec { display: none; }
  .hero { padding-bottom: 3rem; }
}

/* --- 가로(너비) 기준 --- */
@media (max-width: 900px) {
  nav { padding: 1rem 1.75rem; }
  .nav-links { display: none; }
  .hero { padding: 5rem 1.75rem 4rem; }
  .hero-sub { flex-direction: column; gap: 2rem; align-items: flex-start; }
  section { padding: 4rem 1.75rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .photo-marquee-wrap { margin: 3rem -1.75rem 0; }
  /* 손가락으로 누르는 크기라 44px 아래로는 줄이지 않는다 */
  .to-top { right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; }

  /* 모바일 HUD */
  .vf-hud { font-size: 9px; letter-spacing: 0.08em; }
  .vf-hud .vf-val { font-size: 10px; }
  .vf-hud.top-left  { left: 1.25rem; }
  .vf-hud.top-right { right: 1.25rem; }
  .vf-hud.bot-left  { left: 1.25rem; }
  .vf-hud.bot-right { right: 1.25rem; }
  .vf-rec { font-size: 9px; }
  .vf-tc  { font-size: 8px; }
  .vf-corner.tl { left: 0.8rem; }
  .vf-corner.tr { right: 0.8rem; }
  .vf-corner.bl { left: 0.8rem; }
  .vf-corner.br { right: 0.8rem; }
}
