html, body { background: #070B0E; }
:root {
  --bg: #070B0E;
  --panel: #0E1419;
  --ink: #EDF1F2;
  --ink-2: rgba(237, 241, 242, .72);
  --ink-3: rgba(237, 241, 242, .48);
  --line: rgba(237, 241, 242, .13);
  --teal: #8CC8CE;
  --sand: #DDBE97;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--teal); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-weight: 400; letter-spacing: -.035em; }
.todo { color: var(--sand); border-bottom: 1px dashed var(--sand); }

/* 라벨 */
.label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--teal); }
.label::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }

/* 머리글 */
.top { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(7, 11, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 34px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav a { padding: 8px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--sand); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; font-size: 18px; }

/* 히어로 */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; padding: 120px 0 72px; }
.hero-orbit { position: absolute; right: -17vw; top: 45%; width: min(1040px, 72vw); transform: translateY(-50%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { font-size: clamp(34px, 5.9vw, 86px); line-height: 1.16; margin: 22px 0 26px; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.sub { max-width: 30rem; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.orbit-line { fill: none; stroke: var(--teal); stroke-opacity: .34; stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-line.thin { stroke-opacity: .16; }
.star-line { stroke: var(--sand); stroke-width: 1.2; stroke-opacity: .75; vector-effect: non-scaling-stroke; fill: none; }
.star { fill: var(--sand); }
.moon { fill: var(--teal); }

/* 궤도: 기본은 목록, 데스크톱에서 JS가 켜면 고정 스크롤 */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.22; margin-top: 18px; }
.section .lede { max-width: 38rem; color: var(--ink-2); margin-top: 18px; }
.orbit { position: relative; border-top: 1px solid var(--line); }
.orbit-head { padding-top: clamp(84px, 11vw, 130px); }
.orbit-stage { display: none; }
.orbit-list { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 0; }
.product { padding: 34px 0; border-top: 1px solid var(--line); }
.product .who { font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--sand); }
.product h3 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.25; margin: 8px 0 12px; }
.product p { color: var(--ink-2); max-width: 32rem; }
.product a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px; color: var(--teal); font-weight: 600; font-size: 15px; }
.product a:hover { color: var(--ink); }

.orbit-on .orbit-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.orbit-on .orbit-pin > .wrap { height: 100vh; }
.orbit-on .orbit-head { padding-top: 0; position: absolute; left: var(--gutter); top: 112px; }
.orbit-on .orbit-head h2 { font-size: clamp(26px, 2.8vw, 38px); margin-top: 12px; }
.orbit-on .orbit-head .lede { display: none; }
.orbit-on .orbit-stage { display: block; position: absolute; left: -8vw; top: 57%; width: min(51vw, 800px); transform: translateY(-50%); overflow: visible; }
.orbit-on .orbit-list { position: absolute; right: var(--gutter); top: 57%; transform: translateY(-50%); margin: 0; width: min(430px, 33vw); height: 290px; }
.orbit-on .product { position: absolute; inset: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .35s, transform .5s var(--ease), visibility .35s; }
.orbit-on .product.on { opacity: 1; visibility: visible; transform: none; }
.planet circle { fill: var(--panel); stroke: var(--teal); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .3s, stroke .3s; }
.planet text { fill: var(--ink); font: 600 15px "Pretendard Variable", sans-serif; text-anchor: middle; dominant-baseline: central; }
.planet.on circle { fill: var(--sand); stroke: var(--sand); }
.planet.on text { fill: var(--bg); }

/* 책장 */
.shelf { border-top: 1px solid var(--line); padding: 64px 0 0; overflow: hidden; }
.shelf-track { display: flex; gap: 18px; width: max-content; animation: drift 70s linear infinite; }
.shelf-track img { width: 158px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; }
.shelf:hover .shelf-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.shelf .caption { margin: 24px auto 0; color: var(--ink-3); font-size: 14px; }

/* 사업 영역 */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.service { background: var(--bg); padding: clamp(28px, 3.4vw, 44px); min-height: 250px; display: flex; flex-direction: column; }
.service .no { font-size: 13px; color: var(--teal); font-weight: 600; letter-spacing: .08em; }
.service h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 18px 0 10px; line-height: 1.3; }
.service p { color: var(--ink-2); font-size: 16px; }

/* 실적 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; }
.stat b { display: block; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.1; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.source { margin-top: 28px; color: var(--ink-3); font-size: 13px; }

/* 강사 */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.person { border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; min-height: 310px; background: var(--panel); transition: border-color .25s; }
a.person:hover { border-color: var(--teal); }
.avatar { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--teal); display: grid; place-items: center; font-size: 26px; color: var(--sand); }
.person .alias { margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--teal); }
.person h3 { font-size: 28px; margin: 4px 0 10px; }
.person p { color: var(--ink-2); font-size: 16px; }
.person ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.person li { margin: 4px 0; }
.more { margin-top: 32px; }

/* 세미나 */
.tracks { margin-top: 52px; border-bottom: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1.25fr) 110px; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.track .no { color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: .08em; padding-top: 10px; }
.track h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; }
.track p { color: var(--ink-2); font-size: 16px; }
.track ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 16px; }
.track li + li { margin-top: 10px; }
.track li b { color: var(--ink); font-weight: 600; }
.status { justify-self: end; font-size: 13px; font-weight: 600; color: var(--sand); padding-top: 10px; white-space: nowrap; }
.status.soon { color: var(--ink-3); }

/* 의뢰 */
.ask { border-top: 1px solid var(--line); text-align: center; }
.ask h2 > span { display: block; }
.ask .lede { margin-left: auto; margin-right: auto; }
.ask .btn { margin-top: 34px; }

/* 소제목 페이지 */
.page-head { padding: 168px 0 40px; }
.page-head h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.16; margin-top: 18px; }
.page-head .lede { max-width: 38rem; color: var(--ink-2); margin-top: 22px; }

/* 꼬리글 */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--ink-3); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); margin-bottom: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--ink); }

/* 등장 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav, .top .btn { display: none; }
  .menu { display: block; }
  .open .nav {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 72px 0 auto; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; font-size: 17px;
  }
  .open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { align-items: flex-end; padding-bottom: 56px; }
  .hero-orbit { width: 130vw; right: -44vw; top: 27%; -webkit-mask-image: none; mask-image: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
  .person { min-height: 0; }
  .track { grid-template-columns: 1fr; gap: 12px; }
  .track .no, .status { padding-top: 0; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .hero h1 { font-size: 9.4vw; }
  .shelf-track img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.seen { opacity: 1; transform: none; transition: none; }
  .shelf-track { animation: none; }
}

/* 모션 레이어 */
#stars, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stars { z-index: 0; }
#fx { z-index: 1; }
main, .foot { position: relative; z-index: 2; }
.hero-orbit { will-change: transform; }
.service { background: rgba(7, 11, 14, .78); position: relative; overflow: hidden; }
.service::before, .person::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 200, 206, .16), transparent 70%);
}
.service:hover::before, .person:hover::before { opacity: 1; }
.person { position: relative; overflow: hidden; background: rgba(14, 20, 25, .8); }
.track, .ask, .section { position: relative; }
.w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: bottom; padding: .08em 0 .1em; margin: -.08em 0 -.1em; }
.c { display: inline-block; will-change: transform; }

/* 대형 마퀴 */
.ticker { padding: clamp(60px, 9vw, 120px) 0 0; overflow: hidden; }
.tick { white-space: nowrap; font-size: clamp(54px, 10vw, 150px); line-height: 1.22; letter-spacing: -.04em; width: max-content; }
.tick.outline { color: transparent; -webkit-text-stroke: 1px rgba(140, 200, 206, .75); }
.planet text.long { font-size: 11.5px; }

/* 입자 위 글자 보호 */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 11, 14, .86) 0, rgba(7, 11, 14, .62) 38%, transparent 62%); }
.product p, .lede, .service p, .stat span, .person p, .track p, .track li { text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg); }
@media (max-width: 960px) {
  .hero::before { background: linear-gradient(0deg, rgba(7, 11, 14, .92) 0, rgba(7, 11, 14, .78) 52%, transparent 76%); }
}
