/* =========================================================
   corp.nextgen.kr — 넥스트젠 코퍼레이션
   빌드 없는 정적 CSS. 1440 데스크톱 기준, 860/520 브레이크포인트.
   ========================================================= */

:root {
  --black: #000;
  --ink: #0b0b0b;
  --beige: #dedbd3;
  --white: #fff;
  --gray: #8b8b8b;
  --green: #67d65a;
  --pad: 48px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Pretendard Variable", Pretendard, ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --h-xl: clamp(48px, 6.4vw, 92px);
  --hdr-h: 80px;
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.skip:focus { top: 16px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.dark { background: var(--black); color: var(--white); }
.light { background: var(--beige); color: var(--ink); }

.h-xl {
  font-family: var(--sans);
  font-size: var(--h-xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* ---------- 브랜드 아이콘 (단색, currentColor) ---------- */
.bi, .mark {
  display: inline-block;
  flex: none;
  width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.bi[data-b="nextgen"]    { -webkit-mask-image: url(/assets/brand/nextgen.svg);    mask-image: url(/assets/brand/nextgen.svg); }
.bi[data-b="heisenberg"] { -webkit-mask-image: url(/assets/brand/heisenberg.svg); mask-image: url(/assets/brand/heisenberg.svg); }
.bi[data-b="koreanly"]   { -webkit-mask-image: url(/assets/brand/koreanly.svg);   mask-image: url(/assets/brand/koreanly.svg); }
.bi[data-b="entropy"]    { -webkit-mask-image: url(/assets/brand/entropy.svg);    mask-image: url(/assets/brand/entropy.svg); }
.mark { -webkit-mask-image: url(/assets/brand/mark.svg); mask-image: url(/assets/brand/mark.svg); }

/* ---------- 이미지 폴백 ---------- */
.ph { position: relative; overflow: hidden; background: #1a1714; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.is-missing { visibility: hidden; }
.ph-hero { background: radial-gradient(120% 90% at 50% 60%, #4a3a2e 0%, #231b16 45%, #0b0908 100%); }
.ph-warm { background: linear-gradient(135deg, #6b5646 0%, #3b2f27 45%, #1b1613 100%); }
.ph-road { background: radial-gradient(90% 120% at 70% 30%, #5a4636 0%, #2e241d 50%, #120e0c 100%); }

/* ---------- 알약 버튼 ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 38px;
  border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.pill--mono { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.dark .pill:hover, .pill:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.light .pill:hover, .pill--ink:hover { background: var(--ink); color: var(--beige); border-color: var(--ink); }

/* ---------- 상태 점 ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot--live { position: relative; }
.dot--live::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* =========================================================
   헤더 — 스크롤하면 현재 섹션 색(검정/베이지) 반투명 배경 + 블러를 깔아
   본문 글자와 겹쳐 읽히지 않게 한다. data-theme 은 JS 가 아래 섹션을 보고 설정.
   ========================================================= */
.hdr {
  --hdr-fg: #fff; --hdr-dim: #9a9a9a; --hdr-bg: rgba(0, 0, 0, .62); --hdr-line: rgba(255, 255, 255, .08);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--hdr-h) + var(--safe-top)); padding: var(--safe-top) var(--pad) 0;
  color: var(--hdr-fg);
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  pointer-events: none;
}
.hdr[data-theme="light"] { --hdr-fg: #0b0b0b; --hdr-dim: #6b6862; --hdr-bg: rgba(222, 219, 211, .8); --hdr-line: rgba(11, 11, 11, .08); }
.hdr.is-solid {
  background: var(--hdr-bg); box-shadow: 0 1px 0 var(--hdr-line);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
}
body.menu-open .hdr { --hdr-fg: #fff; --hdr-dim: #9a9a9a; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.logo .mark { width: 50px; height: 50px; }
.logo-t { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: .09em; line-height: 1.35; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 52px; }
.nav a, .nav-brand {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--hdr-dim); transition: color .2s;
}
.nav-brand svg { width: 10px; height: 6px; transition: transform .25s var(--ease); }
.nav-brand[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav a:hover, .nav-brand:hover, .nav-brand[aria-expanded="true"], .nav a.is-active { color: var(--hdr-fg); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: radial-gradient(circle, currentColor 0.9px, transparent 1.2px) 0 50% / 5px 2px repeat-x;
  opacity: 0; transform: scaleX(.4); transform-origin: left; transition: opacity .3s, transform .4s var(--ease);
}
.nav a.is-active::after { opacity: 1; transform: none; }

/* 배경 음악 토글 (헤더 우측, 모바일 포함 상시 노출) */
.snd {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: 30px; margin-right: -10px;
  color: var(--hdr-dim); transition: color .2s;
}
.snd:hover, .snd[aria-pressed="true"] { color: var(--hdr-fg); }
.snd[hidden] { display: none; }
.snd svg { width: 21px; height: 21px; }
.snd .x { display: none; }
.snd[aria-pressed="false"] .x { display: inline; }
.snd[aria-pressed="false"] .w { display: none; }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -8px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 브랜드 드롭다운 (헤더 바깥, 블렌드 없음) */
.bmenu {
  position: fixed; top: 70px; right: var(--pad); z-index: 55;
  width: 260px; padding: 8px; border-radius: 16px;
  background: #111; color: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.bmenu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bmenu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: background .2s; }
.bmenu a:hover, .bmenu a:focus-visible { background: #1f1f1f; }
.bmenu img { width: 28px; height: 28px; border-radius: 7px; }
/* 검정 바탕 아이콘(NextGen)도 어두운 배경에서 둥근 사각형 윤곽이 보이도록 */
.bmenu img, .mnav-brands img { outline: 1px solid rgba(255, 255, 255, .22); outline-offset: -1px; }
.bmenu .arr { width: 12px; height: 12px; margin-left: auto; opacity: .6; }

/* 모바일 메뉴 */
/* 메뉴 내용은 헤더(+노치 safe area) 아래 영역 안에서만 스크롤 → 로고와 절대 겹치지 않음 */
.mnav {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: #000; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.mnav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mnav-in {
  flex: 1; min-height: 0; margin-top: calc(var(--hdr-h) + var(--safe-top));
  padding: 28px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.mnav-main a { display: block; padding: 8px 0; font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.mnav-label { margin: 40px 0 12px; font-size: 13px; font-weight: 600; color: var(--gray); }
.mnav-brands a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 18px; font-weight: 600; }
.mnav-brands img { width: 32px; height: 32px; border-radius: 8px; }
body.menu-open { overflow: hidden; }

/* =========================================================
   히어로 (sticky — 다음 섹션이 위로 덮는다)
   ========================================================= */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.hero-in {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad); text-align: center;
  will-change: transform, opacity;
}
.hero-t {
  font-size: clamp(26px, 7.1vw, 92px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em;
}
.js .hero-t { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .is-loaded .hero-t, .js.is-loaded .hero-t { opacity: 1; transform: none; }

.hero-ticker { position: absolute; left: 0; right: 0; bottom: 22px; overflow: hidden; }
.tick-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.tick-track--slow { animation-duration: 70s; }
.tick-set { display: flex; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }
.wm {
  display: inline-flex; align-items: center; gap: 12px; margin-right: 110px;
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: rgba(255, 255, 255, .78);
  white-space: nowrap;
}
.wm .bi { width: 30px; height: 30px; }

.over { position: relative; z-index: 2; }

/* =========================================================
   미션
   ========================================================= */
.mission { padding: 140px 0 150px; }
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 626px); column-gap: 48px; }
.m-left { position: relative; }
.m-titles { position: sticky; top: 112px; height: calc(var(--h-xl) * 3.3); }
.m-title {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.m-title.is-on { opacity: 1; transform: none; }
.m-gtitle { display: none; }
.m-ch { padding: 8px 0 120px; }
.m-ch:last-child { padding-bottom: 90px; }
.m-num { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--gray); margin-bottom: 18px; }
.m-h { font-size: 32px; font-weight: 600; line-height: 1.28; letter-spacing: -0.03em; margin-bottom: 16px; }
.m-p { font-size: 19px; line-height: 1.6; color: #cfcfcf; letter-spacing: -0.01em; }
.m-fin { padding-top: 60px; }
.m-fin .m-num { margin-bottom: 28px; }
.m-fin-h { font-size: clamp(38px, 6.4vw, 92px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; max-width: 1300px; }
.m-fin-p { margin: 36px 0 48px; max-width: 720px; font-size: 22px; line-height: 1.55; color: #d6d6d6; letter-spacing: -0.015em; }

/* =========================================================
   에코시스템
   ========================================================= */
.eco { display: grid; grid-template-columns: 38% minmax(0, 1fr); padding-bottom: 180px; }
.eco-l { position: sticky; top: 0; align-self: start; padding-top: 112px; }
.eco-h { padding-left: var(--pad); font-size: min(var(--h-xl), 5.6vw); white-space: nowrap; }
.eco-photo { margin-top: 120px; width: 88.6%; aspect-ratio: 485 / 510; border-radius: 0 24px 24px 0; }
.eco-r { padding-top: 140px; min-width: 0; }
.eco-item { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: center; min-height: 340px; padding-right: var(--pad); }
.eco-obj { position: relative; justify-self: center; width: 210px; aspect-ratio: 1; }
.eco-obj img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); z-index: 1; }
.eco-obj::before {
  content: ""; position: absolute; inset: 14%; border-radius: 28%;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #121212 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .6s var(--ease);
}
.eco-obj::after {
  content: ""; position: absolute; inset: 36%; background: rgba(255, 255, 255, .18);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.eco-obj[data-b="nextgen"]::after { -webkit-mask-image: url(/assets/brand/nextgen.svg); mask-image: url(/assets/brand/nextgen.svg); }
.eco-obj[data-b="heisenberg"]::after { -webkit-mask-image: url(/assets/brand/heisenberg.svg); mask-image: url(/assets/brand/heisenberg.svg); }
.eco-obj[data-b="koreanly"]::after { -webkit-mask-image: url(/assets/brand/koreanly.svg); mask-image: url(/assets/brand/koreanly.svg); }
.eco-obj[data-b="entropy"]::after { -webkit-mask-image: url(/assets/brand/entropy.svg); mask-image: url(/assets/brand/entropy.svg); }
.eco-obj.has-img::before, .eco-obj.has-img::after { display: none; }
.eco-item:hover .eco-obj img, .eco-item:hover .eco-obj::before { transform: scale(1.06) rotate(-3deg); }
.eco-txt { display: block; max-width: 440px; padding: 24px 0; }
.eco-name { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 14px; }
.eco-name .bi { width: 22px; height: 22px; }
.eco-name .arr { width: 13px; height: 13px; opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .3s var(--ease); }
.eco-item:hover .arr, .eco-item:focus-visible .arr { opacity: 1; transform: none; }
.eco-desc { display: block; font-size: 18px; line-height: 1.5; color: #e4e4e4; letter-spacing: -0.01em; }
.eco-name:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.eco-quote { margin-top: 80px; padding: 0 var(--pad) 0 40px; }
.eco-quote-h { max-width: 880px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; }

/* 흐름 칩 */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 18px; }
.flow li { display: inline-flex; align-items: center; }
/* 화살표는 칩 뒤에 붙인다 → 줄이 바뀌어도 새 줄이 화살표로 시작하지 않음 */
.flow li:not(:last-child)::after { content: "→"; margin: 0 7px; font-family: var(--mono); font-size: 12px; opacity: .55; }
.flow span {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
}

/* =========================================================
   엔트로피 — 같이 만드는 도구
   ========================================================= */
.cocreate { padding: 150px 0 180px; border-top: 1px solid #1a1a1a; }
.co-grid { display: grid; grid-template-columns: 554px minmax(0, 1fr); }
.co-l h2 { position: sticky; top: 112px; }
.co-list { margin: 0; padding: 0; list-style: none; }
.co-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 30px; align-items: center; margin-bottom: 64px; }
.co-item:last-child { margin-bottom: 0; }
.co-num {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: .04em;
}
.co-item h3 { margin-top: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; }
.co-item p { margin-top: 10px; max-width: 600px; font-size: 18px; line-height: 1.55; color: #d6d6d6; letter-spacing: -0.01em; }
.co-end { margin-top: 120px; }
.co-big { max-width: 1180px; font-size: clamp(30px, 3.8vw, 56px); font-weight: 500; line-height: 1.18; letter-spacing: -0.035em; }
.co-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: 52px; }
.co-cta .flow { margin-top: 0; }

/* =========================================================
   로드맵 행 (메인 미리보기 + /roadmap/)
   ========================================================= */
.rows { border-bottom: 1px solid transparent; position: relative; }
.rows::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; opacity: .45; transform-origin: left; }
.rows--dark { color: #fff; }
.rrow { position: relative; }
.rrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; opacity: .45;
  transform-origin: left;
}
.rrow a {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 0;
  transition: background-color .25s, padding .35s var(--ease);
}
.rrow a:hover { background: rgba(127, 127, 127, .09); padding-left: 10px; padding-right: 10px; }
.rrow .bi { width: 24px; height: 24px; }
.rt { flex: 1; min-width: 0; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.rs { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; }
.rd { font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; min-width: 150px; text-align: right; }
.ic-check, .ic-empty { width: 14px; height: 14px; flex: none; }
.js .rrow.pre::before, .js .rows.pre::after { transform: scaleX(0); }
.js .rrow.pre a { opacity: 0; transform: translateY(10px); }
.rrow::before, .rows::after { transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rrow a { transition: background-color .25s, padding .35s var(--ease), opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }

/* 메인 미리보기 */
.rmp { position: relative; overflow: hidden; padding: 100px 0 260px; }
.rmp-bg { position: absolute; inset: 0; }
.rmp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .3)); }
.rmp-in { position: relative; }
.rmp .rows { margin-top: 96px; }
.rmp .pill { margin-top: 96px; }

/* =========================================================
   우리가 지키는 원칙
   ========================================================= */
.eff { position: relative; padding: 100px 0 40px; }
.eff-photo {
  position: absolute; right: 0; top: -122px; z-index: 3;
  width: 33.68%; aspect-ratio: 485 / 420; border-radius: 24px 0 0 24px;
}
.eff-grid { display: grid; grid-template-columns: 554px minmax(0, 1fr); }
.eff-l h2 { position: sticky; top: 97px; }
.eff-list { padding-top: calc(33.68vw * 420 / 485 - 30px); }
.eff-item { display: grid; grid-template-columns: 139px minmax(0, 1fr); column-gap: 26px; align-items: start; margin-bottom: 80px; }
.eff-ic { position: relative; width: 139px; height: 139px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 38% 32%, #2b2b2b, #000 62%); }
.eff-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eff-item h3 { margin-top: 40px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.eff-item p { margin-top: 8px; max-width: 580px; font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; }

/* =========================================================
   열린 개발 + 스플릿플랩
   ========================================================= */
.odev { padding: 180px 0 0; }
.odev-grid { display: grid; grid-template-columns: 566px minmax(0, 1fr); align-items: center; }
.odev-p { margin: 36px 0 40px; max-width: 400px; font-size: 19px; line-height: 1.55; letter-spacing: -0.01em; }
.flap {
  --cols: 22;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px;
  padding: 22px; border-radius: 22px; background: #111;
}
.cell {
  position: relative; aspect-ratio: 30 / 38; border-radius: 3px;
  background: linear-gradient(#1f1f1f 0 50%, #181818 50% 100%);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; color: #ececec; font-size: var(--cell-fs, 26px); line-height: 1;
  overflow: hidden; perspective: 200px;
}
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .75); }
.cell::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 2px); height: 5px; border-left: 2px solid #3a3a3a; border-right: 2px solid #3a3a3a; }
.cell span { display: block; transform-origin: 50% 50%; }
.cell.f span { animation: flip .1s linear; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(80deg); opacity: .4; } 100% { transform: rotateX(0); } }
.flap-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13px; color: #555; }
.flap-meta span { display: inline-flex; align-items: center; gap: 8px; }
.flap-meta .dot { width: 7px; height: 7px; }

/* =========================================================
   소식
   ========================================================= */
.news { padding: 200px 0 140px; overflow: hidden; }
.news-bar { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 30px; }
.tabs { display: flex; gap: 28px; }
.tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 0 4px;
  font-size: 16px; font-weight: 600; color: #7a7a74;
  transition: color .2s;
}
.tab:hover, .tab.is-on { color: var(--ink); }
.tab.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: radial-gradient(circle, currentColor 0.9px, transparent 1.2px) 0 50% / 5px 2px repeat-x;
}
.arrows { display: flex; gap: 22px; }
.arrow { width: 44px; height: 44px; display: grid; place-items: center; transition: opacity .2s; }
.arrow svg { width: 10px; height: 16px; }
.arrow:disabled { opacity: .3; cursor: default; }
.cards {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { flex: none; width: 324px; scroll-snap-align: start; }
.card[hidden] { display: none; }
.card-img { display: block; position: relative; aspect-ratio: 324 / 278; border-radius: 16px; overflow: hidden; background: #111; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-img--entropy { display: grid; place-items: center; background: #25D366; }
.card-img--entropy img { width: 46%; height: auto; border-radius: 22%; }
.card a:hover .card-img img { transform: scale(1.04); }
.card-t { display: block; margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; }

/* =========================================================
   함께 일하기
   ========================================================= */
.car { padding: 190px 0 0; }
.car-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 550px); column-gap: 48px; }
.car-r p { font-size: 21px; line-height: 1.55; letter-spacing: -0.015em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.car-photo { margin-top: 56px; width: 33.68%; aspect-ratio: 485 / 345; border-radius: 0 24px 24px 0; }

/* =========================================================
   이스터에그 — CREATOR IS FOR EVERYONE
   ========================================================= */
.car-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.car-row .car-photo { flex: none; }
.egg-teaser {
  position: relative; flex: none; width: 176px; height: 174px; margin-right: var(--pad);
  border-radius: 24px; color: #fff;
}
.egg-hint {
  position: absolute; left: 0; right: 0; top: -6px; text-align: center;
  font-size: 13px; font-weight: 500; color: #bdbdbd; transition: color .2s;
}
.egg-teaser:hover .egg-hint { color: #fff; }
.egg-mini { position: absolute; inset: 22px 0 0; }
.egg-mini .bub { position: absolute; left: var(--x); top: var(--y); animation: bob var(--t, 5s) ease-in-out infinite alternate; }
.egg-teaser:hover .egg-mini .bub { animation-duration: calc(var(--t, 5s) / 3); }
.egg-teaser[aria-expanded="true"] { opacity: .35; pointer-events: none; }
@keyframes bob { from { transform: translate(-50%, -50%) translateY(6px); } to { transform: translate(-50%, -50%) translateY(-8px) rotate(8deg); } }

.bub {
  display: block; width: var(--s); height: var(--s); border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 3.5%, rgba(255, 255, 255, .35) 7%, transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .35) 0 2%, transparent 9%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 52%, rgba(140, 190, 255, .16) 66%, rgba(255, 170, 230, .22) 80%, rgba(255, 255, 255, .55) 97%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 calc(var(--s) * .12) rgba(255, 255, 255, .25);
}
.bub--g { display: grid; place-items: center; }
.bub--g .bi {
  width: 42%; height: 42%; color: rgba(0, 0, 0, .62);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 1px 0 rgba(255, 255, 255, .3));
}

.egg { position: relative; overflow: hidden; overflow: clip; height: 0; transition: height 1.4s var(--ease); }
.egg[hidden] { display: none; }
.egg-in { position: relative; padding: 240px 0 200px; }
.egg-bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.egg-bubbles .bub { position: absolute; bottom: -140px; left: var(--x); animation: rise var(--t) linear var(--dl) infinite; will-change: transform; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: 1; }
  25% { transform: translate3d(var(--sw), calc(var(--h, 1700px) * -.25), 0); }
  50% { transform: translate3d(calc(var(--sw) * -1), calc(var(--h, 1700px) * -.5), 0); }
  75% { transform: translate3d(var(--sw), calc(var(--h, 1700px) * -.75), 0); }
  92% { opacity: 1; }
  100% { transform: translate3d(0, calc(var(--h, 1700px) * -1 - 160px), 0); opacity: 0; }
}
.egg-stage {
  position: relative; z-index: 1; margin: 0 auto; width: min(960px, 100vw); aspect-ratio: 16 / 9;
  opacity: 0; transform: scale(.88); transition: opacity 1.4s var(--ease) .3s, transform 1.8s var(--ease) .3s;
}
.egg.is-open .egg-stage { opacity: 1; transform: none; }
.egg-video {
  position: absolute; inset: 0; overflow: hidden;
  /* 사각형 경계가 보이지 않도록 가장자리를 방사형으로 페이드 */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.ph-egg { background: radial-gradient(48% 52% at 50% 52%, #2a2f55 0%, #191a33 38%, #000 74%); }
.egg-video video, .egg-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.egg-ring {
  position: absolute; left: 50%; top: 50%; width: 166.7%; height: auto; transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.egg-ring text { font-family: "Gochi Hand", var(--mono); font-size: 38px; letter-spacing: .16em; word-spacing: .25em; fill: #fff; }
.egg-links {
  position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-top: 220px; padding: 0 var(--pad);
}
.egg-links .pill { height: 64px; padding: 0 34px; font-size: 14px; letter-spacing: .08em; background: rgba(0, 0, 0, .35); }
.ftr-credit { margin-top: 10px; padding: 0 var(--pad); text-align: center; font-size: 12px; color: #8b8b8b; }

/* =========================================================
   푸터
   ========================================================= */
.ftr { padding: 190px 0 64px; overflow: hidden; }
.ftr-ticker { overflow: hidden; }
.ftr-ticker .bi { width: 30px; height: 30px; margin-right: 22px; }
.ftr-grid { display: grid; grid-template-columns: 350px 302px 325px minmax(0, 1fr); padding: 160px var(--pad) 0 101px; }
.ftr-mark .mark { width: 44px; height: 44px; }
.ftr-col h2 { font-size: 16px; font-weight: 600; margin-bottom: 34px; }
.ftr-col ul { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fpill {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.fpill:hover { background: #fff; color: #000; border-color: #fff; }
.ftr-copy { margin-top: 90px; padding: 0 var(--pad); text-align: center; font-size: 14px; color: #ddd; }

/* =========================================================
   /roadmap/
   ========================================================= */
.rhero { position: relative; height: 48vh; height: 48svh; min-height: 360px; max-height: 520px; overflow: hidden; color: #fff; }
.rhero .ph { position: absolute; inset: 0; }
.rhero .ph::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.rhero h1 { position: absolute; left: var(--pad); bottom: 56px; }
.rlist { padding: 54px 0 0; }
.rbar { display: flex; align-items: center; gap: 72px; position: relative; z-index: 5; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 0; }
.dd-btn svg { width: 10px; height: 6px; transition: transform .25s var(--ease); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; left: -10px; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 12px;
  background: var(--ink); color: var(--beige); box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.dd.is-open .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 10px 12px; border-radius: 8px; text-align: left; font-size: 15px; font-weight: 500;
}
.dd-menu button:hover, .dd-menu button:focus-visible { background: #222; outline: none; }
.dd-menu button[aria-selected="true"]::after { content: "✓"; font-size: 13px; }
.rupd { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: #555; }
.rlist .rows { margin-top: 48px; color: var(--ink); }
.rempty { padding: 40px 0; font-size: 16px; color: #555; }
.rsug { padding: 150px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 550px); column-gap: 48px; align-items: end; }
.rsug p { font-size: 21px; line-height: 1.55; letter-spacing: -0.015em; margin-bottom: 30px; }
.rnote { padding: 110px var(--pad) 70px; font-size: 13px; color: #66645f; }
.page-roadmap .ftr, .page-item .ftr { padding-top: 120px; }

/* /roadmap/item/ */
.ditem { min-height: 80vh; min-height: 80svh; padding: 150px var(--pad) 120px; }
.dback { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: 15px; font-weight: 600; }
.dback:hover { text-decoration: underline; text-underline-offset: 4px; }
.dbrand { display: flex; align-items: center; gap: 12px; margin-top: 64px; font-size: 18px; font-weight: 600; }
.dbrand img { width: 40px; height: 40px; border-radius: 10px; }
.dbrand a { display: inline-flex; align-items: center; min-height: 44px; }
.dbrand a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ditem h1 { margin-top: 28px; max-width: 1100px; font-size: clamp(36px, 5vw, 72px); }
.dmeta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(11, 11, 11, .45); border-bottom: 1px solid rgba(11, 11, 11, .45); }
.dmeta dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: #66645f; margin-bottom: 6px; }
.dmeta dd { margin: 0; }
.ddesc { margin-top: 40px; max-width: 680px; font-size: 20px; line-height: 1.6; letter-spacing: -0.015em; }
.ditem .btns { margin-top: 48px; }

/* =========================================================
   스크롤 등장 모션
   ========================================================= */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1240px) {
  :root { --pad: 36px; }
  .nav ul { gap: 34px; }
  .eff-grid { grid-template-columns: 40% minmax(0, 1fr); }
  .odev-grid { grid-template-columns: 40% minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: 22% 1fr 1fr 1fr; padding-left: var(--pad); }
  .eco-obj { width: 170px; }
}

@media (max-width: 860px) {
  :root { --pad: 24px; --h-xl: clamp(34px, 10vw, 72px); --hdr-h: 68px; }
  h1, h2, h3, h4, .m-title, .co-big, .eco-quote-h, .m-p, .eco-desc, .co-item p, .car-r p { text-wrap: balance; }
  .br-d { display: none; }
  .logo .mark { width: 40px; height: 40px; }
  .logo-t { font-size: 12px; }
  .nav { display: none; }
  .burger { display: block; }
  .snd { margin-left: auto; margin-right: 0; }
  .bmenu { display: none; }

  .mission { padding: 110px 0 120px; }
  .m-grid { display: block; }
  .m-left { display: none; }
  .m-gtitle { display: block; margin: 0 0 40px; }
  .m-gtitle ~ .m-gtitle { margin-top: 24px; }
  .m-ch { padding: 0 0 52px; }
  .m-ch:last-child { padding-bottom: 32px; }
  .m-num { margin-bottom: 10px; }
  .m-h { font-size: 23px; margin-bottom: 10px; }
  .m-p { font-size: 17px; }
  .m-fin { padding-top: 32px; }
  .m-fin-h { font-size: clamp(28px, 8.4vw, 44px); line-height: 1.12; }
  .m-fin-p { font-size: 18px; margin: 24px 0 32px; }

  .eco { display: block; padding-bottom: 100px; }
  .eco-l { position: static; padding-top: 100px; }
  .eco-h { font-size: var(--h-xl); white-space: normal; }
  .eco-photo { margin: 48px var(--pad) 0; width: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .eco-r { padding: 40px 0 0; }
  .eco-quote { margin-top: 40px; padding: 0 var(--pad); }
  .eco-quote-h { font-size: 24px; }
  .cocreate { padding: 100px 0 110px; }
  .co-grid { display: block; }
  .co-l h2 { position: static; margin-bottom: 56px; }
  .co-item { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; margin-bottom: 56px; }
  .co-num { width: 56px; height: 56px; font-size: 14px; }
  .co-item h3 { margin-top: 0; font-size: 21px; }
  .co-item p { font-size: 16px; margin-top: 6px; }
  .co-item { align-items: start; }
  .co-big { font-size: 26px; line-height: 1.3; }
  .co-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .co-end { margin-top: 80px; }
  .eco-item { grid-template-columns: 132px minmax(0, 1fr); column-gap: 20px; align-items: start; min-height: 0; padding: 8px var(--pad); }
  .eco-txt { padding: 12px 0; }
  .eco-obj { width: 120px; }
  .eco-name { font-size: 20px; margin-bottom: 8px; }
  .eco-desc { font-size: 16px; line-height: 1.5; }
  .flow span { font-size: 12.5px; height: 26px; padding: 0 10px; }
  .flow li:not(:last-child)::after { margin: 0 5px; }
  .eco-name .arr { opacity: .7; transform: none; }

  .rmp { padding: 90px 0 120px; }
  .rmp .rows { margin-top: 56px; }
  .rmp .pill { margin-top: 56px; }
  .rt { font-size: 16px; }
  .rs, .rd { font-size: 12px; }
  .rd { min-width: 0; }

  .eff { padding: 0 0 20px; }
  .eff-photo { position: relative; top: auto; margin: -60px var(--pad) 0; width: auto; border-radius: 16px; }
  .eff-grid { display: block; padding-top: 56px; }
  .eff-l h2 { position: static; }
  .eff-list { padding-top: 56px; }
  .eff-item { grid-template-columns: 88px minmax(0, 1fr); column-gap: 18px; margin-bottom: 44px; }
  .eff-ic { width: 88px; height: 88px; }
  .eff-item { align-items: center; }
  .eff-item h3 { margin-top: 0; font-size: 21px; }
  .eff-item p { font-size: 16px; line-height: 1.5; margin-top: 6px; }

  .odev { padding-top: 100px; }
  .odev-grid { display: block; }
  .odev-r { margin-top: 48px; }
  .flap { --cols: 16; padding: 12px; gap: 2px; border-radius: 14px; }
  .cell { border-radius: 2px; }

  .news { padding: 110px 0 90px; }
  .tabs { gap: 28px; }
  .arrows { gap: 8px; }
  .card { width: 76vw; max-width: 324px; }

  .car { padding-top: 110px; }
  .car-grid { display: block; }
  .car-r { margin-top: 36px; }
  .car-r p { font-size: 18px; }
  .odev-p { font-size: 17px; }
  .card-t { font-size: 16px; }
  .rsug p { font-size: 18px; }
  .ddesc { font-size: 17px; }
  .car-photo { margin: 48px var(--pad) 0; width: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .car-row { flex-direction: column; align-items: stretch; }
  .car-row .car-photo { flex: auto; }
  .egg-teaser { align-self: flex-end; margin: 32px var(--pad) 0 0; width: 150px; height: 150px; }
  .egg-in { padding: 170px 0 120px; }
  .egg-stage { width: 92vw; }
  /* 모바일 링: 화면 폭(100vw) 안에 들어오는 전용 경로·viewBox (JS 가 전환) */
  .egg-ring { width: 100vw; max-width: none; }
  .egg-ring text { font-size: 40px; letter-spacing: .12em; }
  .egg-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 140px; }
  .egg-links { padding: 0 var(--pad); }
  .egg-links .pill { width: 100%; height: 64px; padding: 0 10px; font-size: 12px; flex-direction: column; gap: 2px; text-align: center; line-height: 1.35; }
  .egg-dot { display: none; }
  .egg-b { display: block; opacity: .75; }

  .ftr { padding-top: 110px; }
  .ftr-ticker .bi { width: 20px; height: 20px; margin-right: 14px; }
  .fpill { height: 44px; }
  .ftr-col ul { gap: 14px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 56px 20px; padding: 90px var(--pad) 0; }
  .ftr-mark { grid-column: 1 / -1; }
  .ftr-copy { margin-top: 72px; font-size: 13px; }

  .rhero { height: 42vh; height: 42svh; min-height: 300px; }
  .rhero h1 { bottom: 36px; }
  .rbar { flex-wrap: wrap; gap: 14px 28px; }
  .dd-btn { font-size: 14px; }
  .rupd { width: 100%; margin-left: 0; }
  .rlist .rows { margin-top: 28px; }
  .rsug { display: block; padding-top: 100px; }
  .rsug h2 { margin-bottom: 28px; }
  .ditem { padding-top: 110px; }
  .dbrand { margin-top: 44px; }
  .ddesc { font-size: 15.5px; }
}

@media (max-width: 520px) {
  :root { --pad: 20px; }
  .wm { font-size: 18px; margin-right: 40px; gap: 7px; }
  .wm .bi { width: 18px; height: 18px; }
  .hero-ticker { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .eco-item { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .eco-obj { width: 92px; }
  .rrow a { flex-wrap: wrap; gap: 6px 12px; padding: 16px 0; }
  .rrow a:hover { padding-left: 0; padding-right: 0; }
  .rt { flex-basis: calc(100% - 40px); }
  .rs { margin-left: 36px; }
  .rd { margin-left: auto; text-align: right; }
  .fpill { font-size: 11.5px; padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .tick-track, .egg-bubbles .bub, .egg-mini .bub { animation: none !important; }
  .egg-bubbles .bub { bottom: auto; top: var(--yy, 50%); }
  .js .rv, .js .hero-t, .js .rrow.pre a { opacity: 1 !important; transform: none !important; }
  .js .rrow.pre::before, .js .rows.pre::after { transform: none !important; }
}

/* 히어로·푸터 티커: 실제 앱스토어 컬러 아이콘 */
.hero-ticker .bi, .ftr-ticker .bi {
  -webkit-mask-image: none; mask-image: none;
  background-color: transparent; background-position: center; background-size: cover; background-repeat: no-repeat;
  border-radius: 23%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.hero-ticker .bi[data-b="nextgen"],    .ftr-ticker .bi[data-b="nextgen"]    { background-image: url(/assets/brand/color/nextgen.png); }
.hero-ticker .bi[data-b="entropy"],    .ftr-ticker .bi[data-b="entropy"]    { background-image: url(/assets/brand/color/entropy.png); }
.hero-ticker .bi[data-b="heisenberg"], .ftr-ticker .bi[data-b="heisenberg"] { background-image: url(/assets/brand/color/heisenberg.png); }
.hero-ticker .bi[data-b="koreanly"],   .ftr-ticker .bi[data-b="koreanly"]   { background-image: url(/assets/brand/color/koreanly.png); }
