/* =========================================================
   CNF 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"); }
@font-face { font-family: "SUIT"; font-weight: 400; font-display: swap; src: url("../assets/fonts/SUIT-Regular.woff2") format("woff2"); }
@font-face { font-family: "SUIT"; font-weight: 500; font-display: swap; src: url("../assets/fonts/SUIT-Medium.woff2") format("woff2"); }
@font-face { font-family: "SUIT"; font-weight: 600; font-display: swap; src: url("../assets/fonts/SUIT-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "SUIT"; font-weight: 700; font-display: swap; src: url("../assets/fonts/SUIT-Bold.woff2") format("woff2"); }
@font-face { font-family: "SUIT"; font-weight: 800; font-display: swap; src: url("../assets/fonts/SUIT-ExtraBold.woff2") format("woff2"); }

:root {
  --wrap: min(1200px, 100vw - 48px);
  --u: calc(var(--wrap) / 876);
  --bg: #0d1a1f;
  --text: #fff;
  --muted: #d4d4da;
  --sub: #bdbdc5;
  --line: rgba(255, 255, 255, .85);
  --accent: #3fb6c4;
  --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;
  --suit: "SUIT", "Noto Sans KR", sans-serif;
  --black: "Arial Black", "Arial", "SUIT", sans-serif;
  --brown: #4a1606;
  --orange: #f5a452;
  --gold: #bb8338;
  --yellow: #ffe900;
}

*, *::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) * 83); margin-top: calc(var(--u) * 5); }
.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(8, 20, 26, .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-project  { background-image: url("../assets/img/bg-project.webp"); }
.bg-company  { background-image: url("../assets/img/bg-company.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) * 142); 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. 회사소개 ---------- */
#about { padding-top: calc(var(--u) * 215); }
.about { text-align: center; }
.about-logo { width: calc(var(--u) * 213); margin: 0 auto; }
.lead { margin-top: calc(var(--u) * 33); font-size: calc(var(--u) * 22); font-weight: 500; line-height: calc(var(--u) * 42.5); letter-spacing: -.02em; }
.about-h { margin-top: calc(var(--u) * 120); font-size: calc(var(--u) * 32); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.about-h + .lead { margin-top: calc(var(--u) * 40); }
.core { display: grid; grid-template-columns: repeat(3, calc(var(--u) * 291)); justify-content: center; margin-top: calc(var(--u) * 52); }
.core h3 { font-size: calc(var(--u) * 25); font-weight: 700; line-height: calc(var(--u) * 37); letter-spacing: -.03em; }
.core p { margin-top: calc(var(--u) * 26); font-family: var(--suit); font-weight: 400; font-size: calc(var(--u) * 19.5); line-height: calc(var(--u) * 30); letter-spacing: -.02em; color: #e6e6ea; }

/* ---------- 3–4. Step 목록 ---------- */
.steps { margin-top: calc(var(--u) * 86); text-align: center; }
.steps li + li { margin-top: calc(var(--u) * 46); }
.steps.it li + li { margin-top: calc(var(--u) * 40); }
.steps .eyebrow { display: block; font-family: var(--suit); font-weight: 700; font-size: calc(var(--u) * 26); line-height: 1.15; color: #a3a4ab; letter-spacing: -.02em; }
.steps h3 { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 25); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.steps p { margin-top: calc(var(--u) * 24); font-family: var(--suit); font-weight: 400; font-size: calc(var(--u) * 19.2); line-height: calc(var(--u) * 30); letter-spacing: -.02em; }
.steps.it h3 { margin-top: 0; }
.steps.it .eyebrow { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 30); }
.steps.it .eyebrow small { font-size: calc(var(--u) * 25); letter-spacing: -.03em; }

/* ---------- 5–8. Project ---------- */
.proj-sub { margin-top: calc(var(--u) * 86); text-align: center; font-size: calc(var(--u) * 25.3); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.proj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 21); margin-top: calc(var(--u) * 40); }
.scroller {
  height: calc(var(--u) * 822); overflow-y: auto; overscroll-behavior: contain; background: #fff;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.35) transparent;
}
.scroller img { width: 100%; }
.scroller:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shops { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 11); margin-top: calc(var(--u) * 40); }
.shops figure { aspect-ratio: 432 / 314; overflow: hidden; background: #fff; }
.proj-sub.en { font-family: var(--suit); font-weight: 700; letter-spacing: -.03em; }
.shops img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.shops figure:hover img { transform: scale(1.03); }

/* ---------- 9. Location ---------- */
#location .loc-map { width: calc(var(--u) * 762); margin: calc(var(--u) * 32) 0 0 calc(var(--u) * 56); }
.loc-info { display: grid; grid-template-columns: calc(var(--u) * 52) auto; width: max-content; margin: calc(var(--u) * 30) 0 0 calc(var(--u) * 226); font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 26.3); }
.loc-info dt { font-weight: 700; }
.loc-info dd { font-weight: 300; }
.loc-info a:hover { color: var(--accent); }

/* ---------- 10. 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) * 54); }
.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) * 26); }
.links a { display: block; transition: opacity .2s ease, transform .2s ease; }
.links a:hover { opacity: .75; transform: translateY(-3px); }
.lk-sherparang img { width: calc(var(--u) * 233); }
.lk-ppeotto img { width: calc(var(--u) * 238); }
#link { min-height: 100vh; }

/* ---------- Footer ---------- */
.site-footer { background: #071013; padding: 36px 0 44px; font-size: 13px; color: #9a9aa5; line-height: 1.8; }
.footer-logo { width: 72px; 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: 72px; }
  .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: 64px; }

  .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(8, 18, 23, .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; }

  /* 회사소개 */
  #about { padding-top: 104px; }
  .about-logo { width: 150px; }
  .lead { margin-top: 24px; font-size: 15px; line-height: 1.75; }
  .lead br, .steps p br { display: none; }
  .about-h { margin-top: 56px; font-size: 22px; }
  .about-h + .lead { margin-top: 16px; }
  .core { grid-template-columns: 1fr; row-gap: 32px; margin-top: 28px; }
  .core h3 { font-size: 19px; line-height: 1.4; }
  .core p { margin-top: 10px; font-size: 15px; line-height: 1.7; }

  /* Step */
  .steps { margin-top: 40px; }
  .steps li + li { margin-top: 38px; }
  .steps .eyebrow, .steps.it .eyebrow { font-size: 18px; }
  .steps.it .eyebrow small { font-size: 15px; }
  .steps h3 { font-size: 20px; margin-top: 6px; }
  .steps p { margin-top: 10px; font-size: 15px; line-height: 1.7; }

  /* Project */
  .proj-sub { margin-top: 18px; font-size: 20px; }
  .proj-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .scroller { height: 70vh; max-height: 620px; }
  .shops { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }

  /* Location */
  #location .loc-map { width: 100%; margin: 28px 0 0; }
  .loc-info { width: auto; margin: 22px 0 0; 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: 44px; }
  .links p { font-size: 18px; margin-bottom: 18px; }
  .lk-sherparang img { width: 190px; } .lk-ppeotto img { width: 200px; }

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