/* ── 폰트 통일: 영문·숫자 모두 Pretendard 사용 ── */
  :root {
    --font-sans:    'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:    'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  }
  * { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important; }

  /* ==========================================================================
     Hero — 좌측 카피 + 우측 대형 영상(GIF) 2단 구성.
     이전에는 가운데 정렬 텍스트 아래에 영상이 따로 붙어 두 덩어리로 읽혔다.
     한 그리드에 넣고 세로 중앙 정렬해 하나의 소개 섹션으로 보이게 한다.
     ========================================================================== */
  .media-hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
  .mh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 56px;
    align-items: center;
  }
  /* 영상이 시선을 끄는 만큼 카피 폭은 읽기 좋은 길이로 묶어 둔다 */
  .media-hero h1 {
    max-width: 17ch; margin: 14px 0 0;
    font-size: clamp(28px, 3.2vw, 46px); line-height: 1.2; word-break: keep-all;
  }
  .media-hero h1 .accent { color: var(--accent); }
  .media-hero p.lead {
    max-width: 46ch; margin: 18px 0 0;
    color: var(--ink-500); font-size: 15px; line-height: 1.7; word-break: keep-all;
  }
  .mh-hero-copy .btn { margin-top: 28px; }

  /* ── 우측 영상 카드 ── */
  .mh-hero-media {
    position: relative; margin: 0;
    /* 16:9는 폭 대비 납작해 히어로의 핵심 비주얼로 보이지 않았다.
       폭은 그대로 두고 3:2로 바꿔 높이만 약 19% 키운다(가로형은 유지). */
    aspect-ratio: 3 / 2;
    border-radius: 18px;
    overflow: hidden;
    background: #14141f;
    /* 배경(화이트+연보라 글로우) 위에 뜨는 정도의 가벼운 깊이감만 준다 */
    box-shadow: 0 18px 44px rgba(43, 27, 106, .13);
  }
  .mh-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* 정지 이미지가 아니라 재생 중인 영상임을 알리는 최소한의 표시 + 촬영 종류 라벨 */
  .mh-hero-badge {
    position: absolute; left: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 999px;
    background: rgba(16, 16, 26, .52);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  }
  .mh-hero-badge i {
    width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b;
    animation: mhRecPulse 1.8s ease-in-out infinite;
  }
  @keyframes mhRecPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

  /* 태블릿 이하에서는 한 단으로 쌓고, 기존처럼 가운데 정렬 카피로 되돌린다 */
  @media (max-width: 1023px) {
    .media-hero { padding: 32px 0 48px; }
    .mh-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .mh-hero-copy { text-align: center; }
    .media-hero h1, .media-hero p.lead { margin-left: auto; margin-right: auto; }
    .mh-hero-copy .btn { margin-top: 22px; }
  }
  @media (max-width: 767px) {
    .mh-hero-media { border-radius: 14px; }
  }
  .mh-hero-text {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 28px 24px;
  }
  .mh-hero-text .mh-logo {
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
  }
  .mh-hero-text .mh-slogan {
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 400;
    color: rgba(255,255,255,.88);
    letter-spacing: -0.01em;
  }

  /* ---------- Before & After Section ---------- */
  .ba-section { margin-top: 0; }

  /* ── 탭 UI ── */
  .ba-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 32px 0 40px;
  }
  .ba-tab-btn {
    padding: 10px 28px;
    border-radius: 999px;
    border: 1.5px solid var(--ink-200);
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-500);
    cursor: pointer;
    transition: all .22s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .ba-tab-btn .tab-icon {
    font-size: 16px;
    line-height: 1;
  }
  .ba-tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }
  .ba-tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(124,92,255,.35);
  }

  /* ── 탭 패널 ── */
  .ba-panel {
    display: none;
  }
  .ba-panel.active {
    display: block;
    animation: baFadeIn .35s ease;
  }
  @keyframes baFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── 싱글 카드 레이아웃 (탭당 1장) ── */
  .ba-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    border: 1px solid var(--ink-200);
    box-shadow: 0 8px 40px rgba(13,13,18,.08);
  }

  /* ── 슬라이더 래퍼 ── */
  .ba-slider-wrap {
    position: relative;
    width: 100%;
    /* 화면 세로 크기에 맞춰 최소 360px ~ 최대 640px 안에서 유동적으로 변함 */
    height: clamp(360px, 60vh, 640px); 
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .ba-slider-wrap.dragging {
    cursor: grabbing;
  }
  .ba-layer {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
  }
  .ba-layer.before {
    background-color: var(--ink-200);
  }
  .ba-layer.after {
    background-color: var(--accent-soft);
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0s;
    overflow: hidden;
  }

  /* ── 디바이더 라인 ── */
  .ba-divider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1.5px;
    background: white;
    z-index: 2;
    pointer-events: none;
    transition: left 0s;
    box-shadow: 0 0 8px rgba(255,255,255,0.8), 0 0 16px rgba(124,92,255,0.4);
  }

  /* ── 드래그 핸들 (원 주변 그라데이션 추가) ── */
  .ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 버튼 주변 은은한 그라데이션 글로우 */
  .ba-handle::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,255,0.45) 0%, rgba(124,92,255,0) 70%);
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    animation: glowPulse 2.5s infinite alternate;
  }

  .ba-handle-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .25s ease;
    position: relative;
    z-index: 2;
  }
  
  .ba-handle-btn svg {
    width: 20px; height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    transition: color .25s ease;
  }

  /* 💡 추가됨: 호버 안 해도 나 여깄다! 어필하는 펄스 및 화살표 흔들림 애니메이션 */
  .ba-slider-wrap:not(.dragging):not(:hover) .ba-handle-btn {
    animation: clickMePulse 2.2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .ba-slider-wrap:not(.dragging):not(:hover) .ba-handle-btn svg {
    animation: dragHintNudge 2.2s infinite ease-in-out;
  }

  @keyframes clickMePulse {
    0% {
      box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.5), 0 0 0 0 rgba(124,92,255, 0.6);
    }
    50% {
      box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.5), 0 0 0 16px rgba(124,92,255, 0);
    }
    100% {
      box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.5), 0 0 0 0 rgba(124,92,255, 0);
    }
  }

  @keyframes dragHintNudge {
    0%, 60%, 100% { transform: translateX(0); }
    15% { transform: translateX(-4px); }
    30% { transform: translateX(4px); }
    45% { transform: translateX(-2px); }
  }

  /* 호버 및 드래그 중 효과 변화 (애니메이션 중지) */
  .ba-slider-wrap:hover .ba-handle::before,
  .ba-slider-wrap.dragging .ba-handle::before {
    transform: scale(1.3);
    opacity: 1;
    background: radial-gradient(circle, rgba(124,92,255,0.6) 0%, rgba(124,92,255,0) 70%);
    animation: none;
  }

  .ba-slider-wrap:hover .ba-handle-btn,
  .ba-slider-wrap.dragging .ba-handle-btn {
    transform: scale(1.05);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(124,92,255,.3);
    animation: none;
  }
  
  .ba-slider-wrap:hover .ba-handle-btn svg,
  .ba-slider-wrap.dragging .ba-handle-btn svg {
    animation: none;
  }

  @keyframes glowPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0.9; }
  }

  /* ── 레이블 ── */
  .ba-label {
    position: absolute;
    bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    pointer-events: none;
    letter-spacing: .04em;
  }
  .ba-label.lbl-before {
    left: 16px;
    background: rgba(0,0,0,.6);
    color: white;
    backdrop-filter: blur(4px);
  }
  .ba-label.lbl-after {
    right: 16px;
    background: rgba(255,255,255,0.9);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    backdrop-filter: blur(4px);
  }

  /* 야외 촬영처럼 실제 사진이 아직 준비되지 않은 탭에 붙는 안내 배지 —
     지정된 경로에 사진 파일이 올라오면 이 배지 span을 지우면 됨. */
  .ba-soon-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    background: rgba(13,13,18,.68);
    color: white;
    backdrop-filter: blur(4px);
    z-index: 3;
    pointer-events: none;
  }

  /* ── 카드 본문 ── */
  .ba-card .body { padding: 24px 32px 28px; }
  .ba-card h4 { font-size: 19px; margin-bottom: 8px; }
  .ba-card p { font-size: 14px; color: var(--ink-500); line-height: 1.65; }

  /* ---------- Shooting Categories — Scroll Reveal ---------- */
  .shoot-section { padding: var(--section-pad) 0; }

  .shoot-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .shoot-item {
    border-top: 1px solid var(--ink-200);
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1);
  }
  .shoot-item:last-child { border-bottom: 1px solid var(--ink-200); }
  .shoot-item.in-view { opacity: 1; transform: translateY(0); }

  .shoot-main {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: center;
    padding: 28px 0;
  }

  .shoot-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .shoot-text p {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.7;
    max-width: 38ch;
  }
  .shoot-text .pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

  .shoot-thumb {
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .55s ease .12s, transform .55s cubic-bezier(.2,.6,.2,1) .12s;
  }
  .shoot-item.in-view .shoot-thumb { opacity: 1; transform: translateX(0); }

  @media (max-width: 1023px) {
    .shoot-main { grid-template-columns: 1fr; gap: 20px; }
    .shoot-thumb { aspect-ratio: 3/2; }
    .shoot-text h4 { font-size: 17px; }
  }
  @media (max-width: 600px) {
    .shoot-main { padding: 20px 0; gap: 14px; }
    .shoot-text h4 { font-size: 16px; }
    .shoot-text p { font-size: 13px; }
    /* 헤더 영역: h2와 버튼을 세로로 분리 + 가운데 정렬 (PC는 기존 좌우 배치 유지) */
    .shoot-section .section-header-flex,
    .shoot-section [style*="justify-content:space-between"] {
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      gap: 16px !important;
    }
    .shoot-section h2 { font-size: clamp(22px, 6vw, 28px) !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
    /* 헤더가 세로로 길어진 만큼, 헤더~첫 구분선 사이 여백을 살짝 줄임 */
    .shoot-list { margin-top: 32px !important; }
  }

  /* ---------- Equipment / Pro ---------- */
  .pro-band {
    margin-top: 80px;
    background: var(--ink-900);
    border-radius: var(--radius-xl);
    padding: 56px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    color: white;
  }
  .pro-band h3 { font-size: 28px; color: white; margin-bottom: 16px; }
  .pro-band p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.7; }
  .pro-band .equip-list {
    list-style: none; padding: 0; margin: 24px 0 0;
    display: flex; flex-direction: column; gap: 12px;
  }
  .pro-band .equip-list li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 14px; color: rgba(255,255,255,.85);
  }
  .pro-band .equip-list li .ic {
    flex: none; width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  }
  .pro-visual {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.35);
  }

  /* ---------- Shooting Categories 여백 확대 ---------- */
  .shoot-section.section { padding-top: 100px; padding-bottom: 100px; }
  .shoot-list { margin-top: 56px; }
  .shoot-main { padding: 36px 0; }

  /* ---------- Workflow — Left sticky / Right scrolls ---------- */
  .workflow-section {
    background: #eeeaf8;
    position: relative;
  }

  /* 좌우 2컬럼 — 좌측 sticky, 우측 일반 플로우 */
  .workflow-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
  }

  /* 좌측: 뷰포트에 붙어서 우측 스크롤 내내 고정 */
  .wf-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 64px 0 0;
  }
  .wf-sticky .eyebrow {
    color: #8b7ec8;
    margin-bottom: 20px;
    letter-spacing: .1em;
    font-size: 11px; /* 원래 크기 11px로 복원 */
  }
  .wf-sticky h2 {
    font-size: clamp(28px, 3vw, 42px); /* 원래 크기 clamp(28px, 3vw, 42px)로 복원 */
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0;
  }

  /* 우측: 타임라인 (자연 스크롤 방식으로 변경) */
  .wf-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 첫 스텝과 마지막 스텝이 화면 정중앙(50vh)에서 시작하고 끝나도록 상하 패딩 설정 */
    padding: 50vh 0 50vh 72px;
  }

  /* 배경 선 */
  .wf-track {
    position: absolute;
    left: 72px;
    top: 50vh;    /* 첫 번째 도트 시작점에 맞춤 */
    bottom: 50vh; /* 마지막 도트 끝점에 맞춤 */
    width: 1px;
    background: rgba(124,92,255,.18);
  }

  /* 활성 선 */
  .wf-track-fill {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 0%;
    background: #7C5CFF;
    border-radius: 1px;
    /* 부드러운 스크롤 값을 즉각적으로 따라오도록 딜레이 시간을 짧게 줄임 */
    transition: height 0.1s ease-out;
  }

  /* 개별 스텝 */
  .wf-step {
    position: relative;
    /* 줄어든 상하 간격 25vh 유지 */
    padding: 0 0 25vh 44px;
    opacity: 0.15; /* 등장하기 전 살짝 보이게 설정 */
    transform: translateY(30px);
    transition: opacity .5s cubic-bezier(.2,.6,.2,1), transform .5s cubic-bezier(.2,.6,.2,1);
  }
  .wf-step:last-child {
    padding-bottom: 0;
  }
  .wf-step.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* 도트 */
  .wf-dot {
    position: absolute;
    left: -5px; top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(124,92,255,.25);
    border: 2px solid #eeeaf8;
    transition: background .35s, transform .35s, box-shadow .35s;
    z-index: 2;
  }
  .wf-step.revealed .wf-dot {
    background: #7C5CFF;
    transform: scale(1.4);
    box-shadow: 0 0 0 5px rgba(124,92,255,.15);
  }

  /* 스텝 번호 */
  .wf-step-num {
    font-family: var(--font-mono);
    font-size: 13px; /* 11px에서 13px로 크기 확대 */
    font-weight: 700;
    color: #7C5CFF;
    letter-spacing: .1em;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .35s ease .06s, transform .35s ease .06s;
  }
  .wf-step.revealed .wf-step-num { opacity: 1; transform: translateX(0); }

  .wf-step h4 {
    font-size: 24px; /* 22px에서 24px로 크기 확대 */
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .wf-step p {
    font-size: 15px; /* 14px에서 15px로 크기 확대 */
    color: #6b6880;
    line-height: 1.8;
    max-width: 34ch;
  }

  /* 모바일 — 좌측 타임라인 선/도트를 없애고, 스텝 제목을 위 섹션 제목과
     같은 좌측 기준선에 맞춘다 */
  @media (max-width: 1023px) {
    .workflow-inner { grid-template-columns: 1fr; }
    /* 좌측 sticky 헤더(eyebrow+제목)는 모바일에서 가운데 정렬, PC는 기존 좌측 정렬 유지 */
    .wf-sticky { position: static; height: auto; padding: 64px 0 40px; align-items: center; text-align: center; }
    .wf-timeline { position: static; height: auto; padding: 0 0 64px 0; justify-content: flex-start; }
    .wf-track { display: none; }
    .wf-track-fill { display: none; }
    .wf-dot { display: none; }
    .wf-step { padding-left: 0; padding-bottom: 48px; opacity: 1; transform: none; }
    .wf-step-num { opacity: 1; transform: none; }
  }
  @media (max-width: 600px) {
    .wf-sticky { padding: 48px 0 32px; }
    .wf-sticky h2 { font-size: 26px; }
    .wf-timeline { padding: 0 20px 48px 0; }
    .wf-step { padding-left: 0; padding-bottom: 40px; }
    .wf-step h4 { font-size: 18px; }
    .wf-step p { max-width: 100%; font-size: 14px; }
  }

  /* ── RND-4860 Mobile: STEP 01~04를 세로 타임라인으로 ────────────────────
     위 ≤1023 블록이 도트·선을 숨겨 스텝이 그냥 텍스트 나열로 보였다.
     모바일에서만 노드와 세로 연결선을 되살려 하나의 세로 Process로 읽히게 한다.
     선은 .wf-track(스크롤 채우기용 sticky 연출 전용)이 아니라 각 스텝이 자기 아래
     구간만 그리는 방식이라, 스텝 높이가 달라도 노드끼리 정확히 이어진다.
     Tablet(768~1023)은 위 블록 그대로 — 도트·선 없이 좌측 정렬만 유지된다.
     이 블록은 ≤600 블록보다 뒤에 와야 폰트 지정이 덮이지 않는다. */
  @media (max-width: 767px) {
    .wf-timeline { padding: 0 0 48px 0; }
    /* 노드(11px) + 간격(17px) = 텍스트 시작점 28px. STEP·제목·설명이 모두 같은 x에서 시작한다 */
    .wf-step {
      position: relative;
      padding: 0 0 40px 28px;
    }
    .wf-step:last-child { padding-bottom: 0; }

    /* 노드 — 스크롤 연출용 확대·글로우는 모바일에서 끄고 채워진 상태로 고정 */
    .wf-dot {
      display: block;
      left: 0; top: 6px;
      width: 11px; height: 11px;
      background: #7C5CFF;
      border: 2px solid #efeaff;
    }
    .wf-step.revealed .wf-dot { transform: none; box-shadow: none; }

    /* 노드 사이 세로선 — 마지막 스텝에는 붙지 않는다.
       top 19px = 노드 아래(6+11+2), bottom -6px = 다음 노드 위쪽 */
    .wf-step:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 5px;            /* 노드 중심(5.5px) 기준 1px 선 */
      top: 19px;
      bottom: -6px;
      width: 1px;
      background: rgba(124, 92, 255, .28);
    }

    /* 타이포 — 기존 톤 유지하며 모바일 가독 범위로 */
    .wf-step-num { font-size: 14px; margin-bottom: 6px; }
    .wf-step h4 { font-size: 19px; margin-bottom: 8px; }
    .wf-step p { font-size: 15px; line-height: 1.65; max-width: 100%; }
  }
  /* Small mobile — 구조는 그대로, 글자·간격만 미세 조정 */
  @media (max-width: 480px) {
    .wf-step { padding-bottom: 36px; }
    .wf-step h4 { font-size: 18px; }
    .wf-step p { font-size: 14.5px; }
  }

  /* ---------- Gallery ---------- */
  #gallery-section { position: relative; }

  .gallery-sticky {
    padding: var(--section-pad) 0;
  }

  /* RND-4860: 콜라주 배치(3열 · span 규칙)는 그대로 두고, 이미지 표시 규칙만 정리한다.
     가로/세로 간격을 하나로 통일(12px -> 16px). */
  /* RND-4860: 트랙을 6개로 두고 기본 카드가 2트랙(=3열 중 1칸)을 쓰게 한다.
     span 2는 내부 gap 1개를 포함하므로 폭·간격이 기존 3열과 완전히 동일하고,
     마지막 행에 1~2장만 남았을 때 3트랙(1/2)·6트랙(전체)으로 늘려 빈칸을 없앨 수 있다. */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 48px;
  }

  .gallery-grid .g-item {
    grid-column: span 2;
    /* 슬롯 크기의 기준. 안의 사진 비율이 이 값을 흔들지 않게 한다 */
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
    box-shadow: var(--shadow-sm);
  }
  /* 사진을 절대 위치로 깔아 원본 비율이 카드 높이에 관여하지 못하게 막는다.
     16:9든 9:16이든 슬롯을 꽉 채우고, 남는 부분만 잘린다(찌그러지지 않음). */
  .gallery-grid .g-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  /* 피사체가 위/아래로 치우친 사진은 크롭 기준만 바꿔 쓸 수 있게 열어 둔다
     (렌더 시 MEDIA_GALLERY_POS에 파일명을 등록하면 적용됨) */
  .gallery-grid .g-item.pos-top img { object-position: top center; }
  .gallery-grid .g-item.pos-bottom img { object-position: bottom center; }
  .gallery-grid .g-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }
  /* 콜라주 배치는 최초 노출 4장에만 적용한다(1번 세로형 · 4번 가로형).
     더보기로 붙는 사진부터는 같은 폭의 카드로 이어져 마지막 행을 보정할 수 있다. */
  .gallery-grid .g-item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
  .gallery-grid .g-item:nth-child(4) { grid-column: span 4; aspect-ratio: 21/9; }
  /* 마지막 행 보정 — 남은 장수에 따라 JS가 붙인다(2장이면 각각 1/2, 1장이면 전체 폭) */
  .gallery-grid .g-item.g-last-half { grid-column: span 3; aspect-ratio: 3/2; }
  .gallery-grid .g-item.g-last-full { grid-column: span 6; aspect-ratio: 21/9; }

  /* ---------- Pricing band ---------- */
  .media-pricing {
    margin-top: 80px; background: var(--ink-50); border-radius: var(--radius-xl); padding: 56px;
  }
  .media-pricing h3 { font-size: 28px; margin-bottom: 8px; }
  .media-pricing > p { color: var(--ink-500); font-size: 15px; margin-bottom: 32px; }
  .mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mp-card {
    background: white; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    padding: 28px; display: flex; flex-direction: column;
  }
  .mp-card h4 { font-size: 18px; margin-bottom: 4px; }
  .mp-card .price {
    font-family: var(--font-display); font-size: 28px; font-weight: 700;
    color: var(--accent); margin: 16px 0; letter-spacing: -0.02em;
  }
  .mp-card .price small { font-size: 13px; font-weight: 500; color: var(--ink-500); }
  .mp-card ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px; flex: 1;
  }
  .mp-card ul li { font-size: 13px; color: var(--ink-700); display: flex; gap: 8px; align-items: flex-start; }
  .mp-card ul li::before { content: '→'; color: var(--accent); flex: none; }
  .mp-card .btn { margin-top: 20px; align-self: flex-start; }

  @media (max-width: 1023px) {
    .ba-card { max-width: 100%; }
    .pro-band { grid-template-columns: 1fr; padding: 32px; }
    /* 태블릿: 4트랙 = 2열. 콜라주 span과 마지막 행 보정도 2열 기준으로 다시 잡는다 */
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid .g-item:nth-child(1) { grid-row: span 1; aspect-ratio: 4/3; }
    .gallery-grid .g-item:nth-child(4) { grid-column: span 2; aspect-ratio: 4/3; }
    .gallery-grid .g-item.g-last-half { grid-column: span 2; aspect-ratio: 4/3; }
    .gallery-grid .g-item.g-last-full { grid-column: span 4; aspect-ratio: 16/9; }
    .mp-grid { grid-template-columns: 1fr; }
    .media-pricing { padding: 32px; }
    .ba-hero-visual { display: none; }
  }
  @media (max-width: 600px) {
    /* 모바일: 1열이라 모든 카드가 이미 전체 폭이고, 마지막 행 보정도 필요 없다 */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid .g-item,
    .gallery-grid .g-item.g-last-half,
    .gallery-grid .g-item.g-last-full { grid-column: span 1; aspect-ratio: 4/3; }
    .media-pricing { padding: 24px 20px; }
    .media-pricing h3 { font-size: 22px; }
    .mp-card { padding: 20px; }
  }
  /* ── Pill 헤더 (유리 질감) ── */
  .site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 16px;
    overflow: visible;
  }
  .site-header::before { display: none !important; }
  /* style.css의 .site-header .container 완전 제압 */
  .site-header .container {
    all: unset !important;
    display: none !important;
  }
  .site-header-pill {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
      0 1px 0 0 rgba(255,255,255,0.9) inset,
      0 8px 32px rgba(124, 92, 255, 0.08),
      0 2px 8px rgba(13, 13, 18, 0.06);
  }
  @media (max-width: 767px) {
    .site-header { padding: 10px 16px; }
    .site-header-pill { padding: 0 16px; height: 48px; }
  }


  /* ── 모바일 드로어 & 햄버거 — codle 스타일 ── */

  /* 햄버거 버튼: pill 테두리 */
  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    gap: 0 !important;
    flex-direction: column;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink-700);
    border-radius: 2px;
    margin: 2.5px 0;
    transition: transform .25s, opacity .25s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* 드로어 전체 */
  .mobile-nav {
    background: #ffffff !important;
  }

  /* 드로어 헤더 */
  .mobile-nav-header {
    height: 64px !important;
    padding: 0 20px !important;
    border-bottom: 1px solid var(--ink-100) !important;
  }

  /* 닫기 버튼 */
  .mobile-nav-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ink-700) !important;
    font-size: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    transition: background .2s;
  }
  .mobile-nav-close:hover { background: var(--ink-100) !important; }

  /* 메뉴 링크 */
  .mobile-nav-links {
    padding: 8px 0 !important;
  }
  .mobile-nav-links a {
    font-size: 17px !important;
    font-weight: 500 !important;
    color: var(--ink-800) !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--ink-100) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    letter-spacing: -0.01em !important;
  }
  .mobile-nav-links a:last-child { border-bottom: none !important; }
  /* 기존 ::after 화살표 제거 */
  .mobile-nav-links a::after { display: none !important; }

  /* JS로 삽입된 › 화살표 */
  .mnl-arrow {
    font-size: 20px;
    color: var(--ink-300);
    font-weight: 400;
    line-height: 1;
  }
  .mobile-nav-links a.active { color: var(--accent) !important; }
  .mobile-nav-links a.active .mnl-arrow { color: var(--accent) !important; }
  .mobile-nav-links a:hover { background: var(--ink-50) !important; color: var(--ink-900) !important; }

  /* CTA 섹션 숨김 */
  .mobile-nav-cta { display: none !important; }

  /* 모바일: header-right & nav-toggle 강제 표시 */
  .site-header-pill .header-right {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .site-header-pill .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  /* PC에서는 header-right 숨김 유지 */
  @media (min-width: 1024px) {
    .site-header-pill .header-right { display: none !important; }
  }
  /* PC에서는 nav 표시 */
  @media (min-width: 1024px) {
    .site-header-pill .nav { display: flex !important; }
  }

  /* ── 상담 모달: 헤더와 안 겹치게 ── */
  .consult-overlay {
    padding-top: 100px !important; /* pill 헤더(~80px) + 여유 */
    align-items: flex-start !important;
  }
  @media (max-width: 767px) {
    .consult-overlay { padding-top: 80px !important; padding-left: 12px !important; padding-right: 12px !important; }
  }

  /* ── 플로팅 상담 버튼: 원형 크게 + 아이콘 ── */
  .floating-cta {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
  }

  /* ==========================================================================
     RND-4860: 갤러리 라이트박스 — 기존 그리드/카드/크롭 규칙은 그대로 두고 위에 얹는 기능.
     카드 안은 cover로 잘라 채우지만, 크게 볼 때는 contain으로 원본 비율을 그대로 보여준다.
     ========================================================================== */
  .gallery-grid .g-item { cursor: zoom-in; }

  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    /* 뒤쪽 갤러리가 아주 희미하게 비쳐 보이도록 불투명도를 낮추고, 대신 blur를 키워
       배경이 선명하게 읽히지 않게 한다. blur는 뒤 콘텐츠에만 걸리므로 중앙 이미지는 그대로 선명하다. */
    background: rgba(10, 11, 16, .76);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .lightbox.open { display: flex; }
  /* 이미지가 주인공 — 프레임·그림자 없이 원본 비율 그대로, 화면 안에 최대 크기로 */
  .lightbox-img {
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    display: block;
  }
  /* 버튼은 배경 없는 아이콘. hover에서만 아주 옅은 원형 배경이 생긴다 */
  .lightbox-btn {
    position: absolute;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: #e9e9ef;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
  }
  .lightbox-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .lightbox-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
  .lightbox-btn svg { width: 22px; height: 22px; }
  .lightbox-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
  .lightbox-prev { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
  .lightbox-next { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
  .lightbox-count {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%; transform: translateX(-50%);
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: 13px; font-weight: 600; letter-spacing: .08em;
  }
  .lightbox-count b { color: #b9a9ff; font-weight: 700; }

  @media (max-width: 1023px) {
    .lightbox-img { max-width: calc(100vw - 96px); max-height: calc(100vh - 110px); }
  }
  @media (max-width: 600px) {
    /* 좌우 화살표가 이미지를 가리지 않도록 여백을 줄이고 버튼은 터치 영역(44px)만 유지 */
    .lightbox-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); }
    .lightbox-prev { left: calc(2px + env(safe-area-inset-left, 0px)); }
    .lightbox-next { right: calc(2px + env(safe-area-inset-right, 0px)); }
  }
