/* NX 2안 · 히어로 → Beneath The Numbers 스크롤 스토리
   디자인 레퍼런스: 캔버스 A안 · 다크. 카피는 A안 그대로.
   .is-live  = 고정 무대 + 3D 카메라 이동 (기본)
   그 외      = 정적 두 화면 (동작 줄이기 설정, 3D 미지원) */

:root {
  --bg: #07060F;
  --ink: #FFFFFF;
  --ink-2: #B9B5CC;
  --ink-3: #8C88A3;
  --accent: #7B5CFF;
  --lilac: #C9BCFF;
  --deep: #3B22B8;
  --night: #150C45;
  --font: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 88px;

  /* 화면 크기에 맞춰 줄어드는 글자 크기: 풀스크린 한 화면 안에 들어가도록 높이(vh)도 함께 본다 */
  --h1-size: clamp(52px, min(9.5vw, 15vh), 144px);
  --lead-size: clamp(22px, min(3vw, 4.4vh), 40px);
  --title-size: clamp(44px, min(7vw, 11vh), 104px);
  --h2-size: clamp(24px, min(3.2vw, 4.8vh), 46px);
  --para-size: clamp(18px, min(1.9vw, 3vh), 28px);
}
@media (max-width: 900px) { :root { --header-h: 72px; } }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: #FFFFFF; color: #0B0820; font-weight: 700;
  padding: 12px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ── 헤더 ─────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; }
.header-inner {
  max-width: 1280px; height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand svg { display: block; width: 149px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 15px; color: rgba(255, 255, 255, .86);
  transition: color .2s var(--ease);
}
.nav a:hover { color: #FFFFFF; }
.header-cta { margin-left: 14px; }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: transparent; border: 0; color: #FFFFFF; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 39;
  background: rgba(7, 6, 15, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 24px var(--gutter) 40px; overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 64px;
  font-size: 24px; font-weight: 700; border-bottom: 1px solid #1C1930;
}
.mobile-menu .btn { margin-top: 32px; width: 100%; }
@media (max-width: 900px) {
  .header-inner .nav, .header-inner .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .brand svg { width: 128px; height: 24px; }
}

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 10px;
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--primary { background: #FFFFFF; color: #0B0820; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(123, 92, 255, .35); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .42); color: #FFFFFF; font-weight: 500; }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); border-color: #FFFFFF; }
.btn:active { transform: translateY(0) scale(.98); }

/* ── 공통: 장면과 카피 ───────────────────────────── */
.stage { position: relative; }
.stage-gl, .sky-nums { display: none; }
.scene {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 32px) var(--gutter) 72px;
  text-align: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 24px; font-family: var(--display); font-size: 15px; letter-spacing: .24em; color: var(--lilac); }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: var(--h1-size); line-height: .98; letter-spacing: -.045em;
}
.hero-lead { margin: clamp(20px, 4vh, 36px) 0 0; font-size: var(--lead-size); line-height: 1.35; letter-spacing: -.03em; font-weight: 700; }
.hero-more { display: flex; flex-direction: column; align-items: center; }
.hero-body { margin: 18px 0 0; max-width: 620px; font-size: clamp(16px, 2.2vh, 18px); line-height: 1.7; color: rgba(255, 255, 255, .82); }
.hero-cta { margin-top: clamp(28px, 5vh, 48px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.about-above { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.4vh, 24px); }
.about-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: var(--title-size); line-height: 1; letter-spacing: -.045em;
}
.about-title .dot { color: var(--accent); }
.about-h2 { margin: 0; font-size: var(--h2-size); line-height: 1.3; letter-spacing: -.035em; font-weight: 700; outline: none; }
.about-h2 .l1, .about-h2 .l2 { display: block; }
.about-h2 .l2 { color: var(--ink-3); }
.about-paras { margin-top: clamp(32px, 6vh, 64px); display: flex; flex-direction: column; gap: 28px; }
.para { margin: 0; font-size: var(--para-size); line-height: 1.75; letter-spacing: -.02em; color: var(--ink-2); }
.para .ln { display: block; }
.para .ln--key { color: #FFFFFF; font-weight: 500; }
.para em { font-style: normal; }

/* ── 정적 모드 배경 (A안과 같은 그라데이션·수평선·그리드) ── */
.scene--hero { background: radial-gradient(ellipse 90% 70% at 50% 110%, var(--accent) 0%, var(--deep) 38%, var(--night) 68%, var(--bg) 92%); }
.scene--about {
  overflow: hidden;
  background: linear-gradient(180deg, #07060F 0%, #0C0920 38%, #140D3A 46%, #0A0820 70%, #07060F 100%);
}
.scene--about::before {
  content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 1px;
  background: linear-gradient(90deg, rgba(201, 188, 255, 0), rgba(201, 188, 255, .9) 50%, rgba(201, 188, 255, 0));
  box-shadow: 0 0 18px 2px rgba(160, 130, 255, .55);
}
.scene--about::after {
  content: ""; position: absolute; left: -50%; right: -50%; top: 46%; height: 140%;
  transform-origin: 50% 0; transform: perspective(520px) rotateX(68deg);
  background-image:
    repeating-linear-gradient(90deg, rgba(150, 125, 255, .26) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(150, 125, 255, .26) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.scene > * { position: relative; z-index: 1; }
.scroll-cue, .motion-toggle { display: none; }

/* ══ 라이브 모드: 고정 무대 하나에서 두 화면이 이어진다 ══ */
/* 실제 높이는 main.js가 타임라인(머무름 구간 포함)에 맞춰 다시 정한다 */
.is-live .story { height: 1000vh; }
.is-live .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: transparent;
  --hz: 120vh;      /* 수평선 위치(px). main.js가 카메라 각도로 매 프레임 계산 */
  --l2h: 60px;      /* h2 2행 높이. main.js가 측정 */
}
/* 3D 캔버스는 화면 고정 배경: 위 섹션에서 숫자 섹션까지 하나의 우주로 이어진다 */
.is-live .stage-gl { display: block; position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100svh; z-index: 0; }
.is-live main { position: relative; z-index: 1; }
.is-live .scene { position: absolute; inset: 0; min-height: 0; background: none; }
.is-live .scene--about::before, .is-live .scene--about::after { display: none; }

/* 화면 1 */
.is-live .scene--hero { padding: var(--header-h) var(--gutter) 0; }
.is-live .hero-copy { will-change: transform, opacity; }
/* 로드: 수평선 빛이 차오르는 동안(main.js, 1.6초) 카피가 차례로 또렷해진다.
   본문·버튼(.hero-more)은 로드 때는 숨어 있다가 스크롤로 올라온다 (main.js) */
.is-live .hero-copy > *:not(.hero-more) { animation: nxBlurIn .9s cubic-bezier(.16, 1, .3, 1) both; }
.is-live .hero-more { opacity: 0; will-change: transform, opacity; }
.is-live .hero-copy > .eyebrow { animation-delay: .2s; }
.is-live .hero-copy > .hero-title {
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 40%, #CBBEFF 50%, #FFFFFF 60%, #FFFFFF 100%);
  background-size: 250% 100%; background-position: 150% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nxBlurIn 1s cubic-bezier(.16, 1, .3, 1) .3s both, nxShine 2.2s ease-in-out 1.3s 1 both;
}
.is-live .hero-copy > .hero-lead { animation-delay: .5s; }
@keyframes nxBlurIn { from { opacity: 0; transform: translateY(32px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nxShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.is-live .scroll-cue {
  display: block; position: absolute; left: 50%; bottom: 28px; width: 1px; height: 48px; margin-left: -.5px;
  background: rgba(255, 255, 255, .18); overflow: hidden;
}
.is-live .scroll-cue span {
  position: absolute; left: 0; top: 0; width: 1px; height: 16px;
  background: #FFFFFF; animation: nxCue 2.2s var(--ease) infinite;
}
@keyframes nxCue { 0% { transform: translateY(-16px); } 70%, 100% { transform: translateY(48px); } }

/* 화면 2: 수평선(--hz)을 기준으로 위·아래에 배치 */
.is-live .scene--about { display: block; padding: 0; pointer-events: none; }
.is-live .about-above {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(100% - var(--hz) + 16px);
}
.is-live .about-h2 { position: relative; align-self: stretch; }
.is-live .about-h2 .l2 { position: absolute; left: 0; right: 0; top: calc(100% + 32px); }
.is-live .about-above, .is-live .about-title, .is-live .about-h2 .l1, .is-live .about-h2 .l2 { will-change: transform, opacity; }
.is-live .about-paras {
  position: absolute; left: var(--gutter); right: var(--gutter); margin: 0;
  top: calc(var(--hz) + 16px + var(--l2h) + clamp(28px, 5vh, 52px));
  display: grid; z-index: 0;
}
/* 문단 뒤 어둠막: 그리드 위에서도 글자가 읽히도록 */
.is-live .about-paras::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%; width: min(860px, 120%); height: 160%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(7, 6, 15, .78), rgba(7, 6, 15, .45) 60%, rgba(7, 6, 15, 0));
  opacity: var(--scrim, 0);
}
.is-live .para { grid-area: 1 / 1; }
.is-live .para .ln { opacity: 0; will-change: transform, opacity; }
.is-live .para .ln--key { color: inherit; }
.is-live .ln--key .w { color: #5E5A78; transition: color .35s var(--ease); }
.is-live .ln--key .w.on { color: #FFFFFF; }
.is-live .ln--goal { color: var(--ink-2); transition: color .5s var(--ease), text-shadow .5s var(--ease); }
.is-live .ln--goal em { transition: color .5s var(--ease); }
.is-live .ln--goal.is-on { color: #FFFFFF; }
.is-live .ln--goal.is-on em { color: var(--lilac); text-shadow: 0 0 24px rgba(160, 130, 255, .8); }

/* 별 → 숫자 */
.is-live .sky-nums { display: block; position: absolute; inset: 0; pointer-events: none; }
.sky-num {
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: .04em; color: var(--lilac);
  will-change: transform;
}
.sky-num i, .sky-num b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.sky-num i { width: 4px; height: 4px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 10px 3px rgba(201, 188, 255, .75); opacity: 0; }
.sky-num b { font-weight: 500; white-space: nowrap; opacity: 0; }

/* 모션 일시정지 */
.is-live .motion-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: rgba(20, 16, 40, .62); border: 1px solid rgba(255, 255, 255, .18); color: #FFFFFF;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.motion-toggle:hover { background: rgba(40, 32, 80, .8); border-color: rgba(255, 255, 255, .4); }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.is-paused .scroll-cue span { animation-play-state: paused; }

/* ══ NX IN NUMBERS ═══════════════════════════════════
   기본(정적) = 완성된 그리드. 라이브 = 고정 무대에서 카드가 하나씩 중앙으로 나왔다 돌아감 (main.js) */
.numbers { position: relative; background: var(--bg); }
.numbers-stage {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 48px;
}
.is-live .numbers { height: 760vh; }
.is-live .numbers-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
/* 라이브에서는 배경을 비우고 뒤의 3D 우주가 그대로 보이게 한다 */
.is-live .numbers { background: transparent; }
.is-live .numbers-bg { display: none; }
/* 카드는 처음엔 없다가 하나씩 나타난다 (main.js) */
.is-live .stat { opacity: 0; }

.numbers-bg .glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--a { left: -8%; top: 14%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(123, 92, 255, .24), rgba(123, 92, 255, 0) 65%); }
.glow--b { right: -6%; top: 40%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(61, 123, 255, .18), rgba(61, 123, 255, 0) 65%); }

.numbers-inner { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.numbers-title { margin: 0 0 clamp(28px, 5vh, 48px); font-weight: 500; }

.stat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  --e: 0; --k: 1;
  position: relative; overflow: hidden;
  padding: 0 24px 32px; border-radius: 24px;
  /* --chrome: 카드 상자(배경·테두리·그림자). 1 = 카드, 0 = 상자 없이 배경 위에 그래프·글자만 */
  --chrome: 1;
  background: rgb(12 10 26 / var(--chrome)); border: 1px solid rgb(42 38 64 / var(--chrome));
  transform-origin: center;
  box-shadow: 0 0 0 1px rgba(201, 188, 255, calc(var(--e) * .35 * var(--chrome))), 0 40px 90px rgba(0, 0, 0, calc(var(--e) * .55 * var(--chrome)));
}
/* 상자가 없을 때는 글자 뒤에 옅은 그림자를 깔아 배경 빛 위에서도 읽히게 */
.stat-num, .stat-label, .stat-note { text-shadow: 0 2px 18px rgba(7, 6, 15, calc(.85 * (1 - var(--chrome)))); }
.stat-visual { position: relative; height: clamp(110px, 17vh, 170px); margin: 0 -24px 8px; }
.stat-num {
  margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.03em;
  font-size: clamp(36px, min(4.4vw, 7vh), 64px);
}
.stat-num .unit { font-family: var(--font); font-size: .56em; font-weight: 700; letter-spacing: 0; }
.stat-label { margin: 14px 0 0; font-size: 16px; font-weight: 500; }
.stat-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }

/* 1. 합산 매출: 선 끝점에 점을 정확히 얹는다 (viewBox 276/300, 26/170) */
.graph-glow { opacity: var(--chrome); position: absolute; left: 50%; top: 100%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, .42), rgba(123, 92, 255, 0) 65%); }
.graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.graph-line { fill: none; stroke: #C9BCFF; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.graph-dot {
  position: absolute; left: 92%; top: 15.294%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 0 18px 6px rgba(201, 188, 255, .75);
}
.graph-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(201, 188, 255, .7); opacity: 0; }

/* 2. 운영 그룹사: 중심 NX + 궤도 위 다섯 */
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit-core { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 30px 8px rgba(123, 92, 255, .6); }
.orbit-ring { position: absolute; width: 130px; height: 130px; margin: -65px; border: 1px solid rgba(201, 188, 255, .3); border-radius: 50%; }
.orbit-ring i {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: #FFFFFF; transform: rotate(calc(var(--i) * 72deg)) translateY(-65px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.orbit-ring i:nth-child(even) { background: var(--lilac); }

/* 3. 자체 개발 솔루션: 모듈 10개 */
.modules { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 210px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.modules span {
  aspect-ratio: 1; border-radius: 8px;
  background: rgba(123, 92, 255, .45); border: 1px solid rgba(201, 188, 255, .4);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.modules span:nth-child(3n+1) { background: rgba(123, 92, 255, .85); }
.modules span:nth-child(4n+3) { background: rgba(201, 188, 255, .9); }

/* 4. 자체 제조시설: 인증 배지 */
.badge-wrap { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.badge { position: absolute; width: 84px; height: 84px; margin: -42px; }
.badge-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9B82FF, #3B22B8);
  box-shadow: 0 0 36px 6px rgba(123, 92, 255, .5);
  display: flex; align-items: center; justify-content: center;
}
.badge-ring { position: absolute; inset: -18px; border: 1px dashed rgba(201, 188, 255, .45); border-radius: 50%; }
.badge-ripple { position: absolute; inset: 0; border: 2px solid rgba(201, 188, 255, .7); border-radius: 50%; opacity: 0; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 0 14px 20px; border-radius: 18px; }
  .stat-visual { height: 96px; margin: 0 -14px 6px; }
  .stat-num { font-size: clamp(30px, 8.6vw, 44px); }
  .stat-label { margin-top: 10px; font-size: 14px; }
  .stat-note { font-size: 12px; }
  .orbit, .badge-wrap { transform: scale(.62); }
  .modules { width: 130px; gap: 6px; }
  .modules span { border-radius: 5px; }
}

/* 라이브: 각 카드가 강조될 때(--k 0→1) 숫자·시각 요소가 켜진다 */
.is-live .stat-num { opacity: calc(.28 + .72 * var(--k)); }
.is-live .orbit-ring { animation: nxSpin 24s linear infinite; }
.is-live .orbit-ring i:not(.on) { opacity: 0; transform: rotate(calc(var(--i) * 72deg)) translateY(-36px) scale(.3); }
.is-live .modules span:nth-child(4n+3).on { animation: nxTwinkle 4s ease-in-out infinite; }
.is-live .modules span:not(.on) { background: #17142A; border-color: #2A2640; opacity: .7; transform: scale(.86); }
.is-live .badge { transform: scale(calc(.55 + .45 * var(--k))); opacity: calc(.3 + .7 * var(--k)); }
.is-live .badge-ring { animation: nxSpin 30s linear infinite; }
.is-live .badge-ripple { animation: nxRipple 2.8s ease-out infinite; }
.is-live .badge-ripple + .badge-ripple { animation-delay: -1.4s; }
.is-live .graph-dot::after { animation: nxRipple 2.4s ease-out infinite; }
.is-live .graph-area { opacity: 0; }
.is-live .graph-line { stroke-dashoffset: 1; }
.is-live .graph-dot { opacity: 0; }
.is-paused .numbers *, .is-paused .numbers *::after { animation-play-state: paused !important; }

@keyframes nxSpin { to { transform: rotate(360deg); } }
@keyframes nxTwinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes nxRipple { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }

/* Lenis 부드러운 스크롤 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ══ 풀스크린 섹션 (Our Solution · How We Partner · Our Companies · Insight · Grow With NX) ══
   A안 모습: 가운데 정렬, 큰 영어 제목 + 흰색·회색 두 톤 한국어 제목.
   한 섹션이 한 화면에 들어가도록 글자·간격을 화면 높이(vh)에 맞춰 줄인다. */
.page {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
  box-sizing: border-box; text-align: center;
}
.is-live .page { background: transparent; }
.page-inner { position: relative; z-index: 1; width: 100%; max-width: 1280px; display: flex; flex-direction: column; align-items: center; }
.page-display {
  margin: 0 0 clamp(14px, 2.6vh, 32px);
  font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.045em;
  font-size: clamp(42px, min(7vw, 10.5vh), 104px);
}
.page-display .dot { color: var(--accent); }
.page-h2 { margin: 0; font-size: clamp(22px, min(2.8vw, 4.4vh), 38px); line-height: 1.4; letter-spacing: -.03em; font-weight: 700; }
.page-h2 span { color: var(--ink-3); }

/* Our Solution */
.pill {
  margin: clamp(18px, 4vh, 48px) 0 0; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #3A3460; border-radius: 999px; padding: 9px 20px;
  font-family: var(--display); font-size: 14px; letter-spacing: .18em; color: var(--lilac);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(123, 92, 255, .7); }
.sol-grid { list-style: none; margin: clamp(16px, 3vh, 32px) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sol-card {
  background: #100D22; border: 1px solid #2A2640; border-radius: 20px;
  min-height: clamp(210px, 32vh, 320px); padding: clamp(20px, 3.2vh, 36px) clamp(18px, 2vw, 32px);
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.8vh, 18px);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.sol-card:hover { border-color: #3A3460; transform: translateY(-2px); }
.sol-no { font-family: var(--display); font-size: 14px; color: var(--ink-3); }
.sol-card h3 { margin: 0; font-size: clamp(19px, 2.6vh, 23px); font-weight: 700; }
.sol-card p { margin: 0; font-size: clamp(14px, 1.9vh, 16px); line-height: 1.75; color: var(--ink-2); }
.marquee {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden;
  padding: clamp(12px, 2vh, 24px) 0; border-top: 1px solid #1C1930; border-bottom: 1px solid #1C1930;
  pointer-events: none;
}
.marquee-track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(28px, 5vh, 56px); color: rgba(255, 255, 255, .5);
}
.marquee-track span { padding-right: 48px; }
.marquee-track .outline { color: transparent; -webkit-text-stroke: 1px rgba(201, 188, 255, .45); }
.marquee-track .accent { color: rgba(160, 140, 255, .7); }
.is-live .marquee-track { animation: nxMarquee 36s linear infinite; }
@keyframes nxMarquee { to { transform: translateX(-50%); } }
.page--solutions { padding-bottom: calc(clamp(52px, 9vh, 104px) + 24px); }
@media (max-height: 700px) { .marquee { display: none; } .page--solutions { padding-bottom: 40px; } }

/* How We Partner */
.partner-wave { position: absolute; left: 0; top: 58%; width: 100%; height: 200px; pointer-events: none; }
.is-live .fx-dash { animation: nxDash 1.6s linear infinite; }
@keyframes nxDash { to { stroke-dashoffset: -40; } }
.steps { list-style: none; margin: clamp(32px, 7vh, 72px) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { border-top: 2px solid #3A3460; padding-top: clamp(18px, 3vh, 28px); }
.step--lead { border-top-color: var(--accent); }
.step-no { display: block; font-family: var(--display); font-size: clamp(32px, 4.6vh, 40px); font-weight: 700; line-height: 1; color: var(--lilac); }
.step h3 { margin: clamp(12px, 2vh, 16px) 0 0; font-size: clamp(20px, 2.8vh, 24px); font-weight: 700; }
.step p { margin: 12px 0 0; font-size: 16px; line-height: 1.75; color: var(--ink-2); }

/* Our Companies */
.co-hub {
  margin: clamp(28px, 6vh, 64px) auto 0; width: 100%; max-width: 360px; box-sizing: border-box;
  border: 1px solid var(--accent); border-radius: 20px; padding: clamp(20px, 3.4vh, 36px) 28px;
  background: linear-gradient(180deg, #1A1240, #0C0A1A); box-shadow: 0 0 60px rgba(123, 92, 255, .35);
}
.co-name { margin: 0; font-size: clamp(22px, 3vh, 26px); font-weight: 700; }
.co-name span { margin-right: 6px; font-size: max(12px, .62em); font-weight: 500; color: var(--ink-3); }
.co-hub .co-name { font-size: clamp(26px, 3.6vh, 32px); }
.co-desc { margin: 10px 0 0; font-size: 15px; color: var(--ink-3); }
.co-hub .co-desc { color: var(--ink-2); }
.co-lines { display: block; height: clamp(56px, 9vh, 110px); }
.is-live .fx-flow { animation: nxFlow .9s linear infinite; }
@keyframes nxFlow { to { stroke-dashoffset: -24; } }
.co-grid { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; word-break: keep-all; }
.co-card { position: relative; border: 1px solid #2A2640; border-radius: 16px; padding: clamp(20px, 3.2vh, 32px) 20px; background: #0C0A1A; }
.co-card::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--lilac); box-shadow: 0 0 14px 4px rgba(160, 130, 255, .7);
}
.is-live .co-card::before { animation: nxPulse 2.6s ease-in-out infinite; }
@keyframes nxPulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; } }

/* Insight */
.ins-all { margin-top: clamp(16px, 2.6vh, 24px); display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .5); }
.ins-all:hover { text-decoration-color: #FFFFFF; }
.ins-grid { list-style: none; margin: clamp(20px, 4vh, 48px) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ins-card a { display: block; color: #FFFFFF; }
.ins-thumb { display: block; height: clamp(130px, 25vh, 240px); border-radius: 16px; border: 1px solid #2A2640; transition: transform .4s var(--ease); }
.ins-card a:hover .ins-thumb { transform: scale(1.02); }
.ins-text { display: block; }
.ins-tag { display: block; margin-top: clamp(12px, 2vh, 20px); font-size: 14px; color: var(--lilac); }
.ins-title { display: block; margin-top: 8px; font-size: clamp(18px, 2.6vh, 21px); font-weight: 700; line-height: 1.45; word-break: keep-all; }

/* Grow With NX */
.cta-display {
  margin: 0 0 clamp(18px, 3.4vh, 32px);
  font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.045em;
  font-size: clamp(56px, min(9vw, 14vh), 136px);
}
.cta-actions { margin-top: clamp(28px, 5vh, 48px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 섹션이 화면에 들어올 때 차례로 또렷해진다 (라이브 모드만, 한 번) */
.is-live .page .reveal {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1), filter .8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 80ms);
}
.is-live .page.is-in .reveal { opacity: 1; transform: none; filter: none; }
.is-live .page .page-display.reveal { --d: 0s; }
.is-live .page .page-h2.reveal { --d: .12s; }
.is-live .page .pill.reveal, .is-live .page .ins-all.reveal, .is-live .page .cta-actions.reveal, .is-live .page .co-hub.reveal { --d: .24s; }
.is-live .page .sol-card.reveal, .is-live .page .step.reveal, .is-live .page .co-card.reveal, .is-live .page .ins-card.reveal { --d: .32s; }
.is-paused .page *, .is-paused .page *::before { animation-play-state: paused !important; }

/* ══ 푸터 (A안) ══ */
.site-footer { position: relative; z-index: 1; background: #0D0C17; border-top: 1px solid #1C1930; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 48px; box-sizing: border-box; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid #23202F; }
.footer-logo { display: block; width: 171px; height: 32px; }
.family { position: relative; }
.family-btn, .biz-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: inherit; font-size: 14px; font-weight: 700; color: #FFFFFF; cursor: pointer; }
.family-btn { justify-content: space-between; width: 200px; padding: 10px 16px; background: #1A1826; border: 1px solid #2E2B3D; border-radius: 8px; }
.biz-btn { margin-top: 20px; padding: 10px 0; background: transparent; border: 0; }
.family-btn svg, .biz-btn svg { transition: transform .25s var(--ease); }
.family-btn[aria-expanded="true"] svg, .biz-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.family-list {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: 200px; box-sizing: border-box;
  margin: 0; padding: 8px; list-style: none; background: #1A1826; border: 1px solid #2E2B3D; border-radius: 8px;
}
.family-list a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 6px; color: var(--ink-2); }
.family-list a:hover { background: #24213A; color: #FFFFFF; }
.biz-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding: 20px 0 40px; border-bottom: 1px solid #23202F; }
.biz-info[hidden] { display: none; }
.biz-info p { margin: 0; }
.biz-label { margin-bottom: 8px !important; color: #FFFFFF; font-weight: 700; }
.biz-info a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.policy { display: flex; flex-wrap: wrap; align-items: center; padding-top: 16px; }
.policy a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink-2); border-right: 1px solid #3A3650; }
.policy a:first-child { padding-left: 0; }
.policy a:last-child { border-right: 0; }
.policy-strong { color: #FFFFFF !important; font-weight: 700; }
.copyright { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

/* 휴대폰: 섹션 경계 근처에서 멈추면 섹션 맨 위에 맞춰진다 (휠 넘김 대신) */
@media (hover: none) and (pointer: coarse) {
  html.is-live { scroll-snap-type: y proximity; }
  .is-live .page { scroll-snap-align: start; }
}

/* ══ 모바일 배치: 한 화면 안에 들어가게 촘촘히 ══ */
@media (max-width: 900px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sol-card { min-height: 0; padding: 16px 12px; gap: 8px; border-radius: 16px; }
  .sol-icon { width: 26px; height: 26px; }
  .sol-card h3 { font-size: 16px; }
  .sol-card p { font-size: 13px; line-height: 1.6; word-break: keep-all; }
  .sol-card p br, .step p br, .ins-title br { display: none; }
  .pill { font-size: 12px; padding: 7px 14px; }
  .steps { margin-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 14px; text-align: left; }
  /* 번호는 왼쪽, 제목·설명은 오른쪽: 세 단계가 한 화면에 들어가게 */
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding-top: 14px; }
  .step-no { grid-row: span 2; font-size: 28px; }
  .step h3 { margin: 0; font-size: 18px; }
  .step p { grid-column: 2; margin-top: 6px; font-size: 14px; line-height: 1.65; }
  .co-lines { display: none; }
  .co-grid { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .co-card { padding: 16px 10px; }
  .co-card::before { display: none; }
  .co-name { font-size: 18px; }
  .co-hub .co-name { font-size: 22px; }
  .co-desc { font-size: 13px; }
  .ins-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; text-align: left; }
  .ins-card a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
  .ins-thumb { height: 72px; border-radius: 12px; }
  .ins-tag { margin-top: 0; font-size: 12px; }
  .ins-title { margin-top: 4px; font-size: 16px; }
  .partner-wave { top: 70%; }
}
@media (max-width: 560px) {
  .sol-no { display: none; }
}

/* ══ 우주 컨셉: 프리로더 · 행성 히어로 · 유리 카드 · 일식 (2026-11-10, 샘플 A·B에서 확정) ══ */

/* 프리로더: 화면 가로 가운데, 행성 테두리 높이(--limb0)에서 선이 차오르고, 화면 끝까지 뻗으며 행성 빛이 된다 (main.js initPreloader) */
.preloader { display: none; }
.is-live .preloader {
  display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--bg, #07060F);
  transition: opacity .9s cubic-bezier(.65, 0, .35, 1) .3s;
}
.pre-mark {
  position: absolute; left: 50%; top: calc(var(--limb0, 55vh) - 60px);
  width: 128px; transform: translate(-50%, 10px);
  opacity: 0; filter: blur(6px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1), filter .7s cubic-bezier(.16, 1, .3, 1);
}
.pre-mark svg { display: block; width: 100%; height: auto; }
.pre-line { position: absolute; left: 0; right: 0; top: var(--limb0, 55vh); height: 1px; }
.pre-line i {
  position: absolute; left: 50%; top: 0; width: 240px; height: 1px; margin-left: -120px;
  background: linear-gradient(90deg, rgba(201, 188, 255, 0), #FFFFFF 50%, rgba(201, 188, 255, 0));
  box-shadow: 0 0 12px rgba(255, 255, 255, .3); /* 무채색 번짐: 선 자체의 빛만, 색은 행성 테두리 빛이 맡는다 */
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
}
.preloader.is-on .pre-mark { opacity: 1; transform: translate(-50%, 0); filter: none; }
.preloader.is-on .pre-line i { transform: scaleX(1); }
.preloader.is-out { opacity: 0; }
.preloader.is-out .pre-mark { opacity: 0; transform: translate(-50%, -14px); filter: blur(8px); transition-duration: .45s; }
.preloader.is-out .pre-line i {
  transform: scaleX(9); opacity: 0;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), opacity 1s ease .25s;
}
/* 프리로더가 끝날 때까지 히어로 카피 등장은 멈춰 둔다 */
.is-loading .hero-copy > * { animation-play-state: paused !important; }

/* 행성 테두리가 제목을 가리는 마스크는 main.js가 매 프레임 계산한다 */
.is-live .hero-title { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* 유리 카드 (NX IN NUMBERS): 자리에 앉은 카드(--chrome 1)만 유리, 가운데서 강조될 때(0)는 상자 없이.
   반투명 바탕 + 뒤 흐림 + 위 테두리 하이라이트 + 카드마다 다른 성운 색 빛 한 점 */
.stat {
  --glass-hue: 123 92 255;
  background:
    radial-gradient(120% 75% at 18% 0%, rgb(var(--glass-hue) / calc(.24 * var(--chrome))), transparent 64%),
    linear-gradient(180deg, rgb(255 255 255 / calc(.075 * var(--chrome))), rgb(255 255 255 / calc(.02 * var(--chrome))));
  border: 1px solid rgb(255 255 255 / calc(.11 * var(--chrome)));
  -webkit-backdrop-filter: blur(calc(18px * var(--chrome))) saturate(140%);
  backdrop-filter: blur(calc(18px * var(--chrome))) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / calc(.18 * var(--chrome))),
    0 0 0 1px rgba(201, 188, 255, calc(var(--e) * .35 * var(--chrome))),
    0 40px 90px rgba(0, 0, 0, calc(var(--e) * .55 * var(--chrome)));
}
.stat:nth-child(2) { --glass-hue: 72 186 232; }
.stat:nth-child(3) { --glass-hue: 214 96 255; }
.stat:nth-child(4) { --glass-hue: 150 130 255; }

/* 일식 속 1조: 커지는 동안 가운데를 기준으로 */
.is-live .ln--goal { transform-origin: 50% 50%; }

/* ══ 아래 섹션 상세안 적용 (2026-11-10): Grow With NX 일출 · 푸터 위 띠 · Our Companies 별자리 · Insight 성운 카드 ══ */

/* Our Solution: 띠 문구는 푸터 위로 옮겼으므로 아래 여백만 */
.page--solutions { padding-bottom: 40px; }

/* ── Our Companies · 별자리 ── */
.co-hub {
  position: relative; max-width: none; width: auto; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  display: flex; flex-direction: column; align-items: center;
}
.co-hub .co-name { font-size: clamp(24px, 3.4vh, 30px); }
.co-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.co-hub, .co-grid { position: relative; z-index: 1; }
.co-grid { margin-top: clamp(56px, 10vh, 112px); max-width: 1000px; gap: 24px; }
.co-card { padding: 0; border: 0; border-radius: 0; background: none; }
.co-card::before { content: none; }
.co-card:nth-child(1) { top: 10px; }
.co-card:nth-child(2) { top: -12px; }
.co-card:nth-child(3) { top: 12px; }
.co-card:nth-child(4) { top: -8px; }
.co-name { font-size: 20px; }
.co-desc { margin-top: 6px; font-size: 13px; }
.co-star { position: relative; display: block; width: 8px; height: 8px; margin: 0 auto 16px; border-radius: 50%; background: #FFFFFF; transition: transform .3s var(--ease); }
.co-star::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  /* 별빛 번짐은 무채색(흰빛)으로: 별 자체의 빛만 */
  background: radial-gradient(circle, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1) 38%, rgba(255, 255, 255, 0) 70%);
}
/* NX 별은 이름표 아래: 아래로 뻗는 별자리 선이 NX 글자를 가로지르지 않게 */
.co-star--hub { order: 3; width: 12px; height: 12px; margin: 22px auto 0; }
.co-star--hub::after { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.co-card:hover .co-star { transform: scale(1.4); }
.is-live .co-star::after { animation: nxTwinkle 3.2s ease-in-out infinite; }
.is-live .co-card:nth-child(2) .co-star::after { animation-delay: -.8s; }
.is-live .co-card:nth-child(3) .co-star::after { animation-delay: -1.6s; }
.is-live .co-card:nth-child(4) .co-star::after { animation-delay: -2.4s; }
@keyframes nxTwinkle { 0%, 100% { opacity: .7; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.co-line { fill: none; stroke: rgba(201, 188, 255, .5); stroke-width: 1; stroke-dasharray: var(--len, 0); stroke-dashoffset: 0; transition: stroke .3s var(--ease); }
.co-line.is-hot { stroke: rgba(221, 214, 255, .95); }
.co-flow { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 var(--len, 0); stroke-dashoffset: 2; opacity: 0; }
/* 라이브 모드: 스크롤을 따라 NX 별에서 선이 뻗어 나가고(--p 0→1, main.js initCoLines), 선이 닿는 회사부터 켜진다(--cp).
   시간으로 움직이는 전환은 쓰지 않는다 — 스크롤을 늦게 따라오지 않게. 다 뻗으면(.is-drawn) 선 위로 빛 점이 흐른다 */
.is-live .page--companies .co-line { stroke-dashoffset: calc(var(--len, 0) * (1 - var(--p, 0))); transition: stroke .3s var(--ease); }
.is-live .page--companies .co-card.reveal { opacity: var(--cp, 0); transform: translateY(calc((1 - var(--cp, 0)) * 14px)); filter: blur(calc((1 - var(--cp, 0)) * 6px)); transition: none; }
.is-live .page--companies .co-flow { opacity: 0; animation: none; }
.is-live .page--companies.is-drawn .co-flow { opacity: 1; animation: nxRun 3.6s linear infinite; animation-delay: calc(.3s + var(--i) * .5s); }
.is-live .page--companies.is-drawn .co-flow.is-hot { animation-duration: 1.4s; }
@keyframes nxRun { from { stroke-dashoffset: 2; } to { stroke-dashoffset: calc(var(--len, 0) * -1); } }
.is-paused .page--companies .co-flow { animation-play-state: paused; }

/* ── Insight · 성운 썸네일 유리 카드 ── */
.ins-all {
  padding: 0 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.ins-all:hover { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .1); }
.ins-card a {
  position: relative; display: block; padding: 12px 12px 22px; border-radius: 22px; color: #FFFFFF; text-align: left;
  /* 색은 성운 썸네일이 맡으므로 카드 바탕은 무채색 유리만 */
  background: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .11);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.ins-card a:hover { border-color: rgb(255 255 255 / .22); }
.ins-card:nth-child(1) a { --hue: 123 92 255; }
.ins-card:nth-child(2) a { --hue: 72 186 232; }
.ins-card:nth-child(3) a { --hue: 214 96 255; }
.ins-thumb { position: relative; overflow: hidden; height: clamp(130px, 22vh, 220px); border: 0; border-radius: 14px; background: #0B0920; }
.ins-card a:hover .ins-thumb { transform: none; }
/* 성운: 크게 깔린 빛 덩어리 두세 개가 천천히 돈다 + 작은 별 */
.ins-thumb::before {
  content: ""; position: absolute; inset: -45%;
  background:
    radial-gradient(28% 24% at 38% 42%, rgb(var(--hue) / .9), rgb(var(--hue) / 0) 70%),
    radial-gradient(22% 20% at 64% 58%, rgb(var(--hue) / .55), rgb(var(--hue) / 0) 70%),
    radial-gradient(40% 32% at 52% 50%, rgb(60 40 160 / .45), rgb(60 40 160 / 0) 75%);
  filter: blur(8px);
  transition: scale .6s var(--ease);
}
.ins-thumb::after {
  content: ""; position: absolute; inset: 0; opacity: .75;
  background:
    radial-gradient(1px 1px at 18% 28%, #FFFFFF, transparent), radial-gradient(1px 1px at 72% 18%, #FFFFFF, transparent),
    radial-gradient(1.5px 1.5px at 42% 76%, #FFFFFF, transparent), radial-gradient(1px 1px at 86% 64%, #FFFFFF, transparent),
    radial-gradient(1px 1px at 56% 40%, rgba(255, 255, 255, .8), transparent), radial-gradient(1px 1px at 28% 86%, rgba(255, 255, 255, .7), transparent);
}
.is-live .ins-thumb::before { animation: nxNebula 60s linear infinite; }
.is-live .ins-card:nth-child(2) .ins-thumb::before { animation-direction: reverse; animation-duration: 72s; }
.is-live .ins-card:nth-child(3) .ins-thumb::before { animation-duration: 84s; }
.ins-card a:hover .ins-thumb::before { scale: 1.1; }
@keyframes nxNebula { to { transform: rotate(360deg); } }
.ins-text { padding: 0 8px; }
.ins-title { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.ins-card a:hover .ins-title { background-size: 100% 1px; }

/* ── Grow With NX · 행성 위 일출 ── */
.page--cta .btn { min-height: 56px; padding: 0 30px; font-size: 16px; }
.page--cta .btn--ghost { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cta-display .dot, .cta-display .ch.dot { color: var(--accent); }
/* 글자가 별빛처럼 0.04초 간격으로 또렷해진다 (제목 전체의 등장 효과 대신) */
.is-live .page--cta .cta-display.reveal { opacity: 1; transform: none; filter: none; }
.is-live .page--cta .cta-display .ch { display: inline-block; white-space: pre; opacity: 0; filter: blur(10px); transform: translateY(10px); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.15s + var(--c) * 40ms); }
.is-live .page--cta.is-in .cta-display .ch { opacity: 1; filter: none; transform: none; }
.is-live .page--cta .page-h2.reveal { --d: .65s; }
.is-live .page--cta .cta-actions.reveal { --d: .85s; }

/* 푸터 위 띠: 행성 테두리를 따라 흐르는 문구 (main.js initBand) */
.cta-band { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.cta-band-text { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -.02em; fill: rgba(255, 255, 255, .5); }
.cta-band-text .o { fill: none; stroke: rgba(201, 188, 255, .5); stroke-width: 1; }
.cta-band-text .a { fill: rgba(160, 140, 255, .85); }
.page--cta .page-inner { z-index: 1; }

/* 푸터: 행성 몸통 위에 놓인 것처럼, 위쪽은 비치고 아래로 갈수록 행성 밤면 색 */
.is-live .site-footer {
  background: linear-gradient(180deg, rgba(5, 4, 12, 0) 0, rgba(5, 4, 12, .88) 160px, #05040C 100%);
  border-top: 0;
}

@media (max-width: 900px) {
  .co-lines { display: block; }
  .co-grid { margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .co-card { padding: 0; top: 0 !important; }
  .co-name { font-size: 17px; }
  .co-hub .co-name { font-size: 22px; }
  .ins-card a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; transform: none; }
  .ins-thumb { height: 72px; border-radius: 12px; }
  .is-live .ins-thumb::before { animation: none; }
  .ins-text { padding: 0; }
  .cta-band-text { font-size: 28px; }
}
.is-live .page--cta .cta-display .wd { display: inline-block; white-space: nowrap; }

/* ══ Our Solution · 궤도 모듈 / How We Partner · 궤도 위 세 단계 (2026-11-10, 기획안 '아래 섹션 상세안') ══ */
.sol-stage { position: relative; width: 100%; }
.sol-core, .sol-lines, .partner-orbit, .partner-sat { display: none; }

/* 유리 카드 (라이브 모드) */
.is-live .sol-card, .is-live .page--partner .step {
  background: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .11);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
}
.is-live .sol-card:hover { transform: none; }
.is-live .sol-core { display: block; pointer-events: none; }

/* 연결선: 모듈 노드 → 카드. 켜진 카드의 선에만 빛이 흐른다 */
.sol-line { fill: none; stroke: rgba(201, 188, 255, .26); stroke-width: 1; transition: stroke .4s var(--ease); }
.sol-line.is-on { stroke: rgba(201, 188, 255, .6); }
.sol-flow { fill: none; stroke: #FFFFFF; stroke-width: 1.5; stroke-dasharray: 3 9; opacity: 0; transition: opacity .4s var(--ease); }
.sol-flow.is-on { opacity: .9; animation: nxFlow .9s linear infinite; }
.is-paused .sol-flow { animation-play-state: paused; }

/* 궤도선·노드·위성 */
.po-base { fill: none; stroke: rgba(201, 188, 255, .32); stroke-width: 1; stroke-dasharray: 4 8; }
.po-done { fill: none; stroke: rgba(170, 150, 255, .95); stroke-width: 1.5; }
.po-node { fill: #0B0920; stroke: rgba(201, 188, 255, .7); stroke-width: 1.5; transition: fill .4s var(--ease); }
.po-node.is-on { fill: #FFFFFF; }

/* How We Partner → Our Companies 부채꼴 넘김: 위성과 보라 선은 화면 위 층에서 바퀴와 함께 돈다 (main.js initFan) */
.fan-layer { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 20; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.fan-layer.is-on { opacity: 1; }
.fan-layer.is-on.is-done { opacity: 0; transition-duration: .6s; }
.fan-trail { fill: none; stroke: rgba(170, 150, 255, .95); stroke-width: 1.6; stroke-linecap: round; }
.fan-dot { fill: #FFFFFF; }
.fan-halo { fill: rgba(255, 255, 255, .22); filter: blur(5px); }
/* 넘어가는 동안 Partner 자체 위성은 숨기고, 두 섹션은 회전으로 겹칠 수 있으니 회전 중에는 눌리지 않게 */
.page--partner.is-fanning .partner-sat { opacity: 0 !important; transition: none; }
.page--partner.is-fanning, .page--partner.is-fanning + .page--companies { pointer-events: none; }
/* Our Solution → How We Partner 궤도 진입 (main.js initOrbitDive): 넘어가는 동안에는 등장·단계 효과의 시간차를 끄고
   스크롤 진행에 바로 붙여 움직인다. 두 섹션이 겹쳐 있으니 눌리지 않게 */
.page.is-diving .reveal, .page.is-diving .steps, .page.is-diving .partner-orbit, .page.is-diving .partner-sat { transition: none !important; }
.page.is-diving { pointer-events: none; }
/* 위성이 NX 별에 닿으면(.is-touched) 별이 한 번 반짝이고, 별자리는 그 뒤 스크롤을 따라 뻗는다 (main.js initFan) */
.is-live .page--companies.is-touched .co-star--hub { animation: nxArrive .9s cubic-bezier(.16, 1, .3, 1) 1; }
/* NX 이름표는 위아래로 움직이지 않고 나타난다 — 위성이 내려앉을 별이 제자리를 지키게 */
.is-live .page--companies .co-hub.reveal { transform: none; }
@keyframes nxArrive { 0% { transform: scale(1); } 35% { transform: scale(1.9); } 100% { transform: scale(1); } }

@media (min-width: 901px) {
  /* Our Solution: 왼쪽 01·02 | 궤도 모듈 | 오른쪽 03·04 */
  .is-live .sol-stage { max-width: 1120px; margin: clamp(12px, 2.6vh, 28px) auto 0; }
  .is-live .sol-grid {
    position: relative; z-index: 1; margin: 0;
    grid-template-columns: 290px minmax(0, 1fr) 290px; grid-template-rows: 1fr 1fr;
    gap: clamp(28px, 6vh, 64px) 0; min-height: clamp(320px, 42vh, 420px);
  }
  /* 줄 높이는 고정, 위 카드는 위로·아래 카드는 아래로 펼쳐져 짝 카드가 따라 늘어나지 않는다 */
  .is-live .sol-card:nth-child(1) { grid-area: 1 / 1; align-self: end; }
  .is-live .sol-card:nth-child(2) { grid-area: 2 / 1; align-self: start; }
  .is-live .sol-card:nth-child(3) { grid-area: 1 / 3; align-self: end; }
  .is-live .sol-card:nth-child(4) { grid-area: 2 / 3; align-self: start; }
  .is-live .sol-card {
    min-height: 0; padding: 18px 20px; border-radius: 18px; text-align: left;
    display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; align-items: center;
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1), filter .8s cubic-bezier(.16, 1, .3, 1), border-color .4s var(--ease), background-color .4s var(--ease);
  }
  .is-live .sol-card > * { transition: opacity .4s var(--ease); }
  .is-live .sol-card:not(.is-on) > * { opacity: .6; }
  .is-live .sol-card .sol-icon { grid-row: 1 / span 2; width: 30px; height: 30px; align-self: start; margin-top: 2px; }
  .is-live .sol-card .sol-no { grid-column: 2; font-size: 12px; }
  .is-live .sol-card h3 { grid-column: 2; font-size: clamp(18px, 2.3vh, 21px); }
  .is-live .sol-card p {
    grid-column: 2; max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; font-size: 14px; line-height: 1.65;
    transition: max-height .5s var(--ease), opacity .4s var(--ease), margin-top .5s var(--ease);
  }
  .is-live .sol-card p br { display: none; }
  .is-live .sol-card.is-on { border-color: rgba(123, 92, 255, .4); background-color: rgba(123, 92, 255, .1); }
  .is-live .sol-card.is-on p { max-height: 6em; opacity: 1; margin-top: 8px; }
  .is-live .sol-core { position: absolute; left: 50%; top: 50%; width: clamp(220px, 34vh, 340px); aspect-ratio: 1; transform: translate(-50%, -50%); }
  .is-live .sol-lines { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }

  /* How We Partner: 궤도선 위 노드 셋, 겹쳐 있다 펼쳐지는 유리 카드 */
  .is-live .partner-wave { display: none; }
  .is-live .partner-orbit {
    display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0;
    clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) .35s;
  }
  .is-live .page--partner.is-in .partner-orbit { clip-path: inset(-20px -40px -20px -40px); }
  .is-live .partner-sat {
    display: block; position: absolute; left: 0; top: 0; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: #FFFFFF; transform: translate(var(--sx, -100px), var(--sy, 0)); opacity: 0; transition: opacity .5s var(--ease) 1.3s;
  }
  .is-live .partner-sat::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, 0) 70%);
    animation: nxTwinkle 2.4s ease-in-out infinite;
  }
  .is-live .page--partner.is-in .partner-sat { opacity: 1; }
  .is-live .page--partner .steps { position: relative; z-index: 1; max-width: 1100px; margin-top: clamp(110px, 17vh, 160px); gap: 28px; }
  .is-live .page--partner .step {
    --hue: 123 92 255;
    position: relative; padding: 26px 26px 28px; border-radius: 22px; text-align: left; border-top-width: 1px;
    translate: var(--dx, 0px) var(--dy, 0px); scale: var(--sc, 1);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1), filter .8s cubic-bezier(.16, 1, .3, 1),
      translate .7s cubic-bezier(.65, 0, .35, 1), scale .7s cubic-bezier(.65, 0, .35, 1), border-color .4s var(--ease), background-color .4s var(--ease);
    transition-delay: calc(var(--d, 0s) + var(--i, 0) * 80ms), calc(var(--d, 0s) + var(--i, 0) * 80ms), calc(var(--d, 0s) + var(--i, 0) * 80ms), 0s, 0s, 0s, 0s;
  }
  .is-live .page--partner .step:nth-child(2) { --hue: 72 186 232; }
  .is-live .page--partner .step:nth-child(3) { --hue: 214 96 255; }
  .is-live .page--partner .step > * { transition: opacity .4s var(--ease); }
  .is-live .page--partner .step:not(.is-on) > * { opacity: .6; }
  .is-live .page--partner .step.is-stacked > * { opacity: 0; }
  .is-live .page--partner .step.is-on { border-color: rgb(var(--hue) / .45); background-color: rgb(var(--hue) / .1); }
}

@media (max-width: 900px) {
  /* Our Solution: 모듈은 제목 아래 작게, 카드 2×2 */
  .is-live .sol-stage { display: flex; flex-direction: column; align-items: center; }
  .is-live .sol-core { order: -1; width: 100px; height: 100px; margin: 0 auto 6px; }
  .is-live .sol-card { padding: 12px; }
  /* How We Partner: 왼쪽 세로선과 노드, 화면에 들어오면 01 → 03 차례로 켜짐 */
  .is-live .partner-wave { display: none; }
  .is-live .page--partner .steps { position: relative; padding-left: 26px; box-sizing: border-box; }
  .is-live .page--partner .steps::before {
    content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 1px;
    background: linear-gradient(rgba(170, 150, 255, .9), rgba(201, 188, 255, .25));
  }
  .is-live .page--partner .step { position: relative; padding: 14px 14px 14px 16px; border-radius: 16px; border-top-width: 1px; }
  .is-live .page--partner .step::before {
    content: ""; position: absolute; left: -25px; top: 20px; width: 9px; height: 9px; border-radius: 50%;
    background: #0B0920; border: 1.5px solid rgba(201, 188, 255, .7);
    transition: background-color .3s var(--ease); transition-delay: calc(.6s + var(--i, 0) * .5s);
  }
  .is-live .page--partner.is-in .step::before { background-color: #FFFFFF; }
}

/* ── Our Solution을 낮은 화면에서도 한 화면 안에 (2026-11-10 수정) ──
   화면 높이 약 800px 미만(북마크바를 켠 13~14인치 노트북 등)에서 이 섹션이 화면보다 24~120px 길어졌다.
   그러면 main.js initPaging이 '화면보다 긴 섹션'으로 보고 보통 스크롤로 넘겨, 카드 단계를 건너뛰고 Partner로 튀거나
   스냅으로 제자리에 되돌아갔다. 위 카드(01·03)가 펼쳐질 때만 넘쳐서 단계마다 동작이 바뀌기까지 했다.
   여백·카드 영역 최소 높이를 화면 높이에 맞춰 줄여 넘치지 않게 한다. */
@media (min-width: 901px) and (max-height: 820px) {
  .is-live .page--solutions { padding-bottom: 16px; }
  .is-live .page--solutions .page-display { font-size: clamp(42px, min(7vw, 9vh), 104px); margin-bottom: clamp(10px, 1.8vh, 32px); }
  .is-live .page--solutions .pill { margin-top: clamp(12px, 2.4vh, 48px); }
  .is-live .page--solutions .sol-stage { margin-top: clamp(8px, 1.4vh, 28px); }
  .is-live .page--solutions .sol-grid { min-height: clamp(240px, 40vh, 420px); gap: clamp(20px, 4vh, 64px) 0; }
}
/* 700px 이하(작은 노트북 + 북마크바 등): 한 번 더 줄인다 */
@media (min-width: 901px) and (max-height: 700px) {
  .is-live .page--solutions { padding-top: calc(var(--header-h) + 6px); }
  .is-live .page--solutions .page-display { font-size: clamp(40px, min(7vw, 8vh), 104px); margin-bottom: clamp(8px, 1.2vh, 32px); }
  .is-live .page--solutions .pill { margin-top: clamp(8px, 1.6vh, 48px); }
  .is-live .page--solutions .sol-grid { gap: clamp(12px, 2.4vh, 64px) 0; }
}

/* ── 스크롤 앵커링 끄기 (2026-11-10 수정) ──
   섹션 내용은 세로 가운데 정렬이라 카드가 펼쳐질 때 내용 높이가 바뀌면 전체가 위아래로 움직인다.
   그러면 브라우저의 스크롤 앵커링이 scrollY를 수십 px 보정해 버려, initPaging의 '섹션 맨 위' 판정이 어긋나고
   스냅이 끼어들어 다음 굴림을 삼키거나 단계를 건너뛰었다. 스크롤은 Lenis·initPaging이 전부 맡으므로 끈다. */
html.is-live { overflow-anchor: none; }
