/* ══════════════════════════════════════════════
   REFAD Website — Premium Design v3
   Font: Pretendard (BI Official)
   Color: Rich Black + Warm White (Monochrome)
   Cross-browser: Safari, Chrome, Firefox, iOS, Android
   ══════════════════════════════════════════════ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rich-black: #251F1B;
  --bg: #0a0908;
  --bg2: #0f0d0b;
  --surface: #161412;
  --surface2: #1e1b18;
  --white: #f0ece8;
  --white2: #a8a29e;
  --white3: #6b6560;
  --accent: #ffffff;
  --border: rgba(255,255,255,.05);
  --border2: rgba(255,255,255,.1);
  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1360px;
  --side: clamp(1.5rem, 5vw, 7rem);
  --header-h: clamp(64px, 8vw, 110px);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6, p, li, span, a, label, button, dd, dt, figcaption {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Subtle noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

::selection { background: rgba(255,255,255,.2); color: var(--white); }
::-moz-selection { background: rgba(255,255,255,.2); color: var(--white); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

a { color: inherit; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--side); }
.section { padding: clamp(5rem, 10vw, 10rem) 0; }
.section-sm { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ── Typography ── */
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  word-break: keep-all;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  word-break: keep-all;
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
}
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }

.label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}
.text-muted { color: var(--white2); }
.text-dim { color: var(--white3); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: all .35s var(--ease);
  border: none;
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240,236,232,.12);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--white3);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   Header — Floating glass bar
   ══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  padding: 0 var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,9,8,.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: all .4s var(--ease);
}
.header.scrolled {
  background: rgba(10,9,8,.88);
  border-bottom-color: rgba(255,255,255,.06);
}
.header-logo img {
  height: clamp(36px, 4.4vw, 64px);
  width: auto;
  max-width: 45vw;
  display: block;
  object-fit: contain;
  transition: opacity .3s;
}
.header-logo:hover img { opacity: .8; }
.header-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 3rem); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.header-nav a {
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color .3s var(--ease);
  letter-spacing: .03em;
  position: relative;
  padding: .4rem 0;
  white-space: nowrap;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.header-nav a:hover { color: var(--white); }
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; left: 0; }
.header-nav a.active { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
/* ── Language Dropdown ── */
.lang-dropdown { position: relative; }
.lang-toggle {
  font-size: 1rem;
  font-weight: 800;
  color: #0a0908;
  background: #ffffff;
  border: 1px solid #ffffff;
  padding: .6rem 1.05rem;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .08em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.lang-toggle:hover { background: #ffffff; color: #0a0908; box-shadow: 0 2px 10px rgba(0,0,0,.25); transform: translateY(-1px); }
.lang-toggle[aria-expanded="true"] { background: #ffffff; color: #0a0908; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.lang-toggle .lang-globe { font-size: 1.05rem; opacity: .9; color: #0a0908; }
.lang-toggle .lang-current { font-size: 1rem; color: #0a0908; }
.lang-toggle .lang-caret { font-size: .8rem; opacity: .75; color: #0a0908; transition: transform .2s var(--ease); }
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 160px;
  background: rgba(18,14,10,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .35rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1100;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.lang-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .75rem;
  background: none;
  border: none;
  color: var(--text-muted, #b8ad9f);
  font-size: .82rem;
  font-family: inherit;
  letter-spacing: .02em;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang-menu-item:hover,
.lang-menu-item:focus-visible {
  background: rgba(255,255,255,.06);
  color: var(--white);
  outline: none;
}
.lang-menu-item.active {
  color: var(--white);
  background: rgba(212,165,116,.08);
}
.lang-menu-item .lmi-short {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .55;
}
.lang-menu-item.active .lmi-short { opacity: 1; color: var(--accent, #d4a574); }

/* Mobile Menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .3rem;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s;
}
.mobile-menu a:active { opacity: .6; }

/* ══════════════════════════════════════════════
   Hero — Cinematic full-bleed
   ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 5rem) var(--side) 5rem;
  position: relative;
  overflow: hidden;
}
.hero h1 { margin-bottom: 1.2rem; position: relative; z-index: 2; }
.hero p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--white2);
  max-width: 540px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  line-height: 1.7;
}
.hero .label { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════
   HOMEPAGE HERO — 영상 블록(100vh) + 그 아래 콘텐츠 블록
   ═══════════════════════════════════════════════════════ */

/* 인덱스 페이지 히어로만 블록 레이아웃으로 전환 (다른 페이지 .hero 영향 X) */
.hero#home {
  display: block;
  min-height: auto;
  padding: 0;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 55%,
    rgba(10,9,8,.35) 85%,
    rgba(10,9,8,.7) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ───── 3단계 히어로 시퀀스 ─────
   stage-1: 영상만 풀스크린 (헤더도 숨김), 콘텐츠는 아래에 존재하지만 숨김
   stage-2: 아래 콘텐츠 영역에서 메인 카피 페이드인
   stage-3: AI 검색창까지 페이드인
   영상은 모든 단계에서 그대로 유지 (dim 없음)
*/

/* Stage 1에서 헤더 숨김 */
body.hero-stage-1-lock .header {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* ───── hero-content: 영상 아래 100vh 블록 (영상과 동일한 세로 사이즈) ───── */
.hero#home .hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--side) 3rem;
  max-width: 900px;
  margin: 0 auto;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

/* h1, p, AI 검색창을 각각 단계별로 제어 */
.hero-content h1,
.hero-content p,
.hero-content .ai-chat-wrap,
.hero-content .ai-search-hint {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  pointer-events: none;
}

/* Stage 2: h1 + p 노출 */
.hero.hero-stage-2 .hero-content h1,
.hero.hero-stage-2 .hero-content p,
.hero.hero-stage-3 .hero-content h1,
.hero.hero-stage-3 .hero-content p {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Stage 3: AI 검색창 노출 */
.hero.hero-stage-3 .hero-content .ai-chat-wrap,
.hero.hero-stage-3 .hero-content .ai-search-hint {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: .3s;
}

/* Stage 1/2 단계에서 아래 스크롤 힌트 */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
  animation: heroHintBounce 2s infinite ease-in-out;
}
.hero.hero-stage-1 .hero-scroll-hint,
.hero.hero-stage-2 .hero-scroll-hint { opacity: 1; }
.hero.hero-stage-3 .hero-scroll-hint { opacity: 0; }
@keyframes heroHintBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.hero .ai-chat-wrap,
.hero .ai-search-hint { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════
   AI Chat Widget
   ══════════════════════════════════════════════ */
.ai-chat-wrap {
  width: 100%;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.ai-input-bar {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.ai-input-bar input {
  width: 100%;
  padding: 1.1rem 3.4rem 1.1rem 3.2rem;
  background: rgba(22,20,18,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 20px;
  color: var(--white);
  font-size: calc(.92rem - 4px);
  font-family: var(--font);
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s, color .3s;
}
.ai-input-bar input::placeholder { color: var(--white3); }
.ai-input-bar input:focus {
  border-color: rgba(255,255,255,.25);
  background: rgba(22,20,18,.95);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
}
.ai-input-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  color: var(--white3);
  font-size: .85rem;
  pointer-events: none;
  transition: opacity .3s, color .3s, transform .3s;
}

/* ──────────────────────────────────────────────
   Option 3: 굵은 프레임형 (Hero Stage2)
   ────────────────────────────────────────────── */
.ai-input-bar--framed input {
  padding: 1.15rem 3.4rem 1.15rem 3.2rem;
  background: rgba(22,20,18,.35);
  border: 2.5px solid var(--white);
  border-radius: 8px;
  letter-spacing: .01em;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  transition: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ai-input-bar--framed input::placeholder {
  color: rgba(255,255,255,.75);
  letter-spacing: .01em;
}
.ai-input-bar--framed .ai-input-icon {
  color: var(--white);
  font-size: 1rem;
  transition: color .35s ease, transform .35s ease;
}
.ai-input-bar--framed .ai-input-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translate(10px, -50%);
  color: var(--white);
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, color .35s ease;
}
/* 사용자가 입력을 시작(send-btn.visible)하면 데코 화살표 숨김 */
.ai-input-bar--framed:has(.ai-send-btn.visible) .ai-input-arrow {
  opacity: 0;
  transform: translate(10px, -50%);
}
.ai-input-bar--framed:hover input,
.ai-input-bar--framed input:hover,
.ai-input-bar--framed input:focus {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  box-shadow: 0 10px 40px rgba(255,255,255,.22);
}
.ai-input-bar--framed:hover input::placeholder,
.ai-input-bar--framed input:focus::placeholder {
  color: rgba(12,10,8,.55);
}
.ai-input-bar--framed:hover .ai-input-icon,
.ai-input-bar--framed input:focus ~ .ai-input-icon,
.ai-input-bar--framed:focus-within .ai-input-icon {
  color: var(--bg);
  transform: translateY(-50%) rotate(-15deg);
}
.ai-input-bar--framed:hover .ai-input-arrow,
.ai-input-bar--framed:focus-within .ai-input-arrow {
  opacity: 1;
  transform: translate(0, -50%);
  color: var(--bg);
}
.ai-input-bar--framed .ai-send-btn { color: var(--white); }
.ai-input-bar--framed:hover .ai-send-btn,
.ai-input-bar--framed:focus-within .ai-send-btn { color: var(--bg); }
.ai-send-btn {
  position: absolute;
  right: .7rem;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white3);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .4rem;
  border-radius: 10px;
  transition: color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
  display: none;
}
.ai-send-btn.visible { display: block; }
.ai-send-btn:hover { color: var(--white); background: rgba(255,255,255,.06); }

.ai-search-hint {
  font-size: .72rem;
  color: var(--white3);
  margin-top: .8rem;
  opacity: .7;
  transition: opacity .3s;
}

/* Chat Messages */
.ai-chat-messages {
  display: none;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1.2rem;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: .5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages.active { display: flex; }

.chat-msg {
  max-width: 88%;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  font-size: .86rem;
  line-height: 1.65;
  font-family: var(--font);
  text-align: left;
  animation: chatSlideUp .35s var(--ease-out);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.chat-msg .chat-li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .18rem 0;
}
.chat-msg .chat-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.chat-msg.user .chat-num {
  border-color: rgba(255,255,255,.45);
  color: var(--white);
}
.chat-msg .chat-dot {
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
  color: var(--white3);
  font-weight: 700;
}
.chat-msg .chat-li-text { flex: 1; }
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: var(--surface);
  color: #ffffff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg.ai strong { color: #ffffff; font-weight: 600; }
.chat-msg.ai .chat-li-text { color: #ffffff; }
.chat-msg.ai .estimate-badge {
  display: inline-block;
  margin-top: .6rem;
  padding: .3rem .8rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}

/* Typing indicator */
.chat-typing {
  align-self: flex-start;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: none;
}
.chat-typing.active { display: flex; gap: 5px; align-items: center; }
.chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white3);
  animation: typingDot 1.4s ease infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: .8; transform: translateY(-3px); }
}

.chat-cta { display: none; margin-top: .6rem; text-align: center; }
.chat-cta.active { display: block; }
.chat-cta a {
  font-size: .76rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.chat-cta a:hover { color: var(--white); border-color: var(--white3); }

/* ══════════════════════════════════════════════
   Numbers — Bold statement
   ══════════════════════════════════════════════ */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
}
.number-item {
  padding: 1.5rem 0;
  position: relative;
}
.number-item .value {
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: .6rem;
  background: linear-gradient(180deg, var(--white) 20%, var(--white3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.number-item .num-label {
  font-size: 15px;
  color: var(--white3);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   Featured Work — Magazine grid
   ══════════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
}
.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  aspect-ratio: 16/10;
  -webkit-tap-highlight-color: transparent;
}
.work-card:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
.work-card img,
.work-card .work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.work-card:hover img,
.work-card:hover .work-thumb { -webkit-transform: scale(1.06); transform: scale(1.06); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay .cat {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.work-overlay .name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.work-overlay .desc {
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
  word-break: keep-all;
}

/* ══════════════════════════════════════════════
   Services
   ══════════════════════════════════════════════ */
.services-part { margin-bottom: 4.5rem; }
.services-part-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: .55rem 1rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2.5rem;
  /* Design 섹션과 동일한 스타일로 3개 라벨 통일 (2026-04-20 실장님 요청 ⓐ) */
  background: rgba(240,236,232,.08);
  color: var(--white);
  border: 1px solid rgba(240,236,232,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.service-row {
  display: flex;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
  cursor: pointer;
  transition: all .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.service-row:hover {
  background: rgba(255,255,255,.02);
  margin: 0 -1.2rem;
  padding: 1.6rem 1.2rem;
  border-radius: 12px;
}
.service-num { font-size: .72rem; color: var(--white3); font-weight: 700; font-family: var(--mono); min-width: 2.2rem; }
.service-info { flex: 1; }
.service-info h4 { margin-bottom: .25rem; }
.service-info p { font-size: .85rem; color: var(--white2); }
.service-icon { font-size: 1.5rem; opacity: .5; }

/* ══════════════════════════════════════════════
   Client Logos Marquee
   ══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   Tools & Collaboration Section
   ══════════════════════════════════════════════ */
.tools-section { padding-top: 5rem; padding-bottom: 5rem; }
.tools-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.tools-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--accent, #d4a574);
  margin-bottom: 1rem;
}
.tools-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 1rem;
  word-break: keep-all;
}
.tools-sub {
  color: var(--text-muted, #b8ad9f);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
  word-break: keep-all;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2.2rem 1.5rem;
  padding: 2.8rem .6rem 1rem;       /* 아이콘 사이 빈 공간도 포인터 히트 영역 넓히기 */
  margin: -.3rem -.6rem .5rem;      /* 음수 마진으로 레이아웃 영향 최소화 */
  align-items: center;
  position: relative;
}
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  opacity: .55;
  /* 복귀 속도 느리게 (0.3s → 1.0s) + 자력 밀림용 transform 추가 (1.1s 스프링) */
  transition: opacity 1.0s var(--ease), transform 1.1s cubic-bezier(.34,1.56,.64,1);
  padding: .5rem 0;
  will-change: transform;
  cursor: default;
}
.tools-grid:hover .tool-item,
.tools-grid:focus-within .tool-item { opacity: 1; }
.tool-item img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(2.4) contrast(.9);
  /* 색 복귀도 느리게 (0.35s → 1.0s) */
  transition: filter 1.0s var(--ease), transform 1.0s var(--ease);
  pointer-events: none;             /* pointermove 는 grid 에서만 감지 */
}
/* ── 그리드 영역 어디에 오버하든 32개 전체 컬러 ON (area-wide) ── */
.tools-grid:hover .tool-item img,
.tools-grid:focus-within .tool-item img { filter: grayscale(0) brightness(1); }
/* 순차 점등(이웃 4~6개) 강조용 은은한 글로우 */
.tool-item.is-lit img {
  filter: grayscale(0) brightness(1) drop-shadow(0 0 10px rgba(255,255,255,.3));
}
/* 직접 호버한 아이콘 포인트 — 스케일 + 진한 글로우 */
.tool-item.is-hover img {
  filter: grayscale(0) brightness(1) drop-shadow(0 0 18px rgba(255,255,255,.5));
  transform: scale(1.12);
}
.tool-item.is-hover .tool-name { color: var(--white); }
/* Microsoft 로고는 정사각형이라 시각적으로 커 보이므로 세로 28px로 축소 */
.tool-item img[alt^="Microsoft "] { height: 28px; }

/* 모바일 더보기 토글 — 기본 숨김, 모바일에서만 표시 */
.tools-toggle {
  display: none;
  margin: 1.4rem auto 0;
  padding: .72rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim, #8a7f72);
  font-family: var(--font);
  font-size: .82rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tools-toggle:hover, .tools-toggle:focus-visible {
  background: rgba(255,255,255,.04);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
  outline: none;
}
.tool-item .tool-name {
  font-size: .7rem;
  color: var(--text-dim, #8a7f72);
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(4, 1fr); gap: 1.8rem 1rem; }
  .tools-title { font-size: 1.4rem; }
  .tools-sub { font-size: .88rem; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem .6rem; }
  .tool-item img { height: 26px; }
  .tool-item .tool-name { font-size: .62rem; }
}

/* Clients section heading */
.clients-head { text-align: center; margin-bottom: 2rem; }
.clients-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--accent, #d4a574);
  margin-bottom: .8rem;
}
.clients-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
  word-break: keep-all;
}
@media (max-width: 768px) {
  .clients-title { font-size: 1.4rem; }
  .clients-head { margin-bottom: 1.2rem; }
}

.clients-marquee {
  padding: 2.5rem 0;
  display: block;
}
.clients-row {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients-row + .clients-row { margin-top: 1.8rem; }
.clients-track {
  display: flex;
  flex-wrap: nowrap;
  width: -webkit-max-content;
  width: max-content;
  align-items: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.clients-track-1 { -webkit-animation: marquee 90s linear infinite; animation: marquee 90s linear infinite; }
.clients-track-2 { -webkit-animation: marquee-rev 110s linear infinite; animation: marquee-rev 110s linear infinite; }
.clients-track-3 { -webkit-animation: marquee 100s linear infinite; animation: marquee 100s linear infinite; }
.clients-track img {
  height: 26px;
  width: auto;
  margin-right: 4rem;
  opacity: .45;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  pointer-events: auto;
  transition: opacity .25s ease, filter .25s ease, -webkit-filter .25s ease;
}
.clients-track img:hover {
  opacity: 1;
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}
.clients-row:hover .clients-track { animation-play-state: paused; }
@-webkit-keyframes marquee { 0% { -webkit-transform: translate3d(0,0,0); } 100% { -webkit-transform: translate3d(-50%,0,0); } }
@keyframes marquee { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }
@-webkit-keyframes marquee-rev { 0% { -webkit-transform: translate3d(-50%,0,0); } 100% { -webkit-transform: translate3d(0,0,0); } }
@keyframes marquee-rev { 0% { transform: translate3d(-50%,0,0); } 100% { transform: translate3d(0,0,0); } }

/* ══════════════════════════════════════════════
   About
   ══════════════════════════════════════════════ */
.about-hero { font-size: 1.6rem; font-weight: 300; color: var(--white2); max-width: 700px; line-height: 1.8; }
.direction-list { display: flex; flex-direction: column; gap: 2rem; margin: 3rem 0; }
.direction-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.direction-num { font-size: .68rem; font-weight: 800; color: var(--accent); padding-top: .25rem; font-family: var(--mono); }
.direction-text { font-size: 1.1rem; font-weight: 500; line-height: 1.5; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color .3s, transform .3s;
}
.cert-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.cert-card h4 { margin-bottom: .35rem; }
.cert-card p { font-size: .82rem; color: var(--white2); }

/* ═══════════════════ Press Section (Magazine Style · White BG) ═══════════════════ */
.press-section {
  background: #ffffff;
  color: #111;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.press-section .container { max-width: 1180px; }
.press-header { margin-bottom: 4rem; text-align: left; }
.press-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: #111;
  padding-bottom: .5rem;
  border-bottom: 2px solid #111;
  margin-bottom: 1.25rem;
}
.press-section .press-title {
  color: #111;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.press-section .press-lead {
  color: #666;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 640px;
}

.press-grid { display: flex; flex-direction: column; gap: 3rem; }

/* Featured (first article — large editorial) */
.press-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e5e5e5;
  transition: opacity .25s ease;
}
.press-featured:hover { opacity: .88; }
.press-featured-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 2px;
}
.press-featured-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .6s ease;
}
.press-featured:hover .press-featured-img img { transform: scale(1.04); }
.press-featured-img.no-img { display: flex; align-items: center; justify-content: center; background: #111; }

/* Logo-type thumbnails: black background, logo centered & contained */
.press-featured-img.is-logo,
.press-card-img.is-logo {
  background: #000;
}
.press-featured-img.is-logo img,
.press-card-img.is-logo img {
  width: 48%;
  max-width: 260px;
  height: auto;
  max-height: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  transform: translate(-50%, -50%);
  transition: transform .6s ease;
}
.press-card-img.is-logo img { width: 52%; max-width: 180px; }
.press-featured:hover .press-featured-img.is-logo img,
.press-card:hover .press-card-img.is-logo img { transform: translate(-50%, -50%) scale(1.06); }

/* Light-bg logo variant (opaque PNG with baked-in white canvas) — displayed full-bleed */
.press-featured-img.is-logo.is-logo-light,
.press-card-img.is-logo.is-logo-light {
  background: #ffffff;
  border: 1px solid #e8e6e0;
}
.press-featured-img.is-logo.is-logo-light img,
.press-card-img.is-logo.is-logo-light img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  position: static;
  top: auto;
  left: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
  padding: 1.5rem;
  box-sizing: border-box;
}
.press-featured:hover .press-featured-img.is-logo.is-logo-light img,
.press-card:hover .press-card-img.is-logo.is-logo-light img { transform: scale(1.04); }
.press-card-placeholder {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  letter-spacing: .32em;
  color: #fff;
  font-size: 1.6rem;
}
.press-featured-body { padding: 0; }
.press-featured-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: .3rem .7rem;
  margin-bottom: 1.25rem;
}
.press-featured-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #111;
  margin: .6rem 0 1rem;
}
.press-featured:hover .press-featured-title { text-decoration: underline; text-underline-offset: 4px; }

/* Meta line */
.press-meta {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem;
  color: #666;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 500;
}
.press-date { color: #111; font-weight: 600; }
.press-dot { color: #bbb; }
.press-outlet { color: #666; }

.press-excerpt {
  color: #555;
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.press-read {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: .2rem;
}
.press-arrow { transition: transform .3s ease; }
.press-featured:hover .press-arrow,
.press-card:hover .press-arrow { transform: translateX(4px); }

/* Sub grid (rest of articles) */
.press-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem 2rem;
}
.press-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity .25s ease;
}
.press-card:hover { opacity: .88; }
.press-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}
.press-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.press-card:hover .press-card-img img { transform: scale(1.04); }
.press-card-img.no-img { display: flex; align-items: center; justify-content: center; background: #111; }
.press-card-img.no-img .press-card-placeholder { font-size: 1.1rem; }
.press-card-body { display: flex; flex-direction: column; }
.press-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #111;
  margin: .6rem 0 .7rem;
}
.press-card:hover .press-card-title { text-decoration: underline; text-underline-offset: 3px; }
.press-card .press-excerpt {
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile */
@media (max-width: 900px) {
  .press-section { padding: 4.5rem 0; }
  .press-header { margin-bottom: 2.5rem; }
  .press-section .press-title { font-size: 1.9rem; }
  .press-section .press-lead { font-size: .95rem; }
  .press-featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }
  .press-featured-title { font-size: 1.5rem; }
  .press-sub-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .press-card-title { font-size: 1.1rem; }
  .press-grid { gap: 2.2rem; }
}

/* ══════════════════════════════════════════════
   Brand Identity (BI) — Apple/Samsung style
   ══════════════════════════════════════════════ */
.bi-section {
  border-top: 1px solid var(--border);
  padding: 7rem 0 8rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.035), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255,255,255,.025), transparent 55%);
}
.bi-hero { max-width: 920px; margin: 0 auto 6rem; text-align: center; }
.bi-eyebrow {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .4em;
  color: var(--white3);
  padding-bottom: .8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.bi-headline {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 1.6rem;
  color: var(--white);
}
.bi-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--white2);
  max-width: 680px;
  margin: 0 auto;
}

.bi-block {
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border);
}
.bi-block-head {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.bi-num {
  font-size: 3.2rem;
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--white3);
  font-feature-settings: "tnum";
  line-height: 1;
  min-width: 4.5rem;
}
.bi-kicker {
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--white3);
  text-transform: uppercase;
  margin-bottom: .6rem;
  font-weight: 500;
}
.bi-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

/* Logo stage */
.bi-logo-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.bi-logo-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.bi-logo-canvas img { width: 52%; max-width: 360px; }
.bi-canvas-dark { background: #0a0908; }
.bi-canvas-light { background: #f7f6f3; }
.bi-canvas-tag {
  position: absolute;
  bottom: 1.1rem;
  left: 1.2rem;
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
}
.bi-canvas-dark .bi-canvas-tag { color: rgba(255,255,255,.45); }
.bi-canvas-light .bi-canvas-tag { color: rgba(0,0,0,.45); }

.bi-specgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.bi-specgrid > div {
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-right: 1px solid var(--border);
}
.bi-specgrid > div:last-child { border-right: 0; padding-right: 0; }
.bi-specgrid dt {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--white3);
  margin-bottom: .7rem;
  font-weight: 600;
}
.bi-specgrid dd {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--white);
  letter-spacing: -.005em;
}

/* Color grid */
.bi-colorgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bi-color {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bi-color-chip { height: 240px; }
.bi-color-black .bi-color-chip { background: #251F1B; }
.bi-color-white .bi-color-chip { background: #FFFFFF; }
.bi-color-info { padding: 1.8rem 2rem 2rem; }
.bi-color-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.bi-color-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.4rem;
}
.bi-color-info dl > div { display: flex; flex-direction: column; gap: .3rem; }
.bi-color-info dt {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--white3);
  font-weight: 600;
}
.bi-color-info dd {
  margin: 0;
  font-size: .82rem;
  font-feature-settings: "tnum";
  color: var(--white2);
  letter-spacing: -.005em;
}

/* Typography */
.bi-type-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: end;
  padding: 3.5rem 3rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 2rem;
  background: rgba(255,255,255,.01);
}
.bi-type-specimen {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--white);
}
.bi-type-meta { display: flex; flex-direction: column; gap: 1.4rem; padding-bottom: .5rem; }
.bi-type-meta > div { display: flex; flex-direction: column; gap: .4rem; }
.bi-type-meta dt {
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--white3);
  font-weight: 600;
}
.bi-type-meta dd {
  margin: 0;
  font-size: .92rem;
  color: var(--white);
}

.bi-type-weights {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.bi-weight {
  padding: 1.6rem 1.2rem;
  border-right: 1px solid var(--border);
  font-size: 1.35rem;
  letter-spacing: -.015em;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
}
.bi-weight:last-child { border-right: 0; }
.bi-weight em {
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--white3);
  font-weight: 500;
  font-feature-settings: "tnum";
}

/* Misuse grid */
.bi-misuse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.bi-misuse {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  color: var(--white2);
  font-size: .88rem;
  transition: border-color .25s, background .25s;
}
.bi-misuse:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.02); }
.bi-misuse-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--white3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--white3);
  flex-shrink: 0;
}

/* Footnote */
.bi-footnote {
  margin-top: 6rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.bi-foot-col { display: flex; flex-direction: column; gap: .4rem; }
.bi-foot-label {
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--white3);
  font-weight: 600;
}
.bi-foot-col span:last-child { font-size: .82rem; color: var(--white2); letter-spacing: -.005em; }

/* BI — teaser (about.html) */
.bi-section-teaser { padding: 6rem 0 7rem; }
.bi-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  align-items: stretch;
}
.bi-preview-logos { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.bi-preview-logos .bi-logo-canvas { aspect-ratio: 16 / 7; }
.bi-preview-meta {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
}
.bi-preview-meta > div { display: flex; flex-direction: column; gap: .45rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.bi-preview-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bi-preview-meta span:last-child { font-size: .9rem; color: var(--white); letter-spacing: -.01em; font-feature-settings: "tnum"; }
.bi-cta-wrap { margin-top: 4rem; text-align: center; }
.bi-cta { letter-spacing: -.005em; }

/* BI construction & application (brand.html enrichments) */
.bi-hero-visual {
  aspect-ratio: 16 / 7;
  background: radial-gradient(ellipse at center, #1a1512 0%, #0a0908 70%);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem auto 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.6);
}
.bi-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255,255,255,.09) 49.85%, rgba(255,255,255,.09) 50.15%, transparent 50.15%),
    linear-gradient(0deg, transparent 49.85%, rgba(255,255,255,.09) 49.85%, rgba(255,255,255,.09) 50.15%, transparent 50.15%);
  pointer-events: none;
}
.bi-hero-visual::after {
  content: '';
  position: absolute;
  inset: 10% 6%;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  pointer-events: none;
}
.bi-hero-visual img { width: 42%; max-width: 540px; min-width: 260px; position: relative; z-index: 1; }

.bi-construction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.bi-construct-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  background: rgba(255,255,255,.01);
}
.bi-construct-label {
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--white3);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.bi-construct-visual {
  aspect-ratio: 4 / 3;
  background: #0a0908;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.bi-construct-visual img { width: 58%; max-width: 240px; position: relative; z-index: 2; }
.bi-construct-visual.clearspace::before {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 4px;
  z-index: 1;
}
.bi-construct-visual.clearspace::after {
  content: 'X';
  position: absolute;
  top: 6%;
  right: 6%;
  font-size: .65rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.bi-construct-sizes {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
}
.bi-construct-sizes img { width: auto; height: 24px; max-width: none; }
.bi-construct-sizes img:nth-child(2) { height: 42px; }
.bi-construct-sizes img:nth-child(3) { height: 64px; }
.bi-construct-sizes img:nth-child(4) { height: 88px; }
.bi-construct-note {
  font-size: .82rem;
  color: var(--white2);
  line-height: 1.6;
  letter-spacing: -.005em;
}

.bi-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 5rem 0;
}
.bi-philosophy-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 1.3rem;
  color: var(--white);
}
.bi-philosophy-text p {
  color: var(--white2);
  line-height: 1.8;
  font-size: .96rem;
  margin: 0 0 1rem;
}
.bi-philosophy-visual {
  aspect-ratio: 1 / 1;
  background: #0a0908;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bi-philosophy-visual img { width: 58%; max-width: 360px; z-index: 2; position: relative; }
.bi-philosophy-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.05), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.03), transparent 50%);
}

.bi-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.bi-do, .bi-dont {
  border-radius: 14px;
  padding: 1.5rem 1.8rem 1.8rem;
  border: 1px solid var(--border);
}
.bi-do { background: rgba(255,255,255,.015); }
.bi-dont { background: rgba(0,0,0,.35); }
.bi-do-label, .bi-dont-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.bi-do-label { color: #a8e6a8; }
.bi-dont-label { color: #e6a8a8; }
.bi-do-visual, .bi-dont-visual {
  aspect-ratio: 3 / 2;
  background: #0a0908;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}
.bi-do-visual img, .bi-dont-visual img { width: 62%; max-width: 240px; }
.bi-dont-visual img { opacity: .85; }
.bi-dont-visual img.skewed { transform: skew(-12deg) rotate(4deg); }
.bi-dont-visual img.stretched { transform: scaleX(1.6); }
.bi-dont-visual.shadowed img { filter: drop-shadow(0 0 14px rgba(255,255,255,.45)); }
.bi-dont-visual.gradient { background: linear-gradient(45deg, #8a4fff, #ff4f8a); }
.bi-do-caption, .bi-dont-caption {
  font-size: .82rem;
  color: var(--white2);
  letter-spacing: -.005em;
  line-height: 1.5;
}

.bi-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.bi-app-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.01);
}
.bi-app-visual {
  aspect-ratio: 4 / 3;
  background: #0a0908;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}
.bi-app-visual.card-front {
  background: #251F1B;
}
.bi-app-visual.card-front::before {
  content: 'REFAD';
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  font-size: .9rem;
  letter-spacing: .15em;
  font-weight: 700;
  color: #fff;
}
.bi-app-visual.card-front::after {
  content: '주식회사 레페드\A임성진  /  대표이사\A+82-2-337-3352  /  refad@refad.co.kr';
  white-space: pre;
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  font-size: .58rem;
  line-height: 1.8;
  letter-spacing: .03em;
  color: rgba(255,255,255,.72);
  font-weight: 400;
}
.bi-app-visual.card-back { background: #251F1B; }
.bi-app-visual.card-back img { width: 56%; max-width: 200px; opacity: .95; }
.bi-app-visual.envelope {
  background: #f7f6f3;
  color: #251F1B;
}
.bi-app-visual.envelope img { width: 42%; max-width: 140px; }
.bi-app-visual.envelope::before {
  content: '';
  position: absolute;
  inset: 18% 12%;
  border: 1px solid rgba(37,31,27,.15);
  border-radius: 3px;
}
.bi-app-info {
  padding: 1.4rem 1.6rem 1.6rem;
}
.bi-app-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
  margin: 0 0 .4rem;
}
.bi-app-spec {
  font-size: .76rem;
  color: var(--white3);
  letter-spacing: .05em;
  font-feature-settings: "tnum";
}

.bi-lockup {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.bi-lockup-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.2rem;
}
.bi-lockup-example {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, sans-serif;
}
.bi-lockup-label {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
}
.bi-lockup-ok .bi-lockup-label { color: #a8e6a8; }
.bi-lockup-ng .bi-lockup-label { color: #e6a8a8; }
.bi-lockup-ng .bi-lockup-example { color: var(--white3); text-decoration: line-through; text-decoration-color: rgba(230,168,168,.55); }

/* BI — responsive */
@media (max-width: 900px) {
  .bi-section { padding: 4.5rem 0 5rem; }
  .bi-hero { margin-bottom: 4rem; }
  .bi-block { margin-top: 4rem; padding-top: 3.5rem; }
  .bi-block-head { gap: 1.2rem; margin-bottom: 2.5rem; }
  .bi-num { font-size: 2.2rem; min-width: auto; }
  .bi-logo-stage { grid-template-columns: 1fr; gap: 1rem; }
  .bi-logo-canvas { aspect-ratio: 16 / 9; }
  .bi-specgrid { grid-template-columns: 1fr; }
  .bi-specgrid > div { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
  .bi-specgrid > div:last-child { border-bottom: 0; }
  .bi-colorgrid { grid-template-columns: 1fr; }
  .bi-color-chip { height: 180px; }
  .bi-color-info { padding: 1.4rem 1.6rem 1.8rem; }
  .bi-type-hero { grid-template-columns: 1fr; padding: 2.2rem 1.8rem; gap: 1.8rem; }
  .bi-type-weights { grid-template-columns: repeat(2, 1fr); }
  .bi-weight { padding: 1.2rem 1rem; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .bi-weight:nth-last-child(-n+2) { border-bottom: 0; }
  .bi-weight:nth-child(2n) { border-right: 0; }
  .bi-misuse-grid { grid-template-columns: 1fr; }
  .bi-misuse { padding: 1.3rem 1.2rem; font-size: .82rem; }
  .bi-footnote { gap: 1.8rem; margin-top: 4rem; }
  .bi-preview { grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
  .bi-preview-logos .bi-logo-canvas { aspect-ratio: 16 / 8; }
  .bi-preview-meta { padding: 1.6rem 1.6rem; }
  .bi-construction { grid-template-columns: 1fr; }
  .bi-construct-card { padding: 1.8rem; }
  .bi-philosophy { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; margin: 3rem 0; }
  .bi-do-dont { grid-template-columns: 1fr; }
  .bi-app-grid { grid-template-columns: 1fr; }
  .bi-lockup { grid-template-columns: 1fr; }
  .bi-hero-visual { aspect-ratio: 16 / 10; margin-top: 2rem; }
}

/* ── Teams ── */
.teams-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.team-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.team-card h4 { margin-bottom: .25rem; font-size: 1.05rem; }
.team-card .sub { font-size: .75rem; color: var(--white3); margin-bottom: .6rem; letter-spacing: .04em; }
.team-card .role { font-size: .85rem; color: var(--white2); }

/* ── Careers ── */
.value-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color .3s, transform .3s;
}
.value-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.value-card .num { font-size: .68rem; font-weight: 800; color: var(--accent); font-family: var(--mono); margin-bottom: .6rem; letter-spacing: .1em; }
.value-card p { font-size: .92rem; font-weight: 500; line-height: 1.5; }

.benefit-section { margin: 2.5rem 0; }
.benefit-section h4 { margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.benefit-list { display: flex; flex-direction: column; gap: .5rem; }
.benefit-list li {
  font-size: .88rem;
  color: var(--white2);
  list-style: none;
  padding-left: 1.2rem;
  position: relative;
}
.benefit-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 300; }

.job-section { margin-top: 3rem; }
.job-group { margin-bottom: 1.5rem; }
.job-group-header { padding: .8rem 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
.job-group-header .cnt { font-size: .8rem; color: var(--white3); }

.apply-box {
  margin-top: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}
.apply-box h3 { margin-bottom: .6rem; }
.apply-box .email { font-size: 1.3rem; font-weight: 700; color: var(--white); margin: 1rem 0; }
.apply-box .format { font-size: .82rem; color: var(--white2); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.contact-block h3 { margin-bottom: 1.2rem; }
.contact-item { margin: 1rem 0; font-size: .95rem; }
.contact-item a { color: var(--white); text-decoration: none; transition: color .2s; }
.contact-item a:hover { color: var(--accent); }

/* ── Footer ── */
.footer {
  padding: 3.5rem var(--side);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: .72rem;
  color: var(--white);
  letter-spacing: .02em;
}
.footer a { color: var(--white); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  align-items: center;
  font-size: .7rem;
  color: var(--white3);
  letter-spacing: .01em;
  margin-top: .2rem;
}
.footer-legal .footer-sep { color: var(--white3); opacity: .5; }
.footer-policy-links {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .75rem;
  color: var(--white2);
  margin-top: -.4rem;
}
.footer-policy-links a { color: var(--white2); text-decoration: none; transition: color .2s; }
.footer-policy-links a:hover { color: var(--white); }
.footer-policy-links a strong { font-weight: 600; }
.footer-policy-links .footer-sep { opacity: .55; }
.footer-awards {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .2rem;
}
.footer-award-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .02em;
  line-height: 1.3;
}
.footer-award-badge svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 768px) {
  .footer-legal, .footer-policy-links, .footer-awards { justify-content: center; text-align: center; }
  .footer-award-badge { font-size: .68rem; padding: .45rem .8rem; }
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-sns {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white3);
  font-size: .72rem;
  letter-spacing: .05em;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.footer-sns svg { display: block; }
.footer-sns:hover {
  color: var(--white);
  border-color: var(--white2);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}

/* Branded social colors */
.footer-sns[href*="refad.co.kr"]    { color: #ffffff; border-color: rgba(255,255,255,.35); }
.footer-sns[href*="refad.co.kr"]:hover { color: #ffffff; border-color: #ffffff; background: rgba(255,255,255,.08); }
.footer-sns[href*="blog.naver"]     { color: #03C75A; border-color: rgba(3,199,90,.35); }
.footer-sns[href*="blog.naver"]:hover { color: #1ee070; border-color: #03C75A; background: rgba(3,199,90,.08); }
.footer-sns[href*="youtube"]        { color: #FF0033; border-color: rgba(255,0,51,.35); }
.footer-sns[href*="youtube"]:hover  { color: #ff3355; border-color: #FF0033; background: rgba(255,0,51,.08); }
.footer-sns[href*="instagram"]      { color: #E4405F; border-color: rgba(228,64,95,.35); }
.footer-sns[href*="instagram"]:hover { color: #ff5976; border-color: #E4405F; background: rgba(228,64,95,.08); }

/* ─────────────────────────────────────────────
   MUSITEC Heritage strip (footer 맨 아래)
   ─ 10년 제작 노하우 → MUSITEC 홈페이지 링크
   ─ 절제된 한 줄, 모회사/전신 attribution
   ──────────────────────────────────────────── */
.footer-heritage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.4rem;
  margin-top: .4rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-heritage-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  color: var(--white) !important;
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .04em;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.footer-heritage-link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  color: var(--white) !important;
}
.footer-heritage-label {
  opacity: .82;
  white-space: nowrap;
}
.footer-heritage-logo {
  height: 18px;
  width: auto;
  display: block;
  /* AVIF 로고가 어두운 배경에서도 보이도록 살짝 밝기 보정 */
  filter: brightness(1) contrast(1);
  transition: opacity .25s var(--ease);
  opacity: .92;
}
.footer-heritage-link:hover .footer-heritage-logo { opacity: 1; }
.footer-heritage-arrow {
  font-size: .78rem;
  opacity: .55;
  transition: -webkit-transform .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.footer-heritage-link:hover .footer-heritage-arrow {
  opacity: .9;
  -webkit-transform: translate(2px, -2px);
  transform: translate(2px, -2px);
}

@media (max-width: 640px) {
  .footer-heritage { padding-top: 1.1rem; gap: .6rem; }
  .footer-heritage-link {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .55rem;
    padding: .55rem .85rem;
    font-size: .62rem;
    text-align: center;
  }
  .footer-heritage-logo { height: 16px; }
}

/* ══════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  -webkit-transform: translateY(32px);
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
/* Staggered delays for grid children */
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }

/* ── Process Flow ── */
.process-flow { display: flex; gap: 0; align-items: center; justify-content: center; flex-wrap: wrap; }
.process-step { text-align: center; padding: 1.2rem 1.8rem; }
.process-step .step-num { font-size: .62rem; font-weight: 800; color: var(--accent); letter-spacing: .15em; margin-bottom: .4rem; }
.process-step h4 { font-size: .9rem; margin-bottom: .2rem; }
.process-step p { font-size: .75rem; color: var(--white2); }
.process-arrow { font-size: 1.1rem; color: var(--white3); opacity: .4; }

/* ── Portfolio Full Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.portfolio-grid .work-card { aspect-ratio: 16/10; }
.work-card--stat {
  background: #ffffff !important;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.work-card--stat .stat-inner {
  text-align: center;
  color: #0a0908;
  width: 100%;
}
.work-card--stat .stat-year {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  color: #0a0908;
}
.work-card--stat .stat-desc {
  margin-top: .9rem;
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  font-weight: 600;
  color: #0a0908;
}
.work-card--stat:hover { transform: translateY(-2px); transition: transform .3s var(--ease); }

/* Dark variant — black background, white text */
.work-card--stat-dark {
  background: #0a0908 !important;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.08);
}
.work-card--stat-dark .stat-inner {
  text-align: center;
  color: #ffffff;
  width: 100%;
}
.work-card--stat-dark .stat-year {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: #ffffff;
}
.work-card--stat-dark .stat-desc {
  margin-top: .7rem;
  font-size: clamp(.95rem, 1.3vw, 1.2rem);
  font-weight: 500;
  color: var(--white2);
  line-height: 1.5;
}
.work-card--stat-dark:hover { transform: translateY(-2px); transition: transform .3s var(--ease); }
/* 홈페이지 works-grid 의 첫 카드 row-span 규칙이 포트폴리오 풀그리드에 번져 빈 셀을 만들던 문제 차단 */
.portfolio-grid .work-card:first-child { grid-row: auto; aspect-ratio: 16/10; }
/* 전체 포트폴리오 이미지 110% 확대 — 슬라이드 스타일 카드의 흰 여백 크롭 + 몰입감 */
.portfolio-grid .work-card img,
.portfolio-grid .work-card .work-thumb {
  -webkit-transform: scale(1.10);
  transform: scale(1.10);
}
.portfolio-grid .work-card:hover img,
.portfolio-grid .work-card:hover .work-thumb {
  -webkit-transform: scale(1.16);
  transform: scale(1.16);
}

.portfolio-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: .76rem;
  font-weight: 600;
  color: var(--white3);
  background: none;
  border: 1px solid var(--border);
  padding: .5rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all .25s var(--ease);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.filter-btn:hover { border-color: var(--white3); color: var(--white2); }
.filter-btn.active { background: var(--white); color: var(--bg); border-color: var(--white); }

/* ── MUSITEC ── */
.musitec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.musitec-card img { height: 36px; opacity: .7; }
.musitec-text p { font-size: .92rem; color: var(--white2); line-height: 1.8; }
.musitec-text .since { font-size: .72rem; color: var(--accent); margin-top: .6rem; letter-spacing: .05em; }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border2); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: .5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-transform: translateX(-3px);
  transform: translateX(-3px);
}
.timeline-year { font-size: .7rem; font-weight: 800; color: var(--accent); letter-spacing: .12em; margin-bottom: .3rem; font-family: var(--mono); }
.timeline-desc { font-size: .92rem; color: var(--white2); }

/* ── Contact Form ── */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--white3);
  margin-bottom: .5rem;
  letter-spacing: .06em;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6560' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-field select option { background: var(--surface); }

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:first-child { grid-row: auto; aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .musitec-card { flex-direction: column; text-align: center; }
}

/* Tablet — iPad mini / iPad / iPad Pro (portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root { --side: 2rem; }
  h1 { font-size: clamp(2.6rem, 5.5vw, 3.6rem); line-height: 1.22; }
  h2 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.28; }
  h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
  .hero-content p { font-size: 1.05rem; max-width: 640px; }
  .tools-grid { grid-template-columns: repeat(6, 1fr); gap: 1.8rem 1.2rem; }
  .tool-item img { height: 30px; }
  .section { padding: clamp(4rem, 7vw, 6rem) 0; }
  .section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }
  .clients-track img { height: 28px; margin-right: 3rem; }
  .container { max-width: 960px; }
}

@media (max-width: 767px) {
  :root { --side: 1.4rem; --header-h: 64px; }
  .header-logo img { height: 44px; max-width: 65vw; }
  .header-nav { display: none; }
  .menu-btn { display: block; }
  .section { padding: clamp(3rem, 8vw, 5rem) 0; }
  .section-sm { padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
  .hero {
    padding-top: calc(var(--header-h) + 2rem);
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 3rem;
  }
  /* 모바일 영상 블록: 세로 100vh 유지, 가로 영상이 심하게 크롭되지 않게 중앙 정렬 */
  .hero-video-wrap {
    height: 100vh;
    height: 100dvh;
  }
  .hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
  }
  /* 오버레이: 영상이 선명하게 보이되 하단 그라디언트로 자연스러운 전환 */
  .hero-video-overlay {
    background: linear-gradient(180deg,
      rgba(10,9,8,.15) 0%,
      rgba(10,9,8,.05) 40%,
      rgba(10,9,8,.35) 80%,
      rgba(10,9,8,.75) 100%);
  }
  /* hero-ready 단계에서도 영상 선명하게 유지 */
  .hero.hero-ready .hero-video-wrap video { opacity: 1; }
  h1 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.22; letter-spacing: -0.01em; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.28; }
  h3 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); line-height: 1.32; }
  p { line-height: 1.65; }
  /* 한글 단어 단위 줄바꿈: '프로젝트'·'진행' 등이 어색하게 홀로 내려가지 않도록 */
  .hero-content h1,
  .hero-content p,
  .ai-search-hint,
  .tools-title,
  .tools-sub,
  .clients-title,
  .section h2,
  .section h3,
  .faq-hero h1 { word-break: keep-all; overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
  .hero-content p { font-size: .98rem; line-height: 1.6; padding: 0 .4rem; max-width: 34ch; margin-left: auto; margin-right: auto; }
  .hero-content h1 { margin-bottom: 1.1rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .number-item .value { font-size: clamp(2.4rem, 8vw, 3rem); }
  .teams-grid { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; }
  .process-flow { flex-direction: column; gap: 1.2rem; }
  .process-arrow { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
  .portfolio-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .ai-chat-messages { max-height: 280px; }
  .ai-input-bar input { font-size: 12px; padding: 1rem 3.2rem 1rem 3rem; }
  .ai-search-hint { font-size: .78rem; padding: 0 .5rem; }
  .footer { text-align: center; gap: 1.5rem; }
  .footer-row { flex-direction: column; text-align: center; gap: 1rem; justify-content: center; }
  .footer-contact { justify-content: center; }
  .footer-social { gap: .5rem; padding-top: 1.2rem; }
  .footer-sns { padding: .5rem .9rem; font-size: .68rem; }
  .footer-sns svg { width: 18px; height: 18px; }
  .musitec-card { padding: 2rem; }
  .clients-track img { height: 22px; margin-right: 2.5rem; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem .8rem; }
  .tool-item img { height: 28px; }
  .tool-item .tool-name { font-size: .72rem; }
  /* 모바일 아코디언: 첫 9개만 노출, 나머지는 토글로 확장 */
  .tools-grid .tool-item-extra { display: none; }
  .tools-grid.tools-expanded .tool-item-extra { display: flex; }
  .tools-toggle { display: block; margin-left: auto; margin-right: auto; }
  .btn { min-height: 48px; padding: 1rem 1.8rem; font-size: .88rem; }
  .contact-grid, .contact-info { gap: 1.2rem; }
}

@media (max-width: 480px) {
  :root { --side: 1.2rem; }
  h1 { font-size: clamp(1.85rem, 8.8vw, 2.5rem); line-height: 1.2; }
  h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .hero-content p { font-size: .92rem; line-height: 1.58; }
  .work-card { border-radius: 12px; }
  .btn { padding: .9rem 1.6rem; font-size: .84rem; }
  .numbers-grid { gap: 1.2rem; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem .6rem; }
  .tool-item img { height: 26px; }
  .container { padding-left: var(--side); padding-right: var(--side); }
  .ai-input-bar input { padding: .95rem 3rem .95rem 2.8rem; }
  .ai-search-hint { font-size: .74rem; margin-top: .9rem; }
  .clients-track img { height: 20px; margin-right: 2rem; }
}

/* Narrow Android — Galaxy S base, iPhone SE (≤360px) */
@media (max-width: 360px) {
  :root { --side: 1rem; }
  h1 { font-size: clamp(1.65rem, 9vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hero-content p { font-size: .88rem; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: .9rem .5rem; }
  .tool-item img { height: 24px; }
  .tool-item .tool-name { font-size: .62rem; }
  .btn { padding: .85rem 1.3rem; font-size: .8rem; }
  .ai-input-bar input { font-size: 11px; padding: .9rem 2.8rem .9rem 2.6rem; }
  .number-item .value { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* ══════════════════════════════════════════════
   In-app Browser 최적화 (KakaoTalk / Instagram / NAVER / Line)
   Slack·KakaoTalk 링크 미리보기에서 접근할 때 좁은 뷰포트·
   커스텀 툴바 때문에 생기는 가독성 저하를 보정합니다.
   ══════════════════════════════════════════════ */
html.inapp-browser body { -webkit-text-size-adjust: 100%; }
html.inapp-browser .hero-content h1,
html.inapp-browser .hero-content p,
html.inapp-browser .ai-search-hint,
html.inapp-browser .faq-hero h1 {
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
html.inapp-browser .hero-content p { max-width: 32ch; margin-left: auto; margin-right: auto; }
html.inapp-browser .ai-input-bar input,
html.inapp-browser .ai-input-bar--framed input {
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: .95rem 3rem .95rem 2.8rem;
}
html.inapp-browser .ai-input-bar input::placeholder,
html.inapp-browser .ai-input-bar--framed input::placeholder {
  font-size: 14.5px;
  letter-spacing: -0.02em;
}
html.inapp-browser .ai-input-icon { left: 1rem; font-size: .92rem; }
html.inapp-browser .ai-send-btn { right: .55rem; }
html.inapp-browser .ai-search-hint { font-size: .74rem; padding: 0 .6rem; line-height: 1.55; }

/* KakaoTalk 전용 — 상단 네이티브 헤더가 이미 큼 → 내부 헤더 높이 축소 */
html.kakao-inapp .header { min-height: 56px; }
html.kakao-inapp .hero { padding-top: calc(var(--header-h) + 1rem); }
/* KakaoTalk 공유 진입시 로고·언어 스위처 가독성 강조 */
html.kakao-inapp .header-logo img { height: 40px; max-width: 52vw; }
html.kakao-inapp .lang-toggle { padding: .55rem .95rem; }

/* Safe area — iPhone notch / Dynamic Island */
@supports (padding: max(0px)) {
  .header { padding-left: max(var(--side), env(safe-area-inset-left)); padding-right: max(var(--side), env(safe-area-inset-right)); }
  .footer { padding-bottom: max(3.5rem, env(safe-area-inset-bottom)); }
  .mobile-menu { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
  .clients-track { animation: none; }
  .hero-video-wrap video { opacity: .2; transform: none; }
  .hero-content { opacity: 1; transform: none; }
}

/* High contrast */
@media (forced-colors: active) {
  .btn { border: 2px solid; }
  .header { border-bottom: 2px solid; }
}

/* Print */
@media print {
  body::before { display: none; }
  .header, .mobile-menu, .ai-chat-wrap, .clients-marquee, .footer { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-content { opacity: 1; transform: none; }
  .section, .section-sm { padding: 2rem 0; }
}

/* Samsung Internet fallback */
@supports not (backdrop-filter: blur(1px)) {
  .header { background: rgba(10,9,8,.95); }
  .ai-input-bar input { background: rgba(22,20,18,.95); }
}

/* Touch targets — Apple HIG 44px */
@media (pointer: coarse) {
  .header-nav a { padding: .6rem .2rem; min-height: 44px; display: inline-flex; align-items: center; }
  .lang-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .filter-btn { min-height: 44px; padding: .6rem 1.4rem; }
  .btn { min-height: 48px; }
  .service-row { padding: 1.4rem 0; min-height: 60px; }
}

/* ══════════════════════════════════════════════
   FAQ Page
   ══════════════════════════════════════════════ */
.hero.faq-hero {
  display: block;
  min-height: auto;
  padding: calc(var(--header-h) + 4rem) var(--side) 4rem;
  text-align: center;
}
.faq-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.faq-hero .label {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.faq-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.faq-hero p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

/* Search Bar */
.faq-search { margin-top: 1.6rem; }
.faq-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(22,20,18,.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .5rem .4rem 1.2rem;
  transition: border-color .25s, box-shadow .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.faq-search-bar:focus-within {
  border-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.faq-search-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-right: .6rem;
}
.faq-search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-size: 1.05rem;
  padding: .8rem 0;
  font-family: inherit;
  text-overflow: ellipsis;
}
.faq-search-bar input::placeholder { color: var(--text-muted); }
.faq-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--bg);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.faq-search-btn.visible { opacity: 1; transform: scale(1); }

/* Search Result */
.faq-search-result {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out), margin-top .3s;
  text-align: left;
  margin-top: 0;
}
.faq-search-result.active {
  max-height: 1000px;
  margin-top: 1rem;
}
.faq-search-typing {
  display: none;
  gap: .3rem;
  padding: 1rem .5rem;
  justify-content: center;
}
.faq-search-typing.active { display: flex; }
.faq-search-typing span {
  width: 8px; height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: faq-typing 1.2s infinite;
}
.faq-search-typing span:nth-child(2) { animation-delay: .2s; }
.faq-search-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes faq-typing {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.faq-search-content {
  background: rgba(22,20,18,.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
}
.faq-search-content:empty { display: none; }
.faq-search-top-q {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.faq-search-top-a {
  color: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}
.faq-search-others {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.faq-search-others-label {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.faq-search-other-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: .5rem 0;
  cursor: pointer;
  font-size: .95rem;
  font-family: inherit;
  transition: color .2s;
}
.faq-search-other-item:hover { color: var(--white); }

/* ── Service Overview (FAQ AI answer block) ── */
.svc-overview p { margin: 0 0 .8rem; color: var(--white2); line-height: 1.7; font-size: .95rem; }
.svc-overview .svc-group {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.svc-overview .svc-group:first-of-type { border-top: 0; padding-top: 0; margin-top: .4rem; }
.svc-overview .svc-group-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.svc-overview ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .3rem .8rem;
}
.svc-overview ul li {
  font-size: .9rem;
  color: var(--white);
  padding: .2rem 0 .2rem 1rem;
  position: relative;
  line-height: 1.5;
}
.svc-overview ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.svc-overview-cta {
  margin-top: 1rem !important;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  font-size: .88rem !important;
}
.svc-overview-cta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .svc-overview ul { grid-template-columns: 1fr; }
}
.faq-search-empty {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1rem;
}
/* Fuse-AI: 툴 칩 */
.ai-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .9rem;
}
.ai-tool-chip {
  display: inline-block;
  padding: .32rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text);
  background: rgba(255,255,255,.02);
}

/* Tabs */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.faq-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .92rem;
  font-family: inherit;
  transition: all .25s;
  min-height: 40px;
}
.faq-tab:hover { color: var(--white); border-color: var(--white); }
.faq-tab.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* List */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0;
  background: transparent;
  border: 0;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.5;
  transition: color .2s;
}
.faq-q:hover { color: var(--white); }
.faq-num {
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  flex-shrink: 0;
  min-width: 2rem;
}
.faq-cat-chip {
  font-size: .72rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: .04em;
  flex-shrink: 0;
  white-space: nowrap;
}
.faq-q-text { flex: 1; min-width: 0; }
.faq-chevron {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 200;
  transition: transform .3s var(--ease-out), color .2s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-chevron {
  transform: rotate(45deg);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.2,.7,.2,1);
}
.faq-item.open .faq-a { max-height: 1200px; }
.faq-a-inner {
  padding: 0 0 1.6rem calc(2rem + 1rem);
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .98rem;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s var(--ease-out) .05s, transform .35s var(--ease-out) .05s;
}
.faq-item.open .faq-a-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile FAQ */
@media (max-width: 640px) {
  .hero.faq-hero { padding: calc(var(--header-h) + 2.5rem) var(--side) 2.5rem; }
  .faq-search-bar { padding: .3rem .4rem .3rem 1rem; }
  .faq-search-bar input { font-size: 1rem; padding: .7rem 0; }
  .faq-search-btn { width: 36px; height: 36px; }
  .faq-tabs { gap: .4rem; }
  .faq-tab { padding: .5rem 1rem; font-size: .85rem; }
  .faq-q { padding: 1.2rem 0; gap: .6rem; font-size: .96rem; flex-wrap: wrap; }
  .faq-num { min-width: auto; }
  .faq-cat-chip { font-size: .68rem; padding: .18rem .5rem; }
  .faq-q-text { flex: 1 0 100%; order: 10; margin-top: .3rem; }
  .faq-chevron { order: 5; margin-left: auto; }
  .faq-a-inner { padding: 0 0 1.2rem 0; font-size: .92rem; }
  .faq-search-content { padding: 1.1rem 1.2rem; }
}

/* ═══════════ HERO TRUST ROW (48hr · EN-native PM · 4-lang) ═══════════ */
.hero-trust-row {
  margin-top: 1.4rem;
  font-family: 'Pretendard', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255,255,255,.82);
  text-align: center;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  display: inline-block;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 640px) {
  .hero-trust-row { font-size: .72rem; padding: .5rem .9rem; margin-top: 1rem; }
}

/* ═══════════ PUBLIC DIPLOMACY SECTION ═══════════ */
.public-diplomacy { background: #faf9f6; }
.pd-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.pd-eyebrow {
  display: inline-block;
  font-family: 'Pretendard', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .32em;
  color: #8a8578;
  margin-bottom: 1rem;
}
.pd-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  color: #0e0c0a;
  margin: 0 0 .85rem;
  letter-spacing: -.01em;
}
.pd-sub {
  font-family: 'Pretendard', sans-serif;
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.65;
  color: #5a554d;
  margin: 0;
}
.pd-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.pd-card {
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 14px;
  padding: 1.4rem 1.1rem 1.2rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(14,12,10,.08);
  border-color: #0e0c0a;
}
.pd-card-label {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: .75rem;
}
.pd-card-name {
  font-family: 'Pretendard', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: #0e0c0a;
  line-height: 1.35;
  margin-bottom: .45rem;
  letter-spacing: -.005em;
}
.pd-card-desc {
  font-family: 'Pretendard', sans-serif;
  font-size: .78rem;
  font-weight: 400;
  color: #7c766a;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .pd-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-card:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 640px) {
  .pd-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .pd-card { padding: 1.1rem .8rem 1rem; }
  .pd-card-label { font-size: 1.5rem; }
  .pd-card-name { font-size: .85rem; }
  .pd-card-desc { font-size: .72rem; }
}

/* ==========================================================================
   HOW WE WORK — 3 Phase (business.html)
   ========================================================================== */
.how-head { text-align: center; margin-bottom: 3rem; }
.how-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--accent);
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.how-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.how-sub {
  font-size: .95rem;
  color: var(--white2);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.how-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.how-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.how-num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .6rem;
}
.how-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--white2);
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.how-cardtitle {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 1.3rem;
}
.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.how-list li {
  font-size: .88rem;
  color: var(--white2);
  line-height: 1.55;
  padding: .5rem 0 .5rem 1.1rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.how-list li:first-child { border-top: none; }
.how-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white3);
  opacity: .5;
}
@media (max-width: 960px) {
  .how-grid { grid-template-columns: 1fr; gap: 1rem; }
  .how-arrow { transform: rotate(90deg); padding: .4rem 0; }
}

/* ==========================================================================
   TECH STACK SHOWCASE (business.html)
   ========================================================================== */
.tech-head { text-align: center; margin-bottom: 3rem; }
.tech-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--accent);
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.tech-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  color: #0e0c0a;
}
.tech-sub {
  font-size: .95rem;
  color: var(--white2);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.tech-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.6rem 1.7rem;
  transition: transform .25s ease, border-color .25s ease;
}
.tech-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.tech-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.2rem;
  color: var(--accent);
  display: block;
}
.tech-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tech-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .8rem;
}
.tech-desc {
  font-size: .88rem;
  color: var(--white2);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.tech-tools {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 960px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   YOUTUBE LIGHTBOX (portfolio)
   ========================================================================== */
.work-card { position: relative; }
.work-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 4px;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.work-card:hover .work-play-badge,
.work-card:focus-visible .work-play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.yt-lightbox.is-open { display: flex; }
.yt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.yt-lightbox-frame {
  position: relative;
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.yt-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-lightbox-close {
  position: absolute;
  top: clamp(.6rem, 2vw, 1.4rem);
  right: clamp(.6rem, 2vw, 1.4rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease;
}
.yt-lightbox-close:hover { background: rgba(255, 255, 255, .25); }

/* ══════════════════════════════════════════════
   Venue Card (FAQ AI 베뉴 검색 결과)
   ══════════════════════════════════════════════ */
.venue-card {
  display: grid;
  gap: .5rem;
  padding: 1rem 1.1rem;
  background: var(--bg-soft, rgba(0,0,0,.03));
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: .5rem;
}
.venue-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  font-size: .9rem;
  line-height: 1.5;
}
.venue-k {
  color: var(--text-muted, #6b6b6b);
  font-weight: 500;
  font-size: .82rem;
}
.venue-v {
  color: var(--text, #0e0c0a);
  font-weight: 500;
}
.venue-actions {
  margin-top: .7rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.venue-naver-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.btn-sm {
  padding: .4rem .8rem;
  font-size: .82rem;
}
@media (max-width: 600px) {
  .venue-row { grid-template-columns: 90px 1fr; gap: .6rem; }
}

/* ─────────────────────────────────────────────────────────────
   Mobile Korean text — line-break safety net
   - Desktop-intended <br> tags hidden on small screens so that
     Korean sentences flow naturally and don't get awkwardly cut.
   - Reinforces keep-all + break-word so 어절 boundaries are respected.
   - Hero/section font sizes tightened on the smallest devices.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hide all <br> tags (both static + injected via data-kr/en/zh/ja) */
  br { display: none; }

  /* EXCEPTION: hero h1 keeps explicit two-line break on mobile
     (user-requested: "경험을 설계하고, / 기억을 만듭니다.") */
  .hero h1 br { display: inline; }

  /* Korean wrap safety on common text containers */
  h1, h2, h3, h4, h5, h6,
  p, li, a, span, button,
  .btn, .lead, .section-title,
  .card-title, .card-text,
  .feature-title, .feature-text,
  .num-label, .stat-label,
  .faq-q-text, .faq-a {
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
  }

  /* Hero compactness */
  .hero h1 { font-size: clamp(2rem, 7.5vw, 2.6rem); line-height: 1.18; }
  .hero p  { font-size: clamp(.92rem, 3.6vw, 1.02rem); line-height: 1.55; }
}

@media (max-width: 380px) {
  /* Smallest phones — extra room */
  .hero h1 { font-size: 1.8rem; }
  .hero p  { font-size: .9rem; }
  .section-title, h2 { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════
   Legal Documents — Editorial / Report layout
   privacy.html / terms.html
   ══════════════════════════════════════════════ */
.legal-container { max-width: 880px; }

/* ── Cover ── */
.legal-cover {
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.legal-cover-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.legal-doc-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--accent);
  padding: .4rem .8rem;
  border: 1px solid var(--border2);
  border-radius: 4px;
  text-transform: uppercase;
}
.legal-doc-num {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--white3);
  font-family: var(--mono);
}
.legal-cover-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 2.2rem;
  max-width: 880px;
}
.legal-cover-sub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.legal-cover-sub-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.legal-cover-sub-k {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white3);
}
.legal-cover-sub-v {
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.005em;
}

/* ── Section spacing ── */
.legal-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.legal-section--toc {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.legal-section--articles {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* ── Lede / Prologue ── */
.legal-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--white2);
  font-weight: 400;
  letter-spacing: -.005em;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Table of Contents ── */
.legal-toc {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1.8rem 1.8rem 1.4rem;
}
.legal-toc-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .15rem 1.6rem;
}
.legal-toc-list li {
  margin: 0;
}
.legal-toc-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem 0;
  text-decoration: none;
  color: var(--white2);
  font-size: .9rem;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.legal-toc-list a:hover {
  color: var(--white);
  border-bottom-color: var(--accent);
}
.legal-toc-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  font-family: var(--mono);
  min-width: 1.4rem;
}

/* ── Article cards ── */
.legal-article {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: clamp(80px, 12vh, 130px);
}
.legal-article:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.legal-article-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
  font-family: var(--mono);
  padding-top: .15rem;
}
.legal-article-body {
  min-width: 0;
}
.legal-article-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0 0 1.2rem;
  color: var(--white);
}
.legal-article-body p {
  font-size: .98rem;
  line-height: 1.85;
  color: var(--white2);
  margin: 0 0 1rem;
  letter-spacing: -.003em;
}
.legal-article-body p:last-child {
  margin-bottom: 0;
}

/* ── Lists in articles ── */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.legal-list li {
  position: relative;
  padding: .55rem 0 .55rem 1.4rem;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--white2);
  border-bottom: 1px solid var(--border);
}
.legal-list li:last-child {
  border-bottom: 0;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}
.legal-list li strong {
  color: var(--white);
  font-weight: 700;
}

/* ── Definition table (수집 항목) ── */
.legal-table {
  margin: 1rem 0 0;
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
}
.legal-table-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--border);
}
.legal-table-row:last-child {
  border-bottom: 0;
}
.legal-table-k {
  background: var(--bg2);
  padding: .9rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.legal-table-v {
  padding: .9rem 1.1rem;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--white2);
}
.legal-note {
  margin-top: 1rem !important;
  font-size: .85rem !important;
  color: var(--white3) !important;
  letter-spacing: .01em;
}

/* ── Stats grid (보유 기간) ── */
.legal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 0;
}
.legal-stat {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
}
.legal-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .6rem;
}
.legal-stat-k {
  font-size: .92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .35rem;
  letter-spacing: -.005em;
}
.legal-stat-src {
  font-size: .72rem;
  color: var(--white3);
  letter-spacing: .01em;
  line-height: 1.4;
}

/* ── Pillars (안전성 확보 조치) ── */
.legal-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 0;
}
.legal-pillar {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 1.2rem;
}
.legal-pillar-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--accent);
  padding: .25rem .55rem;
  border: 1px solid var(--border2);
  border-radius: 3px;
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.legal-pillar-body {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--white2);
}

/* ── DPO contact card ── */
.legal-contact-card {
  margin: 1.4rem 0 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1.8rem;
}
.legal-contact-tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.legal-contact-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}
.legal-contact-title {
  font-size: .82rem;
  font-weight: 500;
  color: var(--white3);
  letter-spacing: 0;
}
.legal-contact-rows {
  display: grid;
  gap: .6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.legal-contact-k {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--white3);
  min-width: 50px;
  text-transform: uppercase;
}
.legal-contact-v {
  font-size: .96rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.legal-contact-v:hover {
  border-bottom-color: var(--accent);
}

/* ── External references (분쟁 조정 기관) ── */
.legal-refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .8rem;
  margin: 1.4rem 0 0;
}
.legal-ref {
  padding: 1rem 1.1rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
}
.legal-ref-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
  letter-spacing: -.005em;
}
.legal-ref-meta {
  font-size: .82rem;
  color: var(--white2);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.legal-ref-meta a {
  color: var(--white2);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  transition: color .2s, border-color .2s;
}
.legal-ref-meta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.legal-ref-sep {
  color: var(--white3);
  opacity: .5;
}

/* ── Colophon (footer of document) ── */
.legal-section--colophon {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.legal-colophon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
}
.legal-colophon-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.legal-colophon-k {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white3);
}
.legal-colophon-v {
  font-size: .9rem;
  color: var(--white2);
  letter-spacing: -.005em;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .legal-article {
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 2rem 0;
  }
  .legal-article-num {
    font-size: 1.8rem;
  }
  .legal-toc-list {
    grid-template-columns: 1fr;
  }
  .legal-table-row {
    grid-template-columns: 1fr;
  }
  .legal-table-k {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .legal-cover-sub {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
}
