/* 페이퍼로지 (SIL OFL, 상업적 사용 가능) */
@font-face { font-family: "Paperlogy"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* Design-t — 색상/글꼴은 여기 :root 값만 바꾸면 사이트 전체에 적용됩니다 */
:root {
  --ink: #363636;        /* 기본 글자 (아임웹 기본색) */
  --ink-2: #4a4a4a;
  --dark: #2b2b2b;       /* 히어로·푸터 배경 */
  --paper: #ffffff;
  --paper-2: #f3f3f3;    /* 섹션 교차 배경 */
  --line: #e4e4e4;
  --muted: #7a7a7a;
  --soft: #a8a8a8;       /* 로고 '-t', 번호 등 옅은 강조 */
  --accent: #363636;     /* 버튼 색 (무채색) */
  --accent-ink: #ffffff;
  --kakao: #fee500;
  --display: "Paperlogy", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;  /* 볼드·제목 */
  --body: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;           /* 본문·작은 글씨 */
  --tracking: -0.02em;   /* 자간 (-20) */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.75; letter-spacing: var(--tracking);
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, strong, b { font-family: var(--display); }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin: 0; letter-spacing: var(--tracking); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { font-family: var(--display); font-weight: 700; font-size: 24px; text-decoration: none; letter-spacing: -0.03em; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.logo .logo-light { display: none; }
.site-footer .logo img { height: 30px; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-family: var(--body); font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { font-weight: 600; }
.main-nav .nav-cta {
  font-family: var(--body); color: var(--accent-ink); background: var(--ink);
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.main-nav .nav-cta:hover { background: #000; color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  letter-spacing: var(--tracking);
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.hero .btn-primary, .band .btn-primary { background: #fff; color: var(--ink); }
.btn-kakao { background: var(--kakao); color: #191919; }

/* ---------- Hero (Home) ---------- */
.hero { position: relative; overflow: hidden; background: #1b1d1f; color: #fff; min-height: min(88vh, 900px); display: grid; align-items: center; text-align: center; }
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide { background: #1b1d1f center / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .slide.is-on { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.65) 100%); }
.hero-lead, .hero-eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 48px) 72px; display: grid; gap: 22px; justify-items: center; }
.hero-eyebrow { font-family: var(--body); font-weight: 300; font-size: clamp(13px, 1.5vw, 20px); letter-spacing: .32em; color: rgba(255,255,255,.88); }
.hero-title { margin: 6px 0 4px; line-height: 0; }
.hero-title img { width: clamp(220px, 28vw, 400px); height: auto; margin-inline: auto; }
.hero-lead { font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.78); max-width: 34em; }
.hero .cta-row { justify-content: center; margin-top: 8px; }
.hero-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.18); }
.hero-arrow svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.5; }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }
.stats-bar { background: var(--dark); color: #fff; }
.stats { list-style: none; margin: 0; padding: 48px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: var(--tracking); font-variant-numeric: tabular-nums; }
.stats small { font-size: .55em; margin-left: 2px; }
.stats strong { margin-bottom: 10px; }
.stats span { display: block; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.62); }
.stats em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.45); }

/* 메인 페이지: 사진 위 투명 헤더 */
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom-color: rgba(255,255,255,.18); transition: background .3s, border-color .3s; }
.page-home .site-header:not(.scrolled) .logo-dark { display: none; }
.page-home .site-header:not(.scrolled) .logo-light { display: block; }
.page-home .site-header:not(.scrolled) .menu-btn span:not(.sr) { background: #fff; }
.page-home .site-header.scrolled { background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: var(--line); }
@media (min-width: 821px) {
  .page-home .site-header:not(.scrolled) .main-nav a { color: rgba(255,255,255,.85); }
  .page-home .site-header:not(.scrolled) .main-nav a:hover, .page-home .site-header:not(.scrolled) .main-nav a[aria-current="page"] { color: #fff; }
  .page-home .site-header:not(.scrolled) .main-nav .nav-cta { background: #fff; color: var(--ink); }
}

/* ---------- Sub hero ---------- */
.sub-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sub-hero .wrap { padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.sub-hero h1 { font-family: var(--display); font-size: clamp(40px, 7vw, 80px); font-weight: 800; letter-spacing: var(--tracking); line-height: 1.05; }
.sub-hero .lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 40em; }

/* ---------- Feature (텍스트 + 이미지) ---------- */
.feature .wrap { padding-block: clamp(56px, 8vw, 110px); }
.feature + .feature .wrap { padding-top: 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip .feature-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature-text { display: grid; gap: 16px; }
.feature-text .idx { font-family: var(--body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.feature-text h2 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; }
.feature-text p:last-child { color: var(--muted); }
.feature-img { width: 100%; aspect-ratio: 2 / 1; }
.feature-img img { object-fit: cover; }
.feature-img.fit-contain { background: transparent; border-radius: 0; }
.feature-img.fit-contain img { object-fit: contain; }

/* ---------- 이미지 자리 (이미지 없으면 안내 박스로 표시) ---------- */
.ph { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.missing { width: 100%; aspect-ratio: 16/9; border: 1px dashed #c8c8c8;
  display: grid; place-content: center; text-align: center; padding: 16px; }
.ph.missing::before { content: attr(data-label); font-weight: 500; color: var(--ink-2); font-size: 15px; }
.ph.missing::after { content: attr(data-file); font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Band CTA ---------- */
.band { background: var(--dark); color: #fff; }
.band-inner { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { font-size: clamp(24px, 3vw, 36px); }

/* ---------- Client ---------- */
.intro .wrap { padding-block: clamp(48px, 7vw, 88px) 0; display: grid; gap: 32px; }
.intro p { font-size: clamp(17px, 1.8vw, 21px); }
.intro strong { color: #000; }
.client-groups .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: clamp(40px, 6vw, 72px); }
.client-group { display: grid; gap: 20px; }
.client-group h2 { font-size: clamp(20px, 2.2vw, 26px); display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.client-group h2 span { font-family: var(--body); font-size: 14px; color: var(--soft); }

/* ---------- Portfolio / Gallery 카드 ---------- */
.list-sec .wrap { padding-block: clamp(48px, 7vw, 88px); }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.list-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.count { font-family: var(--body); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card { display: grid; gap: 12px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.card .ph { aspect-ratio: 1/1; box-shadow: 0 0 0 1px var(--line); transition: transform .35s, box-shadow .35s; }
.card .ph.missing { min-height: 0; }
.card:hover .ph { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 36px -18px rgba(0,0,0,.35); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { font-size: 17px; font-weight: 700; }
.card .sub { font-size: 13px; color: var(--muted); }
.card .no { font-family: var(--body); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,16,19,.94); display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 16px var(--gutter); padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.lb-bar h3 { font-size: 17px; }
.lb-close { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 8px 18px; cursor: pointer; font: inherit; }
.lb-body { overflow-y: auto; padding: 0 var(--gutter) 40px; }
.lb-body img { margin: 0 auto 20px; width: min(720px, 100%); max-width: 100%; border-radius: 4px; }
body.lb-open { overflow: hidden; }

/* ---------- Contact ---------- */
.contact .wrap { padding-block: clamp(48px, 7vw, 88px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { display: grid; gap: 28px; }
.contact-info, .foot-info { margin: 0; display: grid; gap: 14px; }
.contact-info div, .foot-info div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; }
.contact-info dt, .foot-info dt { font-family: var(--body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-info dd, .foot-info dd { margin: 0; }
.contact-info dd { font-family: var(--display); font-size: clamp(17px, 2vw, 20px); font-weight: 700; overflow-wrap: anywhere; }
.contact-info a, .foot-info a { text-decoration: none; }
.contact-form { display: grid; gap: 18px; background: var(--paper-2); padding: clamp(24px, 4vw, 44px); border-radius: 10px; }
.contact-form h2 { font-size: 24px; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form em { color: #c0392b; font-style: normal; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: 400 15px/1.5 var(--body); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54,54,54,.12); }
.contact-form .agree { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--muted); }
.contact-form .agree input { margin-top: 6px; accent-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-msg { font-size: 14px; min-height: 1.5em; }
.form-msg.ok { color: #1d7a45; } .form-msg.err { color: #c0392b; }

/* ---------- Doc ---------- */
.doc .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 14px; }
.doc h3 { font-size: 18px; margin-top: 18px; }
.doc p { color: var(--ink-2); }
.muted { color: var(--muted) !important; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); font-size: 14px; }
.site-footer .logo { color: #fff; }
.foot { padding-block: 56px 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.foot-desc { margin-top: 14px; max-width: 36em; }
.foot-info dt { color: rgba(255,255,255,.45); }
.foot-bottom { padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.45); }
.foot-bottom a { text-decoration: none; }

/* ---------- 카톡 플로팅 버튼 ---------- */
.kakao-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 8px; background: var(--kakao); color: #191919;
  padding: 12px 18px 12px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.4);
}
.kakao-float svg { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .feature.flip .feature-grid, .contact-grid, .foot { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 16px; text-align: center; border: 0; }
  .hero-arrow { display: none; }
}
@media (max-width: 560px) {
  .grid, .row2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
  .kakao-float span { display: none; }
  .kakao-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.feature-text .contact-info { margin-top: 12px; }
.feature + .contact .wrap { padding-top: 0; }
