/* ============================================================
   SUPERGENE — 시안 D "System" (homagames.com 디자인 언어 번안)
   화이트 베이스 · 초대형 UPPERCASE 헤비 타이포(lh 0.95) ·
   모노스페이스 터미널 디테일 · 라운드-풀 필 · 바이올렛 액센트
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --ink: #0F0F19;
  --body: #44415E;
  --muted: #8B87A8;
  --line: #E4E2F0;
  --accent: #6C4CF1;          /* Homa의 pink 역할 — Supergene violet */
  --accent-soft: #EEEAFE;
  --accent-tint: #F7F5FE;
  --mint: #18C8A8;
  --dark: #0F0F19;
  --on-dark: #B9B3DE;
  --radius: 24px;
  --container: 1360px;
  --header-h: 76px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'Lucida Console', Menlo, Monaco, 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 가로 오버플로우 안전망 — clip은 hidden과 달리 스크롤 컨테이너를 만들지 않아 sticky 헤더 유지 */
html, body { overflow-x: clip; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 타이포 시스템 ---------- */
/* 초대형 헤드라인 — Homa: font-black, uppercase, leading 0.95, tracking-tight */
.mega {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* 모바일 — 가장 긴 단어(ENTERTAINMENT)가 뷰포트 폭을 넘지 않는 크기로 축소 */
@media (max-width: 640px) {
  .mega { font-size: clamp(30px, 9.6vw, 46px); }
}
.mega .hl { color: var(--accent); }
.mega .ol { /* outline 텍스트 장식 */
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.h2 {
  font-size: clamp(32px, 4.4vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
}
/* 긴 h2 한 줄 유지용 — 초광폭에서 wrap(1312px) 안에 들어가도록 최대 크기만 축소 */
.h2--oneline {
  font-size: clamp(32px, 4.4vw, 66px);
}
html[lang="ja"] .h2--oneline { font-size: clamp(32px, 4.4vw, 60px); } /* 전각 문자는 더 넓음 */
.h3 {
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* 모노스페이스 터미널 라벨 — Homa의 날짜/키커 디테일 */
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.mono--muted { color: var(--muted); }
.mono--accent { color: var(--accent); }
.lead { font-size: clamp(16px, 1.8vw, 19px); max-width: 720px; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.header__logo { font-size: 20px; font-weight: 900; letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase; }
.header__logo .dot { color: var(--accent); }
.header__nav { display: flex; gap: 28px; }
.header__nav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); opacity: 0.65; transition: opacity 0.15s;
}
.header__nav a:hover { opacity: 1; }
.header__nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__langs { display: flex; gap: 4px; margin-right: 6px; }
.header__langs a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--muted); padding: 6px 8px; border-radius: 999px;
}
.header__langs a:hover { color: var(--ink); }
.header__langs a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.header__mobile-langs { display: flex; gap: 18px; padding: 14px 0 4px; }
.header__mobile-langs a { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.header__mobile-langs a[aria-current="true"] { color: var(--accent); font-weight: 700; }

.header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 24px; border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}
.header__cta:hover { background: var(--accent); transform: translateY(-1px); }
.header__burger { display: none; width: 40px; height: 40px; position: relative; }
.header__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.header__burger span:nth-child(1) { top: 13px; }
.header__burger span:nth-child(2) { top: 19px; }
.header__burger span:nth-child(3) { top: 25px; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header__mobile {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
}
.header__mobile a {
  display: block; padding: 12px 0;
  font-weight: 900; font-size: 20px; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header__mobile a[aria-current="page"] { color: var(--accent); }
.header__mobile.open { display: block; }
@media (max-width: 920px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
  .header__cta { display: none; }
}

/* ---------- 마퀴 티커 (Homa 스타일 스크롤 스트립) ---------- */
.ticker {
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 12px 0;
}
.ticker--dark { background: var(--dark); }
.ticker--line { background: none; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__track {
  display: inline-flex; white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}
.ticker__track span {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding-right: 18px;
}
.ticker__track .sep { color: rgba(255, 255, 255, 0.5); padding-right: 18px; }
.ticker--line .ticker__track .sep { color: var(--accent); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- 히어로 ---------- */
.hero { padding: clamp(56px, 9vh, 120px) 0 48px; position: relative; overflow: hidden; }
.hero__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .lead { margin-top: 32px; }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 우주 히어로 (지구 캔버스 배경) ---------- */
.hero--space {
  min-height: min(92vh, 960px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #03040a 0%, #0b0a1e 100%);
}
.hero--space .hero__earth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hero--space .hero__globe {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* 텍스처 로드 완료 시 JS가 is-on을 붙여 페이드+스케일로 등장 */
  opacity: 0;
  transform: scale(0.94);
  transform-origin: 50% 50%;
  transition: opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero--space .hero__globe.is-on {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero--space .hero__globe { transition: none; transform: none; }
}
/* 텍스트 보호 스크림 — 좌측에서 우측으로 소멸 (지구는 우측이라 영향 최소) */
.hero--space::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 3, 8, 0.8) 0%, rgba(2, 3, 8, 0.38) 48%, transparent 76%);
  pointer-events: none;
}
/* 모바일: 지구가 텍스트 뒤까지 올라오므로(globe.js narrow 분기) 세로 스크림으로 전환 */
@media (max-width: 879px) {
  .hero--space::before {
    background: linear-gradient(180deg, rgba(2, 3, 8, 0.78) 0%, rgba(2, 3, 8, 0.52) 54%, rgba(2, 3, 8, 0.1) 80%, transparent 100%);
  }
  .hero--space .pill--outline {
    background: rgba(2, 3, 10, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}
.hero--space .wrap { position: relative; z-index: 2; width: 100%; }
.hero--space .hero__meta .mono {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  background: rgba(2, 3, 10, 0.42);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.hero--space .mega { color: #fff; }
.hero--space .mega .ol { -webkit-text-stroke-color: #fff; }
.hero--space .lead { color: #c9c4e8; }
.hero--space .mono--muted { color: rgba(255, 255, 255, 0.6); }
.hero--space .pill--outline { border-color: #fff; color: #fff; }
.hero--space .pill--outline:hover { background: #fff; color: var(--ink); }

/* 페이지 히어로 (서브페이지) */
.page-hero { padding: clamp(48px, 7vh, 96px) 0 40px; }
.page-hero .mono { display: block; margin-bottom: 20px; }
.page-hero .lead { margin-top: 28px; }

/* ---------- 버튼 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.pill:hover { transform: translateY(-2px); }
.pill--accent { background: var(--accent); color: #fff; }
.pill--accent:hover { box-shadow: 0 10px 28px rgba(108, 76, 241, 0.35); }
.pill--black { background: var(--ink); color: #fff; }
.pill--black:hover { background: var(--accent); }
.pill--outline { border: 2px solid var(--ink); color: var(--ink); }
.pill--outline:hover { background: var(--ink); color: #fff; }
.pill--white { background: #fff; color: var(--ink); }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(56px, 9vh, 110px) 0; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .mega, .section--dark .h2, .section--dark .h3 { color: #fff; }
.section--dark .mono { color: var(--on-dark); }
.section--tint { background: var(--accent-tint); }
.section-head { margin-bottom: clamp(32px, 5vh, 56px); }
.section-head .mono { display: block; margin-bottom: 18px; }
.section-head .lead { margin-top: 24px; }
/* 섹션 내부에서 컴포넌트 블록이 연달아 올 때 앞 블록에 부여하는 간격 유틸리티
   (.section-head와 동일 리듬 — .section-head를 간격용으로 재사용하지 말 것: 내부 .mono 스타일이 오염됨) */
.stack { margin-bottom: clamp(32px, 5vh, 56px); }

/* ---------- 게임 쇼케이스 (Homa 게임 카드 로우: 카드 + 모노 팩트 캡션) ---------- */
.showcase {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 460px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1408px) { .showcase { padding-left: calc((100vw - var(--container)) / 2 + 24px); } }
.showcase::-webkit-scrollbar { height: 6px; }
.showcase::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.show-card { scroll-snap-align: start; }
.show-card__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--accent-tint);
}
.show-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.show-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-card:hover .show-card__media img { transform: scale(1.04); }
.show-card__media--contain img,
.show-card__media--contain video { object-fit: contain; background: #fff; }
.show-card__media--text { display: grid; place-items: center; background: var(--accent-soft); }
.show-card__media--text span { font-weight: 900; font-size: 28px; text-transform: uppercase; color: var(--accent); }
.show-card__caption { display: flex; justify-content: space-between; gap: 10px; padding: 14px 4px 0; flex-wrap: wrap; }
.show-card__name { font-weight: 900; font-size: 17px; text-transform: uppercase; color: var(--ink); }
.show-card__fact { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* ---------- 앱 아이콘 그리드 (게임 라인업) ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 28px);
}
.icon-card { text-align: center; }
.icon-card img {
  width: 100%;
  max-width: 148px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24%;
  box-shadow: 0 10px 28px rgba(23, 18, 58, 0.16);
  transition: transform 0.25s ease;
}
.icon-card:hover img { transform: translateY(-4px) scale(1.03); }
.icon-card__name {
  display: block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .icon-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .icon-card img { transition: none; }
}

/* ---------- 초거대 숫자 스탯 (Homa "1,000,000,000+ Downloads") ---------- */
.bignums { border-top: 2px solid var(--ink); }
.bignum {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: clamp(20px, 3.4vh, 40px) 0;
  border-bottom: 2px solid var(--ink);
}
.bignum__value {
  font-size: clamp(48px, 7.8vw, 120px);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
  color: var(--ink); text-transform: uppercase;
}
.bignum:hover .bignum__value { color: var(--accent); }
.bignum__label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); max-width: 560px; text-align: right; }
/* 제목 줄 + 보조 설명 줄 — 큰 숫자의 라벨과 부가 수치가 섞여 읽히지 않도록 분리 */
.bignum__label strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 5px; }
.bignum__label > span { display: block; font-size: 11.5px; color: var(--muted); white-space: normal; }
.bignum__label .nb { white-space: nowrap; }
.section--dark .bignums { border-color: rgba(255, 255, 255, 0.25); }
.section--dark .bignum { border-color: rgba(255, 255, 255, 0.25); }
.section--dark .bignum__value { color: #fff; }
.section--dark .bignum:hover .bignum__value { color: var(--mint); }
.section--dark .bignum__label { color: var(--on-dark); }

/* ---------- 넘버링 리스트 (Homa Lab "00/01/02" 섹션) ---------- */
.numrows { border-top: 1px solid var(--line); }
.numrow {
  display: grid; grid-template-columns: 90px 1fr; gap: 20px;
  padding: clamp(24px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.numrow__n { font-family: var(--mono); font-size: clamp(20px, 2.4vw, 30px); color: var(--accent); font-weight: 700; }
.numrow__body .h3 { margin-bottom: 12px; }
.numrow__body p { max-width: 780px; }
.numrow__body ul { margin-top: 14px; display: grid; gap: 8px; }
.numrow__body ul li { padding-left: 18px; position: relative; font-size: 15.5px; }
.numrow__body ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .numrow { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- 카드 그리드 (perks / values / orgs) ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.tile {
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 10px;
}
.tile--accent { background: var(--accent); color: rgba(255, 255, 255, 0.9); }
.tile--accent .tile__title, .tile--accent .mono { color: #fff; }
.tile--dark { background: var(--dark); color: var(--on-dark); }
.tile--dark .tile__title { color: #fff; }
.tile--outline { background: none; border: 2px solid var(--ink); }
.tile .mono { margin-bottom: 6px; }
.tile__title { font-size: clamp(20px, 2vw, 26px); font-weight: 900; text-transform: uppercase; line-height: 1.1; color: var(--ink); }
.tile p { font-size: 14.5px; }

/* ---------- 팩트 테이블 (About) ---------- */
.facts { border-top: 2px solid var(--ink); }
.facts__row {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.facts__row dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts__row dd { font-size: 16.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .facts__row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 뉴스피드형 타임라인 (Homa News Feed) ---------- */
.feed { border-top: 1px solid var(--line); }
.feed__row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.feed__date { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.feed__title { font-size: clamp(16px, 1.9vw, 21px); font-weight: 800; color: var(--ink); }
.feed__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
/* Phase 2 = 액센트 계열 — Phase 2 타일(tile--accent)과 같은 보라 아이덴티티, 반복 노출을 고려해 틴트 칩으로 */
.feed__tag--p2 { color: var(--accent); background: var(--accent-soft); border-color: transparent; font-weight: 700; }
@media (max-width: 640px) { .feed__row { grid-template-columns: 1fr; gap: 6px; } .feed__tag { justify-self: start; } }

/* ---------- 프로필 (Leadership) ---------- */
.profiles { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .profiles { grid-template-columns: 1fr; } }
.profile { background: var(--accent-tint); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 132px 1fr; gap: 24px; }
@media (max-width: 560px) { .profile { grid-template-columns: 1fr; } }
.profile__photo { width: 132px; height: 132px; border-radius: 20px; object-fit: cover; }
.profile__name { font-size: 24px; font-weight: 900; text-transform: uppercase; color: var(--ink); }
.profile__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 4px 0 12px; }
.profile ul { display: grid; gap: 4px; font-size: 14.5px; }
.profile ul li { padding-left: 16px; position: relative; }
.profile ul li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); font-weight: 900; }
.profile__edu { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- 잡 아코디언 (Careers) ---------- */
.jobs { border-top: 2px solid var(--ink); }
.job { border-bottom: 1px solid var(--line); }
.job__head {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 26px 0; text-align: left;
}
.job__name { font-size: clamp(19px, 2.4vw, 28px); font-weight: 900; text-transform: uppercase; color: var(--ink); line-height: 1.15; transition: color 0.15s; }
.job__head:hover .job__name { color: var(--accent); }
.job__desc { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 500; color: var(--body); text-transform: none; }
.job__more {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; padding: 8px 18px; white-space: nowrap;
}
.job__head[aria-expanded="true"] .job__more { background: var(--accent); color: #fff; }
.job__body { display: none; padding: 4px 0 34px; }
.job__body.open { display: block; }
.job__sec { margin-bottom: 22px; }
.job__sec h4 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.job__sec ul { display: grid; gap: 6px; font-size: 15px; }
.job__sec > ul > li { padding-left: 18px; position: relative; }
.job__sec > ul > li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 13px; }
.job__sec ul ul { margin-top: 6px; gap: 4px; }
.job__sec ul ul li { padding-left: 14px; font-size: 14px; color: var(--body); }
.job__sec ul ul li::before { content: "·"; position: absolute; left: 2px; color: var(--muted); }

/* ---------- 클로징 CTA ---------- */
.closing { padding: clamp(64px, 11vh, 140px) 0; text-align: center; }
.closing .mono { display: block; margin-bottom: 20px; }
.closing .lead { margin: 24px auto 0; }
.closing .pill { margin-top: 36px; }
.closing--dark { background: var(--dark); color: var(--on-dark); }
.closing--accent { background: var(--accent); color: rgba(255, 255, 255, 0.92); }
.closing--accent .mega, .closing--accent .h2 { color: #fff; }
.closing--accent .mono { color: rgba(255, 255, 255, 0.85); }

/* ---------- 푸터 ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 64px 0 40px; }
.footer__logo {
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 48px;
}
.footer__logo .dot { color: var(--accent); }
.footer__offices { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; }
@media (max-width: 760px) { .footer__offices { grid-template-columns: 1fr; } }
.footer__offices h3 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.footer__offices p { font-size: 14px; }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.footer__links { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer__links a:hover { color: #fff; }

/* ---------- 폰 목업 (디바이스 프레임 + 데모 영상 — animation.inc 통화 UI 레퍼런스) ---------- */
/* 세로 스택: 폰 목업 → 스토리 채팅 (밝은 섹션 배경 위 다크 패널 대비) */
.ai-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 9vh, 104px);
}

/* 피처 행: 데모(좌) | 타이핑 설명(우) */
.ai-feature {
  width: 100%;
  display: grid;
  /* minmax(0,…) — 아이템 min-content가 트랙을 밀어내 모바일 가로 오버플로우가 생기는 것 방지 */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .ai-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.ai-feature__copy .h3 { margin: 12px 0 20px; }

/* 타이핑 텍스트 — ghost가 자리를 확보하고 live가 그 위에 타이핑 (레이아웃 시프트 방지) */
.typed {
  position: relative;
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 460px;
  color: var(--body);
}
.typed__ghost { visibility: hidden; }
.typed__live { position: absolute; inset: 0; }
.typed__live::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: story-caret 1.1s step-end infinite;
}
.typed--done .typed__live::after { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.phone-wrap {
  position: relative;
  width: 100%; /* flex column 부모의 align-items:center로 폭이 0으로 수축하는 것 방지 */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 글로우는 폰 크기에 종속 (전폭 래퍼 기준이면 좁은 화면에서 가로 오버플로 발생) */
.phone-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(340px, 92vw); /* 폰(290px)+양쪽 25px — 컨테이너 패딩(24px) 안에 수렴해 가로 오버플로 방지 */
  height: min(120%, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(108, 76, 241, 0.25) 0%, rgba(24, 200, 168, 0.1) 55%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 17; /* 스크린 내부비 ≈ 9:17.6 — 9:16 영상 크롭 ~9%로 제한 (통화 UI 보존) */
  border-radius: 46px;
  background: #000;
  padding: 10px;
  box-shadow:
    0 28px 64px rgba(23, 18, 58, 0.28),
    0 6px 18px rgba(23, 18, 58, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.09);
  animation: phone-float 7s ease-in-out infinite;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--dark);
}
.phone__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 1;
}
/* WCAG 2.2.2 — 움직이는 콘텐츠 정지 토글 */
.phone__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.phone__toggle:hover { background: rgba(0, 0, 0, 0.8); }
.phone__toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.phone__toggle svg { width: 16px; height: 16px; }
.phone__toggle .ic-pause { display: none; }
.phone__toggle[data-playing="true"] .ic-pause { display: block; }
.phone__toggle[data-playing="true"] .ic-play { display: none; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 스토리 챗 패널 (인터랙티브 AI 스토리 — 진행 장면 시퀀스 루프) ---------- */
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid rgba(15, 15, 25, 0.12);
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 28px 64px rgba(23, 18, 58, 0.24);
}
.story__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.story__back { color: rgba(255, 255, 255, 0.6); font-size: 16px; }
.story__title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story__chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
}
.story__body {
  flex: 1;
  padding: 20px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.story__narr {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 92%;
}
.story__msg { display: flex; gap: 10px; align-items: flex-start; }
.story__msg-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.story__msg-name { display: block; font-size: 12.5px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.story__bubble {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px 16px 16px 16px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: #fff;
}
.story__img {
  align-self: flex-start; /* flex column의 stretch로 가로 왜곡되는 것 방지 */
  width: auto;
  height: 168px;
  border-radius: 14px;
  margin-left: 44px;
}
.story__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.story__placeholder { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.story__caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--mint);
  animation: story-caret 1.1s step-end infinite;
}
.story__send {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  background: #e11d63;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.story__toggle {
  position: absolute;
  right: 14px;
  top: 54px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.story__toggle:hover { background: rgba(255, 255, 255, 0.25); }
.story__toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.story__toggle svg { width: 14px; height: 14px; }
.story__toggle .ic-pause { display: none; }
.story__toggle[data-playing="true"] .ic-pause { display: block; }
.story__toggle[data-playing="true"] .ic-play { display: none; }

/* 시퀀스 — 16s 공유 타임라인 루프 (등장 순서: 내레이션1 → 내레이션2 → 말풍선 → 일러스트) */
.story__seq1 { animation: story-fade1 16s linear infinite; }
.story__seq2 { animation: story-fade2 16s linear infinite; }
.story__seq3 { animation: story-fade3 16s linear infinite; }
.story__seq4 { animation: story-fade4 16s linear infinite; }
@keyframes story-fade1 {
  0%, 3% { opacity: 0; transform: translateY(8px); }
  7%, 93% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes story-fade2 {
  0%, 17% { opacity: 0; transform: translateY(8px); }
  21%, 93% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes story-fade3 {
  0%, 32% { opacity: 0; transform: translateY(8px) scale(0.96); }
  36%, 93% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes story-fade4 {
  0%, 48% { opacity: 0; transform: translateY(12px); }
  54%, 93% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes story-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.story--paused .story__seq1,
.story--paused .story__seq2,
.story--paused .story__seq3,
.story--paused .story__seq4,
.story--paused .story__caret {
  animation-play-state: paused;
}

/* ---------- 섹션 하단 CTA ---------- */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 6vh, 64px);
}

/* ---------- 모션 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .show-card__media img { transition: none; }
  .phone { animation: none; }
  .story__seq1, .story__seq2, .story__seq3, .story__seq4, .story__caret { animation: none; }
}
