/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* iOS Safari 포함 가로 스크롤 차단 */
  max-width: 100vw;
}
:lang(en), .en-txt { word-break: normal; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100vw;
  word-break: keep-all;
  overflow-wrap: break-word;
  position: relative; /* 내부 absolute 요소 기준점 고정 — 뷰포트 초과 방지 */
}
h1, h2, h3, h4, h5, p { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
em { font-style: normal; }

/* ====== Brand selection & scrollbar ====== */
::selection { background: rgba(212,165,116,0.35); color: #0B1A33; }
::-moz-selection { background: rgba(212,165,116,0.35); color: #0B1A33; }

html {
  scrollbar-color: #D4A574 #0B1A33;
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B1A33; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8BE8B, #B5874F);
  border-radius: 10px;
  border: 2px solid #0B1A33;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #F2CA9A, #D4A574); }

/* ====== Brand Wave Divider (section 간 장식) ====== */
.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--gold);
  opacity: 0.35;
  margin: 0 auto;
  pointer-events: none;
}
.wave-divider svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .wave-divider { height: 28px; }
}

/* ====== Tokens ====== */
:root {
  --bg: #ffffff;
  --bg-dark: #0B1A33;
  --bg-dark-2: #071227;
  --ink: #0B1A33;
  --ink-2: #1a2947;
  --muted: #5c6a85;
  --line: #e6ebf2;
  --soft: #f6f8fc;

  --gold: #D4A574;
  --gold-soft: #e8c9a1;
  --gold-ink: #a5794f;     /* deep gold for small UI text — meets WCAG AA */

  --sec-y: clamp(96px, 11vw, 160px);
  --sec-y-sm: clamp(72px, 9vw, 120px);

  /* Sub brands */
  --lab: #2563eb;     /* 노아마케팅랩 - Blue */
  --lab-2: #1d4ed8;
  --cc: #ef4444;      /* CC컴퍼니 - Red */
  --cc-2: #dc2626;
  --db: #10b981;      /* 노아데이터베이스 - Green */
  --db-2: #059669;

  --radius: 20px;
  --easing: cubic-bezier(.2,.7,.3,1);
}

.container { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }

/* ====== Cursor — Brand (gold compass dot + halo ring + trailing stars) ====== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 12px rgba(212,165,116,0.7), 0 0 24px rgba(212,165,116,0.3);
  transition: width 0.3s var(--easing), height 0.3s var(--easing), background 0.3s, box-shadow 0.3s;
  display: none;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.2px solid rgba(212,165,116,0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  display: none;
  transition: width 0.25s var(--easing), height 0.25s var(--easing), border-color 0.25s, opacity 0.25s;
}
/* Sound toggle button (bottom-left fixed) */
.sound-toggle {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 90;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(11,26,51,0.85);
  color: var(--gold);
  border: 1px solid rgba(212,165,116,0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.sound-toggle:hover { opacity: 1; transform: scale(1.08); }
.sound-toggle.on { color: var(--gold); }
.sound-toggle.off { color: rgba(255,255,255,0.4); }
@media (max-width: 768px) {
  .sound-toggle { left: 12px; bottom: 76px; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-toggle { display: none; }
}

.cursor-trail {
  position: fixed;
  width: 7px; height: 7px;
  background: radial-gradient(circle, rgba(244,217,168,0.95), rgba(212,165,116,0.4) 50%, rgba(212,165,116,0) 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9997;
  filter: blur(0.4px);
  animation: cursorTrailFade 1.2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes cursorTrailFade {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(1.1); }
  30%  { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.15); }
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring { display: block; }
}
.cursor.hover { width: 14px; height: 14px; background: var(--gold); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--gold); border-width: 1.5px; }
.cursor-ring.click { width: 20px; height: 20px; border-width: 2px; }

/* ====== Intro / Loading Page ====== */
.intro {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, #0d1e3e 0%, #070d1c 70%);
  color: #fff;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--easing), visibility 0.8s;
}
.intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 30% 80%, rgba(212,165,116,0.4), transparent 50%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(2px 2px at 85% 70%, rgba(212,165,116,0.5), transparent 50%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.4), transparent 50%);
  animation: twinkle 5s ease-in-out infinite;
}
.intro-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.intro-compass {
  width: 88px; height: 88px;
  opacity: 0;
  animation: introCompassIn 0.9s 0.1s var(--easing) forwards;
  filter: drop-shadow(0 0 20px rgba(212,165,116,0.3));
}
.intro-compass svg { width: 100%; height: 100%; }
.intro-needle {
  transform-origin: 60px 60px;
  animation: introNeedleSpin 2.2s 0.6s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes introCompassIn {
  0% { opacity: 0; transform: scale(0.6) rotate(-20deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes introNeedleSpin {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(540deg); }
  100% { transform: rotate(720deg); }
}
.intro-text {
  display: flex; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 42px; font-weight: 900;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: #fff;
  margin-top: 8px;
}
.intro-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: introLetter 0.6s var(--easing) forwards;
}
.intro-text span:nth-child(1) { animation-delay: 0.8s; }
.intro-text span:nth-child(2) { animation-delay: 0.95s; }
.intro-text span:nth-child(3) { animation-delay: 1.10s; }
.intro-text span:nth-child(4) { animation-delay: 1.25s; }
@keyframes introLetter {
  to { opacity: 1; transform: translateY(0); }
}
.intro-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s 1.5s forwards;
}
@keyframes fadeIn { to { opacity: 0.9; } }
.intro-progress {
  width: 160px; height: 1.5px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.intro-progress span {
  display: block;
  width: 0; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: introProgress 2.8s 0.3s ease-in-out forwards;
}
@keyframes introProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Intro 모바일 최적화 */
@media (max-width: 640px) {
  .intro-compass { width: 72px; height: 72px; }
  .intro-needle { transform-origin: 49px 49px; }
  .intro-text { font-size: clamp(30px, 8.5vw, 40px); letter-spacing: 0.32em; padding-left: 0.32em; gap: 6px; }
  .intro-sub { font-size: 10px; letter-spacing: 0.38em; padding-left: 0.38em; }
  .intro-progress { width: 120px; }
  .intro-inner { gap: 20px; padding: 0 20px; }
}
@media (max-width: 380px) {
  .intro-compass { width: 64px; height: 64px; }
  .intro-needle { transform-origin: 44px 44px; }
  .intro-text { font-size: clamp(26px, 9vw, 34px); letter-spacing: 0.28em; }
  .intro-sub { font-size: 9.5px; letter-spacing: 0.34em; }
  .intro-progress { width: 100px; }
}

/* Reduced-motion: 짧은 페이드만 유지 (완전 스킵 대신) */
@media (prefers-reduced-motion: reduce) {
  .intro-compass, .intro-needle, .intro-text span, .intro-sub, .intro-progress span, .intro::before {
    animation: none !important;
  }
  .intro-compass { opacity: 1; }
  .intro-text span { opacity: 1; transform: none; }
  .intro-sub { opacity: 0.9; }
  .intro-progress span { width: 100%; background: var(--gold); }
}

/* ===== Hero mini compass (matches loading compass markup; needle pivot is reliable) ===== */
.hero-mini-compass {
  position: absolute;
  top: 50%; left: 50%;
  width: min(720px, 62vw); height: min(720px, 62vw);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: heroMiniCompassIn 1.2s 0.6s var(--easing) forwards;
  filter: drop-shadow(0 0 56px rgba(212,165,116,0.28));
}
.hero-mini-compass svg { width: 100%; height: 100%; display: block; }
.hero-mini-needle {
  transform-origin: 60px 60px;
  /* Initial wind-up spin once; after animationend the JS takes over and rotates by cursor */
  animation: heroMiniNeedleSpin 4.4s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-mini-needle.js-controlled {
  /* When JS takes over, animation is removed and transform is set inline */
  animation: none;
}
@keyframes heroMiniCompassIn {
  to { opacity: 0.65; }
}
@keyframes heroMiniNeedleSpin {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(540deg); }
  100% { transform: rotate(720deg); }
}
@media (max-width: 900px) {
  .hero-mini-compass { width: min(560px, 78vw); height: min(560px, 78vw); top: 46%; opacity: 0.55; }
}
@media (max-width: 560px) {
  .hero-mini-compass { width: min(420px, 88vw); height: min(420px, 88vw); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mini-needle { animation: none !important; }
  .hero-mini-compass { animation: none !important; opacity: 0.7; }
}

/* ====== Header ====== */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s ease;
  color: #fff;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}
#header.scrolled {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px rgba(11,26,51,0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-mark {
  display: inline-flex; width: 36px; height: 36px;
  color: var(--gold);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-text b {
  font-family: 'Inter', sans-serif;
  font-weight: 900; font-size: 20px;
  letter-spacing: 0.15em;
}
.logo-text em {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.28em;
  opacity: 0.75;
}
.gnb ul { display: flex; gap: 40px; }
.gnb a {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.gnb a::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.gnb a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 20px; }
.lang {
  display: flex; gap: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em;
  background: rgba(212,165,116,0.1);
  border: 1px solid rgba(212,165,116,0.35);
  padding: 3px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lang li { position: relative; padding: 0; }
.lang li + li::before { display: none; }
.lang li.active a { color: var(--gold); }
.ham { display: none; flex-direction: column; gap: 4px; width: 24px; }
.ham span { height: 2px; background: currentColor; width: 100%; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--easing);
  cursor: pointer;
}
.btn.lg { padding: 18px 36px; font-size: 16px; }
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: #c89461;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(212,165,116,0.5);
}
.btn-primary span { transition: transform 0.3s; }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn-ghost:hover { background: currentColor; color: var(--bg-dark); }

/* De-emphasize ghost on dark backgrounds to clarify CTA hierarchy */
.hero .btn-ghost, .contact .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
}
.hero .btn-ghost:hover, .contact .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,165,116,0.08);
}

/* ====== Hero ====== */
.hero {
  position: relative;
  /* 뷰포트 높이 적응: 너무 작지도 너무 크지도 않게 (짧은 노트북 ~ 대형 모니터) */
  min-height: 100vh;           /* fallback for older browsers */
  min-height: 100svh;          /* mobile: exclude URL bar for stable height */
  min-height: clamp(620px, 100dvh, 1080px); /* modern: dynamic + bounded */
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
  padding-top: clamp(72px, 9vh, 100px);
  padding-bottom: clamp(72px, 9vh, 110px); /* scroll-down이 가려지지 않도록 하단 여유 */
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(212,165,116,0.15), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(37,99,235,0.2), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(30,58,138,0.4), transparent 70%),
    linear-gradient(180deg, #050d1c 0%, var(--bg-dark-2) 40%, #0d2246 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 22% 30%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(2px 2px at 35% 10%, rgba(212,165,116,0.7), transparent 50%),
    radial-gradient(1px 1px at 48% 25%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 60% 8%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(2px 2px at 72% 20%, rgba(212,165,116,0.6), transparent 50%),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(2px 2px at 15% 55%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 90% 50%, rgba(212,165,116,0.5), transparent 50%);
  opacity: 0.9;
}
.hero-stars {
  position: absolute; inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 18% 18%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(2px 2px at 42% 38%, rgba(212,165,116,0.8), transparent 50%),
    radial-gradient(1px 1px at 68% 48%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,0.5), transparent 50%);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-wrap {
  max-width: min(1440px, 94vw); margin: 0 auto;
  padding: clamp(20px, 4vh, 60px) clamp(20px, 4vw, 48px);
  width: 100%; position: relative; z-index: 2;
  text-align: center;
}

/* Hero wrap — desktop: centered layout */
@media (min-width: 901px) {
  .hero-wrap {
    max-width: min(1440px, 92vw);
    text-align: center;
    padding-top: clamp(32px, 5vh, 80px);
    padding-bottom: clamp(16px, 2vh, 40px);
    flex: 0 0 auto;
  }
  .hero-wrap .hero-eyebrow {
    display: inline-flex;
    margin-left: auto; margin-right: auto;
    justify-content: center;
  }
  .hero-wrap .hero-title {
    /* 가로폭 최대한 활용: 뷰포트 너비에 비례해 타이포 더 넓게 펼쳐짐 */
    font-size: clamp(56px, 8.4vw, 140px);
    letter-spacing: -0.04em;
    max-width: none;
    margin-left: auto; margin-right: auto;
  }
  .hero-wrap .hero-sub {
    max-width: min(720px, 70vw);
    margin-left: auto; margin-right: auto;
  }
  .hero-wrap .hero-actions {
    justify-content: center;
    max-width: none;
  }
  /* Ark: centered, flows below text in flex column; 높이에 비례 크기 제한 */
}

/* 1100-1440: 중형 노트북/모니터에서도 과하지 않게 */
@media (min-width: 901px) and (max-width: 1440px) {
  .hero-wrap .hero-title { font-size: clamp(48px, 7.2vw, 104px); }
}

/* 짧은 뷰포트(노트북 13", 가로창) 대응: 세로 간격 압축, ark 축소 */
@media (min-width: 901px) and (max-height: 780px) {
  .hero { padding-top: 76px; padding-bottom: 70px; }
  .hero-wrap { padding-top: 18px; padding-bottom: 12px; }
  .hero-wrap .hero-title { font-size: clamp(44px, 6.4vw, 92px); }
  .hero-title { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 24px; }
  .scroll-down { bottom: 20px; }
}

/* 매우 짧은 뷰포트(세로 폭 < 600px): scroll-down 숨김, 하단 padding 축소 */
@media (min-width: 901px) and (max-height: 600px) {
  .hero {
    min-height: 560px;
    padding-top: 70px;
    padding-bottom: 40px;
  }
  .hero-wrap .hero-title { font-size: clamp(40px, 5.8vw, 80px); }
  .scroll-down { display: none; }
}

@media (min-width: 1600px) {
  .hero-wrap { max-width: min(1500px, 90vw); }
}

/* Waves */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  z-index: 0;
  pointer-events: none;
}
.hero-waves svg { width: 100%; height: 100%; }
.wave-back {
  animation: waveMove 12s linear infinite;
  transform-origin: center;
}
.wave-mid {
  animation: waveMove 9s linear infinite reverse;
}
.wave-front {
  animation: waveMove 6s linear infinite;
}
@keyframes waveMove {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-30px) scaleY(1.02); }
  100% { transform: translateX(0) scaleY(1); }
}

/* ====== Hero Mobile Optimization (콘텐츠 자연 흐름) ====== */
@media (max-width: 900px) {
  .hero {
    /* min-height 고정 대신 auto 허용 — 콘텐츠가 많으면 자연스럽게 커짐 */
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 60px; /* 하단 여유 — 배경/웨이브와 분리 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }
  .hero-wrap {
    position: relative;
    z-index: 10;
    max-width: 100%;
    padding: 10px 22px 24px;
    text-align: center;
    flex: 0 0 auto;
  }
  .hero-eyebrow { justify-content: center; font-size: 11px; margin-bottom: 20px; }
  .hero-title {
    font-size: clamp(34px, 8.5vw, 58px);
    margin-bottom: 18px;
    line-height: 1.15;
  }
  .hero-sub-break { display: block; height: 4px; }
  .hero-sub {
    margin: 0 auto 24px;
    max-width: 460px;
    font-size: 14px;
  }
  .hero-actions { justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
  .hero-actions .btn { min-width: 160px; justify-content: center; }
  /* Products teaser 1 col on tablet too */
  .product-grid.teaser { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

  .hero-waves {
    position: relative;
    height: 80px;
    margin-top: -20px;
    z-index: 0;
    flex-shrink: 0;
  }
  .scroll-down { display: none; }
}

@media (max-width: 560px) {
  .hero-wrap { padding: 10px 18px 20px; }
  .hero-title { font-size: clamp(30px, 9.5vw, 48px); }
  .hero-sub { font-size: 13.5px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 22px; font-size: 14px; }
  .hero-waves { height: 50px; }
  .hero { padding-bottom: 50px; }

  /* KPI 2→1 column on tiny screens */
  .kpi-grid { grid-template-columns: 1fr; gap: 0; }
  .kpi-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 30px 16px; }
  .kpi-item:last-child { border-bottom: none; }
  .kpi-item b { font-size: clamp(48px, 16vw, 80px); }
  .kpi-h2 { font-size: clamp(24px, 7vw, 34px); padding: 0 10px; }

  /* Contact title scale down on mobile */
  .contact-title { font-size: clamp(32px, 9vw, 52px); line-height: 1.2; }
  .contact-desc { font-size: 14px; }
  .contact-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; gap: 10px; }
  .contact-actions .btn { width: 100%; justify-content: center; }

  /* Products teaser & grid */
  .product-grid.teaser { max-width: 100%; }
  .product { padding: 28px 22px; }
  .product h3 { font-size: 19px; }
  .products-more { margin-top: 36px; }
  .btn-see-more { width: 100%; max-width: 320px; justify-content: center; }
  .more-hint { font-size: 12px; padding: 0 16px; }

  /* News card width full */
  .news-card { width: 100%; }
  .news-head { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* About lead tighter */
  .about-lead { font-size: 15px; }
  .about-points li { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; }
  .about-points h4 { font-size: 16px; }
  .about-points p { font-size: 14px; }

  /* Sub-label lighter on tiny screens */
  .sub-label { font-size: 10.5px; letter-spacing: 0.22em; }
  .h2 { font-size: clamp(24px, 7vw, 36px); }
}

@media (max-width: 380px) {
  .hero-title { font-size: clamp(26px, 10vw, 42px); }
  .hero-wrap { padding: 8px 16px 18px; }
  .hero { padding-bottom: 44px; }
}

/* 가로 모바일(landscape phone) / 매우 낮은 창: 세로 압축 방지 + 스크롤 허용 */
@media (max-width: 900px) and (max-height: 520px) {
  .hero {
    min-height: 520px; /* 고정 플로어 — 콘텐츠 뭉개짐 방지, 자연스러운 스크롤 */
    padding-top: 76px;
  }
  .hero-wrap { padding: 14px 22px 20px; }
  .hero-title { font-size: clamp(28px, 5.5vw, 42px); margin-bottom: 14px; }
  .hero-sub { margin-bottom: 18px; font-size: 13px; }
  .hero-actions { gap: 8px; }
  .hero-waves { height: 50px; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s 0.2s both;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  position: relative;
  padding-bottom: 0.08em;
}
.hero-title .line i {
  color: var(--gold);
  font-style: italic;
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  padding-right: 0.06em;
  display: inline-block;
}
.hero-title .line {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTitleUp 1s var(--easing) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }
@keyframes heroTitleUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 1s 1.2s both;
}
.hero-sub b { color: var(--gold); font-weight: 700; }
.hero-sub-break { display: inline; }
@media (max-width: 640px) {
  .hero-sub-break { display: block; height: 4px; }
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s 1.4s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* hero-stats removed (moved to KPI section) */
.scroll-down {
  position: absolute; bottom: clamp(18px, 3vh, 36px); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  padding: 8px 14px;
  z-index: 5; /* 콘텐츠 위로 고정 — 텍스트/ark에 가려지지 않도록 */
  pointer-events: auto;
}
.scroll-down:hover { color: var(--gold); }
.scroll-down span {
  width: 1px; height: 40px; background: rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.scroll-down span::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0;
  height: 100%; background: var(--gold);
  animation: scrollDown 2.2s linear infinite;
}
@keyframes scrollDown { to { top: 100%; } }

/* ====== Common section bits ====== */
.sub-label {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 18px;
}
.sub-label::before {
  content: ''; display: inline-block;
  width: 0; height: 2px; background: var(--gold);
  margin-right: 0;
  flex-shrink: 0;
  transition: width 0.7s 0.15s var(--easing), margin-right 0.7s 0.15s var(--easing);
}
.sub-label.drawn::before { width: 28px; margin-right: 14px; }
.sub-label.center {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.sub-label.center::before { margin-right: 0 !important; }
.sub-label.center.drawn::before { width: 36px; }
.sub-label em { display: none; } /* legacy HTML safety */
.h2 {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding-bottom: 0.22em;
}
.h2 em {
  color: var(--gold);
  font-family: 'Noto Serif KR', serif;
  font-style: italic;
  font-weight: 700;
  padding: 0 0.04em 0.1em;
  display: inline-block;
  line-height: 1.2;
}
.sec-head { margin-bottom: 60px; }
.sec-head.center { text-align: center; }
.sec-head.center .sub-label { justify-content: center; }
.sec-desc {
  color: var(--muted);
  font-size: 16px;
  margin-top: 20px;
  max-width: 640px;
}
.sec-head.center .sec-desc { margin-left: auto; margin-right: auto; }

/* ====== About ====== */
.about { padding: var(--sec-y) 0 var(--sec-y-sm); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: start;
}
.about-lead {
  font-size: 17px; line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 40px;
}
.about-lead b { color: var(--ink); font-weight: 700; }
.company-desc {
  line-height: 1.75 !important;
}
.about-points { display: grid; gap: 24px; }
.about-points li {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.about-points li:last-child { border-bottom: 1px solid var(--line); }
.about-points .num {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 14px;
  color: var(--gold-ink);
  letter-spacing: 0.1em;
}
.about-points h4 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.4;
}
.about-points p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ====== Companies ====== */
.companies {
  padding: var(--sec-y) 0;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}
.companies::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0,30 C240,10 480,50 720,30 C960,10 1200,50 1440,30 L1440,0 L0,0 Z' fill='%23ffffff'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
}
.companies::after {
  content: '';
  position: absolute;
  top: 15%; right: -5%;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(212,165,116,0.25);
  pointer-events: none;
}
.company-list { display: grid; gap: 28px; margin-top: 0; }
.company {
  --accent: var(--ink);
  display: grid;
  grid-template-columns: 60px 240px 1fr;
  gap: 40px 56px;
  align-items: center;
  padding: 56px 48px;
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: all 0.5s var(--easing);
}
.company:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.company-lab { --accent: var(--lab); }
.company-cc { --accent: var(--cc); }
.company-db { --accent: var(--db); }
.company-number {
  font-family: 'Inter', sans-serif;
  font-size: 72px; font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.25;
  letter-spacing: -0.05em;
}
.company-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  max-width: 220px;
}
.visual-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.15;
  filter: blur(30px);
}
.visual-icon {
  width: 80%; height: 80%;
  position: relative; z-index: 1;
  animation: spin 30s linear infinite;
}
.company-cc .visual-icon { animation-duration: 20s; animation-direction: reverse; }
.company-db .visual-icon { animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.company-body { min-width: 0; }
.company-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 20px;
}
.company-name {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
  padding-bottom: 0.1em;
}
.company-name em {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}
.company-tagline {
  font-family: 'Noto Serif KR', 'Pretendard', serif;
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  color: var(--brand, var(--gold));
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
  line-height: 1.45;
  max-width: 520px;
  word-break: keep-all;
}
.company-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 620px;
}
.company-items {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.company-items li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0 6px 18px;
  position: relative;
}
.company-items li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 8px; height: 2px; background: var(--accent);
}
.company-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.company-link span { transition: transform 0.3s; }
.company-link:hover span { transform: translateX(6px); }

/* ====== Products ====== */
.products {
  padding: var(--sec-y) 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.products::before {
  content: '';
  position: absolute;
  top: 20%; left: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.08), transparent 60%);
  pointer-events: none;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.product {
  --brand: var(--ink);
  position: relative;
  display: block;
  padding: 36px 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--easing);
  color: var(--ink);
  opacity: 0;
  transform: translateY(30px);
  animation: productReveal 0.7s var(--easing) var(--delay, 0ms) forwards;
}
@keyframes productReveal {
  to { opacity: 1; transform: translateY(0); }
}
.product[data-cat="lab"] { --brand: var(--lab); }
.product[data-cat="cc"] { --brand: var(--cc); }
.product[data-cat="db"] { --brand: var(--db); }
.product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--easing);
}
.product:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--brand) 35%, transparent);
}
.product:hover::before { opacity: 0.06; }
.product:hover::after { transform: scaleX(1); }
.product-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  margin-bottom: 24px;
  transition: all 0.4s var(--easing);
}
.product-icon svg { width: 32px; height: 32px; }
.product:hover .product-icon {
  background: var(--brand);
  color: #fff;
  transform: scale(1.08) rotate(-5deg);
}
.product-num {
  position: absolute;
  top: 28px; right: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0.5;
}
.product h3 {
  font-size: 21px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}
.product p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  min-height: 2.6em;
}
.product-brand {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  padding: 5px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.85;
}

/* Teaser variant */
.product-grid.teaser {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1140px;
  margin: 0 auto;
}
.products-more {
  margin-top: 48px;
  text-align: center;
}
.btn-see-more {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--easing);
  position: relative;
  overflow: hidden;
}
.btn-see-more em {
  font-style: normal;
  font-size: 18px;
  transition: transform 0.3s;
}
.btn-see-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), #f4d9a8, var(--gold));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.35s;
}
.btn-see-more:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(212,165,116,0.5);
}
.btn-see-more:hover::before { opacity: 1; }
.btn-see-more:hover em { transform: translateX(6px); }
.btn-see-more > * { position: relative; z-index: 1; }
.more-hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.teaser { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid.teaser { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
  .products { padding: var(--sec-y-sm) 0; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product { padding: 28px 22px 24px; }
  .product h3 { font-size: 19px; }
  .btn-see-more { padding: 15px 28px; font-size: 14px; }
}

/* ====== KPI ====== */
.kpi { padding: var(--sec-y-sm) 0; background: var(--bg-dark); color: #fff; }
.kpi-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-ink);
  text-align: center;
  margin-bottom: 50px;
}
.kpi .sub-label {
  color: var(--gold);
  margin-bottom: 20px;
}
.kpi-h2 {
  color: #fff;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 16px;
  padding-bottom: 0.1em;
}
.kpi-h2 em { color: var(--gold); }
.kpi-lead {
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 70px;
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.kpi-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.kpi-item:last-child { border-right: none; }
.kpi-num {
  display: inline-flex; align-items: baseline;
  gap: 2px;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.kpi-item b {
  font-family: 'Fraunces', 'Noto Serif KR', serif;
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
  line-height: 1;
}
.kpi-item .kpi-num em {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--gold);
  font-style: normal;
}
.kpi-item p {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  font-family: 'Pretendard', sans-serif;
}

/* ====== Services Roadmap ====== */
.services { padding: var(--sec-y) 0; }
.roadmap { position: relative; padding: 40px 0 20px; }
.roadmap-line {
  position: absolute; left: 0; right: 0; top: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--gold) 50%, var(--line) 100%);
}
.roadmap-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  position: relative; z-index: 1;
}
.step {
  background: #fff;
  padding: 36px 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s;
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -16px rgba(212,165,116,0.3);
}
.step-dot {
  position: absolute; top: -8px; left: 30px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--gold-soft);
}
.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 800;
  color: var(--gold-ink);
  letter-spacing: 0.2em;
  display: inline-block;
  margin-bottom: 12px;
}
.step h4 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ====== Clients ====== */
.clients { padding: var(--sec-y) 0; background: var(--soft); }
.client-filters {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.cf {
  padding: 10px 22px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: all 0.2s;
}
.cf:hover { color: var(--ink); border-color: var(--ink); }
.cf.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.client-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.client-item {
  --cat-color: var(--muted);
  aspect-ratio: 3/2;
  background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  transition: all 0.45s var(--easing);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.client-item[data-cat="medical"] { --cat-color: var(--lab); }
.client-item[data-cat="legal"] { --cat-color: var(--ink); }
.client-item[data-cat="finance"] { --cat-color: var(--db); }
.client-item[data-cat="commerce"] { --cat-color: var(--cc); }

.client-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--cat-color), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s;
  mix-blend-mode: multiply;
}
.client-item::after {
  content: '';
  position: absolute;
  bottom: 14px; left: 50%;
  width: 32px; height: 2px;
  background: var(--cat-color);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.4s var(--easing);
}
.client-item:hover {
  color: var(--ink);
  border-color: var(--cat-color);
  transform: translateY(-8px);
  box-shadow: 0 22px 44px -16px color-mix(in srgb, var(--cat-color) 35%, transparent);
}
.client-item:hover::before { opacity: 0.12; }
.client-item:hover::after { transform: translateX(-50%) scaleX(1); }
.client-item.hide { display: none; }

/* ====== News ====== */
.news-sec { padding: var(--sec-y) 0; }
.news-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 50px; gap: 30px;
}
.news-arrows { display: flex; gap: 10px; align-items: center; }
.news-all {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--gold, #D4A574);
  color: #0B1A33;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.news-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212,165,116,0.32);
}
.news-card[data-article-url] { cursor: pointer; }
.news-arrows button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: all 0.2s;
}
.news-arrows button:hover {
  background: var(--ink); color: #fff;
}
.news-swiper { overflow: visible; }
.news-card {
  width: 340px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.4s var(--easing);
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -16px rgba(11,26,51,0.18);
}
.news-card .thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, #1a2947, #0B1A33);
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 18px;
  overflow: hidden;
}
.news-card .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.thumb-art {
  position: absolute;
  right: 0; bottom: 0;
  width: 78%; height: 78%;
  opacity: 0.92;
  transition: transform 0.6s var(--easing), opacity 0.4s;
  z-index: 0;
}
.news-card:hover .thumb-art {
  transform: scale(1.06) translate(-2%, -3%);
  opacity: 1;
}
.news-card .th-1 { background: linear-gradient(135deg, var(--lab), var(--lab-2)); }
.news-card .th-2 { background: linear-gradient(135deg, var(--cc), var(--cc-2)); }
.news-card .th-3 { background: linear-gradient(135deg, var(--db), var(--db-2)); }
.news-card .th-4 { background: linear-gradient(135deg, var(--gold), #a5794f); }
.news-card .th-5 { background: linear-gradient(135deg, var(--lab-2), #0B1A33); }
.news-card .th-6 { background: linear-gradient(135deg, var(--cc-2), #7a1b16); }
.tag {
  position: relative; z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.22em;
  color: #fff;
  padding: 6px 12px;
  background: rgba(0,0,0,0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.news-card .info { padding: 24px 26px 28px; }
.news-card h4 {
  font-size: 16px; font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: calc(1.5em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
  padding-right: 4px;
}
.news-card .meta {
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.news-card .meta span:first-child { color: var(--gold); font-weight: 700; }

/* ====== Contact ====== */
.contact {
  padding: var(--sec-y) 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212,165,116,0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-dark-2), var(--bg-dark));
  color: #fff; text-align: center;
}
.contact-wrap { max-width: 820px; margin: 0 auto; }
.contact-title {
  font-size: clamp(40px, 7vw, 108px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 24px 0 28px;
  padding-bottom: 0.15em;
}
.contact-title em {
  color: var(--gold);
  font-family: 'Noto Serif KR', serif;
  font-style: italic;
  padding: 0 0.04em 0.08em;
  display: inline-block;
  line-height: 1.2;
}
.contact-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 44px;
}
.contact-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ====== Footer ====== */
#footer {
  background: #060d1c;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 30px;
}
.foot-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold);
  margin-bottom: 20px;
}
.foot-logo > div { display: flex; flex-direction: column; gap: 3px; }
.foot-logo b {
  font-family: 'Inter', sans-serif;
  font-weight: 900; font-size: 18px;
  letter-spacing: 0.15em;
  color: #fff;
}
.foot-logo span {
  font-family: 'Inter', sans-serif;
  font-size: 9px; letter-spacing: 0.28em;
  color: rgba(255,255,255,0.5);
}
.foot-slogan {
  font-family: 'Noto Serif KR', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.foot-slogan-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 30px;
  text-transform: uppercase;
}
.foot-sns { display: flex; gap: 10px; }
.foot-sns .sns {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--easing);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.foot-sns .sns svg { width: 20px; height: 20px; }
.foot-sns .sns:hover {
  transform: translateY(-3px);
  border-color: transparent;
}
/* Brand-specific hover colors */
.sns-ig:hover {
  color: #fff;
  background: linear-gradient(45deg, #f58529, #dd2a7b 40%, #8134af 70%, #515bd4);
  box-shadow: 0 10px 20px -6px rgba(221,42,123,0.5);
}
.sns-yt:hover {
  color: #fff;
  background: #ff0000;
  box-shadow: 0 10px 20px -6px rgba(255,0,0,0.5);
}
.sns-blog:hover {
  color: #fff;
  background: #03C75A;
  box-shadow: 0 10px 20px -6px rgba(3,199,90,0.5);
}
.sns-in:hover {
  color: #fff;
  background: #0A66C2;
  box-shadow: 0 10px 20px -6px rgba(10,102,194,0.5);
}
.foot-companies h5,
.foot-info h5 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 24px;
}
.foot-companies ul li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.foot-companies ul li:last-child { border-bottom: none; }
.ci {
  width: 8px; height: 40px; border-radius: 4px;
  flex-shrink: 0;
}
.ci-lab { background: var(--lab); }
.ci-cc { background: var(--cc); }
.ci-db { background: var(--db); }
.foot-companies li > div { display: flex; flex-direction: column; gap: 2px; }
.foot-companies b { color: #fff; font-size: 15px; font-weight: 700; }
.foot-companies em {
  font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.foot-info ul { display: grid; gap: 14px; }
.foot-info li {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 13px;
}
.foot-info b {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}
.foot-info span { color: rgba(255,255,255,0.8); }
.foot-btm {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: #fff; }
.copyright {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
}

/* ====== Top Button ====== */
.btn-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--bg-dark); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  z-index: 50;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}
.btn-top.show { opacity: 1; visibility: visible; }
.btn-top:hover { background: var(--gold); color: var(--bg-dark); }

/* ====== Floating CTA (bottom-right cluster) ====== */
.float-cta {
  position: fixed;
  right: 18px; top: 50%; bottom: auto;
  transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  animation: floatCtaIn 0.7s 1s var(--easing) backwards;
}
@media (min-width: 1500px) {
  .float-cta { right: 24px; }
}
@keyframes floatCtaIn {
  from { opacity: 0; transform: translate(30px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes floatCtaInMobile {
  from { opacity: 0; transform: translate(30px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
.fc {
  position: relative;
  width: 58px; height: 58px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  border-radius: 14px;
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.22);
  transition: all 0.3s var(--easing);
  overflow: hidden;
}
.fc::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 40%);
  pointer-events: none;
}
.fc:hover {
  transform: translateX(-4px) scale(1.05);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.3);
}
.fc-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.fc-icon svg { width: 100%; height: 100%; }
.fc-label {
  font-size: 9px; font-weight: 700;
  line-height: 1.15;
}

/* Brand colors */
.fc-kakao { background: #FEE500; color: #3C1E1E; }
.fc-kakao .fc-label { color: #3C1E1E; }
.fc-naver { background: #03C75A; color: #fff; }
.fc-blog { background: #03C75A; color: #fff; }
.fc-blog .fc-icon { background: #fff; border-radius: 8px; padding: 4px; }
.fc-phone {
  background: linear-gradient(135deg, #0B1A33, #1a2947);
  color: #fff;
}
.fc-phone .fc-icon { color: var(--gold); }

/* Mobile — 우측 세로 스택(PC와 동일 구조, 축소) */
@media (max-width: 768px) {
  .float-cta {
    right: 8px; top: 50%; bottom: auto; left: auto;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 7px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: floatCtaInMobile 0.5s 0.6s var(--easing) backwards;
  }
  .fc {
    flex: initial;
    max-width: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 0;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.35);
  }
  .fc-icon { width: 20px; height: 20px; margin: 0; }
  .fc-label { display: none; }
  .fc:hover { transform: translateX(-2px) scale(1.04); }
  .fc-kakao { animation: none; }

  body { padding-bottom: 0; }
  .btn-top { bottom: 18px; right: 12px; width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .float-cta { right: 6px; gap: 6px; }
  .fc { width: 38px; height: 38px; border-radius: 10px; }
  .fc-icon { width: 18px; height: 18px; }
}
@media (max-height: 600px) and (max-width: 768px) {
  /* 짧은 모바일 가로보기: 3개만 노출 */
  .float-cta .fc:nth-child(3) { display: none; }
}

/* ====== Bottom Sticky Inquiry Banner — 진입 시점부터 고정 노출 ====== */
.bottom-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  transform: translateY(0);
  background: linear-gradient(180deg, rgba(11,26,51,0.98), #0B1A33 80%);
  border-top: 1px solid rgba(212,165,116,0.35);
  box-shadow: 0 -12px 40px -10px rgba(0,0,0,0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: bbSlideIn 0.6s 0.4s cubic-bezier(.2,.7,.3,1) backwards;
}
@keyframes bbSlideIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.bottom-banner[hidden] { display: block; }
.bottom-banner.visible { transform: translateY(0); }
.bottom-banner.dismissed { display: none !important; }

.bb-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 56px 14px 28px;
  display: flex; align-items: center; gap: 28px;
  position: relative;
  min-height: 68px;
}
.bb-pulse {
  position: absolute; left: 20px; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(212,165,116,0.6);
  animation: bbPulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes bbPulse {
  0% { box-shadow: 0 0 0 0 rgba(212,165,116,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(212,165,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,165,116,0); }
}

.bb-content {
  display: flex; align-items: center; gap: 16px;
  flex: 1 1 auto;
  padding-left: 18px; /* space for pulse dot */
}
.bb-badge {
  background: var(--gold);
  color: var(--bg-dark);
  padding: 5px 13px;
  border-radius: 999px;
  font-family: 'Inter', 'Pretendard', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.bb-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.bb-text b {
  font-size: 15px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}
.bb-text .bb-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.bb-actions {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.bb-tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-family: 'Inter', 'Pretendard', sans-serif;
  font-size: 14.5px; font-weight: 700;
  text-decoration: none;
  padding: 8px 4px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.bb-tel:hover { color: #F1C78F; }
.bb-tel svg { color: var(--gold); }

.bb-cta {
  padding: 12px 22px !important;
  font-size: 14px !important;
  min-height: 44px;
}

.bb-close {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.bb-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* 배너 노출 시 body 하단 여백 + btn-top 밀어올리기(겹침 방지) */
body.bb-active { padding-bottom: 72px; }
body.bb-active .btn-top { bottom: 92px; }
@media (max-width: 768px) {
  body.bb-active { padding-bottom: 58px; }
  body.bb-active .btn-top { bottom: 76px; }
}

/* 반응형: 태블릿 이하 — 구조 재정렬 */
@media (max-width: 1024px) {
  .bb-inner { padding: 12px 48px 12px 22px; gap: 18px; }
  .bb-content { gap: 12px; padding-left: 16px; }
  .bb-text b { font-size: 14px; }
  .bb-text .bb-sub { font-size: 11.5px; }
  .bb-tel span { display: none; }
  .bb-tel { padding: 10px; border-radius: 10px; background: rgba(212,165,116,0.1); }
}

/* 모바일 — 가로 폭 꽉 채우는 컴팩트 배너 (배지 + CTA + 닫기) */
@media (max-width: 768px) {
  .bottom-banner {
    border-top-width: 1px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bb-inner {
    max-width: 100%;
    width: 100%;
    padding: 9px 40px 9px 14px;
    gap: 8px;
    min-height: 54px;
    align-items: center;
    box-sizing: border-box;
  }
  .bb-pulse { left: 12px; width: 6px; height: 6px; }
  .bb-content {
    padding-left: 12px;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
  }
  .bb-content .bb-text { display: none; }
  .bb-badge {
    padding: 4px 8px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .bb-tel { display: none; }
  .bb-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }
  .bb-cta {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding: 10px 14px !important;
    font-size: 13px !important;
    min-height: 40px;
    justify-content: center;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
  }
  .bb-cta span { display: inline !important; margin-left: 4px; }
  .bb-close {
    right: 8px;
    width: 28px; height: 28px;
  }
  .bb-close svg { width: 14px; height: 14px; }
}
@media (max-width: 480px) {
  .bb-inner { padding: 8px 38px 8px 12px; gap: 6px; min-height: 52px; }
  .bb-pulse { left: 10px; }
  .bb-content { padding-left: 10px; }
  .bb-badge { padding: 3px 7px; font-size: 9px; }
  .bb-cta { padding: 9px 12px !important; font-size: 12.5px !important; min-height: 38px; }
}
@media (max-width: 380px) {
  /* 초소형: 배지·펄스 숨기고 CTA가 가로 전체 차지 */
  .bb-pulse { display: none; }
  .bb-content { display: none; }
  .bb-inner { padding: 8px 38px 8px 14px; }
  .bb-cta { font-size: 13px !important; }
}

/* 초과 높이 창/prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bottom-banner { transition: none; }
  .bb-pulse { animation: none; }
}

/* ====== Reveal (enhanced) ====== */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Split-text reveal (per-word) */
.reveal-split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(4deg);
  transition: opacity 0.7s var(--easing), transform 0.8s var(--easing);
}
.reveal-split.visible .word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.19s; }
.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.stagger > *:nth-child(5) { transition-delay: 0.33s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* Parallax float on hover cards */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--easing);
}

/* Marquee (for section titles) */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 30s linear infinite;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 72px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--gold);
  -webkit-text-stroke: 0;
  font-size: 0.5em;
  margin-left: 40px;
}

/* Parallax gradient sweep */
@keyframes gradientDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.gradient-drift {
  background: linear-gradient(90deg, var(--gold), #fff 30%, var(--gold) 60%, #fff 90%, var(--gold));
  background-size: 200% 200%;
  animation: gradientDrift 8s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Magnetic hover effect (for buttons) */
.btn, .company, .product, .news-card {
  will-change: transform;
}

/* Button ripple */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.4), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* (legacy sub-label rules consolidated earlier — keep position:relative only) */
.sub-label { position: relative; }

/* Hero text mask shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.hero-title i {
  background: linear-gradient(90deg, var(--gold) 0%, #f4e6ce 30%, var(--gold) 60%, #c89461 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

/* Sparkle particles on hero */
.sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 8px var(--gold);
}
.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  filter: blur(3px);
  opacity: 0.6;
}
@keyframes sparkleFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20% { opacity: 1; transform: translate(var(--sx, 10px), var(--sy, -20px)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--sx, 10px) * 3), calc(var(--sy, -20px) * 3)) scale(0.2); }
}
.sparkle.animate {
  animation: sparkleFloat 2.4s ease-out forwards;
}

/* Smooth scroll cursor indicator (top progress bar) */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: var(--progress, 0%); height: 3px;
  max-width: 100vw;
  background: linear-gradient(90deg, #B5874F, #E8BE8B 40%, #F4D9A8 70%, #E8BE8B);
  z-index: 101;
  transition: width 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212,165,116,0.5), 0 0 20px rgba(212,165,116,0.25);
  overflow: visible;
}
.scroll-progress::after {
  content: '';
  position: absolute; right: 2px; top: 50%;
  width: 6px; height: 6px;
  background: #F4D9A8;
  border-radius: 50%;
  transform: translateY(-50%); /* 가로 translate 제거 — 뷰포트 우측 overflow 방지 */
  box-shadow: 0 0 10px rgba(212,165,116,0.7);
  opacity: 0.9;
}

/* Company card hover enhancement */
.company {
  transition: transform 0.5s var(--easing), border-color 0.5s var(--easing), box-shadow 0.5s var(--easing);
}
.company .company-visual svg {
  transition: transform 0.6s var(--easing);
}
.company:hover .company-visual svg {
  transform: scale(1.08) rotate(8deg);
}

/* Step card enhanced hover */
.step {
  transition: all 0.4s var(--easing);
  cursor: default;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.step:hover::before { opacity: 0.08; }
.step:hover .step-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--gold);
}
.step-dot { transition: all 0.3s var(--easing); }

/* Navigation link drawn underline */
.gnb a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--easing);
}
.gnb a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* KPI pulse */
@keyframes kpiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.kpi-item.reveal.visible .kpi-num { animation: kpiPulse 2s 0.8s ease-in-out; }

/* Floating CTA pulse */
@keyframes fcPulse {
  0%, 100% { box-shadow: 0 8px 20px -6px rgba(0,0,0,0.2), 0 0 0 0 currentColor; }
  50% { box-shadow: 0 8px 20px -6px rgba(0,0,0,0.2), 0 0 0 8px transparent; }
}
.fc-kakao { animation: fcPulse 2.5s ease-in-out infinite; color: rgba(254,229,0,0.4); }

/* Ark water reflection shimmer */
@keyframes waveShimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}
.hero-waves .wave-front { animation: waveMove 6s linear infinite, waveShimmer 3s ease-in-out infinite; }

/* Scroll-linked parallax background */
.hero-bg, .companies::after {
  will-change: transform;
}

/* Keep prefers-reduced-motion */

/* ====== Responsive ====== */
@media (max-width: 1100px) {
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .company { grid-template-columns: 60px 180px 1fr; gap: 28px 40px; padding: 44px 32px; }
  /* Roadmap: horizontal → vertical stack with left-side line */
  .roadmap { padding-left: 32px; position: relative; }
  .roadmap-line {
    display: block;
    left: 7px; right: auto; top: 0; bottom: 0;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--line) 0%, var(--gold) 50%, var(--line) 100%);
  }
  .roadmap-steps { grid-template-columns: 1fr; gap: 20px; }
  .step { padding: 28px 32px; }
  .step-dot { top: 50%; left: -32px; transform: translateY(-50%); }
  .step:hover .step-dot { transform: translateY(-50%) scale(1.3); }
}
@media (max-width: 900px) {
  .gnb { display: none; }
  .ham { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .company {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 28px;
    text-align: center;
  }
  .company-number {
    font-size: 42px;
    position: absolute;
    top: 22px; right: 28px;
  }
  .company-visual { max-width: 160px; margin: 0 auto; }
  .company-items { grid-template-columns: 1fr; text-align: left; }
  .company-link { margin: 0 auto; }
  .company-body > * { max-width: 100%; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .kpi-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 36px 18px; }
  .kpi-item:nth-child(2n) { border-right: none; }
  .kpi-item b { font-size: clamp(48px, 12vw, 88px); }

  .client-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .client-item { font-size: 15px; }

  .foot-top { grid-template-columns: 1fr; gap: 40px; }
  .foot-btm { flex-direction: column; gap: 14px; text-align: center; }
  .news-head { flex-direction: column; align-items: flex-start; }
  .about, .companies, .kpi, .services, .clients, .news-sec, .contact, .products {
    padding: var(--sec-y-sm) 0;
  }
  .container, .hero-wrap, .header-inner { padding-left: 22px; padding-right: 22px; }
  .logo-text em { display: none; }

  /* Contact title scaled down for tablet */
  .contact-title { font-size: clamp(36px, 7vw, 64px); }
}
@media (max-width: 560px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}

/* ====== Final Review Polish — v2.1 ====== */

/* Hero 한국어 리드 + 마이크로 신뢰 카피 */
.hero-ko-lead {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 14px;
  max-width: 720px;
  letter-spacing: -0.01em;
  opacity: 0; animation: fadeUp 1s 0.9s both;
}
.hero-ko-lead b {
  color: var(--gold);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 72%, rgba(212,165,116,0.2) 72%);
  padding: 0 2px;
}
.hero-micro {
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  margin: 22px auto 0;
  letter-spacing: 0.02em;
  opacity: 0; animation: fadeUp 1s 1.6s both;
}
.hero-micro span { color: var(--gold); font-weight: 700; margin-right: 2px; }
@media (max-width: 560px) {
  .hero-ko-lead { font-size: 15px; margin-bottom: 12px; }
  .hero-micro { font-size: 12px; margin-top: 16px; }
}

/* KPI footnote */
.kpi-footnote {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.48);
  margin: 32px 0 0;
  letter-spacing: 0.01em;
  font-family: 'Pretendard', sans-serif;
  line-height: 1.6;
  padding: 0 20px;
}
.kpi-footnote span { color: var(--gold); font-weight: 700; margin-right: 3px; }

/* 폼 선택 힌트 · privacy 인라인 요약 */
.optional-hint {
  color: var(--muted, #8a94a8);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
  letter-spacing: 0;
}
.privacy-hint {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted, #7a8497);
  margin-top: 4px;
  line-height: 1.55;
}

/* Contact SLA 리스트 */
.contact-sla {
  list-style: none; padding: 0;
  margin: 22px 0 30px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  font-size: 14px; color: rgba(255,255,255,0.78);
}
.contact-sla li { display: inline-flex; align-items: center; gap: 8px; }
.contact-sla span { color: var(--gold); font-weight: 800; }

/* Footer 사업자정보 */
.foot-biz {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-biz .biz-info {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  font-family: 'Pretendard', sans-serif;
}
.foot-biz .biz-info li b {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  margin-right: 4px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.foot-biz .biz-info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .foot-biz .biz-info { flex-direction: column; gap: 6px; font-size: 12px; }
}

/* Language switch — 다크·라이트 헤더 모두에서 명확히 보이도록 필 배경 */
.lang a {
  display: inline-block;
  padding: 7px 13px;
  min-width: 36px;
  text-align: center;
  color: var(--gold);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
  line-height: 1;
}
.lang a:hover { background: rgba(212,165,116,0.2); color: var(--gold); }
.lang li.active a {
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(212,165,116,0.5);
}

/* 헤더 스크롤 상태(라이트 배경) — 필 배경 어둡게 전환 */
#header.scrolled .lang,
#header.always-scrolled .lang {
  background: rgba(11,26,51,0.05);
  border-color: rgba(11,26,51,0.15);
}
#header.scrolled .lang a,
#header.always-scrolled .lang a {
  color: var(--ink);
}
#header.scrolled .lang a:hover,
#header.always-scrolled .lang a:hover {
  background: rgba(11,26,51,0.08);
  color: var(--gold);
}
#header.scrolled .lang li.active a,
#header.always-scrolled .lang li.active a {
  background: var(--ink);
  color: var(--gold);
}

/* 모바일 폰트만 살짝 키움 */
@media (max-width: 900px) {
  .lang { font-size: 11.5px; }
  .lang a { padding: 7px 11px; min-width: 34px; }
}

/* ====== Language suggestion toast ====== */
.lang-toast {
  position: fixed;
  top: 86px; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 95;
  max-width: min(540px, calc(100vw - 32px));
  width: auto;
  background: linear-gradient(180deg, rgba(11,26,51,0.98), rgba(15,34,70,0.98));
  border: 1px solid rgba(212,165,116,0.35);
  border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.5);
  color: #fff;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1), opacity 0.3s;
  opacity: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lang-toast[hidden] { display: block; } /* animation override */
.lang-toast.visible { transform: translate(-50%, 0); opacity: 1; }
.lang-toast.dismissed { display: none !important; }

.lt-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 18px;
}
.lt-flag {
  font-size: 22px; line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212,165,116,0.3));
}
.lt-msg {
  margin: 0; flex: 1;
  font-family: 'Inter', 'Pretendard', sans-serif;
  line-height: 1.45;
  min-width: 0;
}
.lt-msg b {
  display: block;
  font-size: 14.5px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}
.lt-msg span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
.lt-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.lt-cta {
  background: var(--gold);
  color: var(--bg-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.lt-cta:hover {
  background: #E8BE8B;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -6px rgba(212,165,116,0.4);
}
.lt-close {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all 0.2s;
}
.lt-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

@media (max-width: 640px) {
  .lang-toast {
    top: 72px;
    left: 12px; right: 12px;
    max-width: none;
    transform: translateY(-140%);
  }
  .lang-toast.visible { transform: translateY(0); }
  .lt-inner { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .lt-flag { font-size: 20px; }
  .lt-msg { flex-basis: calc(100% - 40px); }
  .lt-msg b { font-size: 13.5px; }
  .lt-msg span { font-size: 11.5px; }
  .lt-actions { width: 100%; justify-content: flex-end; gap: 8px; margin-top: 4px; }
  .lt-cta { padding: 8px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-toast { transition: none; }
}

/* 햄버거: 44x44 터치 타깃 (WCAG 2.5.5) — 기존 display/color 유지, 히트 에어리어만 확장 */
@media (max-width: 900px) {
  .ham {
    width: 44px; height: 44px;
    padding: 12px 10px;
    align-items: center; justify-content: center;
    gap: 5px;
    background: transparent; border: none;
  }
  .ham span { width: 22px; height: 2px; }
}

/* ====== FAQ 섹션 ====== */
.faq { padding: var(--sec-y) 0; background: var(--soft, #f5f7fb); }
.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.faq-item[open] {
  border-color: var(--gold);
  box-shadow: 0 10px 30px -10px rgba(11,26,51,0.12);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #0B1A33);
  position: relative;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--easing);
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item div[itemprop="acceptedAnswer"] {
  padding: 0 28px 24px;
  animation: faqReveal 0.3s var(--easing);
}
.faq-item div[itemprop="acceptedAnswer"] p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted, #5a6a85);
  word-break: keep-all;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e9f0;
}
.faq-cta p {
  font-size: 15px;
  color: var(--muted, #5a6a85);
  margin: 0 0 16px;
}
@media (max-width: 640px) {
  .faq-item summary { font-size: 15px; padding: 18px 48px 18px 22px; }
  .faq-item summary::after { right: 18px; width: 10px; height: 10px; }
  .faq-item div[itemprop="acceptedAnswer"] { padding: 0 22px 20px; }
  .faq-item div[itemprop="acceptedAnswer"] p { font-size: 14px; }
  .faq-cta { padding: 24px 20px; }
}

/* ====== A11y: Skip Link ====== */
.skip-link {
  position: absolute;
  top: -40px; left: 16px;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  z-index: 10001;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ====== A11y: Focus Ring ====== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(212,165,116,0.2);
}
.btn:focus-visible { outline-offset: 4px; }

/* ====== Body scroll lock (intro) ====== */
body.no-scroll { overflow: hidden; }

/* ====== Mobile Nav ====== */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 26, 51, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 98;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.ham {
  position: relative;
  z-index: 101;
  transition: transform 0.3s;
}
.ham span {
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
body.nav-open .ham span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .ham span:nth-child(2) { opacity: 0; }
body.nav-open .ham span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .gnb {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh; height: 100dvh;
    background: var(--bg-dark);
    color: #fff;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--easing);
    z-index: 99;
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  body.nav-open .gnb { transform: translateX(0); }
  .gnb ul {
    flex-direction: column;
    gap: 0;
  }
  .gnb li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .gnb a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    letter-spacing: 0.1em;
    color: #fff;
  }
  .gnb a::after { display: none; }
  .gnb a:hover { color: var(--gold); }
}

/* ====== Article Modal ====== */
.article-modal {
  position: fixed; inset: 0;
  z-index: 10001;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.article-modal.open { opacity: 1; visibility: visible; }
.article-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 13, 28, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 0;
}
/* 풀스크린 매거진형 케이스 스터디 모달 */
.article-modal-panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  background: linear-gradient(180deg, #fff 0%, #faf6ec 100%);
  border-radius: 0;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 6vw, 80px) clamp(60px, 8vw, 100px);
  box-shadow: none;
  z-index: 1;
  transform: translateY(40px);
  transition: transform 0.5s var(--easing);
}
.article-modal-panel > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.article-modal-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), #f4d9a8, var(--gold));
}
.article-modal.open .article-modal-panel {
  transform: translateY(0);
}
.article-modal-close {
  position: fixed; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(11,26,51,0.9);
  color: #fff;
  border: 1px solid rgba(212,165,116,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.article-modal-close:hover { background: var(--gold); color: var(--ink); transform: rotate(90deg); }
.article-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.article-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.article-header time {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.article-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.article-content .lead {
  font-size: 17px; line-height: 1.8;
  color: var(--ink-2);
  padding: 20px 24px;
  background: var(--soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  margin-bottom: 32px;
}
.article-content h3 {
  font-size: 20px; font-weight: 800;
  color: var(--ink);
  margin: 32px 0 14px;
  padding-top: 10px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.article-content p {
  font-size: 16px; line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.article-content ul {
  margin: 16px 0 24px 0;
  padding-left: 0;
}
.article-content ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15.5px; line-height: 1.7;
  color: var(--ink-2);
}
.article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 10px; height: 2px; background: var(--gold);
}
.article-content b { color: var(--ink); font-weight: 700; }
.article-content blockquote {
  font-family: 'Noto Serif KR', serif;
  font-style: italic;
  font-size: 18px; line-height: 1.8;
  color: var(--ink);
  padding: 24px 28px;
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(212,165,116,0.08), transparent);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}
.article-cta {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  color: #fff;
  border-radius: 16px;
  text-align: center;
}
.article-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.article-cta .btn { display: inline-flex; }

.news-card { cursor: pointer; }
.news-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 700px) {
  .article-modal { padding: 20px 12px; }
  .article-modal-panel { padding: 50px 24px 40px; border-radius: 18px; }
  .article-modal-close { top: 12px; right: 12px; }
  .article-title { font-size: 22px; padding-bottom: 20px; margin-bottom: 20px; }
  .article-content .lead { padding: 16px 18px; font-size: 15px; }
}

/* ====== Inquiry Form Modal ====== */
.inquiry-modal {
  position: fixed; inset: 0;
  z-index: 10002;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.inquiry-modal.open { opacity: 1; visibility: visible; }
.inquiry-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 13, 28, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.inquiry-modal-panel {
  position: relative;
  width: 100%; max-width: 680px;
  background: #fff;
  border-radius: 24px;
  padding: 50px 50px 40px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s var(--easing);
}
.inquiry-modal.open .inquiry-modal-panel { transform: translateY(0) scale(1); }
.inquiry-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.inquiry-modal-close:hover { background: var(--ink); color: #fff; }
.inquiry-modal-header { margin-bottom: 28px; }
.inquiry-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
}
.inquiry-modal-header h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.inquiry-sub { color: var(--muted); font-size: 14px; }
.inquiry-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field label span { color: var(--cc); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute; opacity: 0;
  width: 0; height: 0;
}
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  background: #fff;
  transition: all 0.2s;
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.privacy-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
}
.privacy-check input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.privacy-check a { color: var(--ink); text-decoration: underline; }
.inquiry-submit { justify-content: center; margin-top: 8px; }
.inquiry-success {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
  color: var(--db-2);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(16,185,129,0.3);
}
@media (max-width: 680px) {
  .inquiry-modal { padding: 20px 12px; }
  .inquiry-modal-panel { padding: 40px 24px 30px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .inquiry-modal-header h2 { font-size: 22px; }
}

/* ====== Prefers Reduced Motion ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .visual-icon { animation: none !important; }
  .hero-stars { animation: none !important; }
}

/* ====== Payment Modal ====== */
.contact-pay-hint {
  margin: 24px auto 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
  text-align: center;
}
.contact-pay-hint .link-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}
.contact-pay-hint .link-btn:hover { color: #F1C78F; }

.payment-modal {
  position: fixed; inset: 0;
  z-index: 10002;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.payment-modal.open { opacity: 1; visibility: visible; }
.payment-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 13, 28, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 0;
}
.payment-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 22px;
  padding: 48px 36px 36px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--easing);
}
.payment-modal.open .payment-modal-panel { transform: translateY(0) scale(1); }
.payment-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #f3f5f9;
  color: var(--ink-2);
  transition: all 0.2s;
}
.payment-modal-close:hover { background: var(--ink); color: #fff; }
.payment-modal-header { margin-bottom: 24px; text-align: center; }
.payment-modal-header h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}
.payment-form { display: flex; flex-direction: column; gap: 18px; }

.pay-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pay-opt {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-opt input {
  position: absolute; opacity: 0; inset: 0;
  cursor: pointer;
}
.pay-opt div { pointer-events: none; }
.pay-opt b {
  display: block;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pay-opt em {
  display: block;
  font-style: normal;
  font-size: 13px; color: var(--muted);
  margin-top: 3px;
}
.pay-opt:has(input:checked),
.pay-opt.checked {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,165,116,0.06), transparent);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}
.pay-opt:has(input:checked) b,
.pay-opt.checked b { color: var(--gold-ink, #8a5e2e); }

.payment-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  background: #f8f9fc;
  border-radius: 12px;
  font-family: 'Inter', 'Pretendard', sans-serif;
}
.payment-summary span {
  font-size: 13px; color: var(--muted);
  font-weight: 600;
}
.payment-summary b {
  font-size: 20px; font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pay-secure {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 4px 0 0;
}
.pay-secure span { margin-right: 4px; }

@media (max-width: 640px) {
  .payment-modal { padding: 20px 12px; }
  .payment-modal-panel { padding: 40px 22px 28px; border-radius: 18px; }
  .pay-options { grid-template-columns: 1fr; }
  .payment-summary b { font-size: 18px; }
}

/* ====== ROI Calculator ====== */
.roi-sec {
  padding: clamp(60px, 9vw, 110px) 0;
  background: linear-gradient(180deg, #fefbf5 0%, #faf6ec 100%);
}
.roi-sec .sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.roi-sec .sec-head .h2 { color: var(--ink); }
.roi-sec .sec-head .sec-lead { color: var(--ink-2); font-size: 16px; margin-top: 16px; }

.roi-card {
  max-width: 1080px; margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(11,26,51,0.08);
  border-radius: 28px;
  padding: 48px 44px;
  box-shadow: 0 30px 80px -30px rgba(11,26,51,0.18);
}

.roi-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 32px;
}
.roi-field label {
  display: block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.roi-field label b {
  float: right; color: var(--gold); font-size: 18px; font-weight: 800;
  letter-spacing: 0; text-transform: none;
}
.roi-field select {
  width: 100%; padding: 14px 18px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink);
  border: 2px solid rgba(11,26,51,0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.roi-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,165,116,0.18); }
.roi-field input[type=range] {
  width: 100%; height: 8px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) var(--val,10%), rgba(11,26,51,0.1) var(--val,10%), rgba(11,26,51,0.1) 100%);
  border-radius: 999px; -webkit-appearance: none; appearance: none;
  cursor: pointer;
  margin-top: 6px;
}
.roi-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212,165,116,0.35);
}
.roi-field input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212,165,116,0.35);
}
.roi-range-marks {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 11px; color: var(--ink-2); font-weight: 600;
}

.roi-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  border-radius: 18px;
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 20px;
}
.roi-stat {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.roi-stat:last-child { border-right: none; }
.roi-stat-label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.roi-stat strong {
  display: block; font-size: clamp(26px, 4vw, 38px);
  font-weight: 800; color: var(--gold);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}
.roi-stat-unit {
  display: block; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.roi-stat-primary strong { color: #f4d9a8; font-size: clamp(28px, 4.5vw, 44px); }

.roi-note {
  font-size: 12px; color: var(--ink-2);
  text-align: center; margin: 0 0 28px;
}
.roi-cta {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .roi-card { padding: 28px 20px; border-radius: 20px; }
  .roi-form { grid-template-columns: 1fr; gap: 22px; }
  .roi-result { grid-template-columns: 1fr; padding: 22px 16px; }
  .roi-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
  .roi-stat:last-child { border-bottom: none; }
  .roi-cta .btn { width: 100%; justify-content: center; }
}

/* ====== Magazine Bento (Articles Featured) ====== */
.articles-featured { padding: 0 0 60px; }
.mag-bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  max-width: 1320px; margin: 0 auto;
}
.mag-feature {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 480px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none; color: #fff;
  background: var(--bg-dark);
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}
.mag-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(11,26,51,0.4); }
.mag-feature-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,165,116,0.28), transparent 50%),
    linear-gradient(135deg, var(--bg-dark) 0%, #0d2246 60%, #162a4f 100%);
}
.mag-feature-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,13,28,0.85) 100%);
}
.mag-feature-body {
  position: relative;
  padding: 44px 48px;
}
.mag-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--gold); margin-bottom: 14px;
}
.mag-feature h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700; line-height: 1.25;
  margin: 0 0 14px;
}
.mag-feature p {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin: 0 0 20px;
  max-width: 580px;
}
.mag-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
}
.mag-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); }

.mag-side { display: grid; gap: 18px; }
.mag-side-card {
  background: #fff;
  border: 1px solid rgba(11,26,51,0.06);
  border-radius: 18px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--easing), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; gap: 8px;
}
.mag-side-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 20px 40px -15px rgba(11,26,51,0.18); }
.mag-side-card .mag-tag {
  display: inline-block; align-self: flex-start;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--ink-2); padding: 4px 10px;
  border: 1px solid rgba(11,26,51,0.12); border-radius: 999px;
}
.mag-side-card h3 {
  font-size: 17px; font-weight: 700;
  line-height: 1.4; margin: 6px 0 4px;
  color: var(--ink);
}
.mag-side-card p {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.mag-side-card .mag-stat {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 13px; font-weight: 800;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
  .mag-bento { grid-template-columns: 1fr; gap: 14px; }
  .mag-feature { min-height: 380px; }
  .mag-feature-body { padding: 32px 24px; }
}

/* ====== 30s Auto-play Demo ====== */
.demo-sec {
  padding: clamp(70px, 10vw, 130px) 0;
  background: linear-gradient(180deg, #faf6ec 0%, #fefbf5 60%, #fff 100%);
}
.demo-sec .sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.demo-sec .sec-head .h2 { color: var(--ink); }
.demo-sec .sec-head .sec-lead { color: var(--ink-2); font-size: 16px; margin-top: 16px; }

.demo-frame { max-width: 1080px; margin: 0 auto; }
.demo-window {
  background: #1a2240;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 50px 100px -25px rgba(11,26,51,0.5), 0 30px 60px -15px rgba(11,26,51,0.4);
  border: 1px solid rgba(212,165,116,0.18);
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: #0d1a2f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-dot { width: 12px; height: 12px; border-radius: 50%; }
.demo-dot-r { background: #ff5f57; }
.demo-dot-y { background: #ffbd2e; }
.demo-dot-g { background: #28c940; }
.demo-url {
  flex: 1; text-align: center;
  font-family: 'Inter', monospace; font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.demo-canvas { width: 100%; height: auto; display: block; }
.demo-caption {
  text-align: center;
  font-size: 12px; color: var(--ink-2);
  margin-top: 18px;
}

/* stroke 라인 — dasharray draw 애니메이션 */
.demo-line-1-stroke,
.demo-line-2,
.demo-line-3 {
  stroke-dasharray: 800; stroke-dashoffset: 800;
}
.demo-line-1-stroke { animation: demoLineDraw 2.6s 0.6s forwards ease-out; }
.demo-line-2       { animation: demoLineDraw 2.6s 1.0s forwards ease-out; }
.demo-line-3       { animation: demoLineDraw 2.6s 1.4s forwards ease-out; }
@keyframes demoLineDraw { to { stroke-dashoffset: 0; } }
/* area fill — opacity fade-in (path with fill, no stroke) */
.demo-line-1 { opacity: 0; animation: demoAreaFade 1.6s 1.0s forwards ease-out; }
@keyframes demoAreaFade { to { opacity: 1; } }
/* 데이터 포인트 dots stagger pop-in */
.demo-dots circle { opacity: 0; transform-origin: center; transform-box: fill-box; }
.demo-dots circle:nth-child(1) { animation: demoDotPop 0.4s 1.4s forwards cubic-bezier(.34,1.56,.64,1); }
.demo-dots circle:nth-child(2) { animation: demoDotPop 0.4s 1.6s forwards cubic-bezier(.34,1.56,.64,1); }
.demo-dots circle:nth-child(3) { animation: demoDotPop 0.4s 1.8s forwards cubic-bezier(.34,1.56,.64,1); }
.demo-dots circle:nth-child(4) { animation: demoDotPop 0.4s 2.0s forwards cubic-bezier(.34,1.56,.64,1); }
.demo-dots circle:nth-child(5) { animation: demoDotPop 0.4s 2.2s forwards cubic-bezier(.34,1.56,.64,1); }
.demo-dots circle:nth-child(6) { animation: demoDotPopBig 0.6s 2.4s forwards cubic-bezier(.34,1.56,.64,1); }
.demo-dots text { opacity: 0; animation: demoFeedIn 0.4s 2.7s forwards ease-out; }
@keyframes demoDotPop    { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes demoDotPopBig { from { opacity: 0; transform: scale(0); } 60% { transform: scale(1.4); opacity: 1; } to { opacity: 1; transform: scale(1); } }

/* feed text reveal */
.demo-feed text { opacity: 0; }
.demo-feed-1 { animation: demoFeedIn 0.5s 3.0s forwards ease-out; }
.demo-feed-2 { animation: demoFeedIn 0.5s 3.5s forwards ease-out; }
.demo-feed-3 { animation: demoFeedIn 0.5s 4.0s forwards ease-out; }
@keyframes demoFeedIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* nav active pulse */
.demo-nav-active { animation: demoNavPulse 2.4s ease-in-out infinite; }
@keyframes demoNavPulse {
  0%, 100% { fill: rgba(212,165,116,0.18); }
  50% { fill: rgba(212,165,116,0.32); }
}

@media (max-width: 720px) {
  .demo-window { border-radius: 12px; }
  .demo-url { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-line-1, .demo-line-1-stroke, .demo-line-2, .demo-line-3 { stroke-dashoffset: 0; opacity: 1; animation: none; }
  .demo-feed text, .demo-dots circle, .demo-dots text { opacity: 1; animation: none; transform: none; }
  .demo-nav-active { animation: none; }
}

/* Demo sidebar hover effect (clickable cases) */
.demo-nav-item rect {
  transition: fill 0.2s;
}
.demo-nav-item:hover rect {
  fill: rgba(212,165,116,0.1) !important;
}
.demo-nav-item:focus { outline: none; }
.demo-nav-item:focus rect {
  fill: rgba(212,165,116,0.15) !important;
}

/* Click hint (데모 + ROI 계산기 클릭 유도) */
.demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 18px;
  background: rgba(212,165,116,0.12);
  border: 1px solid rgba(212,165,116,0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.demo-hint-pulse {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(212,165,116,0.7);
  animation: hintPulse 1.6s ease-out infinite;
}
@keyframes hintPulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,165,116,0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(212,165,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,165,116,0); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-hint-pulse { animation: none; box-shadow: none; }
}

/* 데모 사이드바 첫 번째 항목 — 페이지 진입 후 5초까지 attention pulse (사용자 클릭 후 정지) */
.demo-nav-item:not(.user-clicked):first-of-type rect {
  animation: navItemAttention 2.4s ease-in-out infinite;
}
@keyframes navItemAttention {
  0%, 100% { fill: rgba(212,165,116,0); }
  50%      { fill: rgba(212,165,116,0.08); }
}

/* 데모 사이드바 컨테이너 외부 hover hint indicator */
.demo-sidebar-hint {
  position: absolute;
  top: 50%; left: -8px;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212,165,116,0.7);
  animation: hintPulse 1.6s ease-out infinite;
  pointer-events: none;
  z-index: 5;
}
@media (max-width: 720px) {
  .demo-sidebar-hint { display: none; }
}

/* ROI 계산기 슬라이더 글로우 */
.roi-field input[type=range] {
  box-shadow: 0 0 0 0 rgba(212,165,116,0.4);
  animation: roiSliderGlow 2.4s ease-in-out infinite;
}
@keyframes roiSliderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,165,116,0); }
  50%      { box-shadow: 0 0 12px 0 rgba(212,165,116,0.35); }
}
.roi-field input[type=range]:focus,
.roi-field input[type=range]:active {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .demo-nav-item:first-of-type rect,
  .roi-field input[type=range] { animation: none; }
}

/* ====== Anti-Impersonation Warning Modal ====== */
.warn-modal {
  position: fixed; inset: 0;
  z-index: 10005;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.warn-modal.open { opacity: 1; visibility: visible; }
.warn-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 13, 28, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.warn-panel {
  position: relative;
  width: 100%; max-width: 460px;
  background:
    radial-gradient(circle at 50% 0%, rgba(227,84,84,0.22), transparent 60%),
    linear-gradient(180deg, #1a0a14 0%, #0d162a 60%, #0B1A33 100%);
  border: 1px solid rgba(227,84,84,0.28);
  border-top: 3px solid #e35454;
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(227,84,84,0.18), 0 30px 60px -15px rgba(0,0,0,0.5);
  transform: translateY(40px) scale(0.96);
  transition: transform 0.45s cubic-bezier(.34,1.4,.64,1);
}
.warn-modal.open .warn-panel { transform: translateY(0) scale(1); }

.warn-header {
  position: relative;
  padding: 28px 28px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.warn-siren { animation: warnPulse 1.4s ease-in-out infinite; transform-origin: center; }
@keyframes warnPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(227,84,84,0.4)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(227,84,84,0.7)); }
}
.warn-brand {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(212,165,116,0.85);
}

.warn-title {
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: clamp(28px, 5.5vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 22px 28px 4px;
  color: #fff;
}
.warn-red { color: #e35454; }

.warn-body {
  padding: 24px 32px 8px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  text-align: center;
}
.warn-body p { margin: 0 0 16px; }
.warn-body p:last-of-type { margin-bottom: 22px; }
.warn-body b { color: #fff; font-weight: 700; }
.warn-tel {
  color: #f4d9a8;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(244,217,168,0.4);
  padding-bottom: 1px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.warn-tel:hover { color: #fff; border-bottom-color: #fff; }

.warn-rule {
  padding: 12px 18px;
  margin: 10px 0;
  font-size: 13px; font-weight: 600;
  border-radius: 8px;
  text-align: center;
}
.warn-rule b { color: #f4d9a8; }
.warn-rule-1 {
  background: rgba(227,84,84,0.16);
  color: #fff;
  border: 1px solid rgba(227,84,84,0.32);
}
.warn-rule-2 {
  background: rgba(212,165,116,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(212,165,116,0.22);
}
.warn-rule-2 a {
  color: #f4d9a8; font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(244,217,168,0.4);
}

.warn-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(227,84,84,0.18);
}
.warn-hide-info {
  font-size: 12px; color: rgba(255,255,255,0.55);
  letter-spacing: -0.01em;
}
.warn-close {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.warn-close:hover { background: rgba(227,84,84,0.25); border-color: rgba(227,84,84,0.5); }
.warn-close span { font-size: 16px; line-height: 1; opacity: 0.7; }

@media (max-width: 480px) {
  .warn-panel { max-width: 100%; border-radius: 14px; }
  .warn-header { padding: 20px 20px 0; }
  .warn-body { padding: 20px 20px 4px; font-size: 13px; }
  .warn-title { font-size: 26px; margin: 16px 20px 4px; }
  .warn-rule { padding: 10px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .warn-siren { animation: none; }
  .warn-panel { transition: none; }
}
