/* ============================================================
   사랑공장 홈페이지 — 소개서 2026 디자인 토큰 계승
   시그니처: 한글 라벨 + 영문 빅타이포(그라데이션) 센터 헤더 · 점선 디바이더
   ============================================================ */

/* 디스플레이 폰트 self-host (Exo 2 Bold Italic, latin subset). 외부 의존 제거·오프라인·속도 */
@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/exo2-700italic.woff2") format("woff2");
}

:root {
  --brand-red: #E63A58;
  --brand-red-soft: #F5556E;
  --bg-dark: #1E1C22;
  --bg-gray: #F4F4F6;
  --bg-card: #F7F7F9;
  --text-primary: #222222;
  --text-body: #333333;
  --text-secondary: #777777;
  --text-muted: #999999;
  --link-blue: #496194;
  --cat-gold: #977B3B;
  --cat-teal: #2E7E87;
  --cat-green: #0E8D5A;
  --cat-red: #E63A58;
  --radius-photo: 24px;
  --radius-card: 20px;
  --radius-pill: 36px;
  --grad: linear-gradient(90deg, #F5556E, #E63A58);
  --font-ko: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  /* A-1 (2026-07-08 확정): 디스플레이 = Exo 2 Bold Italic. 소개서·마이크로사이트와 서체 통일.
     .display은 weight 700 · italic · brand-red 그라데이션 유지 → 메인 핑크 타이틀 = Exo 2 Bold Italic.
     운영은 self-host 권장(static/fonts/ woff2 wght700 italic + @font-face). 스테이징은 Google Fonts. */
  --font-display: "Exo 2", "Arial", sans-serif;
  --dot-line: #DCDCE2;
  --max-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ko);
  color: var(--text-body);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* 스티키 푸터 — JS 렌더 전 #app이 비어도 푸터가 상단에 붙지 않게 뷰포트 하단 고정 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main#app { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── 디스플레이 타이포 (영문, 그라데이션) ─────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-red);
  letter-spacing: -0.01em;
  /* Exo 2 이탤릭 디센더(g·y·p 등) 클리핑 방지 — background-clip:text 칠 영역을 아래로 확장 */
  line-height: 1.14;
  padding-bottom: 0.18em;
}
.display-xl { font-size: clamp(44px, 6.5vw, 80px); }
.display-l  { font-size: clamp(35px, 5.2vw, 64px); }  /* 메인(xl)의 80% — 2026-07-13 섹션 타이틀 확대 확정 */
.display-m  { font-size: clamp(24px, 3vw, 40px); }

/* ── 센터 헤더 (시그니처) ─────────────────────────────────── */
.center-head { text-align: center; padding: 96px 0 48px; }
.center-head .label {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; letter-spacing: 0.02em;
}
.center-head .sub {
  margin-top: 20px; font-size: 18px; color: var(--text-secondary);
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ── 점선 디바이더 ────────────────────────────────────────── */
.dotted { border: none; border-top: 2px dotted #D9D9DE; margin: 0 auto; max-width: var(--max-w); }

/* ── GNB ──────────────────────────────────────────────────── */
header.gnb {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #EEEEF1;
}
.gnb-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.gnb-logo { font-weight: 800; font-size: 20px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.gnb-logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
nav.gnb-nav { display: flex; gap: 8px; align-items: center; }
nav.gnb-nav > a, .gnb-drop > button {
  font-family: var(--font-ko); font-size: 16px; font-weight: 500; color: var(--text-body);
  padding: 10px 16px; border-radius: var(--radius-pill); background: none; border: none; cursor: pointer;
  transition: background .15s; white-space: nowrap;   /* 중간 폭에서 메뉴 줄바꿈(일그러짐) 방지 */
}
nav.gnb-nav > a:hover, .gnb-drop > button:hover { background: var(--bg-gray); }
nav.gnb-nav > a { position: relative; }
nav.gnb-nav > a.active, .gnb-drop > button.active { color: var(--brand-red); font-weight: 700; }
nav.gnb-nav > a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2.5px; border-radius: 2px; background: var(--grad);
}
.gnb-drop { position: relative; }
.gnb-drop > button .caret { display: inline-block; font-size: 11px; margin-left: 2px; transition: transform .18s ease; }
.gnb-drop.open > button .caret { transform: rotate(180deg); }
.gnb-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  background: #fff; border: 1px solid #EEEEF1; border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(30,28,34,0.12); padding: 12px; width: 300px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .22s ease, visibility .18s;
}
.gnb-drop.open .gnb-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.gnb-drop-menu .grp-label {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  padding: 12px 12px 5px; letter-spacing: 0.06em;
}
.gnb-drop-menu a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 12px; border-radius: 12px; font-size: 15px;
  transition: background .13s;
}
.gnb-drop-menu a b { font-weight: 600; color: var(--text-body); }
.gnb-drop-menu a .drop-en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
}
.gnb-drop-menu a:hover { background: var(--bg-gray); }
.gnb-drop-menu a:hover b { color: var(--brand-red); }
.gnb-drop-menu .drop-all { border-bottom: 1px dashed var(--dot-line); border-radius: 12px 12px 4px 4px; padding-bottom: 12px; margin-bottom: 4px; }
.gnb-drop-menu .drop-all .drop-en { color: var(--brand-red-soft); }
.gnb-burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-primary); }

/* ── 히어로 ───────────────────────────────────────────────── */
.hero { text-align: center; padding: 120px 0 72px; }
.hero .co-name { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.hero .tagline { margin-top: 28px; font-size: 20px; color: var(--text-secondary); }

/* ── 지표 밴드 ────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 48px 0 96px; }
.metric {
  background: var(--bg-card); border-radius: var(--radius-card);
  padding: 32px 24px; text-align: center;
}
.metric .val { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 44px; color: var(--text-primary); }
.metric .lab { margin-top: 8px; font-size: 15px; color: var(--text-secondary); }

/* ── 카드 공통 ────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 36px 32px;
}
.card h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--text-body); line-height: 1.6; }
.card .en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 15px; color: var(--brand-red); margin-bottom: 16px; display: block;
}

/* 솔루션 카드 */
.sol-card { transition: transform .18s, box-shadow .18s; position: relative; }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(30,28,34,0.10); }
.sol-card .num {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 14px;
}
.sol-card .more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--link-blue); }

/* 사례 카드 (소개서 시그니처: 라운드 사진 + 컬러 프로젝트명 + 팩트 서술) */
.case-card { display: flex; flex-direction: column; }
.case-photo {
  border-radius: var(--radius-photo); aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--bg-gray); position: relative; margin-bottom: 18px;
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-photo .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 56px;
  color: #fff; opacity: .92;
}
.case-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.case-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.case-meta .badge {
  border: 1px solid #E3E3E8; border-radius: var(--radius-pill); padding: 2px 10px;
  font-size: 12px; color: var(--text-secondary);
}
.case-summary { font-size: 15px; color: var(--text-body); line-height: 1.6; }

/* 칩 / 필 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--bg-gray); border-radius: var(--radius-pill);
  padding: 10px 20px; font-size: 15px; font-weight: 500; color: var(--text-body);
  border: 1.5px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ko); transition: border-color .15s, background .15s;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip:hover { border-color: #D9D9DE; }
.chip.on { background: var(--bg-dark); color: #fff; }
.chip.on .count { color: rgba(255,255,255,.6); }
.chip .count { font-size: 13px; color: var(--text-muted); }

/* ── 공정 스텝 ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg-card); border-radius: var(--radius-card); padding: 36px 32px; position: relative; }
.step .no {
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 30px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 14px;
}
.process-foot { margin-top: 32px; text-align: center; color: var(--text-secondary); font-size: 16px; }
.tech-chips { justify-content: center; margin-top: 20px; }
.tech-chips .chip { cursor: default; }

/* ── 로고월 ───────────────────────────────────────────────── */
.logo-wall { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-bottom: 24px; }
.logo-wall span {
  background: var(--bg-gray); border-radius: var(--radius-pill);
  padding: 12px 26px; font-size: 16px; font-weight: 600; color: var(--text-secondary);
}

/* ── CTA 밴드 ─────────────────────────────────────────────── */
.cta-band { background: var(--bg-dark); text-align: center; padding: 96px 32px; margin-top: 96px; }
.cta-band .display { margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 18px; margin-bottom: 36px; }
.btn {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px 44px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  font-family: var(--font-ko); transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn-ghost { background: none; border: 1.5px solid #E3E3E8; color: var(--text-body); font-weight: 600; }

/* ── 솔루션 상세 ──────────────────────────────────────────── */
.sol-detail-head { text-align: center; padding: 96px 0 40px; }
.sol-detail-head .grp-tag {
  display: inline-block; background: var(--bg-gray); border-radius: var(--radius-pill);
  padding: 6px 18px; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 24px;
}
.sol-detail-head .label { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.sol-body { max-width: 820px; margin: 0 auto; font-size: 19px; line-height: 1.75; color: var(--text-body); padding-bottom: 48px; }
.sol-points { justify-content: center; padding-bottom: 40px; }
.sol-points .chip { cursor: default; font-weight: 600; }
.patent-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--brand-red); color: var(--brand-red);
  border-radius: var(--radius-pill); padding: 10px 22px; font-size: 15px; font-weight: 700;
  margin-top: 8px;
}
.sol-nav { display: flex; justify-content: space-between; gap: 16px; padding: 56px 0 0; }
.sol-nav a { font-size: 16px; font-weight: 600; color: var(--link-blue); }

/* ── 타임라인 (about) ─────────────────────────────────────── */
.timeline { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 8px 0 24px; }
.timeline span {
  background: var(--bg-gray); border-radius: var(--radius-pill); padding: 10px 22px;
  font-size: 15px; font-weight: 600; color: var(--text-body);
}

/* ── 문의 폼 ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; padding-bottom: 48px; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; color: var(--text-primary); }
.contact-info dl { display: grid; grid-template-columns: 88px 1fr; row-gap: 14px; font-size: 16px; }
.contact-info dt { color: var(--text-muted); }
.contact-info dd a { color: var(--link-blue); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: var(--font-ko); font-size: 16px; color: var(--text-body);
  background: var(--bg-card); border: 1.5px solid transparent; border-radius: 14px;
  padding: 14px 16px; outline: none; transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand-red); }
.form-row textarea { min-height: 140px; resize: vertical; }

/* ── 푸터 ─────────────────────────────────────────────────── */
footer.site-foot { border-top: 1px solid #EEEEF1; padding: 48px 0 64px; margin-top: 0; }
.foot-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-inner .co { font-weight: 800; font-size: 17px; color: var(--text-primary); margin-bottom: 10px; }
.foot-inner p, .foot-inner a { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.foot-inner a:hover { color: var(--link-blue); }
.foot-links { display: flex; gap: 20px; align-items: baseline; }

/* ── 리빌 애니메이션 ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 접근성 포커스 */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-red); outline-offset: 2px;
}

/* ── 반응형 ───────────────────────────────────────────────── */
/* 중간 폭(1025~1200px) — 메뉴 8개가 한 줄에 들어가도록 여백 압축 */
@media (max-width: 1200px) {
  nav.gnb-nav { gap: 2px; }
  nav.gnb-nav > a, .gnb-drop > button { padding: 9px 11px; font-size: 15px; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  /* GNB — 메뉴 8개가 눌려 일그러지기 전에 버거 메뉴로 전환 (구 720px에서 상향) */
  nav.gnb-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #EEEEF1; flex-direction: column;
    align-items: stretch; padding: 12px 20px 20px; gap: 2px;
  }
  nav.gnb-nav.open { display: flex; }
  nav.gnb-nav > a, .gnb-drop > button { padding: 10px 16px; font-size: 16px; }
  .gnb-drop > button { width: 100%; text-align: left; }
  .gnb-drop-menu {
    position: static; width: 100%; box-shadow: none; border: none; padding: 0 0 0 12px;
    display: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
  }
  .gnb-drop.open .gnb-drop-menu { display: block; transform: none; }
  nav.gnb-nav > a.active::after { display: none; }
  .gnb-burger { display: block; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 48px; }
  .center-head { padding: 64px 0 36px; }
}

/* ============================================================
   A-2 FACTORY MAP (/map) — factory-map.html v1.1 이식.
   필터는 기존 .chips/.chip/.chip.on 재사용, 카드는 .site-* 전용.
   ============================================================ */
.map-legend { margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; color: var(--text-muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend .ldot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; padding-bottom: 8px; }
.site-card { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--radius-card); padding: 28px 26px 22px; min-height: 218px; transition: transform .18s ease, box-shadow .18s ease; }
a.site-card:hover, a.site-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(30,28,34,.10); }
.site-en { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.site-name { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.site-tagline { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.site-desc { font-size: 15px; line-height: 1.6; color: var(--text-body); margin-top: 14px; flex: 1; }
.site-meta { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--dot-line); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.site-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-weight: 700; }
.sdot { width: 8px; height: 8px; border-radius: 50%; }
.sdot.live { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.site-host { color: var(--text-muted); }
a.site-card .site-host { color: var(--link-blue); }
.site-host .arrow { font-style: normal; margin-left: 2px; }
.here-pin { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; color: var(--brand-red); border: 1px solid var(--brand-red); background: #fff; border-radius: var(--radius-pill); padding: 4px 12px; display: inline-flex; align-items: center; gap: 6px; }
.here-pin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-red); animation: pulse 2.2s ease-in-out infinite; }
.ghost-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: transparent; border: 2px dashed var(--dot-line); border-radius: var(--radius-card); padding: 28px 26px; min-height: 218px; color: var(--text-muted); transition: border-color .18s ease, color .18s ease; }
.ghost-card:hover { border-color: var(--brand-red-soft); color: var(--text-secondary); }
.ghost-plus { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 44px; line-height: 1; color: var(--dot-line); transition: color .18s ease; }
.ghost-card:hover .ghost-plus { color: var(--brand-red-soft); }
.ghost-title { font-size: 15px; font-weight: 700; }
.ghost-sub { font-size: 13px; line-height: 1.55; }
.map-count { margin-top: 26px; text-align: center; font-size: 13px; color: var(--text-muted); letter-spacing: .02em; padding-bottom: 8px; }

/* ============================================================
   A-3 통합견적폼 (/contact) — quote.typrun.com 이식 (brand-red 토큰).
   ============================================================ */
.quote-single { max-width: 900px; margin: 0 auto; padding-bottom: 24px; }
.quote-box { background: var(--bg-card); border: 1px solid #EEEEF1; border-radius: var(--radius-card); padding: 36px 32px; }
.f-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin: 26px 0 10px; }
.f-label:first-child { margin-top: 0; }
.f-label b { color: var(--brand-red); }
.f-help { font-size: 12px; color: var(--text-muted); margin-top: 7px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.seg-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; border: 1.5px solid #E3E3E8; background: #fff; border-radius: 14px; cursor: pointer; font-family: var(--font-ko); transition: border-color .15s, box-shadow .15s; }
.seg-btn:hover { border-color: var(--brand-red); }
.seg-btn.on { border-color: var(--brand-red); box-shadow: inset 0 0 0 1px var(--brand-red), 0 8px 22px rgba(230,58,88,.08); }
.seg-en { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--text-muted); }
.seg-btn.on .seg-en { color: var(--brand-red); }
.seg-ko { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.seg-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inp { width: 100%; background: #fff; border: 1.5px solid #E3E3E8; border-radius: 12px; color: var(--text-body); padding: 13px 14px; font-size: 16px; font-family: var(--font-ko); min-height: 46px; outline: none; transition: border-color .15s; }
textarea.inp { min-height: 120px; resize: vertical; }
.inp:focus { border-color: var(--brand-red); }
.inp::placeholder { color: var(--text-muted); }
.inp:disabled { background: var(--bg-gray); color: var(--text-muted); }
.f-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-top: 10px; cursor: pointer; }
.f-check input { accent-color: var(--brand-red); width: 18px; height: 18px; }
.f-files { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.f-attach { border: 1.5px dashed #D9D9DE; background: var(--bg-gray); color: var(--text-secondary); border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-ko); transition: border-color .15s, color .15s; }
.f-attach:hover { border-color: var(--brand-red); color: var(--brand-red); }
.f-filelist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.f-filelist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); background: var(--bg-gray); border: 1px solid #E3E3E8; border-radius: 8px; padding: 8px 12px; }
.f-filelist .fn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.f-filelist .fs { font-size: 11px; color: var(--text-muted); }
.f-filelist li button { border: none; background: transparent; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 2px 6px; }
.f-filelist li button:hover { color: var(--brand-red); }
.f-filetotal { justify-content: flex-end; font-size: 11px; color: var(--text-muted); background: transparent !important; border: none !important; padding: 2px 4px !important; }
.f-actions { display: flex; gap: 10px; margin-top: 30px; }
.f-reset { flex: 0 0 auto; background: none; border: 1.5px solid #E3E3E8; color: var(--text-secondary); font-weight: 600; font-size: 16px; border-radius: var(--radius-pill); padding: 14px 28px; cursor: pointer; font-family: var(--font-ko); }
.f-reset:hover { border-color: #D9D9DE; }
.f-send { flex: 1; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; border: none; border-radius: var(--radius-pill); padding: 14px 28px; cursor: pointer; font-family: var(--font-ko); transition: opacity .15s; }
.f-send:hover { opacity: .9; }
.f-send:disabled { opacity: .5; cursor: default; }
.f-err { margin-top: 14px; color: var(--brand-red); font-size: 14px; }
.f-err a { color: var(--brand-red); text-decoration: underline; }
.f-note { margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.f-done { text-align: center; padding: 48px 32px; }
.f-done h3 { font-size: 24px; color: var(--text-primary); margin-bottom: 12px; }
.f-done p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
@media (min-width: 680px) { .seg { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   A-4 자체 관리자 (/admin) — 토큰 로그인 + 콘텐츠/사례/지도 편집.
   ============================================================ */
.admin-wrap { max-width: 980px; margin: 0 auto; padding: 40px 32px 96px; }
.admin-login { max-width: 420px; margin: 64px auto; text-align: center; }
.admin-login .inp { margin: 16px 0; }
.admin-tabs { display: flex; gap: 8px; margin: 8px 0 28px; flex-wrap: wrap; }
.admin-tab { background: var(--bg-gray); border: none; border-radius: var(--radius-pill); padding: 10px 20px; font-size: 15px; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: var(--font-ko); }
.admin-tab.on { background: var(--bg-dark); color: #fff; }
.admin-row { background: var(--bg-card); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.admin-row h4 { font-size: 15px; color: var(--text-primary); margin-bottom: 4px; }
.admin-row .k { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, Consolas, monospace; }
.admin-row .inp { margin-top: 10px; }
.admin-row .f-actions { margin-top: 12px; }
.admin-msg { margin: 12px 0; font-size: 14px; font-weight: 600; min-height: 20px; }
.admin-msg.ok { color: var(--cat-green); }
.admin-msg.err { color: var(--brand-red); }

/* ============================================================
   2026-07-08 추가 — 로고 / 히어로 배경 / 80×80 아이콘 슬롯 / 문의 지도
   ============================================================ */

/* GNB 가로 로고 (logo.png 680×160) */
.gnb-logo-img { height: 34px; width: auto; display: block; }

/* 히어로 배경 — 풀블리드 밴드 + 로테이션 슬라이드(크로스페이드) + 흰색 베일(가독) */
.hero-band { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-gray); }
.hero-bg .slide { position: absolute; inset: 0; background-size: cover; background-position: center 42%; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg .slide.on { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.80) 45%, rgba(255,255,255,.94) 84%, #fff 100%); }
.hero-band .hero { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bg .slide { transition: none; } }

/* 62×62 캐릭터 아이콘 슬롯 — 카드 상단 센터 블록용 (2026-07-10 레이아웃 정리) */
.icon62 { width: 62px; height: 62px; flex: 0 0 auto; object-fit: contain; background: transparent; }

/* 진행방식 스텝 — 상단(캐릭터+번호) 센터 블록 + 제목·본문 와이드 센터 */
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.step-head .no { margin-bottom: 0; line-height: 1; }
.step-title { font-size: 21px; color: var(--text-primary); margin-bottom: 10px; }
.step-body { font-size: 15.5px; line-height: 1.65; width: 100%; }

/* 거래안내 카드 — 캐릭터 센터 상단 + 제목·본문 센터 */
.card.icon-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card.icon-card .icon-head { margin-bottom: 14px; }

/* 공장지도 카드 헤드 — 캐릭터 센터 상단 + 타이틀 센터 (메타 행은 기존 좌우 분할 유지) */
.site-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.site-head-text { width: 100%; min-width: 0; }
.site-desc { text-align: center; }

/* 문의 — 폼 폭 확장 + 하단 지도(풀블리드·세로고정·그림자 없음) */
.quote-single { max-width: 1000px; }
.contact-map { width: 100%; height: 480px; margin-top: 56px; overflow: hidden; background: var(--bg-gray); }
.contact-map iframe, .contact-map #nmap { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 720px) { .contact-map { height: 360px; } }

/* 푸터 — 사각 로고(글자 왼쪽) + 이메일 복사 버튼 */
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-logo { height: 92px; width: auto; display: block; flex: 0 0 auto; }
.foot-email { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-ko); font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.foot-email:hover { color: var(--link-blue); }

/* 소식 (/news) */
.news-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; padding-bottom: 24px; }
.news-item { display: flex; gap: 24px; background: var(--bg-card); border-radius: var(--radius-card); padding: 24px 26px; align-items: flex-start; }
.news-thumb { flex: 0 0 200px; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-gray); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 1; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.news-cat { background: var(--brand-red); color: #fff; border-radius: var(--radius-pill); padding: 3px 12px; font-size: 12px; font-weight: 700; }
.news-pin { color: var(--brand-red); font-weight: 700; }
.news-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.news-text { font-size: 15px; line-height: 1.65; color: var(--text-body); white-space: pre-wrap; }
.empty-note { text-align: center; color: var(--text-secondary); padding: 48px 0; }
@media (max-width: 720px) { .news-item { flex-direction: column; gap: 14px; } .news-thumb { flex: none; width: 100%; } }

/* 캐릭터 퍼레이드 — 랜덤 캐릭터가 좌→우로 행진 + 각자 통통 (transform만, 컴포지터 친화) */
.char-parade {
  width: 100%; overflow: hidden; margin-top: 50px; padding: 20px 0 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.char-track { display: flex; align-items: flex-end; gap: 44px; width: max-content; animation: parade 44s linear infinite; }
.char-parade .ch { height: 64px; width: auto; flex: 0 0 auto; animation: charbob 2.4s ease-in-out infinite; will-change: transform; }
@keyframes parade { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes charbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* 슬롯 섬네일 캐릭터 — 위아래 yoyo */
.char-yoyo { animation: yoyo 2.6s ease-in-out infinite; will-change: transform; }
@keyframes yoyo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--amp, -6px)); } }

@media (prefers-reduced-motion: reduce) {
  .char-track { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; gap: 24px; }
  .char-parade .ch, .char-yoyo { animation: none; }
  .char-parade { mask-image: none; -webkit-mask-image: none; }
}

/* 인스타그램 임베드 (/about) */
.insta-embed { max-width: 900px; margin: 0 auto 28px; border-radius: var(--radius-card); overflow: hidden; }
.insta-embed iframe { width: 100%; min-height: 500px; border: 0; display: block; }

/* 블로그 카드 (/news) — 워드프레스 프록시 */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--radius-card); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(30, 28, 34, .10); }
.blog-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-gray); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fff, var(--bg-gray)); }
.blog-thumb-empty span { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 28px; color: var(--brand-red-soft); }
.blog-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-date { font-size: 12px; color: var(--text-muted); }
.blog-title { font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.blog-ex { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   2026-07-10 추가 — 2뎁스 서브탭 (포트폴리오 갤러리/참고영상) + 유튜브 영상 그리드
   ============================================================ */

/* 서브탭 — 한글 라벨 + 영문 소제목, 활성 시 그라데이션 언더라인 (시그니처 계승) */
.subtabs { display: flex; justify-content: center; gap: 6px; padding-bottom: 36px; }
.subtab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; cursor: pointer; font-family: var(--font-ko);
  font-size: 19px; font-weight: 700; color: var(--text-muted);
  padding: 10px 26px 16px; transition: color .15s;
}
.subtab-en {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 11px; letter-spacing: .08em; color: var(--text-muted); opacity: .7;
}
.subtab:hover { color: var(--text-body); }
.subtab.on { color: var(--text-primary); }
.subtab.on .subtab-en {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: 1;
}
.subtab::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 8px; height: 3px;
  border-radius: 2px; background: var(--grad); opacity: 0; transform: scaleX(.4);
  transition: opacity .18s, transform .22s ease;
}
.subtab.on::after { opacity: 1; transform: scaleX(1); }

/* 유튜브 영상 그리드 */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.video-card {
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  font-family: var(--font-ko); display: flex; flex-direction: column;
}
.video-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-photo);
  overflow: hidden; background: var(--bg-gray);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(30,28,34,.62); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  transition: background .18s, transform .18s;
}
.video-card:hover .video-play { background: var(--brand-red); transform: scale(1.08); }
.video-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(30,28,34,.78); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: var(--radius-pill); padding: 4px 12px; letter-spacing: .04em;
}
.video-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.45; margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-date { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }

/* ── SEO 서버 사전 렌더 콘텐츠 — 크롤러·무JS 브라우저 전용 ── */
/* render_shell()이 head에 html.js 클래스를 심으므로 JS 브라우저에선 즉시 숨김(FOUC 방지) */
html.js .seo-pre { display: none; }
.seo-pre { padding: 56px 0 72px; }
.seo-pre h1 { font-size: 26px; color: var(--text-primary); margin-bottom: 14px; }
.seo-pre h2 { font-size: 19px; color: var(--text-primary); margin: 26px 0 8px; }
.seo-pre p, .seo-pre li { font-size: 15px; color: var(--text-body); line-height: 1.75; }
.seo-pre ul { list-style: disc; padding-left: 20px; }
.seo-pre a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 3px; }

/* 사례·소식 상세 대표 사진 */
.case-detail-photo { max-width: 900px; margin: 0 auto 36px; border-radius: var(--radius-photo); overflow: hidden; background: var(--bg-gray); }
.case-detail-photo img { width: 100%; display: block; }

/* 영상 재생 라이트박스 */
.video-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-lb-backdrop { position: absolute; inset: 0; background: rgba(20,18,24,.82); backdrop-filter: blur(4px); }
.video-lb-body {
  position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9;
  background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.video-lb-body.short { width: auto; height: min(80vh, 720px); aspect-ratio: 9 / 16; }
.video-lb-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; cursor: pointer; transition: background .15s;
}
.video-lb-close:hover { background: var(--brand-red); }
