/* =========================================================
   ES EUNSUNG / CUBIC WORK - 공통 스타일
   색상은 아래 :root 값만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
  --c-bg-left: #ebebeb;      /* 배너 왼쪽 연회색 */
  --c-bg-right: #cfd6e2;     /* 배너 오른쪽 블루그레이 */
  --c-gray: #808080;         /* 사이드바 · 푸터 · 활성 메뉴 */
  --c-text: #111;
  --c-text-sub: #8c8c8c;     /* 본문 회색 글씨 */
  --c-placeholder: #f5f5f5;  /* 이미지 자리 */
  --c-line: #111;
  --c-ivory: #f9f6f0;        /* 큐빅워크 배경 아이보리 */
  --c-beige: #ece5d6;        /* 영상 자리 등 베이지 */
  --c-gold-line: #e3d8bf;    /* 헤더 구분선 */
  --c-brown: #8a6a35;        /* CUBIC WORK · CS CENTER 글씨 */
  --c-gold-text: #9a7425;
  --container: 1480px;
  --header-h: 72px;
  --nav-pad: 22px;           /* 메뉴 좌우 여백 */
}

/* 노트북 화면(1280px 이상)에서도 큰 모니터처럼 양옆 여백을 두도록 본문 폭을 화면의 최대 80%로 제한
   (양옆 약 10%씩). 큰 모니터에서는 1480px 상한이 먼저 적용되어 지금과 같음 */
@media (min-width: 1280px) {
  :root { --container: min(1480px, calc(80vw + 48px)); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--c-text);
  background: var(--c-ivory);
  line-height: 1.6;
  word-break: keep-all;
  /* 내용이 짧아도 푸터가 화면 맨 아래에 붙도록 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > * { flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 이미지 자리(실제 이미지 받으면 <img>로 교체) ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-placeholder);
  color: #b5b5b5;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

/* =========================================================
   헤더 (가운데 로고 + 아래 메뉴 줄)
   ========================================================= */
site-header, site-footer { display: block; } /* 공통 컴포넌트(js/header-footer.js) */
.header { background: var(--c-ivory); position: relative; z-index: 10; }
.header__logo { display: flex; justify-content: center; padding: 44px 0 40px; }
.header__bar { border-top: 1px solid var(--c-gold-line); border-bottom: 1px solid var(--c-gold-line); }
/* 3칸: 왼쪽 CUBIC WORK | 가운데 메뉴 | 오른쪽(빈칸·모바일 메뉴 버튼). 좌우 칸 폭이 같아 메뉴가 로고 기준 정가운데 */
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); }
.header__inner .nav { grid-column: 2; grid-row: 1; }
.header__inner .nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
.brand { font-family: "Cinzel", "Times New Roman", serif; font-size: 15px; font-weight: 600; letter-spacing: 7px; color: var(--c-brown); white-space: nowrap; justify-self: start; }

/* 로고: images/logo/logo.webp 가 있으면 이미지, 없으면 글자 로고(.logo--text) */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__img { display: block; height: 66px; width: auto; }
.logo__en, .logo__ko { display: none; }
.logo--text .logo__en, .logo--text .logo__ko { display: block; }
.logo__en { font-size: 30px; font-weight: 700; letter-spacing: .5px; color: #111; }
.logo__ko { margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: 3px; color: #555; }

.nav__list { display: flex; gap: 8px; }
.nav__link {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--nav-pad);
  font-size: 18px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--c-brown); }
/* 현재 페이지: 글자 아래 갈색 밑줄 */
.nav__link.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: #111;
  content: ""; transition: transform .2s, top .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   메인 (ULTRASONIC HEAT DECO)
   ========================================================= */
.eyebrow { color: var(--c-gold-text); font-size: 15px; font-weight: 700; letter-spacing: 5px; }
.cubic-hero { padding-top: 70px; }
.cubic-hero__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 0; }
.cubic-hero__inner { position: relative; }
.cubic-hero__inner::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: #222; }
.cubic-hero .eyebrow { margin-bottom: 12px; }
.cubic-hero__title { padding-bottom: 26px; }
.cubic-hero__title { font-size: 34px; font-weight: 900; line-height: 1.5; letter-spacing: 3px; color: #111; }
.cubic-hero__sub { padding-bottom: 30px; font-size: 18px; color: #555; }

.cubic-show { padding-top: 24px; padding-bottom: 60px; }
/* 영상 + 사진 묶음은 가운데 1100px (영상 16:9 → 세로 약 620px). 넓히려면 1100 숫자만 변경 */
.container.cubic-show { max-width: calc(1100px + 48px); }
.cubic-show__video { position: relative; aspect-ratio: 16 / 9; background: var(--c-beige); }
.cubic-show__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cubic-show__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #555; }
.cubic-show__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.cubic-show__photos li { aspect-ratio: 4 / 3; /* 가로가 조금 긴 직사각형 */ background: var(--c-beige); overflow: hidden; }
.cubic-show__photos img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   메인 - 히어로
   ========================================================= */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  container-type: inline-size; /* 100cqw = 페이지 폭 (헤더 .container 기준과 동일) */
}
.hero__stage {
  background: linear-gradient(to right, var(--c-bg-left) 0 40%, var(--c-bg-right) 40% 100%);
  /* 왼쪽 여백을 헤더 .container 안쪽 시작점과 맞춰 로고 왼쪽 = 흰 카드 왼쪽 */
  padding: 50px 24px 50px max(24px, calc((100cqw - var(--container)) / 2 + 24px));
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero__card {
  background: #fff;
  width: 100%;
  /* 오른쪽 끝 = 마지막 메뉴(출장 미팅 예약문의) 글자 끝 */
  max-width: calc(var(--container) - 48px - var(--nav-pad));
  padding: 45px 55px;
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  gap: 20px;
}
.hero__thumbs {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  contain: size; /* 높이는 영상 높이를 따라감 → 썸네일 3개 합 = 영상 높이 */
}
.hero__thumbs .ph,
.hero__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: relative; aspect-ratio: 16 / 9.5; background: #000; }
.hero__video iframe,
.hero__video video,
.hero__video .ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero__video .ph { background: var(--c-gray); color: #fff; font-size: clamp(28px, 6vw, 80px); font-weight: 700; }

/* 사이드바 (CS CENTER) */
.cs {
  background: var(--c-gray);
  color: #fff;
  padding: 50px 18px 40px;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
}
.cs__title { text-align: center; font-size: 16px; margin-bottom: 30px; letter-spacing: .5px; }
.cs__list li { margin-bottom: 26px; letter-spacing: .5px; word-spacing: 2px; } /* 전화번호 숫자 사이 여유 */
.cs__list a:hover { text-decoration: underline; }
.cs__mail { word-break: break-all; letter-spacing: 0; word-spacing: 0; }
.cs__hours { font-size: 14px; font-weight: 400; line-height: 1.7; margin: 10px 0 40px; }
.cs__brand {
  margin-top: auto;
  background: #fff;
  padding: 16px 12px;
}
.cs__brand .ph { height: 50px; background: #fff; color: #a07a55; font-weight: 700; letter-spacing: 1px; }

/* =========================================================
   서브 페이지 - 상단 배너
   ========================================================= */
.banner { padding: 38px 0 0; }
.banner__box {
  background: linear-gradient(to right, var(--c-bg-left) 0 36%, var(--c-bg-right) 36% 100%);
  padding: 42px 50px;
}
.banner__text {
  background: #fff;
  text-align: center;
  padding: 20px 24px;
  color: var(--c-text-sub);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================================================
   회사소개
   ========================================================= */
.intro {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 70px 0 60px;
}
.intro__img .ph { aspect-ratio: 4 / 3; }
.intro__text { color: var(--c-text-sub); font-size: 17px; font-weight: 500; line-height: 1.75; }
.intro__text p + p { margin-top: 22px; }

.patents {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 20px 0 100px;
}
.patents figure { width: 290px; }
.patents .ph { aspect-ratio: 1 / 1.45; }

/* =========================================================
   작업내역 (카드 그리드) - 예시 포트폴리오에서도 재사용
   ========================================================= */
.works { padding: 30px 0 90px; }
.works__head { display: flex; align-items: center; gap: 50px; margin-bottom: 20px; padding-left: 40px; }
.works__head .ph { width: 160px; height: 44px; background: #fff; color: #a07a55; font-weight: 700; letter-spacing: 1px; }
.works__title { font-size: 17px; font-weight: 500; }
.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
  padding: 0 20px;
}
.work-card .ph { aspect-ratio: 1 / 1; }
.work-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.work-card__title { margin-top: 12px; font-size: 16px; }

/* =========================================================
   제작 생산 문의 · 출장 미팅 예약문의 (밑줄형 입력칸 + 자동등록방지)
   ========================================================= */
.cubic-inquiry .container + .container { padding-top: 40px; padding-bottom: 80px; }
.inq-form em { font-style: normal; color: #c0392b; }
.uform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
.ufield { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ufield--full { grid-column: 1 / -1; }
.ufield > label { font-size: 14px; font-weight: 700; color: #222; }
.uform input[type="text"],
.uform input[type="tel"],
.uform input[type="email"] {
  width: 100%; height: 40px; padding: 0 4px;
  border: 0; border-bottom: 1px solid #222; border-radius: 0;
  background: transparent; font: inherit; font-size: 15px;
}
.uform textarea {
  width: 100%; min-height: 300px; padding: 14px;
  border: 1px solid #e3dccd; background: #fff;
  font: inherit; font-size: 15px; line-height: 1.6; resize: vertical;
}
.uform input:focus { outline: 0; border-bottom: 2px solid var(--c-brown); }
.uform textarea:focus { outline: 2px solid var(--c-brown); outline-offset: -1px; }
.uform .is-invalid { border-color: #c0392b; }
.uform input.is-invalid { border-bottom: 2px solid #c0392b; }

/* 첨부파일: 실제 파일칸은 숨기고 버튼 + 파일명 표시 (길면 ... 으로 줄임) */
.ufield__file { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.inq-file { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 14px; }
.inq-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.inq-file__btn {
  flex-shrink: 0; display: inline-flex; align-items: center;
  height: 36px; padding: 0 18px;
  border: 1px solid #b89a5e; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--c-brown);
  cursor: pointer; white-space: nowrap;
}
.inq-file__btn:hover { background: #f1eadb; }
.inq-file__input:focus-visible + .inq-file__btn { outline: 2px solid var(--c-brown); outline-offset: 1px; }
.inq-file__input.is-invalid + .inq-file__btn { border-color: #c0392b; }
.inq-file__name { min-width: 0; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inq-help { flex-shrink: 0; font-size: 12px; color: #888; }
.inq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 개인정보 수집·이용 동의 */
.consent { margin-top: 26px; padding: 24px 24px 22px; background: #fff; border: 1px solid #e3dccd; }
.consent__title { font-size: 15px; font-weight: 700; color: #222; }
.consent__list { margin-top: 12px; padding-left: 18px; list-style: disc; font-size: 13px; line-height: 1.8; color: #555; }
.consent__agree { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #222; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: #2a2725; cursor: pointer; }
.check input.is-invalid { outline: 2px solid #c0392b; outline-offset: 1px; }
.consent__link { font-size: 12px; color: #555; text-decoration: underline; }

/* 자동등록방지 + 접수 버튼 */
.form-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-top: 38px; padding-top: 28px; border-top: 1px solid #a8987a; }
.captcha__label { font-size: 13px; font-weight: 700; color: #222; margin-bottom: 10px; }
.captcha__row { display: flex; gap: 6px; }
.captcha__img { flex: 0 0 96px; width: 96px; height: 38px; background: var(--c-beige); }
.uform input.captcha__input { flex: 0 0 92px; width: 92px; height: 38px; padding: 0; border: 1px solid #e3dccd; background: #fff; font-size: 17px; letter-spacing: 2px; text-align: center; }
.uform input.captcha__input:focus { outline: 2px solid var(--c-brown); outline-offset: -1px; border-bottom: 1px solid #e3dccd; }
.captcha__btn {
  flex: 0 0 38px; width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid #b89a5e; background: transparent; color: var(--c-brown);
  cursor: pointer;
}
.captcha__btn:hover { background: #f1eadb; }
.captcha__help { margin-top: 10px; font-size: 12px; color: #555; }
.btn-dark {
  min-width: 164px; height: 46px; padding: 0 24px;
  border: 0; background: #2a2725; color: #fff;
  font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-dark:hover { background: #45403b; }
.btn-dark:disabled { opacity: .6; cursor: default; }

/* 안내 모달 */
.modal {
  margin: auto;
  width: min(360px, calc(100% - 32px));
  padding: 32px 24px 24px;
  border: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  text-align: center;
}
.modal::backdrop { background: rgba(0,0,0,.45); }
.modal__text { font-size: 16px; font-weight: 500; line-height: 1.7; white-space: pre-line; margin-bottom: 24px; }
.modal__btn { min-width: 140px; }

/* =========================================================
   서브 페이지 공통 제목 (ABOUT US / 회사소개 + 오른쪽 소개 문구)
   ========================================================= */
.sub-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-top: 56px; padding-bottom: 24px; }
.sub-head::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: #222; }
.sub-head .eyebrow { margin-bottom: 10px; font-size: 14px; }
.sub-head__title { font-size: 40px; font-weight: 900; line-height: 1.2; color: #222; }
.sub-head__desc { font-size: 15px; line-height: 1.7; color: #555; text-align: right; }
.sub-head__desc strong { color: #222; }
.sub-head__crumb { display: flex; gap: 8px; font-size: 14px; color: #666; }
.sub-head__crumb a:hover { color: var(--c-brown); }

/* =========================================================
   회사소개 (큐빅워크)
   ========================================================= */
.about-cubic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 60px; padding-top: 46px; padding-bottom: 46px; }
.about-cubic__text { font-size: 16px; line-height: 1.9; color: #444; }
.about-cubic__text p + p { margin-top: 22px; }
.about-cubic__photo { aspect-ratio: 3 / 2; align-self: start; /* 글 높이에 맞춰 낮게 */ background: var(--c-beige); overflow: hidden; }
.about-cubic__photo img { width: 100%; height: 100%; object-fit: cover; }

/* 왼쪽 PATENT | 가운데 특허증 | 오른쪽 빈칸 (좌우 같은 폭이라 특허증이 화면 정가운데) */
.patent-row { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; padding-top: 26px; padding-bottom: 70px; }
.patent-row::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: #c9b07a; }
.patent-row__label { padding-top: 4px; font-size: 14px; }
.patent-row__list { display: flex; justify-content: center; gap: 120px; }
.cert { width: 290px; text-align: center; }
.cert__frame { padding: 14px; background: #fff; border: 3px solid #ece3cf; aspect-ratio: 290 / 383; }
.cert__frame img { width: 100%; height: 100%; object-fit: contain; }
.cert figcaption { margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--c-brown); }

/* =========================================================
   작업내역 · 예시 포트폴리오 (카드 + 페이지 번호)
   ========================================================= */
.wgrid-wrap { padding-top: 40px; padding-bottom: 80px; }
.wgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.wcard__img { position: relative; aspect-ratio: 4 / 3; /* 가로가 조금 긴 직사각형 (정사각형은 1 / 1) */ background: var(--c-beige); overflow: hidden; }
.wcard__img:empty::after { content: "이미지"; position: absolute; inset: 0; display: grid; place-items: center; color: #9b907c; font-size: 15px; }
.wcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wcard:hover .wcard__img img { transform: scale(1.04); }
.wcard__title { margin-top: 14px; font-size: 16px; font-weight: 700; color: #222; }

/* 페이지 번호: 네모 칸 없이 글자만, 현재 페이지는 갈색 + 밑줄 */
.pager { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 64px; font-family: "Cinzel", "Times New Roman", serif; }
.pager__item { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 14px; padding-bottom: 6px; font-size: 17px; color: #a39b8d; transition: color .2s; }
.pager__item:hover { color: #222; }
.pager__item.is-current { color: var(--c-brown); font-weight: 600; }
.pager__item.is-current::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 1.5px; background: var(--c-brown); transform: translateX(-50%); }
.pager__arrow { color: #555; padding-bottom: 6px; }
.pager__arrow:first-child { margin-right: 10px; }
.pager__arrow:last-child { margin-left: 10px; }
.pager__item.is-disabled { color: #d6cfc2; pointer-events: none; }

/* =========================================================
   푸터 (CS CENTER 줄 + 가운데 회사 정보)
   ========================================================= */
.footer { background: var(--c-ivory); padding: 0 24px 30px; }
.footer__inner { max-width: calc(var(--container) - 48px); margin: 0 auto; } /* 폭 = 헤더·영상·사진과 같은 좌우 여백 */
.footer a:hover { text-decoration: underline; }
.cs-line {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; align-items: center; gap: 20px;
  padding: 20px 0; border-top: 1px solid #a8987a; border-bottom: 1px solid #a8987a;
  text-align: center;
}
.cs-line__title { font-family: "Cinzel", "Times New Roman", serif; font-size: 26px; font-weight: 500; letter-spacing: 3px; color: var(--c-brown); }
.cs-line__list { font-size: 15px; font-weight: 500; line-height: 1.65; color: #222; }
.cs-line__info { font-size: 13px; line-height: 1.65; color: #444; }
.cs-line__mail { margin-bottom: 2px; font-size: 15px; font-weight: 500; color: #222; white-space: nowrap; }
.cs-line__brand {
  display: grid; place-items: center; width: 240px; height: 46px; justify-self: end; /* 오른쪽 끝 = 위아래 선 끝 */
  border: 1.5px solid #c9b07a;
  font-family: "Cinzel", "Times New Roman", serif; font-size: 16px; font-weight: 600; letter-spacing: 4px; color: var(--c-brown);
}
.cs-line__brand:hover { text-decoration: none !important; background: #f3ecdc; }
.footer__company { margin-top: 110px; padding-top: 26px; border-top: 1px solid var(--c-gold-line); text-align: center; }
.logo--footer { margin-bottom: 22px; }
.logo--footer .logo__img { height: 36px; }
.footer__info { font-size: 13px; line-height: 2; color: #555; }
.footer__info span + span::before { content: "·"; margin: 0 6px; }
.footer__policy { display: flex; justify-content: center; gap: 26px; margin-top: 12px; font-size: 13px; color: #444; }
.footer__policy .is-strong { color: #111; font-weight: 700; }
.footer__copy { margin-top: 10px; font-size: 12px; letter-spacing: 3px; color: #a08a5c; }

/* 서브 페이지: 어두운 한 단 푸터 (왼쪽 로고·정보 / 오른쪽 정책·저작권) */
.footer--dark { background: #2a2725; padding: 40px 24px 34px; }
.footer--dark .footer__company { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-top: 0; padding-top: 0; border-top: 0; text-align: left; }
.footer--dark .logo--footer { align-items: flex-start; margin-bottom: 16px; padding-right: 18px; border-right: 1px solid #55504a; }
.footer--dark .logo--footer .logo__img { height: 38px; }
.footer--dark .logo--footer .logo__en { color: #fff; }
.footer--dark .footer__info { color: #bdb8b0; }
.footer--dark .footer__right { text-align: right; }
.footer--dark .footer__policy { justify-content: flex-end; color: #d8d3cb; margin-top: 0; }
.footer--dark .footer__policy .is-strong { color: #fff; }
.footer--dark .footer__copy { letter-spacing: 0; font-size: 13px; color: #bdb8b0; }

/* =========================================================
   개인정보처리방침 · 이용약관 (왼쪽 조 제목 | 오른쪽 내용)
   ========================================================= */
.legal { padding-top: 20px; padding-bottom: 90px; }
.legal-tabs { display: flex; gap: 28px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #c9b07a; }
.legal-tabs a { padding-bottom: 4px; font-size: 15px; font-weight: 700; color: #555; }
.legal-tabs a.is-active { color: var(--c-brown); box-shadow: inset 0 -2px 0 var(--c-brown); }
.legal-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; padding: 26px 0; border-bottom: 1px solid #e3dccd; }
.legal-sec__title { font-size: 16px; font-weight: 700; line-height: 1.6; color: #222; }
.legal-sec--intro .legal-sec__body { grid-column: 2; }
.legal-sec__body { font-size: 15px; line-height: 1.8; color: #555; }
.legal-sec__body p + p, .legal-sec__body p + ul, .legal-sec__body ul + p { margin-top: 8px; }
.legal-sec__body ul { padding-left: 20px; list-style: disc; }
.legal-sec__body li + li { margin-top: 6px; }
.legal-sec__body strong { color: #222; }

/* =========================================================
   반응형
   ========================================================= */

@media (max-width: 1200px) {
  :root { --nav-pad: 14px; }
  .nav__link { font-size: 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .logo__en { font-size: 26px; }
  .logo__ko { font-size: 11px; letter-spacing: 3px; }

  .nav-toggle { display: block; }
  .header__logo { padding: 26px 0 22px; }
  .logo__img { height: 48px; }
  .brand { font-size: 13px; letter-spacing: 5px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-ivory);
    border-bottom: 2px solid var(--c-line);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link, .nav__link.is-active { height: auto; padding: 16px 24px; border-top: 1px solid #eee; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__card { padding: 30px; }
  .cs { display: none; } /* 사이드바가 아래로 내려가는 폭부터는 CS CENTER 숨김 (연락처는 푸터에 있음) */

  .intro { grid-template-columns: 1fr; }
  .intro__img { max-width: 520px; }

  .works__grid { grid-template-columns: repeat(3, 1fr); }

  .cs-line { grid-template-columns: 1fr 1fr; }
  .about-cubic { grid-template-columns: minmax(0, 1fr); }
  .about-cubic__photo { max-width: 560px; }
  .patent-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .legal-sec { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .legal-sec--intro .legal-sec__body { grid-column: auto; }
  .hero__stage { padding: 24px 16px; }
  .hero__card { grid-template-columns: 1fr; padding: 16px; }
  .hero__thumbs { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; contain: none; order: 2; }
  .hero__thumbs .ph,
  .hero__thumbs img { height: auto; aspect-ratio: 1 / 1; }
  .hero__thumbs .ph { font-size: 12px; }

  .container { padding: 0 16px; }
  .banner { padding-top: 20px; }
  .banner__box { padding: 20px 16px; }
  .banner__text { font-size: 16px; padding: 16px; }

  .intro { padding: 40px 0; }
  .intro__text { font-size: 15px; }

  .patents { gap: 16px; padding-bottom: 60px; }
  .patents figure { width: 50%; }

  .works__head { padding-left: 0; gap: 20px; }
  .works__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; padding: 0; }

  .work-card__title { font-size: 14px; }

  .cubic-hero { padding-top: 40px; }
  .cubic-hero__inner::after { left: 16px; right: 16px; }
  .sub-head { padding-top: 36px; }
  .sub-head::after, .patent-row::before { left: 16px; right: 16px; }
  .sub-head__title { font-size: 30px; }
  .sub-head__desc { text-align: left; font-size: 14px; }
  .about-cubic { padding-top: 30px; gap: 30px; }
  .about-cubic__text { font-size: 15px; }
  .wgrid-wrap { padding-top: 26px; padding-bottom: 50px; }
  .uform__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ufield__file { flex-wrap: wrap; gap: 6px; }
  .consent { padding: 18px 14px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .btn-dark { width: 100%; }
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .wcard__title { font-size: 14px; }
  .pager { gap: 22px; margin-top: 40px; }
  .patent-row__list { gap: 14px; }
  .cert figcaption { font-size: 11px; letter-spacing: 1px; }
  .footer--dark .footer__right { text-align: left; }
  .footer--dark .footer__policy { justify-content: flex-start; }
  .cubic-hero__title { font-size: 21px; letter-spacing: 1px; }
  .cubic-hero__sub { font-size: 14px; padding-bottom: 18px; }
  .cubic-show { padding-top: 16px; padding-bottom: 40px; }
  .cubic-show__photos { gap: 8px; margin-top: 8px; }

  .cs-line { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .cs-line__brand { justify-self: center; }
  .footer__company { margin-top: 50px; }
  .footer__info span { display: block; }
  .footer__info span + span::before { content: none; }
}

@media (max-width: 480px) {
  .logo__en { font-size: 22px; }
}

/* 작업내역·포트폴리오에 아직 항목이 없을 때 안내 문구 (js/card-list.js) */
.card-empty { grid-column: 1 / -1; padding: 100px 20px; text-align: center; font-size: 17px; line-height: 1.7; color: var(--c-text-sub); }
