/* 모바일·태블릿 반응형 (PC 기준). PC 모양을 바꾸지 않도록 max-width 미디어쿼리 안에만 쓴다 */

@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
  body { word-break: keep-all; overflow-wrap: break-word; }
  img, video { max-width: 100%; }

  /* 같은 색을 lab()/color-mix 대신 일반 색값으로 (대비 측정·구형 브라우저 대응) */
  .text-white\/90 { color: rgba(255, 255, 255, .9); }
  .text-white\/80 { color: rgba(255, 255, 255, .8); }
  .text-white\/70 { color: rgba(255, 255, 255, .7); }
  .text-neutral-200 { color: #e5e5e5; }
  .text-neutral-300 { color: #d4d4d4; }
  .text-neutral-400 { color: #a1a1a1; }

  /* 머리글: 높이 고정 + 햄버거 메뉴 (CSS 만) */
  header[data-blk="f01"] { height: 68px !important; }
  header[data-blk="f01"] > div { padding-left: 20px; padding-right: 20px; }
  header[data-blk="f01"] .m-nav-btn {
    display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -8px; cursor: pointer; flex-shrink: 0;
  }
  header[data-blk="f01"] .m-nav-btn span {
    display: block; width: 24px; height: 2px; border-radius: 2px; background: #fff;
    transition: transform .25s ease, opacity .25s ease;
  }
  header[data-blk="f01"] nav { display: none !important; }
  header[data-blk="f01"] #m-nav:checked ~ nav {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 12px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 20px; background: #0f0f0f; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  header[data-blk="f01"] #m-nav:checked ~ nav a { justify-content: center; margin-left: 0; min-height: 52px; font-size: 16px !important; }
  header[data-blk="f01"] #m-nav:checked ~ .m-nav-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  header[data-blk="f01"] #m-nav:checked ~ .m-nav-btn span:nth-child(2) { opacity: 0; }
  header[data-blk="f01"] #m-nav:checked ~ .m-nav-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* 첫 화면: 한 화면 높이, 영상이 폭을 꽉 채우고 글은 처음부터 보이게 */
  .hero-runway { height: 100svh !important; }
  .hero-runway .hero-stage { height: 100svh; padding-top: 96px; padding-bottom: 56px; }
  .hero-runway .hero-stage > .relative { transform: none !important; opacity: 1 !important; }
  .hero-runway video { width: 100%; height: 100%; object-fit: cover; }
  .hero-runway h1 span.block { font-size: clamp(2.1rem, 7vw, 3.6rem); }

  /* 큰 제목 줄이기 */
  [data-blk="b02"] h2 span.block { font-size: clamp(2.4rem, 8vw, 4.4rem); }
  .h-display .h-en { font-size: clamp(2.6rem, 9vw, 4.2rem); }

  /* 가로 2칸 이상 영역: 태블릿은 2칸, 휴대폰은 1칸 */
  [data-blk="b08"] > .grid > div:first-child > div,
  [data-blk="b09"] > .grid > div:last-child > div { min-height: 0 !important; }

  /* 바닥글 */
  footer > div > div.grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  footer > div > div.grid > div:first-child { grid-column: 1 / -1; }

  /* PC 오른쪽 아래 상담 버튼: 모바일에서도 보이게, 작게 */
  [data-blk="f02"] { display: flex !important; right: 14px; bottom: 14px; gap: 8px; }
  [data-blk="f02"] > a { width: 46px; height: 46px; }
  [data-blk="f02"] > a svg { width: 20px; height: 20px; }
}

@media (max-width: 767px) {
  [data-blk="b08"] > .grid, [data-blk="b09"] > .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-runway .hero-stage { padding-bottom: 40px; }
  .hero-runway h1 span.block { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  [data-blk="b02"] h2 span.block { font-size: clamp(2.2rem, 11vw, 2.9rem); }
  footer > div > div.grid { gap: 24px 16px; }
  [data-blk="f02"] > a { width: 42px; height: 42px; }
}
