/* CONNECTED HK — Dark Gallery Edition (GS Arts Center reference) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0A0A0A;
  --bg-soft: #121211;
  --bg-raised: #161614;
  --text: #E8E1D4;
  --text-strong: #F4EEDF;
  --meta: #7A7A78;
  --meta-strong: #9D9C97;
  --line: rgba(232, 225, 212, 0.10);
  --line-strong: rgba(232, 225, 212, 0.20);

  --charcoal: var(--bg);
  --off-white: var(--text);
  --mid-gray: var(--meta);
  --silver: var(--meta-strong);
  --ice-blue: var(--text-strong);
  --ivory: var(--text);
  --soft-black: var(--bg);
  --olive: var(--meta-strong);
  --clay: var(--text-strong);
  --bronze: var(--meta);
  --line-strong: rgba(232, 225, 212, 0.20);

  --pad-x: 56px;
  --pad-x-tight: 32px;

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5 { text-wrap: balance; word-break: keep-all; font-weight: 700; }
p, li, blockquote, .desc, .excerpt, .def, .lead { text-wrap: pretty; word-break: keep-all; }
.mono, code, kbd, samp { word-break: normal; overflow-wrap: anywhere; font-weight: 400; }
.nbp { white-space: nowrap; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-strong); }

.mono {
  font-family: var(--mono);
  letter-spacing: 0;
  font-feature-settings: 'tnum' 1;
}

::selection { background: var(--text); color: var(--bg); }

/* ---- Layout ---- */
.app {
  display: block;
  min-height: 100vh;
}

main.page {
  padding: 0;
  min-width: 0;
  padding-top: 96px; /* fixed header height */
}

/* ---- Site Header (sticky top, GS-style) ---- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 40px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 32px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-strong);
  white-space: nowrap;
}
.site-head__brand .line { display: inline; }
.site-head__brand:hover { color: var(--text-strong); opacity: 0.7; }

.site-head__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 4px;
}
.site-head__nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  opacity: 0.78;
}
.site-head__nav a:hover,
.site-head__nav a.active {
  color: var(--text-strong);
  opacity: 1;
}
.site-head__nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 3px;
  height: 3px;
  background: var(--text-strong);
  border-radius: 50%;
  transform: translateX(-50%);
}

.site-head__right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.site-head__right .lang {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--meta-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-head__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  margin-left: 8px;
}
.site-head__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}

/* ---- Page header (page hero — 미니멀, GS식) ---- */
.page-head {
  border-bottom: 1px solid var(--line);
  padding: 80px var(--pad-x) 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.page-head .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  font-weight: 400;
}
.page-head h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
  color: var(--text-strong);
}
.page-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: right;
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Section ---- */
section {
  padding: 96px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
section.tight { padding: 56px var(--pad-x); }

.sec-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 56px;
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.sec-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0;
  color: var(--text-strong);
}
.sec-head .note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.sec-head .note:hover { color: var(--text-strong); }

/* ---- Image cells (real photos) ---- */
.img-ph {
  background: var(--bg-raised);
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: var(--meta);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  font-weight: 400;
}
.img-ph .t, .img-ph .b {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.img-ph .ratio { color: var(--meta); }
.img-ph .tag { color: var(--text); }

.img-ph.has-real-img {
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-soft);
}
.img-ph.has-real-img .t,
.img-ph.has-real-img .b { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn .arrow { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: var(--text-strong); border-color: var(--text-strong); color: var(--bg); }
.btn--primary .arrow { color: var(--bg); }

/* ---- Footer ---- */
.site-foot {
  background: var(--bg-soft);
  color: var(--text);
  padding: 96px var(--pad-x) 32px;
  border-top: 1px solid var(--line);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.site-foot h4 {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
  margin: 0 0 18px;
}
.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.site-foot__brand .slogan {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 14ch;
  color: var(--text-strong);
}
.site-foot__brand .sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--meta-strong);
  max-width: 36ch;
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.site-foot__bar {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
}
.site-foot__bar .tagline {
  color: var(--text-strong);
  letter-spacing: 0.32em;
}

/* ---- Utilities ---- */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

/* ---- Legacy compat: density/grid/theme switches retained as no-ops ---- */
body[data-density="airy"] section { padding-top: 128px; padding-bottom: 128px; }
body[data-density="tight"] section { padding-top: 64px; padding-bottom: 64px; }

/* ============================================ */
/* MOBILE / TABLET RESPONSIVE                   */
/* ============================================ */

@media (max-width: 1023px) {
  :root { --pad-x: 24px; --pad-x-tight: 20px; }
  body { font-size: 16px; }

  main.page { padding-top: 64px; }

  .site-head {
    padding: 14px 20px;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
  }
  .site-head__brand {
    font-size: 13px;
  }
  .site-head__nav { display: none; }
  .site-head__right { display: none; }
  .site-head__toggle { display: flex; }

  .site-head.is-open {
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    padding: 14px 20px 32px;
    gap: 28px;
    overflow-y: auto;
    background: var(--bg);
  }
  .site-head.is-open .site-head__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .site-head.is-open .site-head__nav a {
    padding: 18px 0;
    font-size: 22px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }
  .site-head.is-open .site-head__right {
    display: flex;
    grid-column: 1 / -1;
  }
  .site-head.is-open .site-head__toggle {
    position: absolute;
    top: 14px;
    right: 16px;
  }
  .site-head.is-open .site-head__toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .site-head.is-open .site-head__toggle span:nth-child(2) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  section { padding: 64px var(--pad-x); }
  section.tight { padding: 40px var(--pad-x); }

  .page-head {
    padding: 48px var(--pad-x) 32px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-head h1 { font-size: 38px; max-width: none; }
  .page-head .meta { text-align: left; }

  .sec-head {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }
  .sec-head h2 { font-size: 24px; }
  .sec-head .note { grid-column: 2; font-size: 10px; }

  .site-foot { padding: 64px var(--pad-x) 28px; }
  .site-foot__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }
  .site-foot__brand .slogan { font-size: 26px; }
  .site-foot__bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
  }
  .site-foot__bar .tagline { letter-spacing: 0.22em; }
}

@media (max-width: 640px) {
  section { padding: 56px var(--pad-x); }
  section.tight { padding: 36px var(--pad-x); }

  .page-head { padding: 40px var(--pad-x) 24px; }
  .page-head h1 { font-size: 30px; line-height: 1.1; }

  .sec-head { grid-template-columns: 48px 1fr; gap: 12px; margin-bottom: 28px; }
  .sec-head h2 { font-size: 21px; }

  .site-foot { padding: 56px var(--pad-x) 24px; }
  .site-foot__brand .slogan { font-size: 22px; }
  .site-foot h4 { font-size: 9px; }

  .btn { padding: 12px 16px; font-size: 12px; }
}

/* ---- Kakao Float (1:1 채널 문의 플로팅 버튼) ---- */
.kakao-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FEE500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.kakao-float:hover,
.kakao-float:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.16);
}
.kakao-float:active { transform: translateY(0); }
.kakao-float svg { display: block; }

/* 라이트박스 열렸을 때 가림 방지 */
body.lb-open .kakao-float { display: none; }

@media (max-width: 640px) {
  .kakao-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .kakao-float svg { width: 24px; height: 24px; }
}

/* prefers-reduced-motion 대응 */
@media (prefers-reduced-motion: reduce) {
  .kakao-float { transition: none; }
  .kakao-float:hover { transform: none; }
}
