/* =========================================================
   CN Global homepage
   레이아웃 단위: --u = 시안(1400px 기준 축소본)의 1px.
   본문 컨테이너 876u = 데스크톱 1200px. 시안 좌표를 그대로 옮겨 적기 위해 사용.
   ========================================================= */

@font-face { font-family: "Seravek"; font-weight: 200; font-display: swap; src: local("Seravek ExtraLight"), local("Seravek-ExtraLight"), url("../assets/fonts/Seravek-ExtraLight.woff2") format("woff2"); }
@font-face { font-family: "Seravek"; font-weight: 400; font-display: swap; src: local("Seravek"), url("../assets/fonts/Seravek-Regular.woff2") format("woff2"); }
@font-face { font-family: "Seravek"; font-weight: 500; font-display: swap; src: local("Seravek Medium"), local("Seravek-Medium"), url("../assets/fonts/Seravek-Medium.woff2") format("woff2"); }
@font-face { font-family: "Seravek"; font-weight: 700; font-display: swap; src: local("Seravek Bold"), local("Seravek-Bold"), url("../assets/fonts/Seravek-Bold.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans KR"; font-weight: 300; font-display: swap; src: url("../assets/fonts/NotoSansKR-Light.subset.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans KR"; font-weight: 400; font-display: swap; src: url("../assets/fonts/NotoSansKR-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans KR"; font-weight: 700; font-display: swap; src: url("../assets/fonts/NotoSansKR-Bold.subset.woff2") format("woff2"); }

:root {
  --wrap: min(1200px, 100vw - 48px);
  --u: calc(var(--wrap) / 876);
  --bg: #14151d;
  --text: #fff;
  --muted: #d4d4da;
  --sub: #bdbdc5;
  --line: rgba(255, 255, 255, .85);
  --accent: #f2a541;
  --header-h: calc(var(--u) * 120);
  --ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --en: "Seravek", "Noto Sans KR", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ko);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: var(--wrap); margin: 0 auto; position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--u) * 172);
  transition: height .35s ease, background-color .35s ease, backdrop-filter .35s ease;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: calc(var(--u) * 113); }
.gnb { display: flex; gap: calc(var(--u) * 23.5); }
.gnb a {
  position: relative;
  font-size: calc(var(--u) * 13.4);
  font-weight: 400;
  letter-spacing: -.01em;
  padding: 6px 0;
  opacity: .95;
}
.gnb a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.gnb a:hover::after, .gnb a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled {
  height: 76px;
  background: rgba(14, 15, 22, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-toggle { display: none; }

/* ---------- Sections & backgrounds ---------- */
.sec {
  position: relative;
  background-color: var(--bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: calc(var(--u) * 182) 0 calc(var(--u) * 110);
}
.bg-main     { background-image: url("../assets/img/bg-main.webp"); }
.bg-company  { background-image: url("../assets/img/bg-company.webp"); }
.bg-business { background-image: url("../assets/img/bg-business.webp"); }
.bg-location { background-image: url("../assets/img/bg-location.webp"); }
/* 같은 배경을 쓰는 연속 섹션이 이음새 없이 이어지도록 데스크톱에서는 고정 배경 */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .sec { background-attachment: fixed; background-position: center center; }
}

.sec-title {
  font-family: var(--en);
  font-weight: 700;
  font-size: calc(var(--u) * 64.5);
  line-height: 1;
  letter-spacing: -.035em;
  text-align: center;
}

.sec-head { text-align: center; margin-top: calc(var(--u) * -3); }
.sec-head h2 { font-size: calc(var(--u) * 30); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.sec-head p { margin-top: calc(var(--u) * 15); font-size: calc(var(--u) * 16.5); line-height: 1.38; font-weight: 400; }

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0; text-align: center;
  background-position: center center;
}
.hero-copy { transform: translateY(-15vh); }
/* 노트북 등 낮은 화면에서는 제목이 헤더와 겹치지 않도록 */
@media (max-height: 860px) and (min-width: 768px) { .hero-copy { transform: translateY(calc(var(--u) * 40)); } }
.hero-title {
  font-family: var(--en); font-weight: 700;
  font-size: calc(var(--u) * 135); line-height: 1; letter-spacing: -.035em;
}
.hero-sub {
  margin-top: calc(var(--u) * 40);
  font-family: var(--en); font-weight: 200;
  font-size: calc(var(--u) * 36); line-height: 1.1; letter-spacing: -.005em;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 36px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 13px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. History ---------- */
.timeline {
  position: relative;
  margin-top: calc(var(--u) * 52);
  padding-bottom: calc(var(--u) * 20);
}
.timeline::before { /* 세로 줄: 첫 점 ~ 마지막 점 */
  content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px;
  top: calc(var(--u) * 10); bottom: calc(var(--u) * 72);
  background: var(--line);
}
.tl-item {
  position: relative;
  width: 50%;
  height: calc(var(--u) * 84.4);
  font-size: calc(var(--u) * 13.1);
  line-height: 1.4;
  font-weight: 400;
}
.tl-item::before { /* 점 */
  content: ""; position: absolute; top: calc(var(--u) * 3.5);
  width: calc(var(--u) * 13); height: calc(var(--u) * 13); border-radius: 50%;
  background: #fff;
}
.tl-item.left  { text-align: right; padding-right: calc(var(--u) * 19); }
.tl-item.right { margin-left: 50%; padding-left: calc(var(--u) * 17); }
.tl-item.left::before  { right: calc(var(--u) * -6.5); }
.tl-item.right::before { left:  calc(var(--u) * -6.5); }
.tl-date {
  font-size: calc(var(--u) * 18.4); font-weight: 700; line-height: 1.15;
  margin-bottom: calc(var(--u) * 3);
}
.tl-date b { font-size: calc(var(--u) * 25); letter-spacing: -.02em; }
.chev { font-style: normal; display: inline-block; transform: scaleX(.7); margin: 0 .1em; }

/* ---------- 3. Place ---------- */
#place .sec-title { margin-bottom: calc(var(--u) * 52); }
.place-domestic { position: relative; height: calc(var(--u) * 415); }
.place-label { font-size: calc(var(--u) * 23); font-weight: 700; line-height: 1; }
.place-domestic .place-label { position: absolute; left: calc(var(--u) * 156); top: calc(var(--u) * -5); }
.kmap { position: absolute; left: calc(var(--u) * 233); top: 0; width: calc(var(--u) * 455); }
.kmap img { width: 100%; }
.kmap-text { position: absolute; font-size: calc(var(--u) * 13); line-height: calc(var(--u) * 19.3); }
.kmap-text h4 { font-size: calc(var(--u) * 18.3); font-weight: 700; line-height: 1; }
.kmap-text p + p { margin-top: calc(var(--u) * 19.3); }
.kmap-text.seoul { left: calc(var(--u) * 15); top: calc(var(--u) * 47); }
.kmap-text.seoul h4 { margin-bottom: calc(var(--u) * 7); }
.kmap-text.busan { left: calc(var(--u) * 203); top: calc(var(--u) * 345); }
.kmap-text.busan h4 { margin-bottom: calc(var(--u) * 12); letter-spacing: .02em; }

.place-overseas { position: relative; margin-top: calc(var(--u) * 25); }
.overseas-head { display: flex; align-items: flex-start; }
.overseas-head .place-label { margin-left: calc(var(--u) * 156); margin-top: calc(var(--u) * 4); }
.legend { margin-left: calc(var(--u) * 41); font-size: calc(var(--u) * 13.2); font-weight: 700; }
.legend li { display: flex; align-items: center; gap: calc(var(--u) * 4); height: calc(var(--u) * 28); }
.legend img { width: calc(var(--u) * 18); height: auto; }
.wmap { width: calc(var(--u) * 600); margin: calc(var(--u) * 6) 0 0 calc(var(--u) * 178); }
.branches {
  display: grid; grid-template-columns: calc(var(--u) * 299) auto;
  row-gap: calc(var(--u) * 21);
  margin: calc(var(--u) * 52) 0 0 calc(var(--u) * 205);
}
.branches dt { font-size: calc(var(--u) * 14.2); font-weight: 700; line-height: 1.3; }
.branches dd { margin-top: calc(var(--u) * 9); font-size: calc(var(--u) * 10.6); font-weight: 300; color: var(--sub); line-height: 1.3; }

/* ---------- 4. Our Service ---------- */
.org { position: relative; margin-top: calc(var(--u) * 82); }
.org-logo { width: calc(var(--u) * 210); margin: 0 auto; }
.org-lines {
  position: relative; height: calc(var(--u) * 76); margin: calc(var(--u) * 2) auto 0;
  width: calc(var(--u) * 668);
}
.org-lines::before { /* 로고 아래 세로선 */
  content: ""; position: absolute; left: 50%; top: 0; height: calc(var(--u) * 33); width: 1px; background: var(--line);
}
.org-lines::after { /* 가로선 */
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--u) * 33); height: 1px; background: var(--line);
}
.org-lines i {
  position: absolute; top: calc(var(--u) * 33); width: 1px; height: calc(var(--u) * 30); background: var(--line);
}
.org-lines i::after {
  content: ""; position: absolute; left: -2px; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff;
}
.org-lines i:nth-child(1) { left: 0; }
.org-lines i:nth-child(2) { left: 33.25%; }
.org-lines i:nth-child(3) { left: 66.6%; }
.org-lines i:nth-child(4) { left: calc(100% - 1px); }

.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 19.3); margin-top: calc(var(--u) * 21); }
.svc-cards a { display: block; text-align: center; }
.svc-cards figure { aspect-ratio: 205 / 313; overflow: hidden; background: #222; }
.svc-cards img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-cards a:hover img { transform: scale(1.05); }
.svc-cards h3 { margin-top: calc(var(--u) * 24); font-size: calc(var(--u) * 22.5); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.svc-cards p { margin-top: calc(var(--u) * 13); font-size: calc(var(--u) * 17); line-height: 1.45; }

/* ---------- 5–7. 사업 상세 ---------- */
.sec-head + .biz-row { margin-top: calc(var(--u) * 62); }
.biz-row {
  display: grid; grid-template-columns: calc(var(--u) * 240) calc(var(--u) * 609);
  column-gap: calc(var(--u) * 0); justify-content: space-between;
  padding-left: calc(var(--u) * 27);
}
.biz-row + .biz-row { margin-top: calc(var(--u) * 26); }
.biz-text { margin-top: calc(var(--u) * -3); }
.biz-text h3 { font-size: calc(var(--u) * 23.5); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.biz-text h4 { margin-top: calc(var(--u) * 12.5); font-size: calc(var(--u) * 16); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.biz-text p { margin-top: calc(var(--u) * 7.5); font-size: calc(var(--u) * 13.2); line-height: calc(var(--u) * 22.3); font-weight: 300; color: var(--muted); }
.biz-media { width: 100%; aspect-ratio: 609 / 341; overflow: hidden; background: #222; }
.biz-media img { width: 100%; height: 100%; object-fit: cover; }
.biz-media.shops {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: calc(var(--u) * 7); background: none;
  margin-top: calc(var(--u) * 3);
}
.biz-media.shops figure { overflow: hidden; background: #fff; }
.biz-media.shops img { object-position: top center; transition: transform .6s ease; }
.biz-media.shops figure:hover img { transform: scale(1.04); }

/* ---------- 8. Location ---------- */
#location .sec-title { margin-bottom: calc(var(--u) * 16); }
.loc-row { position: relative; display: grid; grid-template-columns: calc(var(--u) * 318) calc(var(--u) * 525); }
.loc-row .loc-map { width: 100%; grid-column: 2; grid-row: 1; }
.loc-row .loc-text { grid-column: 1; grid-row: 1; padding-left: calc(var(--u) * 27); }
.loc-row.hq .loc-text   { padding-top: calc(var(--u) * 39); }
.loc-row.ops            { margin-top: calc(var(--u) * 25); }
.loc-row.ops .loc-text  { padding-top: calc(var(--u) * 115); }
.loc-row.busan          { margin-top: calc(var(--u) * 22); }
.loc-row.busan .loc-text{ padding-top: calc(var(--u) * 29); }
.loc-text h3 { font-size: calc(var(--u) * 23.5); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: calc(var(--u) * 11); }
.loc-text dl { display: grid; grid-template-columns: calc(var(--u) * 53) auto; font-size: calc(var(--u) * 15.7); line-height: calc(var(--u) * 26.3); }
.loc-text dt { font-weight: 700; }
.loc-text dd { font-weight: 300; }
.loc-text a:hover { color: var(--accent); }

/* ---------- 9. Link ---------- */
.links { margin-top: calc(var(--u) * 46); text-align: center; }
.links li { display: flex; flex-direction: column; align-items: center; }
.links li + li { margin-top: calc(var(--u) * 64); }
.links p { font-size: calc(var(--u) * 23); font-weight: 700; color: #d9d9de; letter-spacing: -.02em; line-height: 1.2; margin-bottom: calc(var(--u) * 29); }
.links a { display: block; transition: opacity .2s ease, transform .2s ease; }
.links a:hover { opacity: .75; transform: translateY(-3px); }
.lk-junbigo img  { width: calc(var(--u) * 144); }
.lk-korearang img{ width: calc(var(--u) * 242); }
#link { min-height: 100vh; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0c11; padding: 36px 0 44px; font-size: 13px; color: #9a9aa5; line-height: 1.8; }
.footer-logo { width: 96px; margin-bottom: 14px; opacity: .85; }
.site-footer span { margin: 0 .5em; opacity: .4; }
.site-footer .copy { margin-top: 6px; color: #6d6d78; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* =========================================================
   Tablet / Mobile
   ========================================================= */
@media (max-width: 1023px) {
  :root { --wrap: calc(100vw - 48px); }
  .site-header { height: 76px; }
  .brand img { width: 104px; }
  .gnb a { font-size: 14px; }
  .gnb { gap: 18px; }
}

@media (max-width: 767px) {
  :root { --wrap: calc(100vw - 32px); }
  body { font-size: 15px; }
  .site-header, .site-header.is-scrolled { height: 64px; }
  .brand img { width: 92px; }

  .nav-toggle {
    display: block; position: relative; z-index: 2; width: 40px; height: 40px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s ease, opacity .2s ease; }
  .nav-toggle span:nth-child(1) { top: 13px; }
  .nav-toggle span:nth-child(2) { top: 19px; }
  .nav-toggle span:nth-child(3) { top: 25px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .gnb {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
    background: rgba(12, 13, 19, .96); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav-open .gnb { opacity: 1; visibility: visible; }
  .gnb a { font-size: 20px; font-weight: 700; }
  .nav-open { overflow: hidden; }

  .sec { padding: 104px 0 72px; }
  .sec-title { font-size: 44px; }
  .sec-head h2 { font-size: 26px; }
  .sec-head p { font-size: 15px; margin-top: 10px; }

  .hero-title { font-size: clamp(56px, 19vw, 96px); }
  .hero-sub { font-size: clamp(18px, 5.6vw, 26px); margin-top: 22px; }

  /* History: 한 줄 타임라인 */
  .timeline { margin-top: 40px; padding-left: 26px; }
  .timeline::before { left: 6px; top: 8px; bottom: 30px; margin-left: 0; }
  .tl-item, .tl-item.left, .tl-item.right {
    width: auto; height: auto; margin: 0 0 22px; padding: 0; text-align: left; font-size: 14px;
  }
  .tl-item::before, .tl-item.left::before, .tl-item.right::before { left: -26px; right: auto; top: 4px; width: 14px; height: 14px; }
  .tl-date { font-size: 16px; margin-bottom: 4px; }
  .tl-date b { font-size: 21px; }

  /* Place */
  #place .sec-title { margin-bottom: 32px; }
  .place-domestic { height: auto; }
  .place-domestic .place-label, .overseas-head .place-label { position: static; margin: 0 0 14px; font-size: 22px; }
  .kmap { position: relative; left: auto; width: 100%; }
  .kmap img { width: 100%; max-width: 420px; margin: 0 auto; }
  .kmap-text { position: static; font-size: 14px; line-height: 1.6; margin-top: 18px; }
  .kmap-text h4 { font-size: 18px; margin-bottom: 8px !important; }
  .kmap-text p + p { margin-top: 10px; }
  .place-overseas { margin-top: 44px; }
  .overseas-head { flex-direction: column; }
  .legend { margin: 0 0 8px; font-size: 14px; }
  .legend li { height: 28px; gap: 8px; }
  .legend img { width: 14px; }
  .wmap { width: 100%; margin: 6px 0 0; }
  .branches { grid-template-columns: 1fr; row-gap: 14px; margin: 28px 0 0; }
  .branches dt { font-size: 15px; }
  .branches dd { font-size: 12.5px; }

  /* Our Service */
  .org { margin-top: 40px; }
  .org-logo { width: 150px; }
  .org-lines { display: none; }
  .svc-cards { grid-template-columns: 1fr 1fr; gap: 28px 14px; margin-top: 32px; }
  .svc-cards figure { aspect-ratio: 4 / 5; }
  .svc-cards h3 { margin-top: 14px; font-size: 17px; }
  .svc-cards p { margin-top: 6px; font-size: 13px; }

  /* 사업 상세 */
  .sec-head + .biz-row { margin-top: 36px; }
  .biz-row { grid-template-columns: 1fr; padding-left: 0; row-gap: 16px; }
  .biz-row + .biz-row { margin-top: 44px; }
  .biz-text h3 { font-size: 22px; }
  .biz-text h4 { font-size: 16px; margin-top: 6px; }
  .biz-text p { font-size: 14px; line-height: 1.7; margin-top: 4px; }

  /* Location */
  #location .sec-title { margin-bottom: 32px; }
  .loc-row, .loc-row.ops, .loc-row.busan { grid-template-columns: 1fr; margin-top: 0; }
  .loc-row + .loc-row { margin-top: 44px; }
  .loc-row .loc-text, .loc-row.hq .loc-text, .loc-row.ops .loc-text, .loc-row.busan .loc-text { grid-row: 1; grid-column: 1; padding: 0; }
  .loc-row .loc-map { grid-row: 2; grid-column: 1; margin-top: 18px; }
  .loc-text h3 { font-size: 21px; margin-bottom: 8px; }
  .loc-text dl { grid-template-columns: 56px auto; font-size: 15px; line-height: 1.75; }

  /* Link */
  #link { min-height: 0; }
  .links { margin-top: 40px; }
  .links li + li { margin-top: 48px; }
  .links p { font-size: 18px; margin-bottom: 18px; }
  .lk-junbigo img { width: 110px; } .lk-korearang img { width: 210px; }

  .site-footer { font-size: 12px; }
  .site-footer span { display: none; }
}
