@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
/* 아웃라인(text-stroke) 전용 정적 폰트 — 가변 폰트는 윤곽이 겹쳐 내부 선이 보이므로, 아웃라인에 쓰는 글자(숫자 · 영문 · '아이디어')만 서브셋 */
@font-face {
  font-family: 'Pretendard Outline';
  src: url('/fonts/PretendardOutline-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff7324;
  --orange-2: #ff9a5c;
  --orange-deep: #e85a0c;
  --ink: #0c0c0c;
  --ink-2: #141414;
  --ink-3: #1c1c1c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f1ee;
  --text-2: rgba(244, 241, 238, 0.66);
  --text-3: rgba(244, 241, 238, 0.42);
  --track-consulting: #ffb36b;
  --track-outsourcing: #ff7324;
  --track-product: #ff4f6d;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section--tight { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 18px var(--orange); }

.display {
  font-size: clamp(48px, 10.5vw, 168px);
  line-height: 0.94; font-weight: 820; letter-spacing: -0.045em;
}
.h1 { font-size: clamp(40px, 6.6vw, 104px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.1; font-weight: 780; letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 720; letter-spacing: -0.025em; }
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.6; color: var(--text-2); font-weight: 450; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.accent { color: var(--orange); }
.outline-text { font-family: 'Pretendard Outline', var(--font); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); }
.grad-text {
  color: var(--orange);
}
.mono { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 40px -10px rgba(255, 115, 36, 0.7); }
.btn--primary:hover { box-shadow: 0 16px 60px -10px rgba(255, 115, 36, 0.95); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(10px); background: rgba(255,255,255,0.03); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- cards / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 550; color: var(--text-2);
  white-space: nowrap;
}
.chip--on { border-color: var(--orange); color: var(--orange); background: rgba(255, 115, 36, 0.08); }
.card {
  position: relative; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.glow-border { transition: border-color 0.3s; }
.glow-border:hover { border-color: rgba(255, 115, 36, 0.45); }

/* 히어로 하단 스크롤 넛지 (홈 · 페이지 히어로 공통) — 부모는 position: relative */
.scroll-nudge { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }
.scroll-nudge i { width: 1px; height: 40px; background: var(--orange); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- reveal (driven by v-reveal) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
/* 영문 하강부(y · g · p)가 잘리지 않도록 아래 여백을 두고, 줄 간격은 음수 마진으로 유지 */
.split-line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.14em; }
html.js .split-line > span { display: block; transform: translateY(130%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
html.js .is-in .split-line > span, html.js .split-line.is-in > span { transform: none; }
.split-line > span { display: block; }

/* ---------- page transition ---------- */
.page-enter-active, .page-leave-active { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.page-enter-from { opacity: 0; transform: translateY(24px); }
.page-leave-to { opacity: 0; transform: translateY(-12px); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); } 80% { transform: translate(4%, 5%); }
}

/* ---------- marquee ---------- */
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: 64px; padding-right: 64px; animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .btn { height: 50px; padding: 0 22px; font-size: 15px; }
}
