/* ==========================================================================
   SWAG v47 - 시스템 · 웹 · 앱 · 게임 외주 제작 스튜디오
   라이트 그레이 캔버스 + 화이트 카드 + 브랜드 블루/그린, 모션 중심 디자인
   ========================================================================== */

/* 첫 화면에 필요한 글자만 담은 85KB 폰트를 먼저 쓰고,
   여기에 없는 글자(관리자가 새로 넣은 문구 등)가 나올 때만 508KB 전체 폰트를 받는다. */
@font-face {
  font-family: "SUIT Core";
  src: url("assets/SUIT-core.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SUIT Full";
  src: url("assets/SUIT-full.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #0d1530;
  --sub: #4e5a78;
  --line: #e2e7f2;
  --line-strong: #ccd6ea;

  --blue: #2145e6;
  --blue-deep: #1a37c4;
  --blue-soft: #e8edfd;
  --green: #5bdf9c;
  --green-deep: #0e7a4e;
  --green-soft: #dff7ea;

  --dark: #0a1122;
  --dark-2: #121b36;
  --dark-line: rgba(255, 255, 255, .08);

  --grad: linear-gradient(120deg, #2145e6 10%, #16b878 90%);
  --grad-soft: linear-gradient(120deg, #e8edfd, #dff7ea);

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(13, 21, 48, .05), 0 4px 14px rgba(13, 21, 48, .06);
  --shadow-md: 0 2px 4px rgba(13, 21, 48, .05), 0 14px 34px rgba(13, 21, 48, .10);
  --shadow-lg: 0 4px 10px rgba(13, 21, 48, .06), 0 28px 60px rgba(13, 21, 48, .14);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  --scroll-progress: 0;
  --process-progress: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

html.inertia-scroll { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: "SUIT Core", "SUIT Full", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -.011em;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

body.is-loaded { animation: pageIn .6s var(--ease-out) both; }

@keyframes pageIn {
  from { opacity: .01; }
  to { opacity: 1; }
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd, pre, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-inline-size: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

::selection { background: rgba(33, 69, 230, .18); }

:focus-visible {
  outline: 3px solid rgba(33, 69, 230, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

.shell {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  padding: 12px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* --------------------------------------------------------------- 타이포 */

h1, h2, h3 { line-height: 1.16; font-weight: 800; letter-spacing: -.034em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow-invert { color: var(--green); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(91, 223, 156, .5);
  animation: pulseDot 2.2s ease-out infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(91, 223, 156, .55); }
  70% { box-shadow: 0 0 0 9px rgba(91, 223, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 223, 156, 0); }
}

.section-lead {
  color: var(--sub);
  font-size: 17px;
  max-width: 56ch;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 24px;
  margin-bottom: clamp(30px, 4.5vw, 52px);
}

.section-head .eyebrow { grid-column: 1; }
.section-head h2 { grid-column: 1; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.section-head .section-lead { grid-column: 1; margin-top: 8px; }
.section-head .btn { grid-column: 2; grid-row: 2 / span 2; align-self: center; }

/* ----------------------------------------------------------------- 버튼 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, filter .25s;
  will-change: transform;
}

.btn span { transition: transform .25s var(--ease-out); }
.btn:hover span { transform: translateX(3px); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(33, 69, 230, .32);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(33, 69, 230, .4); filter: brightness(1.05); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: scale(.97); }

.btn-ghost {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-md); }

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
}

.btn-invert { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 26px rgba(4, 10, 30, .35); }
.btn-invert:hover { transform: translateY(-2px); }

.btn-outline-invert { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-invert:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { filter: brightness(1.04); transform: translateY(-2px); }

/* ----------------------------------------------------------------- 헤더 */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(246, 248, 252, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(13, 21, 48, .06);
}

/* 아래로 빠르게 내리면 헤더가 숨고, 멈추거나 올리면 다시 나온다 */
.site-header {
  transform: translateY(0);
  transition: background-color .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s, transform .45s var(--ease-out);
}

.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header.is-hidden { transform: none; }

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(var(--scroll-progress));
}

.header-inner {
  width: min(1240px, 100%);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-svg { height: 30px; width: auto; display: block; }

/* 홈 최상단은 어두운 히어로 위이므로 헤더를 밝은 색으로 뒤집는다 */
[data-page="home"] .site-header:not(.is-scrolled) .lg-word { fill: #fff; }
[data-page="home"] .site-header:not(.is-scrolled) .desktop-nav a { color: rgba(226, 234, 255, .8); }
[data-page="home"] .site-header:not(.is-scrolled) .desktop-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
[data-page="home"] .site-header:not(.is-scrolled) .desktop-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); }

[data-page="home"] .site-header:not(.is-scrolled) .mobile-menu > summary {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

[data-page="home"] .site-header:not(.is-scrolled) .menu-glyph i { background: #fff; }

/* 로고 등장 모션: 스피드라인 슬라이드 + 오빗 아크 드로잉 */
.js body:not(.is-loaded) .site-header .lg-line { opacity: 0; }
.is-loaded .site-header .lg-line { animation: logoLine .7s var(--ease-out) both; }
.is-loaded .site-header .lg-line:nth-of-type(2) { animation-delay: .08s; }
.is-loaded .site-header .lg-line:nth-of-type(3) { animation-delay: .16s; }
.is-loaded .site-header .lg-orbit {
  stroke-dasharray: 100;
  animation: logoOrbit 1s var(--ease-out) .2s both;
}

@keyframes logoLine {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: none; }
}

@keyframes logoOrbit {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sub);
  transition: color .2s, background-color .2s;
}

.desktop-nav a:hover { color: var(--ink); background: rgba(13, 21, 48, .05); }
.desktop-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

.desktop-nav a.nav-cta {
  margin-left: 10px;
  padding: 8px 20px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(33, 69, 230, .3);
  transition: box-shadow .25s, transform .25s;
}

.desktop-nav a.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(33, 69, 230, .4); }

/* 모바일 메뉴 */
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }

.mobile-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .1em;
  cursor: pointer;
}

.menu-glyph { display: inline-flex; flex-direction: column; gap: 5px; width: 18px; }
.menu-glyph i { height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), width .3s; }
.menu-glyph i:last-child { width: 70%; align-self: flex-end; }
.mobile-menu[open] .menu-glyph i:first-child { transform: translateY(3.5px) rotate(45deg); }
.mobile-menu[open] .menu-glyph i:last-child { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 190;
  padding: 24px clamp(20px, 5vw, 40px) 32px;
  background: rgba(246, 248, 252, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(13, 21, 48, .12);
}

.mobile-menu-panel > p {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 14px;
}

.mobile-menu-panel nav { display: grid; gap: 4px; }

.mobile-menu-panel nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 19px;
  font-weight: 800;
  clip-path: inset(0 0 100% 0);
}

.mobile-menu[open] .mobile-menu-panel nav a { animation: menuIn .5s var(--ease-out) both; }
.mobile-menu[open] .mobile-menu-panel nav a:nth-child(1) { animation-delay: .03s; }
.mobile-menu[open] .mobile-menu-panel nav a:nth-child(2) { animation-delay: .09s; }
.mobile-menu[open] .mobile-menu-panel nav a:nth-child(3) { animation-delay: .15s; }
.mobile-menu[open] .mobile-menu-panel nav a:nth-child(4) { animation-delay: .21s; }
.mobile-menu[open] .mobile-menu-panel nav a:nth-child(5) { animation-delay: .27s; }

@keyframes menuIn {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); }
  to { clip-path: inset(0 0 -20% 0); transform: none; }
}

.mobile-menu-panel nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.mobile-menu-panel nav a.nav-cta { background: var(--grad); color: #fff; justify-content: center; margin-top: 8px; }

.mobile-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 16px;
  border-radius: 999px;
  background: #fee500;
  color: #191919;
  font-weight: 800;
  font-size: 15px;
}

/* ----------------------------------------------------------------- 히어로 */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 7vh, 88px));
  padding-bottom: clamp(60px, 9vh, 104px);
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #eaf0ff;
  background:
    radial-gradient(62vw 62vw at 8% -12%, rgba(33, 69, 230, .55), transparent 62%),
    radial-gradient(54vw 54vw at 96% 108%, rgba(22, 184, 120, .4), transparent 60%),
    radial-gradient(40vw 40vw at 74% 30%, rgba(120, 90, 255, .3), transparent 64%),
    #070c1a;
}

.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }

/* 배경 그라디언트는 .hero 에 구워 넣었다. 움직임은 아래 grid 와 beam 이 담당한다. */

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 25%, transparent 78%);
}

/* 위에서 아래로 훑고 내려가는 빛줄기 */
.hero-beam {
  position: absolute;
  inset: -30% 0 auto;
  height: 34%;
  contain: strict;
  background: linear-gradient(180deg, transparent, rgba(120, 170, 255, .09) 45%, rgba(91, 223, 156, .07) 60%, transparent);
  will-change: transform;
  animation: heroBeam 9s ease-in-out infinite;
}

@keyframes heroBeam {
  0% { transform: translate3d(0, 0, 0); }
  55%, 100% { transform: translate3d(0, 260%, 0); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .13em;
  color: #dfe7ff;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 30px rgba(4, 10, 30, .5);
}

/* 예전에는 가장 긴 단어 너비로 min-width 를 고정해서, 짧은 단어일 때도
   자리를 그만큼 차지해 제목이 한 줄 더 내려가 있었다.
   지금은 현재 단어 너비로 부드럽게 늘었다 줄었다 한다. */
.hero-rotator {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
  transition: width .52s var(--ease-out);
}

.rotator-word {
  display: inline-block;
  background: linear-gradient(100deg, #6f9bff 0%, #5bdf9c 42%, #8ff0c0 58%, #6f9bff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rotatorSheen 5.2s linear infinite;
  transition: opacity .26s ease, transform .26s ease;
}

@keyframes rotatorSheen {
  from { background-position: 130% 50%; }
  to { background-position: -130% 50%; }
}

.rotator-word.is-out { opacity: 0; transform: translateY(-16px) skewY(-3deg); }
.rotator-word.is-in { animation: wordIn .46s var(--ease-out); }

@keyframes wordIn {
  from { opacity: 0; transform: translateY(18px) skewY(3deg); }
  to { opacity: 1; transform: none; }
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: rgba(226, 234, 255, .74);
  max-width: 44ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn-glass {
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .28);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(226, 234, 255, .72);
}

.hero-trust li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(91, 223, 156, .18);
  color: #7ff0b6;
  font-size: 14px;
  font-weight: 800;
}

/* ---------------------------------------- 히어로 비주얼: 코드 편집기 + 터미널 */

.hero-visual {
  position: relative;
  min-height: 470px;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0);
  transition: transform .3s var(--ease-out);
}

.code-window {
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 540px);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1426;
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 30px 70px rgba(2, 6, 20, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #111a30;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.cw-dot { width: 10px; height: 10px; border-radius: 50%; }
.cw-r { background: #ff5f57; }
.cw-y { background: #febc2e; }
.cw-g { background: #28c840; }

.code-tab {
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(214, 226, 255, .45);
}

.code-tab.is-on { background: rgba(255, 255, 255, .09); color: #dbe6ff; }

.code-body {
  position: relative;
  margin: 0;
  padding: 18px 20px 20px;
  font-family: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre;
  overflow: hidden;
}

.code-line {
  display: block;
  opacity: 0;
  transform: translateX(-8px);
}

/* 화면에 들어왔을 때만 한 줄씩 타이핑되듯 나타난다 */
.is-typing .code-line {
  animation: codeIn .34s var(--ease-out) forwards;
  animation-delay: calc(var(--li) * .16s);
}

@keyframes codeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.code-no {
  display: inline-block;
  width: 2ch;
  margin-right: 14px;
  color: rgba(160, 178, 220, .3);
  font-weight: 500;
  text-align: right;
}

.t-kw { color: #c792ea; }
.t-fn { color: #82aaff; }
.t-vr { color: #f5f7ff; }
.t-pr { color: #7fdbca; }
.t-bl { color: #f78c6c; }
.t-pn { color: #8b9dc9; }
.t-cm { color: #5f7396; font-style: italic; }
.t-sp { color: inherit; }

.code-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 2px;
  vertical-align: -3px;
  background: #5bdf9c;
  animation: caretBlink 1.05s steps(1) infinite;
}

@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.term-window {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: min(78%, 380px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 13, 28, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(2, 6, 20, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  color: rgba(200, 214, 250, .6);
}

.term-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bdf9c;
  animation: pulseDot 2s ease-out infinite;
}

.term-body {
  display: grid;
  gap: 7px;
  padding: 14px;
  font-family: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6e2ff;
  opacity: 0;
}

.is-typing .term-line {
  animation: codeIn .3s var(--ease-out) forwards;
  animation-delay: calc(1.5s + var(--li) * .34s);
}

.term-prompt { color: #5bdf9c; font-weight: 800; }
.term-ok { color: #5bdf9c; }
.term-line em { margin-left: auto; font-style: normal; color: rgba(170, 188, 228, .5); }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 34px rgba(2, 6, 20, .5);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  will-change: transform;
  animation: floatChip 6s ease-in-out infinite alternate;
}

.chip-ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: chipSpin 1.4s linear infinite;
}

@keyframes chipSpin {
  to { transform: rotate(360deg); }
}

.hero-chip-1 { top: -18px; right: 2%; color: var(--green-deep); animation-delay: -1.4s; }
.hero-chip-2 { bottom: 4%; left: 0; color: var(--blue); animation-delay: -3.4s; }

@keyframes floatChip {
  from { transform: translate3d(0, -7px, 0); }
  to { transform: translate3d(0, 9px, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .22em;
  color: rgba(210, 222, 255, .6);
}

.scroll-cue i {
  width: 2px;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(#6f9bff, #5bdf9c);
  animation: cueDrop 1.8s var(--ease-out) infinite;
}

@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------------------------------------------------------ 통계 */

.home-stats { padding-block: clamp(24px, 4vw, 44px) clamp(40px, 5vw, 72px); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.stat-tile {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.stat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.stat-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}

.stat-tile:hover::before { opacity: 1; }

.stat-value { display: flex; align-items: baseline; gap: 4px; }

.stat-value b {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-value span { font-size: 17px; font-weight: 800; color: var(--sub); }
.stat-label { margin-top: 10px; font-size: 17px; font-weight: 800; }
.stat-note { margin-top: 4px; font-size: 14px; color: var(--sub); }

.stat-tile-4 .stat-value b { background: linear-gradient(120deg, #0e7a4e, #16b878); -webkit-background-clip: text; background-clip: text; }

/* ------------------------------------------------------------- 제작 분야 */

.home-scope { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 8vw, 104px); }

.film-window {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  padding-block: 10px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.film-window::-webkit-scrollbar { display: none; }
.film-window.is-dragging { cursor: grabbing; }
.film-window.is-dragging .service-card { pointer-events: none; }

.film-track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  padding-inline: max(calc((100vw - 1200px) / 2 + clamp(20px, 4.5vw, 48px)), clamp(20px, 4.5vw, 48px));
}

.film-hint { text-align: center; font-size: 14px; font-weight: 700; color: var(--sub); letter-spacing: .08em; }

.service-card {
  flex: 0 0 auto;
  width: min(84vw, 360px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transition: box-shadow .35s var(--ease-out), border-color .3s;
}

.service-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.service-card-visual {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(150deg, #eef2fc, #f6f9f6);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.film-shot-2 .service-card-visual { background: linear-gradient(150deg, #e9f7f0, #f2f6fd); }
.film-shot-3 .service-card-visual { background: linear-gradient(150deg, #f0effc, #eef6f2); }
.film-shot-4 .service-card-visual { background: linear-gradient(150deg, #eaf1ff, #e9f7f1); }
.film-shot-5 .service-card-visual { background: linear-gradient(150deg, #eef4fb, #eff3fb); }

.card-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}

.service-card:hover .card-sheen,
.service-visual:hover .card-sheen { transition: transform .8s var(--ease-out); transform: translateX(130%); }

.service-card-copy { padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 8px; justify-items: start; }
.service-card-tag { font-size: 14px; font-weight: 800; letter-spacing: .05em; color: var(--blue); }
.service-card-copy h3 { font-size: 22px; }
.service-card-copy > p:not(.service-card-tag) { font-size: 15px; color: var(--sub); min-height: 3.2em; }
.service-card-copy .btn-small { margin-top: 6px; }
.service-card:hover .btn-small { background: var(--blue); color: #fff; }

/* ----------------------------------------------------------- 목업 SVG 공통 */

.mock { width: 100%; height: auto; display: block; }

.mk-frame { fill: #fff; stroke: var(--line-strong); stroke-width: 1.5; }
.mk-bar { fill: #f2f5fc; }
.mk-bar-fix { fill: #f2f5fc; }
.mk-dot-r { fill: #ff5f57; }
.mk-dot-y { fill: #febc2e; }
.mk-dot-g { fill: #28c840; }
.mk-dot-b { fill: #2145e6; }
.mk-dot-mute { fill: #d9dfef; }
.mk-pill { fill: #e9edf8; }
.mk-ink { fill: #1b2b56; }
.mk-ink-soft { fill: rgba(255, 255, 255, .85); }
.mk-line { fill: #dde3f2; }
.mk-line-soft { fill: rgba(255, 255, 255, .4); }
.mk-cta { fill: #2145e6; }
.mk-card { fill: #f5f7fc; stroke: #e2e7f2; stroke-width: 1; }
.mk-chip { fill: #5bdf9c; }
.mk-phone { fill: #fff; stroke: var(--line-strong); stroke-width: 1.5; }
.mk-notch { fill: #e6eaf5; }
.mk-hero { fill: #2145e6; opacity: .88; }
.mk-tabbar { fill: #eef1f9; }
.mk-toast { fill: #fff; stroke: #e2e7f2; }
.mk-screen { fill: #0e1730; stroke: #232f52; }
.mk-score { fill: #1d2a4d; }
.mk-ground { fill: #1d2a4d; }
.mk-block { fill: #2b3a66; }
.mk-hero-dot { fill: #5bdf9c; }
.mk-eye { fill: #0e1730; }
.mk-coin { fill: #ffd54d; }
.mk-side { fill: #16204a; }
.mk-side-fix { fill: #16204a; }
.mk-col { fill: #ccd9f6; }
.mk-col-hi { fill: #2145e6; }
.mk-bubble-user { fill: #eef2fb; stroke: #e2e7f2; stroke-width: 1; }
.mk-bubble-ai { fill: #2145e6; }
.mk-prompt { fill: #f2f5fc; stroke: #e2e7f2; stroke-width: 1; }
.mk-send { fill: #16b878; }
.mk-send-arrow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-spark-a, .mk-spark-b { fill: #5bdf9c; }
.mk-chat { animation: chatIn 4.5s var(--ease-out) infinite; }
.mk-chat-late { animation-delay: .6s; }
.mk-spark-a { animation: sparkPulse 2.4s ease-in-out infinite; transform-origin: 78px 124px; }
.mk-spark-b { animation: sparkPulse 2.4s ease-in-out -1.2s infinite; transform-origin: 50px 149px; }

@keyframes chatIn {
  0%, 6% { opacity: 0; transform: translateY(10px); }
  16%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes sparkPulse {
  0%, 100% { opacity: .45; transform: scale(.82) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(18deg); }
}

.mk-trend { fill: none; stroke: #16b878; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.mk-float { animation: floatChip 5.5s ease-in-out infinite alternate; }
.mk-float-late { animation-delay: -2.6s; }
.mk-sprite { animation: spriteHop 1.6s var(--ease-out) infinite; }
.mk-coins circle { animation: coinBob 2.2s ease-in-out infinite alternate; }
.mk-coins circle:nth-child(2) { animation-delay: -.5s; }
.mk-coins circle:nth-child(3) { animation-delay: -1s; }
.mk-trend { stroke-dasharray: 100; animation: trendDraw 5s var(--ease-out) infinite; }

@keyframes spriteHop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-13px); }
  60% { transform: translateY(-13px); }
}

@keyframes coinBob {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}

@keyframes trendDraw {
  0% { stroke-dashoffset: 100; }
  55%, 100% { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------- 기술 스택 리본 */

.motion-ribbon {
  position: relative;
  padding-block: clamp(56px, 7.5vw, 100px) clamp(44px, 5.5vw, 72px);
  background:
    radial-gradient(60% 60% at 16% 0%, rgba(33, 69, 230, .25), transparent 64%),
    radial-gradient(50% 50% at 88% 100%, rgba(22, 184, 120, .16), transparent 60%),
    var(--dark);
  color: #eef2ff;
  overflow: hidden;
}

.motion-ribbon .section-head h2 { color: #fff; }
.motion-ribbon .section-lead { color: rgba(230, 236, 255, .72); }

.motion-ribbon-stage { display: grid; gap: clamp(14px, 2vw, 22px); }

.motion-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.motion-track { display: flex; width: max-content; will-change: transform; }

.motion-set { display: flex; gap: clamp(12px, 1.6vw, 20px); padding-inline: clamp(6px, .8vw, 10px); }

.stack-tile {
  display: grid;
  place-items: center;
  width: clamp(66px, 7.5vw, 88px);
  height: clamp(66px, 7.5vw, 88px);
  border-radius: 22px;
  background: #151f3a;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 26px rgba(2, 6, 18, .5);
  transition: transform .3s var(--ease-out), border-color .3s;
}

.stack-tile:hover { transform: translateY(-5px) scale(1.04); border-color: rgba(91, 223, 156, .45); }

.stack-tile img { width: 62%; height: 62%; border-radius: 14px; }

/* ------------------------------------------------------------ 진행 미리보기 */

.home-process { padding-block: clamp(56px, 8vw, 104px); }

.process-preview {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.process-step {
  counter-increment: step;
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.process-step-no::before {
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.process-step > b { font-size: 19px; font-weight: 800; }
.process-step-note { font-size: 14px; color: var(--sub); }

/* --------------------------------------------------------------- 스튜디오 */

.home-studio { padding-block: 0 clamp(56px, 8vw, 104px); }

.home-studio-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  width: min(1200px, calc(100% - 2 * clamp(20px, 4.5vw, 48px)));
}

.studio-note { display: grid; gap: 14px; justify-items: start; align-content: start; }
.studio-note h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.studio-note p:not(.eyebrow) { color: var(--sub); }

.studio-points { display: grid; gap: 12px; align-content: center; }

.studio-points li {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), border-color .3s, background-color .3s;
}

.studio-points li:hover { transform: translateX(6px); border-color: var(--blue); background: var(--blue-soft); }
.studio-points b { font-size: 17px; font-weight: 800; }
.studio-points span { font-size: 14px; color: var(--sub); }

/* --------------------------------------------------------------- CTA 밴드 */

.contact-strip { padding: 0 0 clamp(64px, 9vw, 120px); }

.contact-strip .shell {
  position: relative;
  overflow: hidden;
  width: min(1200px, calc(100% - 2 * clamp(20px, 4.5vw, 48px)));
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(56% 90% at 82% 8%, rgba(91, 223, 156, .28), transparent 60%),
    radial-gradient(70% 110% at 12% 100%, rgba(33, 69, 230, .5), transparent 62%),
    linear-gradient(140deg, #101b3f, #0a1122);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-strip-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  pointer-events: none;
}

.contact-strip .eyebrow { color: var(--green); position: relative; }
.contact-strip h2 { position: relative; margin-top: 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.contact-strip-lead { position: relative; margin-top: 12px; color: rgba(233, 238, 255, .8); max-width: 46ch; }

.contact-strip-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 30px;
}

.contact-strip-tel {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  transition: border-color .25s;
}

.contact-strip-tel:hover { border-color: var(--green); }

/* ------------------------------------------------------------------ 푸터 */

.site-footer {
  background: var(--dark);
  color: #dfe6fb;
  overflow: hidden;
}

/* 윤곽선과 그라디언트를 서로 다른 레이어에 겹쳐 두면 두 레이어의 애니메이션이
   환경에 따라 어긋나 보인다. 한 요소에 stroke 와 background-clip:text 를 함께 걸어
   글자는 흐르고(capabilityRun) 색 띠만 훑고 지나가게(filmSweep) 한다. */
.footer-film {
  position: relative;
  display: flex;
  white-space: nowrap;
  margin-block: clamp(18px, 2.6vw, 30px) 0;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.footer-film span {
  -webkit-text-stroke: 1px rgba(255, 255, 255, .26);
  background-image: linear-gradient(100deg,
    transparent 24%,
    rgba(91, 223, 156, .95) 38%,
    rgba(255, 255, 255, .95) 46%,
    rgba(122, 162, 255, .95) 54%,
    transparent 68%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
  animation: capabilityRun 30s linear infinite, filmSweep 6s var(--ease-out) infinite;
}

@keyframes capabilityRun {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

@keyframes filmSweep {
  0% { background-position: 190% 0; }
  62%, 100% { background-position: -90% 0; }
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer-brand .brand-svg { height: 34px; }
.footer-brand p { font-size: 15px; color: rgba(223, 230, 251, .62); line-height: 1.7; }

.footer-main nav { display: grid; gap: 2px; align-content: start; }

.footer-main nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(223, 230, 251, .78);
  transition: color .2s, transform .25s var(--ease-out);
}

.footer-main nav a:hover { color: #fff; transform: translateX(5px); }

.footer-direct { display: grid; gap: 4px; align-content: start; justify-items: start; }
.footer-direct p { font-size: 14px; font-weight: 800; letter-spacing: .16em; color: var(--green); margin-bottom: 8px; }

.footer-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(223, 230, 251, .78);
  transition: color .2s;
}

.footer-direct a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
  color: rgba(223, 230, 251, .55);
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s;
}

.footer-bottom a:hover { color: #fff; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

/* ----------------------------------------------------------- 서브 페이지 인트로 */

.page-intro {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(36px, 5vw, 64px);
  overflow: hidden;
}

.page-intro-backdrop { position: absolute; inset: 0; pointer-events: none; }

/* 서브 페이지도 레이어를 겹치지 않고 배경 한 장으로 처리한다 */
.page-intro {
  background:
    radial-gradient(52vw 52vw at 4% -20%, rgba(33, 69, 230, .1), transparent 62%),
    radial-gradient(44vw 44vw at 98% 110%, rgba(22, 184, 120, .09), transparent 60%);
}

.page-intro-backdrop .hero-grid {
  background-image: linear-gradient(rgba(13, 21, 48, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 21, 48, .05) 1px, transparent 1px);
}

.intro-copy { position: relative; display: grid; gap: 16px; justify-items: start; }
.intro-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.intro-copy .eyebrow { padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); }

.chapter-jump {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
}

.chapter-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  font-size: 15px;
  font-weight: 700;
  transition: border-color .25s, color .25s, transform .25s var(--ease-out), box-shadow .25s;
}

.chapter-jump a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------ 서비스 챕터 */

.service-editorial { display: grid; gap: clamp(24px, 3.5vw, 44px); padding-bottom: clamp(56px, 8vw, 104px); }

.service-chapter {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: box-shadow .35s var(--ease-out);
}

.service-chapter:hover { box-shadow: var(--shadow-md); }
.service-chapter:nth-child(even) .service-visual { order: 2; }

.service-visual {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: 22px;
  background: linear-gradient(150deg, #eef2fc, #f2f8f4);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.service-chapter-2 .service-visual { background: linear-gradient(150deg, #e9f7f0, #eef2fc); }
.service-chapter-3 .service-visual { background: linear-gradient(150deg, #101830, #1a2547); border-color: #232f52; }
.service-chapter-4 .service-visual { background: linear-gradient(150deg, #eaf1ff, #e9f7f1); }
.service-chapter-5 .service-visual { background: linear-gradient(150deg, #edf2fb, #eef5f0); }

.service-copy { display: grid; gap: 14px; justify-items: start; }
.service-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.service-description { color: var(--sub); }

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-block: 6px 10px;
  width: 100%;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 900;
}

/* ------------------------------------------------------------- 기능 마퀴 */

.capability-flow { padding-bottom: clamp(56px, 8vw, 104px); }

.capability-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.capability-marquee > div {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-block: 6px;
  animation: capabilityRun 26s linear infinite;
}

.capability-marquee span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.capability-marquee b { font-size: 16px; font-weight: 800; }
.capability-marquee em { font-style: normal; font-size: 14px; color: var(--sub); }

.capability-note { margin-top: 18px; font-size: 15px; color: var(--sub); }

/* -------------------------------------------------------------- 프로젝트 */

.work-editorial { display: grid; gap: clamp(24px, 3.5vw, 44px); padding-bottom: clamp(56px, 8vw, 104px); }

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3.4vw, 48px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease-out);
}

.case-study:hover { box-shadow: var(--shadow-md); }
.case-study-2 .case-visual { order: 2; }

.case-visual {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: #f7f9fd;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.case-visual:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #eef1f8;
  border-bottom: 1px solid var(--line);
}

.browser-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e8; }
.browser-chrome i:nth-child(1) { background: #ff5f57; }
.browser-chrome i:nth-child(2) { background: #febc2e; }
.browser-chrome i:nth-child(3) { background: #28c840; }

.browser-chrome b {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-visual figure { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }

.case-visual img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: top;
  transform: translateY(var(--parallax-y, -5%)) scale(1.02);
  transition: transform .2s linear;
}

.image-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .3) 50%, transparent 58%);
  transform: translateX(-140%);
  animation: imageScan 5.5s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes imageScan {
  0% { transform: translateX(-140%); }
  46%, 100% { transform: translateX(140%); }
}

.case-copy { display: grid; gap: 14px; justify-items: start; }
.case-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.case-summary { color: var(--sub); }

.case-copy dl { display: grid; gap: 12px; width: 100%; margin-block: 4px; }
.case-copy dl > div { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.case-copy dt { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.case-copy dd { font-size: 15px; color: var(--ink); }

.case-features { display: flex; flex-wrap: wrap; gap: 8px; }

.case-features span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 700;
}

.image-unavailable {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: var(--sub);
  font-size: 15px;
}

/* ------------------------------------------------------------- 진행 방식 */

.process-editorial {
  position: relative;
  display: grid;
  gap: clamp(18px, 2.6vw, 30px);
  padding-block: clamp(16px, 2vw, 28px) clamp(56px, 8vw, 104px);
}

.process-line {
  position: absolute;
  top: 0;
  bottom: clamp(56px, 8vw, 104px);
  left: calc(clamp(20px, 4.5vw, 48px) + 21px);
  width: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.process-line i {
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: top;
  transform: scaleY(var(--process-progress));
}

.process-editorial article {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(16px, 2.6vw, 36px);
  align-items: start;
  padding: clamp(20px, 2.8vw, 34px);
  padding-left: 0;
  margin-left: 0;
  border-radius: var(--r-lg);
  background: transparent;
}

.process-editorial article > * { position: relative; }

.process-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.process-index i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(33, 69, 230, .14);
}

.process-body {
  padding: clamp(20px, 2.8vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.process-editorial article:hover .process-body { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.process-body p { color: var(--sub); }

.process-output {
  display: grid;
  gap: 4px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  background: var(--blue-soft);
  border: 1px solid #d5defb;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-deep);
  align-self: stretch;
}

.process-output span { font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }

.after-launch {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.after-launch h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 10px; }

.after-launch-cards { display: grid; gap: 14px; }

.after-launch-cards p {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--sub);
  font-size: 16px;
}

.after-launch-cards b { color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .1em; }

/* ------------------------------------------------------------------ 소개 */

.about-story { padding-block: clamp(12px, 2vw, 24px) clamp(56px, 8vw, 104px); display: grid; gap: clamp(30px, 4.5vw, 56px); }

.about-lead {
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.02em;
  max-width: 30em;
}

.about-passages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.about-passages article {
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.about-passages article:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.value-mark {
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  transition: -webkit-text-stroke-color .3s;
}

.about-passages article:hover .value-mark { -webkit-text-stroke-color: #b4c2ea; }
.about-passages h2 { font-size: 21px; }
.about-passages article > p:not(.eyebrow) { color: var(--sub); font-size: 16px; }

.about-route {
  display: grid;
  gap: 20px;
  padding-block: 0 clamp(56px, 8vw, 104px);
}

.about-route h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 8px; }

.about-route > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 6px;
}

.about-route > p span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 15px;
}

.about-route > p i {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

/* ------------------------------------------------------------ 직접 연락 */

.direct-contact {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding-block: 0 clamp(56px, 8vw, 104px);
}

.direct-contact h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.direct-contact > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ------------------------------------------------------------- 문의 빌더 */

.brief-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.brief-fields { display: grid; gap: clamp(16px, 2.2vw, 24px); }

.brief-fields fieldset {
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brief-fields legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.brief-fields fieldset > p { clear: both; font-size: 14px; color: var(--sub); margin-bottom: 14px; }

.choice-lines { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }

.choice-lines button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .25s, background-color .25s, color .25s, transform .2s var(--ease-out), box-shadow .25s;
}

.choice-lines button:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.choice-lines button[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-deep);
  box-shadow: 0 6px 16px rgba(33, 69, 230, .16);
}

.choice-lines button span { display: inline-flex; align-items: center; gap: 7px; }

.choice-lines button[aria-pressed="true"] span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  animation: chipPop .3s var(--ease-out);
}

@keyframes chipPop {
  from { transform: scale(.4); }
  60% { transform: scale(1.16); }
  to { transform: scale(1); }
}

.choice-lines button small { font-size: 14px; font-weight: 600; color: var(--sub); }

.brief-field { display: grid; gap: 8px; margin-top: 6px; }
.brief-field + .brief-field { margin-top: 16px; }
.brief-field > span { font-size: 15px; font-weight: 800; }

.brief-field textarea,
.brief-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  resize: vertical;
}

.brief-field textarea:focus,
.brief-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(33, 69, 230, .14);
}

.brief-field ::placeholder { color: #9aa6c4; }

.brief-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 14px;
  padding: clamp(22px, 2.8vw, 30px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 90% 0%, rgba(91, 223, 156, .16), transparent 60%),
    linear-gradient(150deg, #121c3d, #0a1122);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  color: #eef2ff;
}

.brief-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--green);
}

.brief-summary pre {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  min-height: 150px;
}

.summary-flash { animation: summaryFlash .5s ease-out; }

@keyframes summaryFlash {
  0% { background: rgba(91, 223, 156, .2); }
  100% { background: rgba(255, 255, 255, .06); }
}

.brief-summary .btn { width: 100%; }
.brief-summary .btn.is-copied { background: linear-gradient(120deg, #0e7a4e, #16b878); }
.brief-status { font-size: 14px; color: var(--green); min-height: 1.4em; }

/* -------------------------------------------------------------------- FAQ */

.faq { padding-bottom: clamp(64px, 9vw, 120px); }

.faq-list { display: grid; gap: 12px; }

.faq details {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .25s, box-shadow .3s;
}

.faq details:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.faq details[open] { border-color: var(--blue); }

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary i {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  transition: transform .35s var(--ease-out), background-color .3s;
}

.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .35s var(--ease-out), background-color .3s;
}

.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); }

.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--sub); animation: faqIn .4s var(--ease-out); }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- 정책 */

.policy { display: grid; gap: 14px; padding-bottom: clamp(64px, 9vw, 120px); }

.policy article {
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}

.policy h2 { font-size: 19px; }
.policy p { color: var(--sub); }

/* ------------------------------------------------------------------- 404 */

.not-found {
  min-height: 70svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding-top: var(--header-h);
  padding-bottom: 60px;
}

.not-found-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(90px, 16vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--line-strong);
  animation: floatChip 5s ease-in-out infinite alternate;
}

.nf-zero {
  position: relative;
  width: .82em;
  height: .82em;
  display: inline-grid;
  place-items: center;
}

.nf-zero i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: .09em solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(var(--blue), var(--green), var(--blue)) border-box;
  animation: ringSpin 3.2s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.not-found h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.not-found .btn { margin-top: 12px; }

/* ---------------------------------------------------------- 라우트 전환 */

.route-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(243, 245, 250, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.route-expand-layer {
  position: fixed;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.route-expand-layer .mock { height: 100%; object-fit: contain; }
.route-leaving main { opacity: .6; transition: opacity .5s; }

/* ======================================================================
   연출 레이어 - 인트로 커튼, 단어 등장, 커서, 스포트라이트, 리플, 전환
   ====================================================================== */

/* --------------------------------------------------------- 인트로 커튼 */

.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--dark);
  transition: opacity .5s var(--ease-out);
}

.intro-curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(33, 69, 230, .5), transparent 60%),
    radial-gradient(50% 50% at 85% 85%, rgba(22, 184, 120, .3), transparent 60%);
  animation: heroDrift 8s ease-in-out infinite alternate;
}

.intro-mark {
  position: relative;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.intro-mark .brand-svg { width: clamp(200px, 34vw, 320px); height: auto; }

/* 로고가 그려지듯 등장 */
.intro-mark .lg-line {
  opacity: 0;
  animation: introLine .6s var(--ease-out) forwards;
}

.intro-mark .lg-line:nth-of-type(2) { animation-delay: .1s; }
.intro-mark .lg-line:nth-of-type(3) { animation-delay: .2s; }

.intro-mark .lg-word {
  opacity: 0;
  animation: introWord .7s var(--ease-out) .18s forwards;
}

.intro-mark .lg-blade,
.intro-mark .lg-swoosh {
  opacity: 0;
  animation: introWord .6s var(--ease-out) .5s forwards;
}

.intro-mark .lg-orbit {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: logoOrbit .9s var(--ease-out) .34s forwards;
}

@keyframes introLine {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: none; }
}

@keyframes introWord {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.intro-bar {
  position: relative;
  width: clamp(160px, 26vw, 240px);
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.intro-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--grad);
  transform-origin: left;
  animation: introBar 1.5s var(--ease-out) forwards;
}

@keyframes introBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 커튼이 위로 걷히면서 본문 공개 */
.intro-curtain.is-done {
  animation: introLift .85s cubic-bezier(.76, 0, .24, 1) forwards;
  pointer-events: none;
}

@keyframes introLift {
  to { clip-path: inset(0 0 100% 0); }
}

.intro-curtain.is-done .intro-mark { animation: introMarkOut .45s var(--ease-out) forwards; }

@keyframes introMarkOut {
  to { opacity: 0; transform: translateY(-26px) scale(.94); }
}

/* 커튼이 걷힌 뒤 히어로가 따라 올라온다 */
.js [data-page="home"] .hero-copy > *,
.js [data-page="home"] .hero-visual {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

/* intro-done 는 <html> 에 붙으므로 루트에서 판정한다 */
.js:not(.intro-done) [data-page="home"] .hero-visual {
  opacity: 0;
  transform: translateY(40px) scale(.96);
}

/* --------------------------------------------------- 제목 단어 분해 등장 */

[data-split].is-split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.9em) rotate(4deg);
  filter: blur(6px);
  transition:
    opacity .75s var(--ease-out),
    transform .75s var(--ease-out),
    filter .75s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 65ms);
  will-change: transform, opacity, filter;
}

[data-split].words-in .word {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* 등장이 끝난 제목은 승격을 반납한다 */
[data-split].words-done .word { will-change: auto; filter: none; }

/* 로테이터는 분해 대상이 아니므로 같은 타이밍으로 따라오게 */
/* 로테이터에는 blur 를 걸지 않는다. filter 가 새 렌더링 문맥을 만들면서
   background-clip:text 의 그라디언트가 깨져 글자가 어둡게 뭉개졌다. */
[data-split].is-split .hero-rotator {
  display: inline-block;
  opacity: 0;
  transform: translateY(.9em);
  transition: opacity .75s var(--ease-out) .1s, transform .75s var(--ease-out) .1s;
}

[data-split].words-in .hero-rotator {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* --------------------------------------------------------- 커스텀 커서 */

.cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 480;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.cursor-layer.is-live { opacity: 1; }

.cursor-ring,
.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(33, 69, 230, .55);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background-color .3s, border-color .3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .25s;
}

.cursor-layer.is-hover .cursor-ring {
  width: 62px;
  height: 62px;
  background: rgba(33, 69, 230, .1);
  border-color: rgba(91, 223, 156, .8);
}

.cursor-layer.is-hover .cursor-dot { width: 0; height: 0; opacity: 0; }
.cursor-layer.is-down .cursor-ring { width: 30px; height: 30px; background: rgba(91, 223, 156, .2); }
.cursor-layer.is-text .cursor-ring { width: 3px; height: 32px; border-radius: 2px; background: var(--blue); }

/* 커서를 켠 화면에서는 기본 커서를 숨겨 몰입도를 높인다 */
@media (min-width: 901px) and (pointer: fine) {
  .js body:has(.cursor-layer.is-live),
  .js body:has(.cursor-layer.is-live) a,
  .js body:has(.cursor-layer.is-live) button,
  .js body:has(.cursor-layer.is-live) summary { cursor: none; }
  .js body:has(.cursor-layer.is-live) input,
  .js body:has(.cursor-layer.is-live) textarea { cursor: none; }
}

/* --------------------------------------------------------- 스포트라이트 */

[data-spotlight] { position: relative; }

[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(91, 223, 156, .16), transparent 62%);
}

[data-spotlight].is-lit::after { opacity: 1; }

/* ------------------------------------------------------------- 클릭 리플 */

.btn,
.choice-lines button,
.stack-tile,
.chapter-jump a { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(91, 223, 156, .5), rgba(33, 69, 230, .1) 60%, transparent 70%);
  pointer-events: none;
  animation: rippleOut .65s var(--ease-out) forwards;
}

.btn-primary .ripple,
.btn-invert .ripple { background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 70%); }

@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---------------------------------------------------------- 페이지 커튼 */

.route-curtain {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  pointer-events: none;
}

.route-curtain i {
  background: var(--dark);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* 세 칸의 경계에 생기는 머리카락 굵기의 틈을 막는다.

   1fr 세 칸은 화면 너비가 3으로 나누어떨어지지 않으면 경계가 소수점에 놓인다
   (예: 1366px -> 455.328 / 910.656). 각 칸은 transform 으로 움직이는 별도
   합성 레이어라서 같은 경계 픽셀을 서로 모르는 채로 반투명하게 칠하고,
   그 둘을 겹쳐도 100% 가 되지 않아 뒤 배경이 밝은 선으로 새어 나온다.
   고해상도(2배) 화면에서 특히 잘 보이고, 실제로 두 번째와 세 번째 칸
   사이에서 화면 높이 전체에 걸쳐 나타났다.

   칸을 서로 2px 겹쳐 두면 경계가 어느 소수점에 놓이든 덮인다.
   세 칸 모두 같은 불투명한 색이라 겹친 부분은 보이지 않는다.
   왼쪽으로만 밀어 넣으므로 화면 밖으로 삐져나가지도 않는다. */
.route-curtain i + i { margin-left: -2px; }

.route-curtain.is-closing { pointer-events: all; }
.route-curtain.is-closing i { animation: curtainUp .5s cubic-bezier(.76, 0, .24, 1) forwards; }
.route-curtain.is-closing i:nth-child(2) { animation-delay: .06s; }
.route-curtain.is-closing i:nth-child(3) { animation-delay: .12s; }

@keyframes curtainUp {
  to { transform: scaleY(1); }
}

/* --------------------------------------------- 스크롤 속도 반응 요소 */

/* 스크롤 속도에 따른 카드 기울기는 ±1.8도로 거의 보이지 않으면서
   넓은 영역을 매 프레임 다시 칠해 스크롤 프레임의 약 25%를 소모했다.
   같은 "속도감"은 기술 스택 3개 행의 가속으로 이미 표현되므로 기울기는 뺀다. */
.service-card {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

/* ------------------------------------------------- 화면 밖 구역 비용 절감 */

/* 화면에서 벗어난 구역은 애니메이션을 멈춰 프레임 예산을 되돌려준다.
   다시 들어오면 그대로 이어서 재생되므로 효과는 그대로 유지된다. */
.js [data-motion-scope].is-idle,
.js [data-motion-scope].is-idle *,
.js [data-motion-scope].is-idle *::before,
.js [data-motion-scope].is-idle *::after { animation-play-state: paused !important; }

/* 아직 보이지 않는 아래쪽 구역은 렌더링 자체를 건너뛴다 */
.js .home-scope,
.js .home-process,
.js .home-studio,
.js .motion-ribbon,
.js .service-editorial,
.js .work-editorial,
.js .process-editorial,
.js .about-story,
.js .faq,
.js .policy {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* --------------------------------------------------------------- 리빌 모션 */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

.js [data-reveal="left"] { transform: translateX(-34px); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal="zoom"] { transform: scale(.94) translateY(14px); }

.js [data-reveal="flip"] {
  transform: perspective(1200px) rotateX(-16deg) translateY(46px) scale(.96);
  transform-origin: center top;
  filter: blur(4px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 90ms);
}

.js [data-reveal="mask"] {
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity .9s var(--ease-out), clip-path 1s var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 80ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
  clip-path: inset(0 0 -10% 0);
}

/* ------------------------------------------------------------ 반응형 */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-visual { min-height: 380px; max-width: 560px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .process-preview { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .service-chapter,
  .case-study { grid-template-columns: 1fr; }
  .service-chapter:nth-child(even) .service-visual,
  .case-study-2 .case-visual { order: 0; }
  .brief-builder { grid-template-columns: 1fr; }
  .brief-summary { position: static; }
  .home-studio-card { grid-template-columns: 1fr; }
  .after-launch { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .about-passages { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .hero-chip-3 { display: none; }
  .process-editorial article { grid-template-columns: 44px minmax(0, 1fr); }
  .process-output { grid-column: 2; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-preview { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { display: none; }
  .hero-visual { min-height: 330px; }
  .hero-phone { width: 42%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-strip-actions .btn { width: 100%; }
  .choice-lines button { flex: 1 1 calc(50% - 5px); }
  .choice-lines.choice-types button { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .choice-lines button { flex: 1 1 100%; }
  .hero-chip-1 { right: 2%; }
}

/* ------------------------------------------------------- 모션 감소 설정 */

/* 위치가 계속 바뀌는 연출(전정기관을 자극하는 움직임)만 정지하고,
   자리 이동이 없는 밝기·색 전환은 남겨 화면이 완전히 죽어 보이지 않게 한다. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-beam,
  .hero-window,
  .hero-phone,
  .hero-chip,
  .scroll-cue i,
  .not-found-code,
  .nf-zero i,
  .capability-marquee > div,
  .footer-film span,
  .card-sheen,
  .mk-float,
  .mk-sprite,
  .mk-coins circle,
  .mk-trend,
  .mk-chat,
  .mk-spark-a,
  .mk-spark-b,
  .loading-mark img { animation: none !important; }

  .motion-set[aria-hidden="true"] { display: none; }
  .image-scan { display: none; }
  .case-visual img { transform: none; }
  .hero-visual { transform: none; }
  .scroll-progress { transition: none; }

  /* 등장은 자리 이동 없이 밝아지기만 */
  .js [data-reveal] { transform: none !important; filter: none !important; clip-path: none !important; }

  /* 커서 추적·화면 전체를 덮는 연출은 정지 */
  .intro-curtain,
  .cursor-layer,
  .route-curtain,
  .ripple { display: none !important; }

  [data-spotlight]::after { display: none; }
  [data-split].is-split .word,
  [data-split].is-split .hero-rotator { opacity: 1; transform: none; filter: none; }
  .site-header.is-hidden { transform: none; }

  .service-card { transform: none; }

  .js:not(.intro-done) [data-page="home"] .hero-visual { opacity: 1; transform: none; }

  /* 색 띠 훑기는 자리 이동이 아니므로 천천히 유지한다 */
  .footer-film span { animation: filmSweep 12s var(--ease-out) infinite !important; }
}

/* ==========================================================================
   v51 디테일 · 효과 레이어

   구조는 그대로 두고 여기서만 더한다. 전부 transform / opacity /
   background-position / clip-path / stroke-dashoffset 같은 합성 단계 속성이라
   프레임 비용이 거의 없다. 레이아웃을 다시 계산하게 만드는 속성은 쓰지 않는다.
   ========================================================================== */

/* --------------------------------------------------- 숫자 오도미터 롤

   0 에서 목표 숫자까지 매 프레임 글자를 다시 그리는 대신, 0~9 가 세로로 쌓인
   자리(column)를 transform 으로 한 번 밀어 올린다. 프레임 비용이 없다. */

.odo {
  display: inline-flex;
  align-items: flex-start;
  gap: .01em;
}

.odo-col {
  display: block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
}

.odo-col i {
  display: block;
  font-style: normal;
  transform: translate3d(0, 0, 0);
  transition: transform 1.15s var(--ease-out);
  transition-delay: var(--odo-delay, 0ms);
}

.odo-col i s { display: block; text-decoration: none; line-height: 1; }
.odo.is-rolled .odo-col i { transform: translate3d(0, calc(var(--odo-target, 0) * -1em), 0); }

/* ------------------------------------------------- 영문 라벨 해독 애니메이션

   화면에 들어올 때 글자가 무작위 기호에서 제자리를 찾아간다.
   한 번만 돌고 끝나며 대상은 짧은 영문 라벨뿐이다. */

.eyebrow[data-scramble] { font-variant-ligatures: none; }
.eyebrow[data-scramble] .scr-off { opacity: .55; }

/* ------------------------------------------------------- 카드 깊이 시차

   커서를 올리면 카드보다 안쪽 목업이 조금 더 움직여서 층이 갈라져 보인다. */

.service-card-visual .mock,
.service-card-visual svg {
  transition: transform .5s var(--ease-out);
  will-change: auto;
}

.service-card:hover .service-card-visual .mock,
.service-card:focus-visible .service-card-visual .mock {
  transform: translate3d(calc(var(--cx, 0) * 10px), calc(var(--cy, 0) * 10px), 0) scale(1.045);
}

.service-card-copy { transition: transform .5s var(--ease-out); }

.service-card:hover .service-card-copy,
.service-card:focus-visible .service-card-copy {
  transform: translate3d(calc(var(--cx, 0) * 3px), calc(var(--cy, 0) * 3px), 0);
}

/* ------------------------------------------------- 화면 진입 시 카드 광택 훑기 */

.sweep { position: relative; overflow: hidden; }

.sweep::after { content: none; }

.sweep.is-swept::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .58) 50%, transparent 62%);
  animation: sweepRun 1.15s var(--ease-out) .18s both;
}

@keyframes sweepRun {
  from { transform: translate3d(-130%, 0, 0); opacity: 1; }
  to { transform: translate3d(130%, 0, 0); opacity: 0; }
}

/* --------------------------------------------------- 버튼 커서 추종 광원 */

.btn { position: relative; overflow: hidden; isolation: isolate; }

/* 커서를 따라오는 광원. z-index:-1 + isolation 으로 라벨 아래에 깔린다 */
/* content:none 이면 상자 자체가 만들어지지 않는다. 커서가 올라올 때만 생기므로
   버튼이 몇 개든 평소 프레임 비용이 0 이다. */
.btn::after { content: none; }

.btn:hover::after,
.btn:focus-visible::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 66%);
  animation: glowIn .34s var(--ease-out) both;
}

.btn-ghost:hover::after,
.btn-ghost:focus-visible::after { background: radial-gradient(circle, rgba(33, 69, 230, .16), transparent 66%); }

@keyframes glowIn {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------- 내비 글자 단위 반응 */

.desktop-nav a .ch {
  display: inline-block;
  transition: transform .32s var(--ease-out), color .2s var(--ease-out);
  transition-delay: calc(var(--ch-i, 0) * 26ms);
}

.desktop-nav a:hover .ch { transform: translateY(-3px); }
.desktop-nav a .ch-space { white-space: pre; }

/* ------------------------------------------------- 기술 스택 타일 상호작용 */

.stack-tile {
  position: relative;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease-out);
}

.stack-tile:hover {
  transform: translate3d(0, -8px, 0) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  z-index: 3;
}

.stack-tile::after { content: none; }

.stack-tile:hover::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f5fa;
  color: #0d1530;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  animation: tipIn .22s var(--ease-out) both;
}

@keyframes tipIn {
  from { opacity: 0; transform: translate3d(-50%, 6px, 0); }
  to { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

/* ----------------------------------------------------- 진행 미리보기 강화

   카드 네 장 위로 진행선이 실제로 그어지고, 지나간 단계의 번호가 채워진다. */

.process-preview { position: relative; }

.process-rail {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 46px;
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
  border-radius: 2px;
}

/* 채움 값은 부모의 CSS 변수가 아니라 이 요소의 inline transform 으로 넣는다.
   부모에 변수를 쓰면 그 아래 전체가 스타일 재계산 대상이 되어 스크롤이 무거워진다. */
.process-rail i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}

.process-step-no::before { transition: background .34s var(--ease-out), color .34s var(--ease-out), transform .34s var(--ease-out); }

.process-step.is-lit .process-step-no::before {
  background: var(--grad);
  color: #fff;
  transform: translateY(-2px);
}

.process-step > b { transition: color .3s var(--ease-out); }

/* 평소에는 상자를 만들지 않는다. 단계가 켜지거나 커서가 올라올 때만 생긴다. */
.process-step::before { content: none; }

.process-step.is-lit::before,
.process-step:hover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--grad);
  transform-origin: left;
  animation: stepBar .42s var(--ease-out) both;
}

@keyframes stepBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 900px) { .process-rail { display: none; } }

/* --------------------------------------------------- 히어로 코드 하이라이트

   편집기 위를 얇은 빛줄기가 한 줄씩 훑고 지나간다. */

.code-body { position: relative; }

.code-highlight {
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(111, 155, 255, .16), rgba(91, 223, 156, .1) 60%, transparent);
  transform: translate3d(0, var(--hl-y, 0px), 0);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease-out);
  pointer-events: none;
}

.is-typing .code-highlight { opacity: 1; }

/* ------------------------------------------------------- 복사 완료 체크 */

.copy-check {
  width: 18px;
  height: 18px;
  flex: none;
  overflow: visible;
}

.copy-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.is-copied .copy-check path { animation: checkDraw .42s var(--ease-out) forwards; }

@keyframes checkDraw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------- FAQ 아이콘 변형 */

.faq summary i { transition: transform .3s var(--ease-out); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details { transition: background .3s var(--ease-out); }
.faq details[open] { background: rgba(33, 69, 230, .03); }

/* ------------------------------------------------- 프로젝트 이미지 확대 */

.case-visual figure { overflow: hidden; }
.case-visual img { transition: transform .8s var(--ease-out); }
.case-visual:hover img,
.case-visual:focus-visible img { transform: scale(1.05); }

/* --------------------------------------------------------- 스크롤 안내 링 */

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  border: 1px solid rgba(91, 223, 156, .5);
  animation: cueRing 1.8s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes cueRing {
  0% { transform: scale(.35); opacity: 0; }
  35% { opacity: .75; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .odo-col i,
  .sweep::after,
  .code-highlight,
  .scroll-cue::after,
  .rotator-word { animation: none !important; transition: none !important; }
  .odo.is-rolled .odo-col i { transform: translate3d(0, calc(var(--odo-target, 0) * -1em), 0); }
  .scroll-cue::after { display: none; }
  .process-rail i { transform: scaleX(1); }
}

/* --------------------------------------------- 목업 안의 실제 문구

   예전에는 회색 막대만 있어서 "아직 안 채운 자리표시자"로 보였다.
   실제 화면에 있을 법한 문구를 넣으면 같은 그림이 만들어진 화면으로 읽힌다.
   장식용 그래픽이라 aria-hidden 이고 본문 글자 크기 규칙과는 무관하다. */

.mk-t { font-family: inherit; font-weight: 700; }
.mk-t-url { font-size: 9px; font-weight: 500; fill: #7d8aa8; }
.mk-t-nav { font-size: 9px; font-weight: 600; fill: #6b7794; }
.mk-t-head { font-size: 13px; fill: #1b2b56; letter-spacing: -.02em; }
.mk-t-body { font-size: 8px; font-weight: 500; fill: #8a95ad; }
.mk-t-cta { font-size: 9px; fill: #fff; }
.mk-t-label { font-size: 9px; font-weight: 600; fill: #6b7794; }
.mk-t-num { font-size: 14px; fill: #2145e6; letter-spacing: -.03em; }
.mk-t-row { font-size: 8px; font-weight: 600; fill: #6b7794; }
.mk-t-onhero { font-size: 10px; fill: #fff; }
.mk-t-onhero-sub { font-size: 8px; font-weight: 600; fill: rgba(255, 255, 255, .82); }
.mk-t-toast { font-size: 8px; fill: #1b2b56; }
.mk-t-toast-sub { font-size: 7.5px; font-weight: 600; fill: #8a95ad; }

/* ==========================================================================
   v53 아기자기한 디테일

   전체 인상은 그대로 두고, 눈이 머무는 곳마다 작은 반응을 하나씩 심는다.
   센 느낌을 덜어내는 게 아니라 그 위에 사람 손길을 얹는 쪽이다.
   전부 transform / opacity 라 프레임 비용은 없고, 화면 밖 구역은
   기존 관찰자가 이미 멈춰 준다.
   ========================================================================== */

:root {
  /* 살짝 지나쳤다 돌아오는 곡선. 이것 하나로 움직임이 딱딱하지 않고 통통해진다 */
  --ease-spring: cubic-bezier(.34, 1.62, .58, 1);
}

/* --------------------------------------------- 로고에 손을 올리면 반응한다 */

.brand .lg-line { transform-box: fill-box; transform-origin: right center; }
.brand:hover .lg-line,
.brand:focus-visible .lg-line { animation: lineDart .52s var(--ease-spring); }
.brand:hover .lg-line:nth-of-type(2) { animation-delay: 40ms; }
.brand:hover .lg-line:nth-of-type(3) { animation-delay: 80ms; }
.brand .lg-orbit { transform-box: fill-box; transform-origin: center; }
.brand:hover .lg-orbit,
.brand:focus-visible .lg-orbit { animation: orbitLoop .9s var(--ease-out); }

@keyframes lineDart {
  0% { transform: translateX(0); }
  45% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

@keyframes orbitLoop {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ------------------------------------- 구역 라벨 뒤에서 깜빡이는 커서

   라벨이 한 글자씩 해독되고 나면 그 끝에 커서가 남아 깜빡인다.
   터미널을 닮은 작은 장치라 개발 스튜디오 성격과도 맞는다. */

[data-page="home"] .section-head .eyebrow::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .95em;
  margin-left: 7px;
  vertical-align: -.12em;
  background: currentColor;
  animation: labelCaret 1.15s steps(1) infinite;
}

@keyframes labelCaret {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* ------------------------------------- 기술 스택 타일이 통통 튀며 기운다 */

.stack-tile:hover {
  transform: translate3d(0, -9px, 0) scale(1.09) rotate(-3.5deg);
  transition-duration: .42s;
  transition-timing-function: var(--ease-spring);
}

/* 옆 타일도 아주 살짝 물러난다. 하나만 뜨는 것보다 줄 전체가 살아 있어 보인다 */
.motion-set .stack-tile:hover + .stack-tile { transform: translate3d(4px, -2px, 0); }

/* ----------------------------------- 숫자가 자리에 살짝 지나쳤다 앉는다 */

.odo-col i { transition-timing-function: var(--ease-spring); }

/* 단위(개 · 단계 · 인 · 건)는 카드에 손을 올리면 한 번 뛴다 */
.stat-value span { display: inline-block; transition: transform .34s var(--ease-spring); }
.stat-tile:hover .stat-value span { transform: translateY(-4px); }

/* ------------------------------------------- 신뢰 항목 체크가 톡 나온다 */

.js .hero-trust li::before { animation: checkPop .5s var(--ease-spring) both; }
.js .hero-trust li:nth-child(1)::before { animation-delay: 1.05s; }
.js .hero-trust li:nth-child(2)::before { animation-delay: 1.17s; }
.js .hero-trust li:nth-child(3)::before { animation-delay: 1.29s; }

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------- 버튼 화살표가 앞서 나간다 */

.btn:hover span,
.btn:focus-visible span { transform: translateX(4px); transition-timing-function: var(--ease-spring); }

/* --------------------------------- 목업 안에서 커서가 버튼을 눌러 보인다

   화면이 그림이 아니라 "쓰이고 있는 제품"으로 읽히게 하는 장치다.
   카드가 화면 밖으로 나가면 기존 관찰자가 멈춘다. */

.mk-cursor path { fill: #1b2b56; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.mk-cursor { animation: mkCursor 5.4s var(--ease-out) infinite; }

@keyframes mkCursor {
  0% { transform: translate(206px, 150px); opacity: 0; }
  10% { transform: translate(170px, 142px); opacity: 1; }
  32% { transform: translate(52px, 112px); opacity: 1; }
  38% { transform: translate(52px, 112px) scale(.82); }
  45% { transform: translate(52px, 112px) scale(1); }
  78% { transform: translate(52px, 112px); opacity: 1; }
  92% { transform: translate(128px, 158px); opacity: 0; }
  100% { transform: translate(206px, 150px); opacity: 0; }
}

.mk-click { fill: rgba(33, 69, 230, .35); transform-origin: 55px 115px; animation: mkClick 5.4s linear infinite; }

@keyframes mkClick {
  0%, 36% { opacity: 0; transform: scale(.15); }
  41% { opacity: .55; transform: scale(.5); }
  56%, 100% { opacity: 0; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .mk-cursor,
  .mk-click,
  [data-page="home"] .section-head .eyebrow::after,
  .js .hero-trust li::before { animation: none !important; }
  .mk-cursor, .mk-click { opacity: 0; }
  .js .hero-trust li::before { transform: none; opacity: 1; }
}
