  :root {
    --black: #080a0e; --dark: #0d1117; --accent: #e8c86a; --accent2: #4d9fff;
    --text: #f0f2f5; --text-dim: #8b93a7; --text-muted: #4a5265;
    --light-bg: #ffffff; --light-text: #1a1f2e; --light-text-dim: #4a5568;
    --light-text-muted: #a0aec0;
    --font: 'Pretendard', sans-serif;
  }

  /* 서브 페이지: main-nav 숨김 + content-nav 항상 표시 (메인과 동일한 글로벌 헤더) */
  #main-nav { display: none !important; }
  #content-nav,
  #content-nav.is-visible {
      transform: translateY(0) !important;
      pointer-events: auto !important;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { overflow-y: scroll; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
  body { background: var(--black); color: var(--text); font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.6; overflow-x: hidden; }

  /* ── HEADER ── */
  .hd-row { display: flex; justify-content: space-between; align-items: center; }
  .hd-logo a { display: block; }
  .hd-logo img { height: 44px; width: 175px; display: block; object-fit: contain; object-position: left center; }
  .hd-menu { display: flex; gap: 50px; list-style: none; }
  .hd-menu li a { text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.3s; cursor: pointer; }
  #main-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1060; padding: 16px 0; background: transparent; transition: opacity 0.3s ease; }
  #main-nav .hd-row { padding: 0 240px; }
  #main-nav .hd-menu li a { color: #fff; }
  #main-nav .hd-menu li a:hover { color: #1f7bbf; }
  #content-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1055; padding: 16px 0; background: #fff; transform: translateY(-110%); pointer-events: none; transition: background-color 0.15s ease, transform 0.44s cubic-bezier(0.4,0,0.2,1); }
  #content-nav.is-visible { transform: translateY(0); pointer-events: auto; }
  #content-nav .hd-row { padding: 0 240px; }

  #content-nav .hd-menu li a { color: #111; transition: color 0.3s ease; }
  #content-nav .hd-menu li a:hover { color: #1f7bbf; }
  #content-nav .hd-logo .logo-light { display: block; }
  #content-nav .hd-logo .logo-dark  { display: none; }

  #content-nav.theme-dark { background: #0a0a0b; }
  #content-nav.theme-dark .hd-menu li a { color: #fff; }
  #content-nav.theme-dark .hd-menu li a:hover { color: #4d9fff; }
  #content-nav.theme-dark .hd-logo .logo-light { display: none; }
  #content-nav.theme-dark .hd-logo .logo-dark  { display: block; }

  #content-nav.theme-portfolio { background: #08090c; }
  #content-nav.theme-portfolio .hd-menu li a { color: #fff; }
  #content-nav.theme-portfolio .hd-menu li a:hover { color: #4d9fff; }
  #content-nav.theme-portfolio .hd-logo .logo-light { display: none; }
  #content-nav.theme-portfolio .hd-logo .logo-dark  { display: block; }

  #content-nav.theme-footer { background: #212121; }
  #content-nav.theme-footer .hd-menu li a { color: #fff; }
  #content-nav.theme-footer .hd-menu li a:hover { color: #4d9fff; }
  #content-nav.theme-footer .hd-logo .logo-light { display: none; }
  #content-nav.theme-footer .hd-logo .logo-dark  { display: block; }

  /* ── 햄버거 메뉴 버튼 (1024px 이하에서만 표시) ── */
  .hd-burger {
    display: none;
    width: 44px; height: 44px;
    background: transparent; border: none; cursor: pointer;
    position: relative; z-index: 1100;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .hd-burger span {
    display: block; width: 24px; height: 2px;
    background: currentColor; margin: 5px auto;
    transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease;
    border-radius: 2px;
  }
  #main-nav .hd-burger { color: #fff; }
  #content-nav .hd-burger { color: #111; }
  #content-nav.theme-dark .hd-burger,
  #content-nav.theme-portfolio .hd-burger,
  #content-nav.theme-footer .hd-burger { color: #fff; }
  .hd-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hd-burger.is-open span:nth-child(2) { opacity: 0; }
  .hd-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── 메뉴가 열렸을 때: nav 배경 투명화 + 양쪽 햄버거 숨김 ── */
  body.menu-open #main-nav,
  body.menu-open #content-nav {
    background: transparent !important;
    pointer-events: none !important;  /* ✅ 헤더 영역이 X 버튼 클릭을 가로채지 않도록 통과 */
  }
  /* 메뉴 열리면 양쪽 nav 햄버거 모두 숨김 — 모바일 메뉴 내부 전용 X 버튼만 보이게 */
  body.menu-open .hd-burger { display: none !important; }
  /* 로고도 어두운 배경에 맞춰 흰색 버전으로 */
  body.menu-open #content-nav .logo-light { display: none !important; }
  body.menu-open #content-nav .logo-dark { display: block !important; }

  /* ── 모바일 메뉴 오버레이 ── */
  .mobile-menu {
    position: fixed; inset: 0; z-index: 1050;
    background: rgba(10,10,11,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }
  .mobile-menu li { margin: 20px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
  .mobile-menu.is-open li { opacity: 1; transform: translateY(0); }
  .mobile-menu.is-open li:nth-child(1) { transition-delay: 0.10s; }
  .mobile-menu.is-open li:nth-child(2) { transition-delay: 0.16s; }
  .mobile-menu.is-open li:nth-child(3) { transition-delay: 0.22s; }
  .mobile-menu.is-open li:nth-child(4) { transition-delay: 0.28s; }
  .mobile-menu.is-open li:nth-child(5) { transition-delay: 0.34s; }
  .mobile-menu li a {
    display: inline-block;
    color: #fff;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.25s;
  }
  .mobile-menu li a:hover { color: #4d9fff; }

  /* ── 모바일 메뉴 전용 닫기(X) 버튼 ── */
  .mobile-menu-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top, 14px));
    right: 20px;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: rotate(-90deg);
  }
  .mobile-menu.is-open .mobile-menu-close {
    opacity: 1;
    transform: rotate(0);
    transition-delay: 0.15s;
  }
  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin-top: -1px;
    margin-left: -12px;
  }
  .mobile-menu-close::before { transform: rotate(45deg); }
  .mobile-menu-close::after  { transform: rotate(-45deg); }
  .mobile-menu-close:hover::before,
  .mobile-menu-close:hover::after { background: #4d9fff; }

  /* ── HERO ── */
  #hero { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; background: var(--black); }
  #hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
  .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,10,14,0.3) 0%, rgba(8,10,14,0.1) 40%, rgba(8,10,14,0.6) 80%, rgba(8,10,14,1) 100%); pointer-events: none; }
  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(120px, 13.542vw, 520px) clamp(24px, 4.167vw, 160px) 0 clamp(24px, 5.213vw, 200px);
    max-width: 100%;
    margin-left: -1.302vw;
  }
  .hero-sub {
    font-family: var(--font);
    font-weight: 200;
    font-size: clamp(14px, 1.562vw, 60px);
    line-height: 1;
    letter-spacing: 1.5;
    color: var(--text);
    margin: 0 0 clamp(14px, 1.042vw, 40px) 0;
    padding-left: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s 0.4s forwards;
    word-break: keep-all;
  }
  .hero-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(30px, 3.394vw, 130px);
    line-height: 1.3;
    letter-spacing: clamp(-0.5px, -0.03vw, -1.2px);
    color: var(--text);
    max-width: 100%;
    margin: 0;
    margin-bottom: -10.417vw;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s 0.6s forwards;
    word-break: keep-all;
  }

  /* ── SCROLL INDICATOR ── */
  .scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 1.5vw, 60px);
    left: 50%;
    transform: translateX(-50%);
    width: 3.646vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    flex-direction: column;
    gap: 0.468vw;
  }
  .scroll-text {
    color: #fff;
    font-family: var(--font);
    font-size: clamp(10px, 0.677vw, 26px);
    font-weight: 400;
    letter-spacing: 0.5px;
  }
  .scroll-indicator.hidden { opacity: 0 !important; }
  .scroll-indicator-line {
    width: clamp(22px, 1.35vw, 52px);
    height: clamp(34px, 2.135vw, 82px);
    position: relative;
    display: block;
    border: 2px solid #fff;
    border-radius: clamp(16px, 1.06vw, 40px);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 0, 0, 0.15);
  }
  .scroll-indicator-line > img:first-child { display: none; }
  .scroll-indicator-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(6px, 0.365vw, 14px);
    height: clamp(6px, 0.365vw, 14px);
    background-color: #fff;
    border-radius: 50%;
    top: 10%;
    animation: scroll-point-move 1.8s ease-in-out infinite;
  }
  @keyframes scroll-point-move {
    0%   { top: 10%; opacity: 1; }
    70%  { top: 65%; opacity: 1; }
    85%  { top: 72%; opacity: 0; }
    100% { top: 10%; opacity: 0; }
  }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
  @keyframes scrollPulse { 0%,100% { opacity:.3; } 50% { opacity:1; } }

  /* ══ COMMON SECTION HEADER ══ */
  .sec-hd { text-align: center; padding-top: clamp(40px, 6.77vw, 260px); flex-shrink: 0; }
  .sec-hd-sub { font-family: var(--font); font-weight: 500; color: #6d3b3b; font-size: clamp(11px, 0.677vw, 26px); color: var(--text-dim); letter-spacing: 0.3px; line-height: 1.8; padding: 0 16px; }
  .sec-hd-title { margin-top: clamp(12px, 1.042vw, 40px); font-family: var(--font); font-weight: 100; font-size: clamp(28px, 3.281vw, 126px); line-height: 1; letter-spacing: clamp(-1px, -0.13vw, -3px); color: var(--text); }
  .sec-hd-title strong { font-weight: 700; }
  .sec-hd--light .sec-hd-sub   { color: var(--light-text-dim); }
  .sec-hd--light .sec-hd-title { color: var(--light-text); }

  /* ── SOLUTIONS ── */
  #solutions { padding-top: 0; background: var(--dark); height: 100vh; display: flex; flex-direction: column; overflow: hidden; background-color: #0a0a0b; }
  #solutions .sec-hd { margin-bottom: clamp(16px, 2.5vw, 32px); }

  .sol-track { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; perspective: 1500px; perspective-origin: 50% 50%; overflow: visible; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
  .sol-track::before, .sol-track::after { content: ''; position: absolute; top: 0; bottom: 0; width: 220px; z-index: 20; pointer-events: none; }
  .sol-track.is-dragging { cursor: grabbing; }
  .sol-track:not(.is-dragging) { cursor: grab; }

  .sol-card { position: absolute; width: 500px; height: 590px; border-radius: 20px; overflow: hidden; background: #0a0a0b; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; cursor: pointer; transition: border-color 0.35s ease, box-shadow 0.35s ease; will-change: transform, opacity; box-shadow: 0 20px 50px rgba(0,0,0,0.5); pointer-events: auto; }

  .sol-track.is-animating .sol-card { pointer-events: none; }

  .sol-card.is-active {
    border: 2.8px solid rgba(214,214,214,0.85);
    box-shadow:
      0 0 20px 3px  rgba(214,214,214,0.2),
      0 0 50px 8px  rgba(214,214,214,0.01),
      0 0 100px 15px rgba(214,214,214,0.01),
      0 0 160px 20px rgba(214,214,214,0.01),
      0 24px 64px   rgba(0,0,0,0.01);
  }

  .sol-card-img { flex: 0 0 66%; overflow: hidden; position: relative; }
  .sol-card-bg  { position: absolute; inset: 0; background-size: cover; background-position: center; pointer-events: none; }
  .sol-card-dim { position: absolute; inset: 0; background: rgba(5,8,18,0.5); pointer-events: none; transition: opacity 0.35s ease; }
  .sol-card.is-active .sol-card-dim { opacity: 0; }

  .sol-card-content { flex: 0 0 20%; background: #0a0a0b; border-top: 1px solid rgba(255,255,255,0.07); padding: 1.411vw 1.411vw; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .sol-card-label { font-family: var(--font); font-weight: 700; font-size: clamp(14px, 1.853vw, 70px); letter-spacing: -0.3px; color: var(--text); line-height: 1.1; margin-bottom: 20px;}
  .sol-card-label-sub { font-size: clamp(10px, 0.677vw, 26px); font-weight: 500;  color: #c9c9c9; letter-spacing: 0.2px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .sol-controls { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 24px 0 44px; }

  /* ── 이미지 닷 네비게이션 ── */
  .sol-dots { display: flex; align-items: center; gap: clamp(10px, 0.78vw, 30px); background: transparent; border: none; padding: 0; }
  .sol-dot { position: relative; width: clamp(10px, 0.52vw, 20px); height: clamp(10px, 0.52vw, 20px); cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: visible; }
  .dot-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
  .dot-de { opacity: 1; transition: opacity 0.4s ease; }
  .dot-se { opacity: 0; transition: opacity 0.4s ease; }
  .dot-ring { opacity: 0; width: 260%; height: 260%; transition: opacity 0.4s ease; }
  /* ✅ 해상도 반응형 — 작은 화면에서 퍼지는 원 축소 */
  @media (max-width: 1280px) { .dot-ring { width: 220%; height: 220%; } }
  @media (max-width: 1024px) { .dot-ring { width: 190%; height: 190%; } }
  @media (max-width: 768px)  { .dot-ring { width: 160%; height: 160%; } }
  @media (max-width: 480px)  { .dot-ring { width: 140%; height: 140%; } }
  .sol-dot.active .dot-de { opacity: 0; }
  .sol-dot.active .dot-se { opacity: 1; }
  .sol-dot.active .dot-ring-1 { animation: dotPulse 2.4s linear infinite; }
  .sol-dot.active .dot-ring-2 { animation: dotPulse 2.4s linear -1.2s infinite; }
  @keyframes dotPulse {
    0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.55); }
    20%  { opacity: 0.7;  transform: translate(-50%, -50%) scale(0.9); }
    55%  { opacity: 0.35; transform: translate(-50%, -50%) scale(1.25); }
    85%  { opacity: 0.08; transform: translate(-50%, -50%) scale(1.6); }
    100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.85); }
  }

  /* ── PORTFOLIO ── */
  #portfolio { background: #08090c; min-height: 120vh;  padding-bottom: clamp(80px, 5.208vw, 200px); }
  #portfolio .sec-hd { padding-bottom: 0; }
  /* ✅ 분류 필터 임시 숨김 — 나중에 다시 활성화하려면 이 한 줄만 삭제 */
  .port-filters { display: none !important; }
  .port-filters { display: flex; justify-content: center; align-items: center; margin: clamp(40px, 4.688vw, 180px) auto 0; width: fit-content; max-width: 100%; border-bottom: 1px solid rgba(255,255,255,0.15); position: relative; flex-wrap: wrap; padding: 0 16px; }
  .port-filter-btn { background: none; border: none; font-family: var(--font); font-size: clamp(11px, 0.677vw, 26px); font-weight: 500; letter-spacing: 0.5px; color: rgba(255,255,255,0.4); padding: clamp(8px, 0.365vw, 14px) clamp(12px, 0.938vw, 36px); cursor: pointer; position: relative; transition: color 0.25s; -webkit-tap-highlight-color: transparent; }
  .port-filter-btn:hover { color: rgba(255,255,255,0.8); }
  .port-filter-btn.active { color: #fff; font-weight: 700; }
  .port-filter-btn.active::after { content: ''; position: absolute; bottom: -1px; left: clamp(12px, 0.938vw, 36px); right: clamp(12px, 0.938vw, 36px); height: 2px; background: #fff; border-radius: 1px; z-index: 1; }
  .portfolio-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; width: 100%; margin-top: clamp(72px, 7.5vw, 300px); /* 필터 숨김 보정 — 필터 재활성화 시 clamp(32px, 2.604vw, 100px) 로 복원 */ }
  .port-item { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; background: #111; border: 1px solid rgba(255,255,255,0.04); transition: opacity 0.35s ease, transform 0.35s ease; }
  .port-item.is-hiding { opacity: 0; transform: scale(0.96); pointer-events: none; }
  .port-thumb-placeholder { width: 100%; height: 100%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
  .port-item:hover .port-thumb-placeholder { transform: scale(1.04); }
  .port-yt-icon { width: 52px; height: 52px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; display: none; }
  .port-item:hover .port-yt-icon { background: #ff0000; transform: scale(1.15); }
  .port-yt-icon svg { width: 22px; height: 22px; fill: white; }
  .port-overlay { position: absolute; inset: 0; background: rgba(5,8,18,0.65); transition: opacity 0.35s; }
  .port-item:hover .port-overlay { opacity: 0; }
  .port-info { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: clamp(10px, 1.068vw, 41px); padding: 16px; text-align: center; transition: opacity 0.35s; }
  .port-item:hover .port-info { opacity: 0; }
  .port-title { font-size: clamp(12px, 0.911vw, 35px); font-weight: 700; color: #fff; line-height: 1.25; word-break: keep-all; }
  .port-tag   { font-size: clamp(10px, 0.443vw, 17px); font-weight: 400; letter-spacing: 1px; color: rgba(255,255,255,0.65); }

  #video-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
  #video-modal.active { display: flex; }
  .video-modal-wrap { position: relative; width: 100%; max-width: 1100px; }
  .video-modal-inner { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
  .video-modal-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
  .video-modal-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
  .video-modal-close:hover { background: rgba(255,255,255,0.35); }
  .port-more-wrap { display: flex; justify-content: center; margin-top: clamp(40px, 3.125vw, 120px); margin-bottom: clamp(10px, 0.521vw, 20px); padding: 0 16px; }
  .btn-more {
    width: clamp(150px, 5.859vw, 225px);
    height: clamp(50px, 2.031vw, 78px);
    padding: clamp(12px, 0.651vw, 25px) clamp(16px, 0.781vw, 30px) clamp(12px, 0.625vw, 24px) clamp(22px, 1.094vw, 42px);
    border: 2px solid #e0e0e0;
    background: transparent;
    color: #e0e0e0;
    font-size: clamp(14px, 0.625vw, 24px);
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.07px;
    line-height: 1.25;
    cursor: pointer;
    border-radius: clamp(25px, 1.016vw, 39px);
    transition: all 0.3s ease;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 0.365vw, 14px);
  }
  .btn-more:hover { border-color: #fff; color: #fff; }
  .btn-more .btn-more-icon {
    font-weight: 400;
    font-size: clamp(16px, 0.677vw, 26px);
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
  }
  .btn-more:hover .btn-more-icon { transform: rotate(90deg); }
  .btn-more.is-expanded .btn-more-icon { transform: rotate(45deg); }
  .btn-more.hidden { display: none; }
  .port-item.extra { display: none; }
  @keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

  /* ── CONTACT ── */
  #contact {
    padding: 0 0 clamp(40px, 2.083vw, 80px);
    background: var(--light-bg);
    border-top: 1px solid rgba(0,0,0,0.06);
    min-height: 100vh;
  }
  .contact-inner {
    width: 100%;
    max-width: 1890px;
    margin: 0 auto;
    padding: 0 clamp(20px, 1.042vw, 40px);
    box-sizing: border-box;
  }
  .contact-form-wrap {
    margin-top: clamp(60px, 5.99vw, 230px);
    display: flex;
    justify-content: center;
  }
  .contact-form {
    width: clamp(280px, 46.875vw, 1800px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  .contact-form .form-group { display: flex; flex-direction: column; }
  .contact-form label {
    font-family: var(--font);
    font-size: clamp(13px, 0.729vw, 28px);
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: clamp(10px, 0.781vw, 30px);
    line-height: 1;
  }
  .contact-form label .req { color: #e53935; margin-left: 4px; }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    height: clamp(44px, 2.214vw, 85px);
    padding: 0 clamp(12px, 0.781vw, 30px);
    background: #f5f5f5;
    border: 0;
    border-radius: 0;
    border-bottom: 3px solid #ebebeb;
    font-family: var(--font);
    font-size: clamp(13px, 0.521vw, 20px);
    color: var(--light-text);
    outline: none;
    box-sizing: border-box;
  }
  .contact-form input::placeholder,
  .contact-form textarea::placeholder { color: #b0b0b0; }
  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus { background: #eeeeee; }

  /* Row 1 */
  .form-row-3 {
    display: flex;
    justify-content: flex-start;
    gap: clamp(20px, 1.953vw, 75px);
    margin-bottom: clamp(24px, 2.083vw, 80px);
  }
  .form-row-3 .form-group {
    flex: 1;
    min-width: 0;
    width: clamp(180px, 14.323vw, 550px);
  }
  /* Row 2 */
  .form-row-email {
    display: flex;
    align-items: flex-end;
    margin-bottom: clamp(24px, 2.083vw, 80px);
  }
  .form-row-email .email-local {
    width: clamp(220px, 17.318vw, 665px);
    margin-right: clamp(8px, 0.651vw, 25px);
  }
  .email-at {
    width: auto;
    height: clamp(44px, 2.214vw, 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 0.729vw, 28px);
    color: var(--light-text);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: clamp(8px, 0.651vw, 25px);
  }
  .form-row-email .email-domain {
    width: clamp(160px, 13.542vw, 520px);
  }
  .form-row-email .email-select {
    width: clamp(160px, 13.542vw, 520px);
    margin-left: clamp(8px, 0.521vw, 20px);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../image/droparrow.png");
    background-repeat: no-repeat;
    background-position: right clamp(12px, 0.781vw, 30px) center;
    background-size: clamp(14px, 0.521vw, 20px) clamp(10px, 0.365vw, 14px);
    padding-right: clamp(30px, 1.823vw, 70px);
    cursor: pointer;
  }

  /* Row 3 */
  .form-row-message {
    margin-bottom: clamp(14px, 0.807vw, 31px);
  }
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    height: clamp(120px, 6.51vw, 250px);
    padding: clamp(14px, 0.781vw, 30px);
    resize: none;
    line-height: 1.6;
  }

  .form-privacy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: clamp(40px, 3.255vw, 125px);
  }
  .contact-form .privacy-check {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 0.365vw, 14px);
    cursor: pointer;
    font-family: var(--font);
    font-size: clamp(13px, 0.521vw, 20px);
    font-weight: 600;
    color: var(--light-text);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    margin-bottom: 0;
    user-select: none;
  }
  .privacy-check input[type="checkbox"] { display: none; }
  .privacy-box {
    width: clamp(18px, 0.677vw, 26px);
    height: clamp(18px, 0.677vw, 26px);
    border-radius: 50%;
    background: #1a1f2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .privacy-box::after {
    content: '';
    width: clamp(8px, 0.286vw, 11px);
    height: clamp(4px, 0.156vw, 6px);
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
  }
  .privacy-check input:not(:checked) + .privacy-box { background: #cccccc; }
  .privacy-detail {
    color: #999;
    font-size: clamp(11px, 0.469vw, 18px);
    text-decoration: none;
    margin-left: clamp(4px, 0.208vw, 8px);
  }

  .form-submit {
    display: flex;
    justify-content: center;
  }
  .contact-form .btn-submit {
    width: clamp(180px, 8.854vw, 340px);
    height: clamp(50px, 1.979vw, 76px);
    padding: 0;
    background: #111;
    color: #fff;
    border: none;
    border-radius: clamp(4px, 0.156vw, 6px);
    font-family: var(--font);
    font-size: clamp(14px, 0.677vw, 26px);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  .contact-form .btn-submit:hover {
    background: #333;
  }

  .form-success { display: none; text-align: center; padding: 24px 40px; border: 1px solid rgba(26,31,46,0.15); border-radius: 8px; background: rgba(26,31,46,0.04); margin-bottom: 24px; }
  .form-success.show { display: block; animation: fadeIn 0.3s ease; }
  .form-success h3 { font-size: clamp(16px, 0.625vw, 24px); font-weight: 700; color: var(--light-text); margin-bottom: 10px; }
  .form-success p { font-size: clamp(12px, 0.417vw, 16px); color: var(--light-text-dim); }

  /* ── FOOTER ── */
  .inner { max-width: 1440px; margin: 0 auto; width: 100%; padding: 0 120px; }
  .footer { background: #212121; padding: clamp(24px, 2.604vw, 50px) 0 clamp(20px, 1.875vw, 36px); }
  .footer .inner {
    max-width: 100%;
    padding: 0 clamp(20px, 6.25vw, 120px) 0 clamp(20px, 11vw, 700px);
    display: flex; flex-direction: column;
  }
  .footer-top {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: clamp(12px, 1.25vw, 24px);
    padding-bottom: clamp(20px, 2.083vw, 40px);
    margin-bottom: clamp(6px, 0.521vw, 10px);
  }
  .footer-logo { display: flex; align-items: center; gap: clamp(6px, 0.625vw, 12px); margin-left: -1.563vw; }
  .footer-logo img { height: clamp(30px, 2.917vw, 56px) !important; }
  .footer-logo-text .main { font-family: 'Pretendard', sans-serif; font-size: clamp(10px, 0.833vw, 16px); font-weight: 400; color: #fff; letter-spacing: -.3px; }
  .footer-logo-text .sub  { font-family: 'Pretendard', sans-serif; font-size: clamp(8px,  0.521vw, 10px); font-weight: 400; color: #aaa; letter-spacing: .5px; }
  .footer-nav {
    display: flex; flex-wrap: wrap;
    gap: clamp(12px, 3.125vw, 60px);
    list-style: none; padding: 0; margin: 0;
    margin-right: 7vw;
  }
  .footer-nav li a { font-family: 'Pretendard', sans-serif; font-size: clamp(10px, 0.677vw, 13px); font-weight: 400; color: #888; text-decoration: none; transition: color .2s; }
  .footer-nav li a:hover { color: #fff; }
  .footer-info { margin-bottom: clamp(12px, 1.25vw, 24px); }
  .footer-info p { font-family: 'Pretendard', sans-serif; font-size: clamp(9px, 0.625vw, 12px); font-weight: 400; color: #888; line-height: 1.8; word-break: keep-all; }
  .footer-info .divider { margin: 0 clamp(4px, 0.417vw, 8px); color: #555; }
  .footer-copy { font-family: 'Pretendard', sans-serif; font-size: clamp(8px, 0.573vw, 11px); font-weight: 400; color: #555; }

  /* ── SCROLL REVEAL ── */
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1); }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ══════════════════════════════════════════════════════════════ */
  /* ══ RESPONSIVE ══════════════════════════════════════════════ */
  /* ══════════════════════════════════════════════════════════════ */

  /* ── 2560px ── */
  @media (max-width: 2560px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 160px; }
  }

  /* ── 1920px ── */
  @media (max-width: 1920px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 120px; }
    .sol-card { width: 460px; height: 540px; }
  }

  /* ── 1440px ── */
  @media (max-width: 1440px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 80px; }
    .sol-card { width: 440px; height: 510px; }
    .hero-content { padding: clamp(100px, 13.542vw, 520px) 80px 0 80px; margin-left: 0; }
    .footer .inner { padding: 0 80px 0 clamp(60px, 11vw, 220px); }
  }

  /* ── 1280px ── */
  @media (max-width: 1280px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 60px; }
    .hd-menu { gap: 32px; }
    .hd-menu li a { font-size: 14px; }
    .sol-card { width: 400px; height: 470px; }
    .sol-card-label { font-size: 28px; margin-bottom: 10px; }
    .sol-card-label-sub { font-size: 13px; }
    .hero-content { padding: 100px 60px 0 60px; }
    .hero-title { font-size: clamp(32px, 5vw, 70px); }
    .hero-sub { font-size: clamp(14px, 1.6vw, 20px); }
    .sec-hd-title { font-size: clamp(32px, 5vw, 80px); }
    .sec-hd-sub { font-size: clamp(11px, 1.2vw, 16px); }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .footer .inner { padding: 0 60px 0 120px; }
  }

  /* ── 1024px (태블릿 가로) : 햄버거 시작 ── */
  @media (max-width: 1024px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 40px; }
    .hd-menu { display: none; }
    .hd-burger { display: block; }

    /* 로고 크기·위치 통일 — index.html 과 동일 */
.hd-logo { margin-left: -24px; }
.hd-logo img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

    .hero-content { padding: 100px 40px 0 40px; align-items: flex-start; }
    .hero-sub { font-size: 16px; }
    .hero-title { font-size: clamp(34px, 6.5vw, 60px); }

    .sec-hd { padding-top: clamp(50px, 8vw, 120px); }
    .sec-hd-title { font-size: clamp(34px, 6.5vw, 64px); }
    .sec-hd-sub { font-size: 13px; }

    /* 캐러셀 : 태블릿 */
    #solutions { height: auto; min-height: 100vh; padding-bottom: 40px; }
    .sol-track { min-height: 520px; padding: 20px 0; }
    .sol-card { width: 340px; height: 420px; }
    .sol-card-label { font-size: 24px; margin-bottom: 8px; }
    .sol-card-label-sub { font-size: 12px; }
    .sol-controls { padding: 16px 0 28px; }
    .sol-dots { gap: 14px; }
    .sol-dot { width: 14px; height: 14px; }

    /* 포트폴리오 */
    .port-filters {
      border-bottom: 1px solid rgba(255,255,255,0.15);
      overflow-x: auto;
      flex-wrap: nowrap;
      justify-content: flex-start;
      scrollbar-width: none;
      -ms-overflow-style: none;
      width: 100%;
      padding: 0 24px;
    }
    .port-filters::-webkit-scrollbar { display: none; }
    .port-filter-btn {
      flex-shrink: 0;
      font-size: 13px;
      padding: 10px 16px;
      white-space: nowrap;
    }
    .port-filter-btn.active::after { left: 16px; right: 16px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

    /* 문의 폼 */
    .contact-inner { padding: 0 40px; }
    .contact-form-wrap { margin-top: 60px; }
    .contact-form { width: 100%; }
    .form-row-3 { gap: 20px; margin-bottom: 28px; }
    .form-row-email {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      grid-template-rows: auto auto;
      column-gap: 8px;
      row-gap: 12px;
      align-items: end;
      margin-bottom: 24px;
    }
    .form-row-email .email-local {
      grid-column: 1;
      grid-row: 1;
      width: auto;
      margin: 0;
    }
    .email-at {
      display: flex;
      grid-column: 2;
      grid-row: 1;
      width: auto;
      height: 48px;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 0 2px;
      font-size: 18px;
      font-weight: 500;
    }
    .form-row-email .email-domain {
      grid-column: 3;
      grid-row: 1;
      width: auto;
      margin: 0;
    }
    .form-row-email .email-select {
      grid-column: 1 / -1;
      grid-row: 2;
      width: 100%;
      margin: 0;
    }
    .contact-form label { font-size: 14px; margin-bottom: 10px; }
    .contact-form input, .contact-form select, .contact-form textarea { height: 48px; font-size: 14px; padding: 0 14px; }
    .contact-form textarea { height: 160px; padding: 14px; max-width: 100%; }
    .form-privacy { margin-bottom: 40px; }
    .contact-form .privacy-check { font-size: 13px; gap: 8px; }
    .privacy-box { width: 20px; height: 20px; }
    .privacy-detail { font-size: 12px; }
    .contact-form .btn-submit { width: 220px; height: 52px; font-size: 15px; border-radius: 6px; }

    /* 푸터 */
    .footer .inner { padding: 0 40px; }
    .footer-logo { margin-left: 0; }
    .footer-nav { gap: 20px; margin-right: 0; }
  }

  /* ── 900px ── */
  @media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ── 768px (태블릿 세로 / 큰 모바일) ── */
  @media (max-width: 768px) {
    #main-nav { padding: 12px 0; }
    #content-nav { padding: 12px 0; }
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 20px; }
    /* .hd-logo img { height: 36px; width: 140px; } */
    .hd-logo img { height: 40px; width: auto; display: block; object-fit: contain; object-position: left center; }

    .hero-content {
        padding: 0 24px;
        justify-content: flex-end;          /* 세로: 하단 정렬 */
        align-items: flex-start;            /* ⭐ 가로: 좌측 정렬 */
        padding-bottom: 120px;
        text-align: left;                   /* ⭐ 텍스트 좌측 정렬 */
    }
    .hero-sub { font-size: 14px; margin-bottom: 12px; }
    .hero-title { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.2; }

    .sec-hd { padding-top: 60px; }
    .sec-hd-title { font-size: clamp(30px, 8vw, 48px); letter-spacing: -1px; }
    .sec-hd-sub { font-size: 12px; padding: 0 20px; }

    /* 캐러셀 : 모바일 */
    #solutions { height: auto; min-height: auto; padding: 0 0 30px; }
    .sol-track { min-height: 460px; }
    .sol-card { width: 280px; height: 360px; border-radius: 16px; }
    .sol-card-content { padding: 16px 16px; }
    .sol-card-label { font-size: 20px; margin-bottom: 6px; }
    .sol-card-label-sub { font-size: 11px; }
    .sol-controls { padding: 12px 0 24px; }

    /* 포트폴리오 */
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .port-filters { padding: 0 20px; }
    .port-filter-btn { font-size: 12px; padding: 9px 14px; }
    .port-info { padding: 12px; gap: 8px; }
    .port-title { font-size: 13px; }
    .port-tag { font-size: 10px; letter-spacing: 0.5px; }
    .port-more-wrap { margin-top: 40px; }
    .btn-more { width: 180px; height: 50px; font-size: 14px; border-radius: 30px; }

    /* 문의 폼 */
    .contact-inner { padding: 0 20px; }
    .contact-form-wrap { margin-top: 40px; }
    .contact-form label { font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.1px; }
    .form-row-3 { flex-direction: column; gap: 14px; margin-bottom: 16px; }
    .form-row-3 .form-group { width: 100%; }
    .form-row-email {
      column-gap: 6px;
      row-gap: 10px;
      margin-bottom: 16px;
    }
    .email-at {
      height: 46px;
      font-size: 16px;
      padding: 0 1px;
    }
    .contact-form input, .contact-form select, .contact-form textarea { height: 46px; font-size: 14px; padding: 0 12px; border-bottom-width: 2px; }
    .contact-form textarea { height: 140px; padding: 14px; max-width: 100%; }
    .form-row-message { margin-bottom: 14px; }
    .form-privacy { margin-bottom: 26px; }
    .privacy-detail { margin-left: 6px; }
    .contact-form .btn-submit { width: 100%; max-width: 320px; height: 50px; }

    /* 푸터 */
    .footer { padding: 28px 0 22px; }
    .footer .inner { padding: 0 20px; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
    .footer-logo img { height: 36px !important; }
    .footer-nav { gap: 12px 18px; margin-right: 0; }
    .footer-nav li a { font-size: 12px; }
    .footer-info p { font-size: 11px; line-height: 1.7; }
    .footer-info .divider { display: none; }
    .footer-copy { font-size: 10px; }
    .footer-logo { margin-left: -20px; }   /* 새로 추가 */

    /* 비디오 모달 */
    .video-modal-close { top: -42px; width: 36px; height: 36px; font-size: 16px; }
  }

  /* ── 640px ── */
  @media (max-width: 640px) {
    .sol-card { width: 260px; height: 340px; }
    .sol-card-label { font-size: 18px; }
    .hero-title { font-size: clamp(26px, 8vw, 40px); }
  }

  /* ── 480px (소형 모바일) ── */
  @media (max-width: 480px) {
    #main-nav .hd-row, #content-nav .hd-row { padding: 0 16px; }
    .hd-logo img { height: 40px; width: auto; display: block; object-fit: contain; object-position: left center; }

    .hero-content {
        padding: 0 20px;
        padding-bottom: 110px;
        justify-content: flex-end;
        align-items: flex-start;            /* ⭐ 좌측 */
        text-align: left;                   /* ⭐ 좌측 */
    }
    .hero-title { font-size: 26px; }
    .hero-sub { font-size: 13px; }

    .sec-hd-title { font-size: 30px; }
    .sec-hd-sub { font-size: 11px; }

    .sol-track { min-height: 420px; }
    .sol-card { width: 240px; height: 320px; border-radius: 14px; }
    .sol-card-content { padding: 14px 14px; }
    .sol-card-label { font-size: 17px; }
    .sol-card-label-sub { font-size: 10.5px; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .port-item { aspect-ratio: 16/9; }   /* 2컬럼 유지용으로 원래 비율로 복구 */
    .port-title { font-size: 12px; line-height: 1.3; }
    .port-tag   { font-size: 9px; letter-spacing: 0.3px; }
    .port-info  { padding: 8px; gap: 6px; }

    .contact-form label { font-size: 12.5px; }
    .form-row-email { column-gap: 4px; row-gap: 8px; }
    .email-at { font-size: 14px; height: 44px; padding: 0; }
    .contact-form input, .contact-form select, .contact-form textarea { height: 44px; font-size: 13.5px; }
    .form-privacy { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 24px; }
    .contact-form .privacy-check { flex-wrap: wrap; }

    .footer-nav { gap: 10px 14px; }
    .footer-logo { margin-left: -20x; }   /* 새로 추가 */
  }

  /* ── 가로 모드 짧은 높이 (모바일 가로) ── */
  @media (max-height: 500px) and (orientation: landscape) {
    #hero { min-height: 500px; }
    .hero-content { padding: 60px 24px 0 24px; }
    #solutions { min-height: 600px; }
    .sol-track { min-height: 360px; }
    .sol-card { height: 300px; width: 240px; }
  }

  /* ── 초고해상도 ── */
  @media (min-width: 2561px) {
    .sol-card { width: 540px; height: 640px; }
  }


/* 모바일 히어로 텍스트 가로/세로 중앙 정렬 */
@media (max-width: 768px) {
  .hero-content {
    height: 100vh !important;
    min-height: 100vh !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    text-align: center !important;
    margin-left: 0 !important;

    /* 기존 상단 padding 제거 */
    padding: 0 24px !important;
  }

  .hero-sub,
  .hero-title {
    width: 100%;
    text-align: center !important;
  }

  .hero-title {
    /* 기존 margin-bottom: -10.417vw 제거 */
    margin-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-content {
    height: 100vh !important;
    min-height: 100vh !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 20px !important;
    text-align: center !important;
  }

  .hero-sub,
  .hero-title {
    text-align: center !important;
    width: 100%;
  }

  .hero-title {
    margin-bottom: 0 !important;
  }
}


/* 문의제목 row — 이메일 / 문의내용 사이 간격 (기존 form-row-email 패턴 동일) */
.form-row-subject {
    margin-bottom: clamp(24px, 2.083vw, 80px);
}
@media (max-width: 1024px) {
    .form-row-subject { margin-bottom: 28px; }
}
@media (max-width: 768px) {
    .form-row-subject { margin-bottom: 20px; }
}

