/* ══════════════════════════════════════════════════════════════
   포켓잭스 웹사이트 · 화면 디자인
   회사 시안 「Pocket Jacks Website - Gallery.html」(밝은 크림 · 검정 글씨 · 파랑 강조)을
   색·글자 크기·간격 숫자 그대로 옮겼습니다. (2026-09-30)

   · 색을 바꾸려면 아래 :root 의 값만 고치면 전체가 바뀝니다.
   · 영문/한글 화면은 글꼴·자간·제목 크기가 다릅니다 → html[lang="ko"] 부분.
   · 폭 1180px 미만은 휴대폰·태블릿 화면(메뉴가 ☰ 로 접힘).
   ══════════════════════════════════════════════════════════════ */

/* 영문 라벨 글꼴 — JetBrains Mono (OFL 무료 글꼴 · assets/fonts 에 들어 있음) */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  /* ── 색 (시안 gallery 팔레트) ─────────────────────────── */
  --bg: #F3F1EC;            /* 바탕 크림 */
  --header-bg: rgba(243,241,236,.86);
  --surface: #E7E4DD;       /* 사진이 없을 때 바탕 */
  --line: #D6D2C9;          /* 구분선 */
  --line-strong: #B8B3A8;   /* 입력칸 밑줄 */
  --text: #121214;          /* 본문 검정 */
  --muted: #55534E;         /* 설명문 */
  --dim: #6B6861;           /* 라벨·캡션 — 시안 #77746D 는 크림 바탕 대비 4.1:1 로 기준(4.5) 미달 → 4.9:1 로 한 단계 진하게 (2026-09-30) */
  --accent: #2F3BE8;        /* 파랑 — 단추·번호 라벨 */
  --on-accent: #FFFFFF;
  --accent2: #E0482B;       /* 주황빨강 — 미국 진출 · 개발 중 */
  --on-accent2: #FFFFFF;
  --accent2-text: #C23A1F;  /* 크림 바탕 위 「작은 글자」용 주황빨강 — #E0482B 는 대비 3.6:1 · 이 색 4.8:1 (배경·어두운 곳은 --accent2 그대로) */
  --dark: #050507;          /* 검은 기술 구역 */

  /* ── 간격 (넓은 화면) ─────────────────────────────────── */
  --max: 1360px;
  --gx: 40px;               /* 좌우 여백 */
  --head-h: 84px;           /* 맨 위 메뉴 높이 */
  --top-pad: 120px;         /* 페이지 첫 여백 */
  --big-pad: 160px;         /* 구역 사이 여백 */
  --foot-gap: 160px;        /* 본문과 맨 아래 사이 (문의 페이지는 96px) */

  /* ── 글자 (영문 화면 기준) ─────────────────────────────── */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --mono-ls: .12em;
  --h-lh: 1.06;
  --h-ls: -.04em;
  --nav-size: 13px;
  --nav-ls: .08em;
  --hero-size: clamp(48px, 7vw, 112px);
  --h1-size: clamp(40px, 5.4vw, 80px);
  --h2-size: clamp(32px, 4vw, 56px);
}

/* 한글 화면 — 라벨도 본문 글꼴 · 줄 간격 넉넉히 · 제목 조금 작게 */
html[lang="ko"] {
  --mono: var(--sans);
  --mono-ls: .02em;
  --h-lh: 1.18;
  --h-ls: -.03em;
  --nav-size: 14px;
  --nav-ls: 0;
  --hero-size: clamp(40px, 6vw, 92px);
  --h1-size: clamp(34px, 4.6vw, 68px);
  --h2-size: clamp(28px, 3.6vw, 48px);
}
html[lang="ko"] body { word-break: keep-all; }

@media (max-width: 1179px) {
  :root { --gx: 20px; --head-h: 68px; --top-pad: 64px; --big-pad: 96px; --foot-gap: 96px; }
}

/* ── 기본값 ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gx); padding-right: var(--gx); }
.page { padding-top: var(--top-pad); }
.sec  { padding-top: var(--big-pad); }

/* 번호 라벨 · 캡션 — 영문은 고정폭 글꼴 */
.lbl  { font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); line-height: 1.7; color: var(--accent); }
.lbl.dim { color: var(--dim); }
.lbl.muted { color: var(--muted); }
.lbl.red { color: var(--accent2-text); }
.lbl.gap { margin-bottom: 28px; }
/* 구역 라벨 「■ 02 — WHAT WE DO」 — 파란 네모 + 검정 굵은 글자 (회사 HTML 2026-10-01) */
.lbl.dot { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.lbl.dot::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); }
/* 줄바꿈이 정해진 제목 — content.json 의 …Lines 목록 한 줄이 한 칸 */
.ln { display: block; }
.lbl.gap-s { margin-bottom: 20px; }

.h1 { font-weight: 700; font-size: var(--h1-size); line-height: var(--h-lh); letter-spacing: var(--h-ls); max-width: 1100px; }
.h2 { font-weight: 700; font-size: var(--h2-size); line-height: var(--h-lh); letter-spacing: var(--h-ls); }

/* 「더 보기 →」 밑줄 글 */
/* 밑줄은 배경 선으로 그려, 마우스를 올리면 오른쪽으로 걷혔다가 왼쪽부터 다시 그어집니다 (2026-09-30 제안 08) */
.more { font-size: 14px; font-weight: 600; cursor: pointer; padding-bottom: 4px; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* 둥근 단추 */
.pill { display: inline-block; border-radius: 999px; padding: 16px 26px; font-weight: 700; font-size: 14px;
  letter-spacing: .06em; cursor: pointer; background: var(--accent); color: var(--on-accent); border: 0; }
.pill.red { background: var(--accent2); color: var(--on-accent2); padding: 16px 28px; letter-spacing: .08em; }

/* 넓은 막대 단추 (문의 보내기 · 라이선싱 문의) */
.bar-btn { display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 22px 28px; font-weight: 700; font-size: 14px; letter-spacing: .08em; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 0; text-align: left; }
.bar-btn:disabled { opacity: .45; cursor: default; }

/* 제목 줄 — 왼쪽 라벨+제목 / 오른쪽 더 보기 */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* ── 사진 자리 ─────────────────────────────────────────────
   data-img="파일명" 이 붙은 칸. 사진이 있으면 꽉 채우고, 없으면 빗금 + 안내 글.
   비율은 r-43 · r-32 · r-1610 처럼 붙여 정합니다. */
.ph { position: relative; overflow: hidden; background: var(--surface); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.ph .ph-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); color: var(--dim); text-align: center;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(128,128,128,.07) 12px 24px); }
.ph .ph-empty small { font-size: 11px; opacity: .8; }
.ph.has-img .ph-empty { display: none; }
.r-43 { aspect-ratio: 4/3; } .r-32 { aspect-ratio: 3/2; } .r-1610 { aspect-ratio: 16/10; }
.r-1611 { aspect-ratio: 16/11; } .r-54 { aspect-ratio: 5/4; }
.zoom:hover .ph > img, .ph.zoom:hover > img { transform: scale(1.04); }
/* 미디어 자리(site.js setupMedia) — 기본 사진 위에 겹치는 층. 여러 장은 천천히 겹쳐 바뀌고, 영상은 자리를 꽉 채움 */
.m-layer { position: absolute; inset: 0; overflow: hidden; container-type: size; z-index: 1; }
.m-slides > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; }
.m-slides > img.on { opacity: 1; }
.m-layer > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 유튜브는 16:9 틀이라 자리 비율(4:3 · 16:10 · 5:4)에 맞춰 넘치게 키운 뒤 가운데 맞춤 — cqw·cqh = 이 층 크기 기준 (html 안 style 을 이기려고 !important) */
.m-layer > iframe { position: absolute; inset: auto !important; top: 50% !important; left: 50% !important;
  width: max(100%, 177.78cqh) !important; height: max(100%, 56.25cqw) !important;
  transform: translate(-50%, -50%); border: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .m-slides > img { transition: none; } }
.cap { font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); color: var(--dim); line-height: 1.6; }
.fig { display: flex; flex-direction: column; gap: 12px; }

/* 그리드 */
.grid-2  { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.grid-2x { grid-template-columns: repeat(2, minmax(0, 1fr)); }       /* 사진 4장 = 늘 두 줄 두 칸 · 좁으면 한 칸 */
@media (max-width: 720px) { .grid-2x { grid-template-columns: 1fr; } }
.grid-2w { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 64px; }

/* ══════════════════════════════════════════════════════════
   1. 맨 위 메뉴 (모든 페이지 공통 · site.js 가 그립니다)
   ══════════════════════════════════════════════════════════ */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gx); min-height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* 맨 위 로고 = images/logo.svg (2줄형 · 회사 HTML 44px / 휴대폰 36px) */
.hdr-logo img { height: 44px; width: auto; }
.hdr-right { display: flex; align-items: center; gap: 32px; }
.hdr-nav { display: flex; align-items: center; gap: 26px; }
.hdr-nav a { font-size: var(--nav-size); letter-spacing: var(--nav-ls); padding: 8px 0; white-space: nowrap;
  font-weight: 500; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s; }
.hdr-nav a:hover { color: var(--text); }
.hdr-nav a.on { font-weight: 700; color: var(--text); border-bottom-color: var(--text); }

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--dim); white-space: nowrap; }
.hdr-right > .lang { padding-left: 24px; border-left: 1px solid var(--line); }
.lang button { background: none; border: 0; cursor: pointer; padding: 6px 2px; color: var(--dim); font-weight: 400; font-family: inherit; font-size: inherit; letter-spacing: inherit; }
.lang button.on { color: var(--text); font-weight: 700; }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 22px; height: 1.5px; background: var(--text); transition: transform .3s; }
.hdr.open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr.open .burger span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mmenu { display: none; height: calc(100vh - var(--head-h)); overflow: auto; padding: 12px var(--gx) 40px;
  flex-direction: column; background: var(--bg); }
.mmenu a { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.mmenu a span { font-size: 16px; letter-spacing: var(--nav-ls); padding-bottom: 4px; font-weight: 500; color: var(--muted); border-bottom: 1.5px solid transparent; }
.mmenu a.on span { font-weight: 700; color: var(--text); border-bottom-color: var(--text); }
.mmenu .mail { margin-top: auto; padding-top: 32px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

@media (max-width: 1179px) {
  .hdr-logo img { height: 36px; }
  .hdr-nav { display: none; }
  .hdr-right > .lang { padding-left: 0; border-left: 0; }
  .hdr-right { gap: 14px; }
  .burger { display: flex; }
  .hdr.open .mmenu { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   2. 홈
   ══════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero-bg, .hero-video { position: absolute; inset: 0; }
.hero .ph { background: #000; }
.hero-bg > img { object-position: 50% 40%; }
.hero-bg .ph-empty { color: rgba(255,255,255,.5); }
/* 관리자에서 홈 영상을 넣으면 사진 위에 영상이 깔립니다 */
.hero-video:empty { display: none; }
/* 첫 화면 롤링 영상(2026-10-01) — 재생이 시작되면 .on 으로 서서히 나타나고, 사진 차례가 되면 서서히 빠집니다 */
.hero-video > video, .hero-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-video > video.on, .hero-video > img.on { opacity: 1; }
/* 아래 번호 막대 · 일시정지 (회사 HTML) */
.hero-ctl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hero-ctl[hidden] { display: none; }
.hero.has-ctl .hero-in { padding-bottom: 132px; }
.hc-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gx) 28px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.hc-in::before { content: ''; position: absolute; left: var(--gx); right: var(--gx); top: 0; border-top: 1px solid rgba(255,255,255,.28); max-width: calc(var(--max) - 2 * var(--gx)); margin: 0 auto; }
.hero-ctl { padding-top: 20px; }
.hc-i { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; color: #fff; opacity: .55;
  font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); text-align: left; }
.hc-i.on { opacity: 1; }
.hc-i .bar { position: relative; display: block; width: 64px; height: 2px; background: rgba(255,255,255,.35); }
.hc-i .bar i { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: #fff; }
.hc-pp { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: none; color: #fff; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
@media (max-width: 720px) { .hc-i .bar { width: 36px; } .hc-in { gap: 14px; } .hero.has-ctl .hero-in { padding-bottom: 112px; } }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.25) 80%, rgba(0,0,0,.35) 100%); }
.hero-in { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 96px var(--gx) 72px; color: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 40px; align-items: end; }
.hero .lbl { color: #fff; margin-bottom: 28px; }
.hero h1 { font-weight: 700; font-size: var(--hero-size); line-height: var(--h-lh); letter-spacing: var(--h-ls); }
.hero-side { max-width: 460px; justify-self: end; }
.hero-side p { font-size: 18px; line-height: 1.7; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); margin: 0 0 32px; text-wrap: pretty; }
.hero-btns { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-btns .line { font-weight: 700; font-size: 14px; letter-spacing: .06em; padding-bottom: 4px;
  background: linear-gradient(#fff, #fff) 0 100% / 100% 1px no-repeat; }

.intro { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.intro > .lbl { flex: 0 0 240px; color: var(--muted); }
.intro-body { flex: 1 1 560px; min-width: 0; max-width: 900px; }
.intro-body p { margin: 0 0 36px; font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; text-wrap: pretty; }

/* 숫자 3개 — 양끝 맞춤 한 줄(회사 HTML) · 1000px 미만은 세로로 쌓고 사이에 선 */
.stats { margin-top: 88px; display: flex; justify-content: space-between; align-items: baseline; column-gap: 48px; border-top: 1px solid var(--line); }
.stat { padding: 44px 0 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.stat .num { font-size: clamp(56px, 6vw, 88px); font-weight: 600; letter-spacing: var(--h-ls); line-height: 1; white-space: nowrap; }
.stat .num span { color: var(--accent); }
.stat .lbl { margin-top: 20px; color: var(--muted); word-break: keep-all; }
.stat .lbl span { display: block; }
@media (max-width: 999px) {
  .stats { flex-direction: column; align-items: stretch; }
  .stat { padding: 32px 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-cell { padding: 28px 24px 36px; display: flex; flex-direction: column; justify-content: flex-start;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.svc-cell:hover { background: rgba(128,128,128,.08); }
.svc-cell .lbl { color: var(--dim); line-height: 1; }
.svc-cell .t { margin-top: 48px; font-size: 18px; font-weight: 700; line-height: 1.35; min-height: 2.7em; overflow-wrap: anywhere; }
html[lang="ko"] .svc-cell .t { white-space: nowrap; min-height: 0; }
.svc-cell .d { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); word-break: keep-all; }
.svc-cell .d span { display: block; }

.tech { margin-top: var(--big-pad); background: var(--dark); color: #F6F6F9; }
.tech-in { padding-top: var(--big-pad); padding-bottom: var(--big-pad); }
.tech-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: end; margin-bottom: 56px; }
.tech .lbl { color: #fff; }
.tech-head p { font-size: 18px; line-height: 1.7; color: #B4B4C2; max-width: 520px; }
.tech .cap { color: #8C8C9C; }
.tech .ph { background: #15151D; }
.ph.pos-low > img { object-position: 50% 70%; }   /* 실내 전체 공간 사진 — 아래쪽이 보이게(회사 HTML) */

.prj-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px 32px; }
.prj-card { display: flex; flex-direction: column; gap: 22px; }
a.prj-card, a.prj-item { cursor: pointer; }
/* 사진 위 상태 표시 — 반투명 알약 + 색 점(운영 중 초록 · 완료 회색 · 개발 중 주황) (회사 HTML) */
.chip-st { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px;
  border-radius: 999px; background: rgba(18,18,20,.5); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.chip-st i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #D6D6DE; box-shadow: 0 0 0 3px rgba(214,214,222,.22); }
.chip-st.st-live i { background: #3DDC97; box-shadow: 0 0 0 3px rgba(61,220,151,.28); }
.chip-st.st-dev i { background: #FFA24C; box-shadow: 0 0 0 3px rgba(255,162,76,.28); }
/* 카드 아래 분류 글자 색 — 개발 중만 주황빨강 (사진 위 알약 글자는 늘 흰색) */
.g.st-live, .g.st-done { color: var(--muted); } .g.st-dev { color: var(--accent2-text); }
.prj-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.prj-card .row b { font-size: 24px; font-weight: 700; }

.biz { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.biz-card { position: relative; background: #000; color: #fff; display: block; }
.biz-card .ph { position: absolute; inset: 0; background: #000; }
.biz-card .ph > img { opacity: .75; }
.biz-card.usa .ph > img { opacity: .85; object-position: 35% 50%; }
.biz-card .cover { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.biz-card .cover .lbl { margin-bottom: 12px; color: #fff; }
.biz-card .cover .lbl.red { color: var(--accent2); }
.biz-card .cover .t { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 12px; }
.biz-card .cover .s { font-size: 14px; color: rgba(255,255,255,.75); }

.ent { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 32px; padding: 28px 0; align-items: baseline; border-top: 1px solid var(--line); }
.ent .n { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ent .r { font-size: 16px; line-height: 1.6; color: var(--muted); }
.ent-lg { padding: 32px 0; } .ent-lg .n { font-size: 24px; }
.ent-c { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; }
.ent-c .addr { font-size: 14px; line-height: 1.6; color: var(--muted); }

.cta-row { padding: 64px 0; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--text); }
.cta-row .t { font-size: var(--h1-size); font-weight: 700; letter-spacing: var(--h-ls); line-height: 1.1; margin-bottom: 20px; }
.cta-row .t:last-child { margin-bottom: 0; }
.cta-row .m { font-size: 16px; color: var(--muted); }
.cta-row .m.b { font-weight: 600; }
.circle { width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: var(--accent); color: var(--on-accent); transition: transform .3s; }
.cta-row:hover .circle { transform: rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   3. 회사 소개 · 사업 영역
   ══════════════════════════════════════════════════════════ */
.about-body { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; max-width: 580px; color: var(--muted); }
.about-body .first { font-size: 22px; line-height: 1.65; color: var(--text); }
.values { margin-top: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line); }
.values > div { padding: 36px 32px 0 0; }
.values .lbl { margin-bottom: 16px; color: var(--muted); letter-spacing: 0; }
.values .t { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.values .d { margin-top: 12px; font-size: 15px; line-height: 1.65; max-width: 360px; color: var(--muted); }

.svc-intro { margin: 40px 0 0; max-width: 720px; font-size: 18px; line-height: 1.7; text-wrap: pretty; color: var(--muted); }
.svc-rows { margin-top: 80px; border-bottom: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 40px; padding: 40px 0;
  align-items: baseline; border-top: 1px solid var(--line); transition: padding .3s; }
.svc-row:hover { padding-left: 16px; }
.svc-row .l { display: flex; gap: 28px; align-items: baseline; }
.svc-row .no { font-family: var(--mono); font-size: 14px; color: var(--dim); }
.svc-row .t { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.01em; }
.svc-row .r { display: flex; flex-direction: column; gap: 12px; }
.svc-row .d { font-size: 16px; line-height: 1.7; max-width: 520px; color: var(--muted); }
.svc-row .tags { font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); color: var(--dim); }
.svc-row .tags:empty { display: none; }
.badge { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); padding: 5px 10px; background: var(--accent); color: var(--on-accent); }

/* ══════════════════════════════════════════════════════════
   4. 프로젝트
   ══════════════════════════════════════════════════════════ */
/* 제목 왼쪽 · 거르기 칩 오른쪽 아래 맞춤(회사 HTML · 2026-10-01) — 자리가 모자라면 칩이 제목 아래로 내려갑니다 */
.prj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted); }
.chip.on { border-color: var(--text); background: var(--text); color: var(--bg); }
.prj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 64px 32px; }
.prj-item { display: flex; flex-direction: column; gap: 24px; }
.prj-item .info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.prj-item .t { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.prj-item .g { font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.prj-item .d { font-size: 16px; line-height: 1.7; color: var(--muted); }

/* 프로젝트 상세 */
.dt-sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.dt-sec h2 { font-size: 20px; font-weight: 700; }
.dt-sec p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.dt-sec p.st-live { color: var(--accent); } .dt-sec p.st-dev { color: var(--accent2-text); }
.dt-gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }

/* ══════════════════════════════════════════════════════════
   5. 스머프 IP · 미국 진출
   ══════════════════════════════════════════════════════════ */
/* 스머프 IP (회사 HTML 2026-10-01) — 제목+소개 → 넓은 사진 넘기기 → 라이선스 분야 → 역할 STEP → 문의 */
.sm-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 32px 80px; align-items: end; }
.sm-head > p { font-size: 18px; line-height: 1.7; max-width: 560px; text-wrap: pretty; color: var(--muted); }
.sm-fig { margin-top: 72px; }
.sm-ph { width: 100%; aspect-ratio: 16/7; }
@media (max-width: 1179px) { .sm-ph { aspect-ratio: 4/3; } }
/* 사진 아래 줄 — 01 / 03 · 설명 · 앞뒤 단추 */
.m-cap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.m-cap-l { display: flex; align-items: center; gap: 20px; min-width: 0; }
.m-cap .no { font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); color: var(--text); flex-shrink: 0; }
.m-cap .cap { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--muted); min-width: 0; }
.m-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.m-nav i { width: 1px; height: 16px; background: var(--line-strong); }
.m-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: background .25s; }
.m-nav button:hover { background: var(--surface); }
.m-cap.single .no, .m-cap.single .m-nav { display: none; }
/* 사진 아래 여백 — 회사 VER0.2 4쪽 「위로 올릴 것」(전에는 구역 여백 160px) */
.sm-cats { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 80px; }
.sm-cats > .lbl { align-self: flex-start; }
.sm-fields { grid-column: span 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 48px; }
@media (max-width: 699px) { .sm-fields { grid-column: span 1; } }
.sm-fields > div { display: flex; align-items: baseline; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.sm-fields .no, .step .no { font-family: var(--mono); font-size: 12px; letter-spacing: var(--mono-ls); color: var(--dim); flex-shrink: 0; }
.sm-fields .t { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.sm-roles { margin-top: var(--big-pad); }
.sm-roles > .lbl { margin-bottom: 40px; }
.sm-steps { display: grid; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 999px) { .sm-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .sm-steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 0 20px 32px 0; }
.step .rail { display: flex; align-items: center; margin-bottom: 24px; }
.step .knob { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; background: var(--bg); border: 1.5px solid var(--accent); }
.step .bar { flex: 1; height: 1px; background: var(--line-strong); }
.step:last-child .knob { background: var(--accent); }
.step:last-child .bar { background: transparent; }
.step .no { margin-bottom: 10px; }
.step .t { font-size: 18px; font-weight: 600; line-height: 1.35; }
/* 문의 단추 — 위로 올리고 파란 둥근 단추로 눈에 띄게 (회사 VER0.2 4쪽) */
.sm-cta { margin-top: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; max-width: 100%; padding: 26px 48px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 34px rgba(47,59,232,.28); transition: transform .25s ease-out, box-shadow .25s; }
.sm-cta .t { font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.sm-cta .ar { font-size: 22px; line-height: 1; transition: transform .25s; }
.sm-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(47,59,232,.4); }
.sm-cta:hover .ar { transform: translateX(6px); }
@media (max-width: 639px) { .sm-cta { display: flex; padding: 22px 28px; } }

/* 미국 진출 사진 — 관리자에서 영상을 넣으면 사진 위에 영상 층(.usa-video)이 깔립니다 (2026-10-01) */
.usa-fig { margin-top: 72px; }
.usa-ph { aspect-ratio: 21/9; min-height: 280px; max-width: 100%; background: #07070A; }
.usa-ph > img { object-position: 40% 50%; }
.usa-video { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.usa-video:empty { display: none; }
.usa-video > video, .usa-video > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
/* 사진 위 작은 표기 — 「콘셉트 이미지 · 위치는 예시」 */
.img-note { position: absolute; z-index: 2; top: 16px; right: 16px; padding: 6px 10px; border-radius: 999px; font-size: 11px; line-height: 1;
  letter-spacing: .01em; color: rgba(255,255,255,.92); background: rgba(18,18,20,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.prj-item .img-note, .prj-card .img-note { top: auto; bottom: 14px; right: 14px; }
.usa-body { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; }
.usa-body > p { font-size: 22px; line-height: 1.7; text-wrap: pretty; max-width: 580px; }
.pt { display: flex; gap: 24px; padding: 22px 0; align-items: baseline; border-top: 1px solid var(--line); }
.pt .lbl { color: var(--accent2-text); letter-spacing: 0; }
.pt span:last-child { font-size: 16px; font-weight: 500; }
.usa-cta { padding-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-top: 1px solid var(--line); }
.usa-cta .note { font-size: 14px; color: var(--dim); }

/* ══════════════════════════════════════════════════════════
   6. 문의
   ══════════════════════════════════════════════════════════ */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 80px; }
.ct-grid .h1 { margin-bottom: 28px; }
.ct-lead { font-size: 16px; line-height: 1.7; margin: 0 0 64px; color: var(--muted); }
.ct-info { border-top: 1px solid var(--line); }
.ct-info > div { padding: 24px 0; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); }
.ct-info .mail { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ct-info .mail { font-size: 18px; } }
.ct-info .offs { display: flex; flex-direction: column; gap: 16px; }
.ct-info .off { font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; gap: 2px; }
.ct-info .off b { font-size: 13px; font-weight: 700; letter-spacing: .02em; }

.form { display: flex; flex-direction: column; gap: 36px; }
.fld { display: flex; flex-direction: column; gap: 10px; }
.fld input, .fld textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font-size: 18px; padding: 10px 0; outline: none; color: var(--text); }
.fld textarea { font-size: 16px; line-height: 1.6; resize: vertical; min-height: 140px; }
/* 메시지 칸 = 흰 바탕 상자(2026-10-01 회사 요청 — 글을 쓰는 칸인지 한눈에 보이게) */
.fld textarea { background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; padding: 14px 16px; min-height: 180px; }
.fld input:focus, .fld textarea:focus { border-bottom-color: var(--text); }
.fld textarea:focus { border-color: var(--text); }
/* 문의 유형 — 라디오 단추를 칩 모양으로 */
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.types label { position: relative; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types span { display: inline-block; font-size: 12px; letter-spacing: .04em; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--line); color: var(--muted); }
.types input:checked + span { border-color: var(--text); background: var(--text); color: var(--bg); }
.types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 개인정보 동의 — 네모 체크 */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; border: 1px solid var(--line-strong); color: transparent; }
.consent input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.consent input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { font-weight: 600; color: var(--text); border-bottom: 1px solid currentColor; white-space: nowrap; }
/* 개인정보 수집·이용 안내 상자 — 지금은 처리방침 팝업 맨 위에서 씁니다 */
.notice { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: var(--surface); font-size: 13px; line-height: 1.7; word-break: keep-all; color: var(--muted); }
.notice .lines { display: flex; flex-direction: column; }
.notice a { align-self: flex-start; font-size: 13px; font-weight: 600; border-bottom: 1px solid currentColor; color: var(--text); }
/* 동의에 체크하기 전에는 보내기 단추가 흐립니다 */
.form:has(#agree:not(:checked)) .bar-btn { opacity: .45; cursor: not-allowed; }
.form-msg { font-size: 14px; line-height: 1.6; min-height: 1em; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--accent2-text); }
.sent-box { padding-top: 40px; border-top: 1px solid var(--accent); }
.sent-box .t { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 20px 0 28px; }
.hide { display: none !important; }

/* 개인정보처리방침 */
.doc { max-width: 760px; margin-top: 56px; }
.doc h2 { font-size: 18px; font-weight: 700; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.draft { border: 1px solid var(--accent2); padding: 16px 18px; background: rgba(224,72,43,.06); font-size: 14px; line-height: 1.7; margin-top: 40px; max-width: 760px; }
.blank { color: var(--accent2-text); font-weight: 700; }
.doc-meta { margin-top: 28px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.doc-addr { margin: 12px 0 0; padding: 16px 18px; background: var(--surface); font-size: 14px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.doc-addr b { color: var(--text); }

/* 개인정보처리방침 팝업 (회사 VER0.2 5쪽 — 문의 글을 쓰다가 눌러도 페이지를 떠나지 않게) · site.js openPolicy() */
.pv { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(12,12,14,.55);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.pv.on { opacity: 1; visibility: visible; }
.pv-box { position: relative; width: 100%; max-width: 720px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; outline: none;
  border-radius: 20px; background: #fff; color: #121214; box-shadow: 0 24px 80px rgba(0,0,0,.28); transform: translateY(12px); transition: transform .22s ease; }
.pv.on .pv-box { transform: none; }
.pv-head { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid #E6E3DC; }
.pv-head .t { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pv-x { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: inherit; }
.pv-x:hover { background: #F1EFEA; }
.pv-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 36px; word-break: keep-all; }
.pv-body .notice { margin-bottom: 20px; }
.pv-body .doc-meta { margin-top: 0; }
.pv-body .draft { margin-top: 16px; }
.pv-body .doc { margin-top: 8px; max-width: none; }
.pv-body .doc h2 { margin-top: 28px; font-size: 16px; }
.pv-body .doc p, .pv-body .doc li { font-size: 14px; }
@media (max-width: 1179px) { .pv { padding: 0; } .pv-box { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .pv, .pv-box { transition: none; } }

/* ══════════════════════════════════════════════════════════
   7. 맨 아래
   ══════════════════════════════════════════════════════════ */
.ftr { margin-top: var(--foot-gap); border-top: 1px solid var(--line); }
body[data-page="contact"] { --foot-gap: 96px; }
@media (max-width: 1179px) { body[data-page="contact"] { --foot-gap: 72px; } }
.ftr-in { max-width: var(--max); margin: 0 auto; padding: 72px var(--gx) 40px; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 48px; }
.ftr-col { display: flex; flex-direction: column; gap: 12px; }
.ftr-col .lbl { color: var(--dim); margin-bottom: 6px; }
.ftr-col a, .ftr-col span { font-size: 14px; color: var(--muted); }
.ftr-col a:hover { color: var(--text); }
.ftr-brand { display: flex; flex-direction: column; gap: 20px; }
/* 맨 아래 로고 = images/logo-wide.svg (가로형 · 회사 HTML 28px / 휴대폰 22px) */
.ftr-brand img { height: 28px; width: auto; align-self: flex-start; }
@media (max-width: 1179px) { .ftr-brand img { height: 22px; } }
.ftr-brand span { font-size: 14px; line-height: 1.6; max-width: 280px; color: var(--muted); }
.footer-bottom { margin-top: 72px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; border-top: 1px solid var(--line); color: var(--dim); }
.footer-bottom .r { display: flex; gap: 24px; align-items: center; }
.footer-bottom .lang button { padding: 0 2px; }
.footer-bottom .priv { font-weight: 700; color: var(--text); }

/* 맨 위로 단추 — 한 화면 넘게 내리면 오른쪽 아래에 나타남 · 맨 아래 줄을 가리지 않게 위로 비켜섬 (회사 HTML) */
.to-top { position: fixed; right: 24px; bottom: calc(24px + var(--lift, 0px) + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; background: var(--text); color: var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .3s, transform .3s, bottom .35s ease, background .2s; opacity: 0; transform: translateY(12px); pointer-events: none; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--on-accent); }
.hdr.open ~ .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 1179px) { .to-top { width: 48px; height: 48px; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + var(--lift, 0px) + env(safe-area-inset-bottom)); } }
/* 관리자 화면 바로가기 — 눈에 띄지 않게 */
.admin-link { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); opacity: .6; }
.admin-link:hover { opacity: 1; }

/* 글자 파일을 읽기 전 잠깐 빈 글자가 번쩍이지 않게 */
body:not(.ready) [data-t] { visibility: hidden; }

/* ══════════════════════════════════════════════════════════
   8. 움직임 · 접근성 (2026-09-30 제안 01·03·04·05·08·09·12 반영 · 동작은 site.js 「효과」)
   ⚠ 효과는 전부 「움직임 줄이기(prefers-reduced-motion)」를 켠 기기에서 꺼집니다(맨 아래)
   ══════════════════════════════════════════════════════════ */

/* 01 스크롤하면 부드럽게 나타나기 — site.js 가 .rv 를 붙이고, 화면에 들어오면 .in (같은 줄의 칸은 조금씩 늦게) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rv-d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* 03 사진이 아주 천천히 다가오기(켄 번스) — 첫 화면 사진 · 미디어 자리 「여러 장」. 관리자 「홈 첫 화면」에서 끌 수 있음(fx.kenburns = off) */
@keyframes pj-kb { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.2%, -.8%); } }
.kb > img, .m-slides.kb > img { animation: pj-kb 16s ease-in-out infinite alternate; }

/* 04 페이지 넘어갈 때 부드러운 전환 — 브라우저 표준 View Transitions (크롬·엣지·최신 사파리 · 그 밖은 평소처럼 넘어감) */
@view-transition { navigation: auto; }
.hdr { view-transition-name: pj-header; }
::view-transition-group(pj-header) { animation-duration: 0s; }
::view-transition-old(root) { animation: pj-vt-out .3s ease both; }
::view-transition-new(root) { animation: pj-vt-in .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pj-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes pj-vt-in { from { opacity: 0; transform: translateY(14px); } }

/* 05 흐르는 글자 띠 — 홈 03 검은 기술 구역 맨 위 · 글자는 content.json 의 home.marquee · 마우스를 올리면 멈춤 */
.mq { position: relative; z-index: 1; overflow: hidden; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq:empty { display: none; }
.mq-track { display: flex; width: max-content; animation: pj-mq 40s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track span { display: flex; align-items: center; gap: 56px; padding-right: 56px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700;
  letter-spacing: -.02em; color: #F6F6F9; white-space: nowrap; }
.mq-track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
@keyframes pj-mq { to { transform: translateX(-50%); } }

/* 08 단추 · 링크 반응 — 둥근 단추는 마우스를 가까이 대면 살짝 끌려오고(site.js), 밑줄 글은 다시 그어짐 */
.pill { transition: transform .25s ease-out, box-shadow .25s; will-change: transform; }
.pill:hover { box-shadow: 0 14px 34px rgba(47,59,232,.32); }
.pill.red:hover { box-shadow: 0 14px 34px rgba(224,72,43,.32); }
@keyframes pj-ul { 0% { background-size: 100% 1px; background-position: 100% 100%; } 45% { background-size: 0 1px; background-position: 100% 100%; }
  55% { background-size: 0 1px; background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; } }
.more:hover, .hero-btns .line:hover { animation: pj-ul .7s cubic-bezier(.6,0,.3,1); }

/* 09 검은 기술 구역 — 마우스를 따라오는 파란 빛 + 필름 같은 미세한 질감 (터치 기기는 빛이 천천히 떠다님) */
.tech { position: relative; overflow: hidden; isolation: isolate; }
.tech::before { content: ''; position: absolute; z-index: 0; width: 760px; height: 760px; left: var(--mx, 72%); top: var(--my, 28%);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(47,59,232,.40), rgba(47,59,232,0) 62%); transition: left .7s ease-out, top .7s ease-out; }
.tech::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tech > * { position: relative; z-index: 1; }
.tech.drift::before { animation: pj-drift 16s ease-in-out infinite alternate; }
@keyframes pj-drift { from { left: 18%; top: 22%; } to { left: 82%; top: 72%; } }

/* 12 맨 위 메뉴 — 내리면 그림자 + 로고가 살짝 작아지고, 더 내리면 숨고, 올리면 다시 나타남 (휴대폰 메뉴를 연 동안은 그대로)
   ⚠ 머리의 「자리 크기」(높이·display)는 절대 바꾸지 않는다 — 머리는 sticky 라 높이가 바뀌면 브라우저가 스크롤 위치를 그만큼 옮기고,
     그걸 「위/아래로 스크롤했다」로 읽어 다시 바꾸는 무한 반복(메뉴 깜박임 · 스크롤바 떨림)이 난다(9/30 실측). 움직임은 transform 으로만.
   ⚠ 숨김 이름은 .hdr-hidden — 사이트 공용 .hide(display:none)와 겹치면 안 된다 */
.hdr { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.hdr.scrolled { box-shadow: 0 6px 24px rgba(18,18,20,.06); }
.hdr-logo img { transform-origin: left center; transition: transform .3s; }
.hdr.scrolled .hdr-logo img { transform: scale(.88); }
.hdr.hdr-hidden:not(.open) { transform: translateY(-100%); }

/* 12 접근성 — 키보드로 옮겨 다닐 때 보이는 파란 테두리 · 「본문 바로가기」 (Tab 을 처음 누르면 나타남) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .tech :focus-visible, .biz-card:focus-visible { outline-color: #fff; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kb > img, .m-slides.kb > img, .mq-track, .tech.drift::before, .more:hover, .hero-btns .line:hover { animation: none !important; }
  .hdr, .hdr-logo img, .tech::before, .pill { transition: none; }
}