/* kimman.kr — 짙은 무채색 바탕에 밝은 글자, 강조색은 밝은 라벤더 하나(힉스필드 같은 미디어 갤러리 구성).
   강조색은 라벤더 하나. 글자 크기는 본문 17px, 작은 글씨도 14px 아래로 내려가지 않는다.
   모서리 규칙: 단추·입력칸 12px(--r-btn) · 타일·판 20px(--r-tile) · 창 24px(--r-xl).
   만든 것은 소리 없는 6초 영상으로 움직인다(assets/clips). */
:root {
  --canvas: #0a0a0e;
  --surface-1: #15151c;
  --surface-2: #1d1d26;
  --hover: rgba(255, 255, 255, .06);
  --hairline: rgba(255, 255, 255, .09);
  --hairline-strong: rgba(255, 255, 255, .16);
  --ink: #f5f5f8;
  --ink-muted: #cfcfda;
  --ink-subtle: #9d9daf;
  --primary: #a9acff;
  --primary-strong: #a9acff;
  --primary-ink: #b9bbff;
  --on-primary: #0a0a12;
  --accent-soft: rgba(169, 172, 255, .13);
  --accent-line: rgba(169, 172, 255, .45);
  --signal: #fde68a;
  --signal-soft: rgba(253, 230, 138, .12);
  --img-bg: #121219;
  --dialog-bg: #13131a;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  --shadow-sm: 0 16px 36px -20px rgba(0, 0, 0, .8);
  --r-sm: 8px; --r-btn: 12px; --r-md: 12px; --r-lg: 16px; --r-tile: 20px; --r-xl: 24px; --r-pill: 9999px;
  --t-cap: 13px; --t-meta: 14px; --t-sm: 15px; --t-body: 17px; --t-lg: 19px; --t-xl: 23px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.16, 1, .3, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: rgba(79, 88, 208, .18); }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip; background: var(--canvas); color: var(--ink-muted);
  font: 400 var(--t-body)/1.7 var(--font); letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -.035em; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.topnav ul a:focus-visible, .filters button:focus-visible, .years button:focus-visible { outline-offset: -2px; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary-strong); color: #fff; padding: 8px 14px; border-radius: var(--r-btn); z-index: 50; }
.skip:focus { left: 12px; }
.muted { color: var(--ink-subtle); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main { position: relative; z-index: 1; width: min(1200px, 100% - 48px); margin: 0 auto; padding: 0 0 40px; }

/* ───────── 위쪽 메뉴 (언제나 밤하늘) */
.topnav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 max(24px, env(safe-area-inset-right), calc((100% - 1200px) / 2)) 0 max(24px, env(safe-area-inset-left), calc((100% - 1200px) / 2));
  background: rgba(10, 10, 14, .82); border-bottom: 1px solid var(--hairline); color: var(--ink-muted);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.topnav .brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.03em; white-space: nowrap; }
.topnav .brand span { font-size: var(--t-cap); font-weight: 600; color: var(--ink-muted); letter-spacing: .02em; }
.topnav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topnav ul::-webkit-scrollbar { display: none; }
.topnav ul a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; font-size: var(--t-sm); font-weight: 600; color: var(--ink-muted); white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease); }
.topnav ul a:hover { color: var(--ink); background: var(--hover); }
.topnav ul a[aria-current] { color: var(--ink); background: var(--accent-soft); }
.nav-search { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 9px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); background: rgba(255, 255, 255, .04); color: var(--ink-muted); font-size: var(--t-meta); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.nav-search:hover { color: var(--ink); border-color: var(--primary); background: var(--accent-soft); }
.nav-search i { font-size: 18px; }
.nav-search kbd { font: inherit; font-size: 11px; line-height: 1; padding: 3px 5px; border: 1px solid var(--hairline-strong); border-radius: 4px; }

/* ───────── 첫 화면 띠: 밤하늘 + 픽셀 밭. 마우스에 따라 이름·유리판·오로라가 서로 다른 만큼 어긋난다(--px/--py) */
.band { position: relative; isolation: isolate; overflow: clip; margin-top: -60px; padding-top: 60px; background: var(--canvas); color: var(--ink-muted);
  background-image: radial-gradient(900px 520px at 8% -12%, rgba(120, 124, 255, .22), transparent 62%), radial-gradient(700px 420px at 92% 110%, rgba(96, 190, 222, .12), transparent 60%); }
#sky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; animation: skyin 1.6s ease-out backwards; }
@keyframes skyin { from { opacity: 0; } }
.band.star-cursor { cursor: none; }   /* 첫 화면 빈 곳에서는 별 커서(캔버스가 그린다) */
.band .stars { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.stars-on h1 .name { color: transparent; }   /* 글자는 별이 그린다 */
.band::before, .band::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(72px); }
.band::before { width: min(46vw, 720px); height: min(46vw, 720px); right: 4%; top: -28%; opacity: .75;
  background: radial-gradient(closest-side, rgba(94, 106, 210, .6), rgba(94, 106, 210, 0)); animation: drift 26s ease-in-out infinite alternate; translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); }
.band::after { width: min(34vw, 520px); height: min(34vw, 520px); left: 30%; bottom: -36%; opacity: .6;
  background: radial-gradient(closest-side, rgba(96, 190, 222, .36), rgba(96, 190, 222, 0)); animation: drift 34s ease-in-out infinite alternate-reverse; translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 10px); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-7%, 9%) scale(1.14); } }
.hero { position: relative; z-index: 1; width: min(1200px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: center; gap: 32px 64px; padding: clamp(44px, 6vh, 72px) 0 60px; }
.hero-main > *, .hero-side { animation: rise-in .9s var(--spring) backwards; }
.hero-main > :nth-child(1) { animation-delay: 60ms; } .hero-main > :nth-child(3) { animation-delay: 300ms; }
.hero-main > :nth-child(4) { animation-delay: 400ms; } .hero-main > :nth-child(5) { animation-delay: 500ms; } .hero-side { animation-delay: 600ms; }
@keyframes rise-in { from { opacity: 0; translate: 0 22px; } }
.hero-kicker { margin: 0 0 14px; font-size: var(--t-body); font-weight: 600; color: var(--ink-subtle); }
h1 { margin: 0; translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -6px); transition: translate .5s var(--ease); animation: none !important; }
h1 .name { display: block; font-size: clamp(76px, 12.6vw, 178px); line-height: .92; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
h1 .name > span { display: inline-block; animation: letter 1s var(--spring) backwards; }
h1 .name > span:nth-child(2) { animation-delay: 120ms; }
@keyframes letter { from { opacity: 0; translate: 0 .3em; filter: blur(10px); } }
.slogan { margin: 18px 0 0; font-size: clamp(25px, 3vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.04em; color: var(--ink); }
.slogan em { font-style: normal; color: var(--primary); }
.lede { margin: 18px 0 0; max-width: 38em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--ink-muted); }
/* 채널 + 공유 + 명함: 한 줄 */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; }
.links a, .links button { display: inline-flex; cursor: pointer; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; white-space: nowrap; border-radius: var(--r-btn); text-decoration: none; font-weight: 700; font-size: var(--t-sm);
  border: 1px solid var(--hairline-strong); background: rgba(255, 255, 255, .04); color: var(--ink); transition: border-color .25s var(--ease), background-color .25s var(--ease), translate .25s var(--ease); }
.links a:hover, .links button:hover { border-color: var(--primary); background: var(--accent-soft); translate: 0 -2px; }
.links i { font-size: 21px; }
.links .mail i:first-child, .links .share i { color: var(--ink-subtle); }
.links .mail span { font-weight: 600; }
.links .nb { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #03c75a; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.links .yt i { color: #ff0033; }
.links .ig i { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links .card-btn { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--on-primary); }
.links .card-btn:hover { background: #c2c4ff; border-color: #c2c4ff; }
.links .card-btn i { color: var(--on-primary); }
/* 오른쪽 유리판: 본명 + 학력 */
.hero-side { display: grid; gap: 18px; padding: 28px 30px 30px; border-radius: var(--r-tile); border: 1px solid var(--hairline-strong);
  background: linear-gradient(160deg, rgba(169, 172, 255, .14), rgba(21, 21, 28, .6) 55%, rgba(96, 190, 222, .08)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px -40px rgba(0, 0, 0, .9); translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px); transition: translate .5s var(--ease); }
.side-name { margin: 0; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.hero-edu { margin: 0; display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.hero-edu div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
.hero-edu dt { font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); padding-top: 2px; }
.hero-edu dd { margin: 0; font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.55; }
.hero-edu dd b { color: var(--ink); font-weight: 700; }

/* ───────── 최근 소식: 이름 위 작은 한 줄. 띠나 상자 없이 글자만, 누를 수 있는 곳만 살짝 밝아진다 */
.fresh { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 18px -8px; }
.fresh button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-muted); font-size: var(--t-meta); cursor: pointer; max-width: 100%;
  transition: color .2s var(--ease), background-color .2s var(--ease); animation: rise-in .9s var(--spring) .7s backwards; }
.fresh button + button { animation-delay: .82s; }
.fresh-k { flex: none; font-size: var(--t-cap); font-weight: 700; color: var(--primary); }
.fresh-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fresh button i { flex: none; font-size: 14px; color: var(--ink-subtle); transition: translate .2s var(--ease), color .2s var(--ease); }
.fresh button:hover { color: var(--ink); background: var(--hover); }
.fresh button:hover i { color: var(--primary); translate: 2px -2px; }

/* ───────── 영상 띠: 두 줄이 반대 방향으로 천천히 흐른다. 마우스를 올리면 멈춤 */
.reel { position: relative; display: grid; gap: 14px; padding: 6px 0 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel-row { overflow: hidden; }
.reel-track { display: flex; gap: 14px; width: max-content; animation: reel 70s linear infinite; }
.reel-row.rev .reel-track { animation-direction: reverse; animation-duration: 80s; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(calc(-50% - 7px)); } }
.reel-tile { position: relative; flex: none; width: clamp(240px, 24vw, 340px); aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: var(--img-bg); cursor: pointer; touch-action: manipulation;
  transition: border-color .3s var(--ease), translate .4s var(--spring); }
.reel-tile video, .reel-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; text-align: left; font-size: var(--t-sm); font-weight: 700; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); opacity: 0; translate: 0 6px; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.reel-tile:hover, .reel-tile:focus-visible { border-color: var(--accent-line); translate: 0 -4px; }
.reel-tile:hover .reel-cap, .reel-tile:focus-visible .reel-cap { opacity: 1; translate: 0 0; }
@media (hover: none) { .reel-cap { opacity: 1; translate: 0 0; } }

/* 숫자로 보는 활동 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.stats a { display: grid; gap: 6px; padding: 8px 12px; margin: -8px -12px; border-radius: var(--r-btn); text-decoration: none; color: inherit; transition: background-color .2s var(--ease); touch-action: manipulation; }
.stats a:hover { background: var(--hover); }
.stats b { font-size: clamp(38px, 4.2vw, 58px); line-height: 1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.stats span { font-size: var(--t-sm); font-weight: 600; color: var(--ink-subtle); }

/* ───────── 단추 (--mx/--my 는 마우스를 따라오는 작은 움직임, site.js) */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); font-weight: 700; font-size: var(--t-sm); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; touch-action: manipulation;
  translate: var(--mx, 0) var(--my, 0);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), translate .3s var(--ease), scale .15s var(--ease); }
.btn:active { scale: .97; }
.btn-primary { background: var(--primary-strong); color: var(--on-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(74, 82, 198, .8); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); translate: -120% 0; transition: translate .7s var(--ease); }
.btn-primary:hover::after { translate: 120% 0; }
.btn-primary:hover { background: #c2c4ff; }
.btn-ghost { border-color: var(--hairline-strong); color: var(--ink); background: var(--surface-1); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-soft { background: var(--surface-1); border-color: var(--hairline-strong); color: var(--ink); font-weight: 700; }
.btn-soft:hover { border-color: var(--primary); background: var(--accent-soft); }

/* ───────── 칸 */
.sec { position: relative; margin-top: clamp(88px, 10vw, 136px); }
.sec-head { display: grid; justify-content: start; gap: 10px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.05; font-weight: 900; letter-spacing: -.05em; }
.sec-head p { margin: 0; max-width: 60ch; font-size: var(--t-body); color: var(--ink-subtle); }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px auto 0; min-height: 46px; padding: 0 22px; border-radius: var(--r-btn);
  border: 1px solid var(--hairline-strong); background: var(--surface-1); color: var(--ink); font-size: var(--t-sm); font-weight: 700; cursor: pointer; touch-action: manipulation;
  transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.more-btn:hover { border-color: var(--primary); background: var(--accent-soft); }

/* 요즘 하는 일: 한 줄에 날짜 · 일 · 어디서 · 상태 */
.now { list-style: none; margin: 0; padding: 0; display: grid; }
.now li > a, .now li > div { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 280px) 72px; align-items: baseline; gap: 4px 24px; padding: 18px 6px; border-top: 1px solid var(--hairline); text-decoration: none; color: inherit; }
.now li:last-child > a, .now li:last-child > div { border-bottom: 1px solid var(--hairline); }
.now li > a { transition: background-color .2s var(--ease); }
.now li > a:hover { background: var(--hover); }
.now li > a:hover .n-title { color: var(--primary); }
.n-when { white-space: nowrap; font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.n-body { display: contents; }
.n-title { color: var(--ink); font-weight: 600; font-size: var(--t-body); line-height: 1.5; transition: color .2s var(--ease); }
.n-where { font-size: var(--t-sm); color: var(--ink-subtle); }
.n-state { justify-self: end; font-size: var(--t-meta); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.n-state.soon, .n-state.is-today { color: var(--signal); }
.n-state.live { color: var(--ink); }
.n-state.past { color: var(--ink-subtle); }
.now li.past .n-title { color: var(--ink-muted); font-weight: 500; }

/* 연구: 인용 목록처럼 */
.papers { list-style: none; margin: 0; padding: 0; display: grid; }
.paper { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--hairline); }
.papers li:last-child .paper { border-bottom: 1px solid var(--hairline); }
.paper .p-kind { font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); padding-top: 4px; }
.paper .p-title { color: var(--ink); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.paper .p-meta { font-size: var(--t-sm); color: var(--ink-subtle); margin-top: 4px; }
.paper .p-meta a { color: var(--primary-ink); font-weight: 700; }
.paper .p-note { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: var(--t-cap); font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); background: var(--signal-soft); color: var(--signal); margin-left: 8px; vertical-align: 2px; }
.r-notes { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; }
.r-notes a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink); font-weight: 700; font-size: var(--t-sm); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 5px; transition: color .2s var(--ease); }
.r-notes a:hover { color: var(--primary-ink); text-decoration-color: currentColor; }

/* ───────── 만든 것: 벤토 타일. 첫 타일(고정)은 2x2 에 화면이 가득, 글은 아래에 */
.filters { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.filters::-webkit-scrollbar { display: none; }
.filters button { position: relative; flex: none; min-height: 46px; padding: 0 14px; border: 0; border-radius: 0; background: none; color: var(--ink-subtle); font-size: var(--t-sm); font-weight: 700; cursor: pointer; touch-action: manipulation; transition: color .2s var(--ease); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.filters b { font-weight: 500; color: var(--ink-subtle); margin-left: 1px; font-variant-numeric: tabular-nums; }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.works > li { min-width: 0; }
.work { position: relative; width: 100%; height: 100%; text-align: left; cursor: pointer; border-radius: var(--r-tile); border: 1px solid var(--hairline); background: var(--surface-1); box-shadow: var(--shadow-sm);
  padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; touch-action: manipulation;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), translate .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.work:focus-within { border-color: var(--accent-line); }
.work .thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--img-bg); border-bottom: 1px solid var(--hairline); }
.work .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: 50% 30%; animation: kb 22s ease-in-out var(--kd, 0s) infinite alternate; transition: scale .9s var(--ease); }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } 50% { transform: scale(1.1) translate(-2%, -2.5%); } to { transform: scale(1.06) translate(2%, -1%); } }   /* 대표 썸네일이 카메라처럼 천천히 다가가고 옆으로 흐른다 */
.work .thumb.none { display: grid; place-items: center; font-size: 34px; color: var(--ink-subtle); }
.work .body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 14px; }
.work .body p, .work h3 { margin: 0; }
.work .tag { font-size: var(--t-cap); font-weight: 700; color: var(--ink-subtle); }
.work .credit { position: relative; z-index: 2; color: inherit; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.work .credit:hover { color: var(--ink); }
.work .title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -.025em; }
.work .open { all: unset; cursor: pointer; }
.work .open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.work .open:focus-visible { outline: none; }
.work:has(.open:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.work .feat-meta { display: none; }
.work .desc { font-size: var(--t-meta); color: var(--ink-subtle); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 861px) {
  .works { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  #works[data-cat="전체"] > li:first-child { grid-column: span 2; grid-row: span 2; }
  #works[data-cat="전체"] > li:first-child .work { grid-template-rows: 1fr; color: #d6d4ea; }
  #works[data-cat="전체"] > li:first-child .thumb { position: absolute; inset: 0; aspect-ratio: auto; border: 0; }
  #works[data-cat="전체"] > li:first-child .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 34, 0) 30%, rgba(11, 10, 34, .6) 58%, rgba(11, 10, 34, .96) 84%); }
  #works[data-cat="전체"] > li:first-child .body { position: relative; z-index: 1; align-self: end; padding: 60px 24px 22px; gap: 8px; }
  #works[data-cat="전체"] > li:first-child .tag { color: #c9c7e0; }
  #works[data-cat="전체"] > li:first-child .title { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; color: #fff; }
  #works[data-cat="전체"] > li:first-child .desc { -webkit-line-clamp: 2; font-size: var(--t-sm); line-height: 1.65; color: #d6d4ea; max-width: 44em; }
  #works[data-cat="전체"] > li:first-child .feat-meta { display: block; padding-top: 4px; font-size: var(--t-meta); color: #a7a4c4; }
}

/* ───────── 영상과 온라인 강의 */
.courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.courses li:nth-child(-n+2) { grid-column: span 2; }
.courses li:nth-child(n+3) { grid-column: span 2; }
.course { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-tile); text-decoration: none; color: inherit;
  border: 1px solid var(--hairline); background: var(--surface-1); box-shadow: var(--shadow-sm); transition: translate .35s var(--ease), border-color .35s var(--ease); }
.course.paid { background: linear-gradient(150deg, var(--accent-soft), var(--surface-1) 62%); border-color: var(--accent-line); }
.course.has-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 46%); grid-template-rows: auto auto auto 1fr; column-gap: 24px; row-gap: 8px; align-items: start; }
.course.has-img > :not(.c-img) { grid-column: 1; }
.c-img { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-btn); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-sm); transition: translate .5s var(--ease); }
.c-where { font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); }
.c-title { color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; }
.c-meta { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: var(--t-meta); color: var(--ink-subtle); }
.c-meta span:not(:last-child)::after, .v-meta span:not(:last-child)::after, .bo-meta span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--ink-subtle); opacity: .6; }
.c-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.courses li:nth-child(n+3) .course { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; padding: 18px 24px; }
.courses li:nth-child(n+3) .c-go { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; }
.courses li:nth-child(n+3) .c-title { font-size: var(--t-body); }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin: 44px 0 16px; }
.rail-head h3 { font-size: var(--t-xl); }
.rail-btns { display: flex; gap: 6px; }
.rail-btns button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--surface-1); color: var(--ink); cursor: pointer; font-size: 18px; touch-action: manipulation; transition: border-color .2s var(--ease), opacity .2s var(--ease); }
.rail-btns button:hover:not(:disabled) { border-color: var(--primary); }
.rail-btns button:disabled { opacity: .3; cursor: default; }
.rail { list-style: none; margin: 0 -4px; padding: 4px 4px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 32px) / 3)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.rail li { scroll-snap-align: start; }
.video { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 10px; width: 100%; touch-action: manipulation; }
.video:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--r-btn); }
.v-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--img-bg); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s var(--ease); }
.v-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: #fff; background: rgba(7, 6, 26, .35); opacity: 0; transition: opacity .3s var(--ease); }
.v-play i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(7, 6, 26, .7); border: 1px solid rgba(255, 255, 255, .3); }
.video:focus-visible .v-play { opacity: 1; }
.v-info { display: grid; gap: 3px; }
.vid-tag { min-height: 1.5em; font-size: var(--t-cap); font-weight: 700; color: var(--primary-ink); }
.v-name { color: var(--ink); font-size: var(--t-sm); font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-foot { margin: 14px 0 0; }
.rail-foot .btn i { color: #ff0033; font-size: 19px; }

/* ───────── 책 진열대: 표지가 비스듬히 서 있고(--mx 로 마우스 쪽을 본다), 고른 책은 앞으로 나온다 */
.shelf-wrap { display: grid; gap: 28px; }
.shelf { --mx: 0; position: relative; display: flex; align-items: flex-end; justify-content: safe center; gap: 20px; padding: 36px 24px 40px; margin: 0 -24px;
  perspective: 1400px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--hairline-strong) 20%, var(--hairline-strong) 80%, transparent); }
.cover { flex: none; width: 128px; aspect-ratio: 5 / 7; padding: 0; border: 0; background: var(--img-bg); border-radius: 4px 10px 10px 4px; overflow: hidden; cursor: pointer; scroll-snap-align: center; touch-action: manipulation;
  transform: rotateY(calc(-14deg + var(--mx) * 12deg)); filter: brightness(.9);
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, .2), 0 26px 40px -22px rgba(20, 20, 70, .6);
  transition: transform .6s var(--spring), filter .4s var(--ease), box-shadow .4s var(--ease); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover[aria-selected="true"] { z-index: 1; transform: rotateY(0deg) translateY(-16px) scale(1.14); filter: none;
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, .2), 0 0 0 2px var(--primary), 0 36px 54px -24px rgba(20, 20, 70, .55); }
.cover:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.cover.soon { display: grid; place-items: center; background: var(--surface-2); outline: 1px dashed var(--hairline-strong); outline-offset: -1px; box-shadow: none; filter: none; }
.cover.soon[aria-selected="true"] { outline-color: var(--primary); box-shadow: none; }
.cover-soon { display: grid; gap: 8px; justify-items: center; color: var(--ink-subtle); font-size: 28px; }
.cover-soon b { font-size: var(--t-cap); font-weight: 700; color: var(--signal); }
.book-open { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: 720px; min-height: 150px; margin: 0 auto; }
.book-open.flip > * { animation: rise-in .5s var(--spring) backwards; }
.book-open.flip > :nth-child(2) { animation-delay: 50ms; } .book-open.flip > :nth-child(3) { animation-delay: 100ms; } .book-open.flip > :nth-child(n+4) { animation-delay: 150ms; }
.book-open h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.035em; }
.bo-kicker { margin: 0; font-size: var(--t-meta); font-weight: 700; color: var(--signal); }
.bo-sub { margin: 0; font-size: var(--t-body); color: var(--ink-muted); }
.bo-meta { margin: 0; font-size: var(--t-sm); color: var(--ink-subtle); }
.bo-meta span { white-space: nowrap; }
.person { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; transition: color .2s var(--ease); }
.person:hover { color: var(--ink); text-decoration-color: var(--primary); }
.b-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; }
.b-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; font-size: var(--t-sm); font-weight: 700; text-decoration: none; padding: 0 18px; border-radius: var(--r-btn);
  border: 1px solid var(--hairline-strong); background: var(--surface-1); color: var(--ink); transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease); }
.b-links a:hover { border-color: var(--primary); }
.b-links a.main { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--on-primary); }
.b-links a.main:hover { background: #c2c4ff; }

/* ───────── 책 자료실 */
.rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.room { height: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 22px 24px; border-radius: var(--r-tile); border: 1px solid var(--hairline); background: var(--surface-1); box-shadow: var(--shadow-sm); }
.room img, .room .room-none { width: 96px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .2), 0 16px 30px -18px rgba(20, 20, 70, .6); }
.room .room-none { display: grid; place-items: center; background: var(--surface-2); outline: 1px dashed var(--hairline-strong); outline-offset: -1px; color: var(--ink-subtle); font-size: 24px; box-shadow: none; }
.room-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.room-k { margin: 0; font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); }
.room-k b { color: var(--ink); font-weight: 700; }
.room-link { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-btn); border: 1px solid var(--hairline-strong); text-decoration: none; color: inherit; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.room-link:hover { border-color: var(--primary); background: var(--accent-soft); }
.room-link b { display: flex; align-items: center; gap: 6px; font-size: var(--t-lg); font-weight: 700; color: var(--ink); line-height: 1.35; }
.room-link b i { color: var(--primary-ink); font-size: 18px; }
.room-link span { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.5; }
.room-link small { font-size: var(--t-cap); color: var(--ink-subtle); }
.room-soon { font-size: var(--t-cap); font-weight: 700; color: var(--signal); margin-left: 6px; }

/* ───────── 걸어온 길: 큰 연도 + 갈래별 개수 + 하이라이트 */
.years { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hairline); }
.years::-webkit-scrollbar { display: none; }
.years button { position: relative; flex: none; min-height: 48px; padding: 0 18px; background: none; border: 0; cursor: pointer; font-size: var(--t-body); font-weight: 700; color: var(--ink-subtle); font-variant-numeric: tabular-nums; touch-action: manipulation; transition: color .2s var(--ease); }
.years button:hover, .years button[aria-selected="true"] { color: var(--ink); }
.years button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.year-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 28px; min-height: 180px; }
.year-panel.flip .yp-list li { animation: rise-in .5s var(--spring) backwards; }
.year-panel.flip .yp-list li:nth-child(2) { animation-delay: 40ms; }
.year-panel.flip .yp-list li:nth-child(3) { animation-delay: 80ms; }
.year-panel.flip .yp-list li:nth-child(4) { animation-delay: 120ms; }
.year-panel.flip .yp-list li:nth-child(n+5) { animation-delay: 160ms; }
.yp-side { position: sticky; top: 92px; align-self: start; display: grid; gap: 16px; }
.yp-year { margin: 0; font-size: 92px; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent-line); font-variant-numeric: tabular-nums; }
.yp-year.span { font-size: 64px; line-height: 1.05; }
.yp-sum { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.yp-sum span { font-size: var(--t-meta); font-weight: 600; color: var(--ink-subtle); padding: 5px 11px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); background: var(--surface-1); }
.yp-sum b { color: var(--ink); font-weight: 700; margin-left: 3px; font-variant-numeric: tabular-nums; }
.yp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.yp-list li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.yp-list li:first-child { border-top: 0; padding-top: 4px; }
.yp-list li:last-child { border-bottom: 1px solid var(--hairline); }
.yp-k { display: grid; gap: 2px; font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); }
.yp-k b { font-weight: 700; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.yp-t { color: var(--ink); font-size: var(--t-body); font-weight: 600; line-height: 1.5; }
.yp-w { font-size: var(--t-sm); color: var(--ink-subtle); text-align: right; }
.yp-more { margin: 16px 0 0; }

/* ───────── 유틸리티: 다른 사람이 만든 무료 도구 */
.util-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 16px 18px; border-radius: var(--r-tile); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.util-note i { flex: none; font-size: 22px; color: var(--primary); margin-top: 1px; }
.util-note p { margin: 0; font-size: var(--t-sm); line-height: 1.7; color: var(--ink-muted); }
.util-note b { color: var(--ink); }
.utils { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .utils { grid-template-columns: repeat(2, minmax(0, 1fr)); } .utils > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .utils { grid-template-columns: repeat(3, minmax(0, 1fr)); } .utils > li:last-child:nth-child(odd) { grid-column: auto; } }   /* 6개: 3개씩 두 줄 */
.util { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-tile); border: 1px solid var(--hairline); background: var(--surface-1); box-shadow: var(--shadow-sm); transition: border-color .3s var(--ease), translate .3s var(--ease); }
.util-top { display: flex; align-items: center; gap: 14px; }
.util-logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #f4f4f8; }
.util-logo img { width: 38px; height: 38px; object-fit: contain; }
.util h3 { font-size: var(--t-lg); letter-spacing: -.02em; }
.util h3 small { margin-left: 4px; font-size: var(--t-meta); font-weight: 600; color: var(--ink-subtle); letter-spacing: 0; }
.util-dev { margin: 2px 0 0; font-size: var(--t-cap); color: var(--ink-subtle); }
.util-one { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--ink-muted); }
.util-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.util-tags span { font-size: var(--t-cap); font-weight: 600; color: var(--ink-subtle); padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); }
.util-tags .util-free { font-weight: 700; border: 0; }
.util-free.ok { color: #86efac; background: rgba(34, 197, 94, .14); }
.util-free.warn { color: var(--signal); background: var(--signal-soft); }
.util-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.util-acts .btn { flex: 1 1 auto; min-height: 44px; padding: 0 14px; font-size: var(--t-meta); }
.util-foot { margin: 16px 0 0; font-size: var(--t-cap); color: var(--ink-subtle); }
@media (hover: hover) and (pointer: fine) { .util:hover { border-color: var(--accent-line); translate: 0 -3px; } }

/* ───────── 왜 만드는가 */
.why { max-width: 680px; margin: clamp(112px, 13vw, 170px) auto 0; padding: 0 0 20px; }
.why-k { margin: 0 0 16px; font-size: var(--t-meta); font-weight: 700; color: var(--primary-ink); }
.why h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.22; letter-spacing: -.045em; }
.why h2 em { font-style: normal; color: var(--primary); }
.why-body { margin: 32px 0 0; display: grid; gap: 18px; }
.why-body p { margin: 0; font-size: var(--t-lg); line-height: 1.9; color: var(--ink-muted); }
.why-sign { margin: 32px 0 0; font-weight: 700; color: var(--ink); }
.why-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(169, 172, 255, .3), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(96, 190, 222, .2), transparent 60%), var(--surface-1); }
.why-ask { flex-basis: 100%; margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.why-cta .btn i { font-size: 18px; }

/* ───────── 방명록: 왼쪽 글쓰기 · 오른쪽 올린 글 (좁은 화면은 한 단) */
.gb { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; align-items: start; }
.gb-form { display: grid; gap: 20px; padding: 24px; border-radius: var(--r-tile); background: var(--surface-1); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.gb-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gb-field legend, .gb-label { padding: 0; margin-bottom: 8px; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.gb-label { margin: 0; }
.gb-label small { margin-left: 6px; font-size: var(--t-cap); font-weight: 500; color: var(--ink-subtle); }
.gb-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gb-cats label { position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--hairline-strong);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-muted); cursor: pointer; touch-action: manipulation; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.gb-cats input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gb-cats i { font-size: 18px; color: var(--ink-subtle); transition: color .2s var(--ease); }
.gb-cats label:hover { border-color: var(--accent-line); color: var(--ink); }
.gb-cats label:has(:checked) { border-color: var(--primary); background: var(--accent-soft); color: var(--ink); }
.gb-cats label:has(:checked) i { color: var(--primary); }
.gb-cats label:has(:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.gb-input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-btn); border: 1px solid var(--hairline-strong); background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.5; transition: border-color .2s var(--ease); }
.gb-input:hover { border-color: var(--accent-line); }
.gb-input::placeholder { color: var(--ink-subtle); }
.gb-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.gb-input[aria-invalid="true"] { border-color: var(--signal); }
textarea.gb-input { min-height: 136px; resize: vertical; line-height: 1.65; }
select.gb-input { cursor: pointer; }
select.gb-input option { background-color: var(--surface-1); color: var(--ink); }
.gb-sub { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: var(--t-cap); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.gb-err { color: var(--signal); font-weight: 600; }
.gb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-note { display: flex; gap: 8px; margin: 0; font-size: var(--t-meta); line-height: 1.6; color: var(--ink-subtle); }
.gb-note i { flex: none; margin-top: 2px; font-size: 17px; }
.gb-go { width: 100%; }
.gb-go:disabled { opacity: .6; cursor: progress; }
.gb-msg { min-height: 1.5em; margin: -8px 0 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.gb-msg.bad { color: var(--signal); }
.gb-msg:empty { display: none; }
.gb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.gb-head h3 { font-size: var(--t-lg); }
.gb-head h3 b { margin-left: 4px; font-weight: 600; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.gb-sort, .gb-apps { display: flex; flex-wrap: wrap; gap: 2px; }
.gb-sort button, .gb-apps button { min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-subtle); font-size: var(--t-sm); font-weight: 600; cursor: pointer; touch-action: manipulation;
  transition: color .2s var(--ease), background-color .2s var(--ease); }
.gb-sort button:hover, .gb-apps button:hover { color: var(--ink); }
.gb-sort button[aria-pressed="true"], .gb-apps button[aria-pressed="true"] { color: var(--ink); background: var(--hover); }
.gb-states { margin-bottom: 12px; }
.gb-apps { margin: 0 0 16px; }
.gb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gb-item { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-tile); border: 1px solid var(--hairline); background: var(--surface-1); box-shadow: var(--shadow-sm); }
.gb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: var(--t-meta); color: var(--ink-subtle); }
.gb-meta time { margin-left: auto; font-variant-numeric: tabular-nums; }
.gb-app { font-weight: 700; color: var(--ink-muted); }
.gb-state { padding: 2px 8px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--primary-ink); font-size: var(--t-cap); font-weight: 700; }
.gb-state.done { background: var(--signal-soft); color: var(--signal); }
.gb-text { margin: 0; color: var(--ink); line-height: 1.75; white-space: pre-line; }
.gb-who { margin: -4px 0 0; font-size: var(--t-meta); color: var(--ink-subtle); }
.gb-reply { margin-top: 4px; padding: 14px 16px; border-radius: var(--r-btn); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.gb-rh { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--t-meta); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.gb-rh b { color: var(--ink); }
.gb-rt { margin: 0; color: var(--ink-muted); line-height: 1.7; white-space: pre-line; }
.gb-empty { display: grid; justify-items: center; gap: 10px; padding: 52px 20px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-tile); text-align: center; color: var(--ink-subtle); }
.gb-empty i { font-size: 34px; }
.gb-empty p { margin: 0; line-height: 1.7; }
.gb-empty b { color: var(--ink); font-weight: 600; }
.gb-skel { height: 132px; border-radius: var(--r-tile); border: 1px solid var(--hairline); background: var(--surface-2); }
.gb-board .more-btn { margin-top: 16px; }
@media (max-width: 860px) { .gb { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 480px) {
  .gb-form { padding: 18px; }
  .gb-item { padding: 16px; }
  .gb-label small { display: block; margin: 2px 0 0; }
}

.foot { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: var(--t-meta); display: grid; gap: 4px; }
.foot p { margin: 0; }
.foot .muted { max-width: 72ch; font-size: var(--t-cap); line-height: 1.7; }
.foot .ccl { margin: 8px 0 4px; }
.ccl a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink-subtle); font-size: var(--t-cap); font-weight: 600; letter-spacing: .02em; }
.ccl img { opacity: .8; filter: invert(1); transition: opacity .2s var(--ease); }
.ccl span { margin-left: 6px; }
.ccl a:hover img { opacity: 1; }
.ccl a:hover span { color: var(--ink); }
.foot-stage { margin-top: 14px !important; }
.stage-link { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-subtle); font-size: var(--t-cap); font-weight: 600; cursor: pointer; transition: color .2s var(--ease); }
.stage-link:hover { opacity: 1; color: var(--ink); }
.stage-link i { font-size: 14px; }

/* ───────── 창(dialog): 크게 보기 · 검색 · 영상 · 명함 */
@keyframes pop { from { opacity: 0; translate: 0 12px; scale: .98; } }
dialog#viewer { border: 1px solid var(--hairline-strong); padding: 0; border-radius: var(--r-xl); width: min(820px, 100% - 24px); max-height: min(90dvh, 860px); background: var(--dialog-bg); color: var(--ink-muted); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5); overflow: auto; overscroll-behavior: contain; touch-action: pan-y; }
dialog::backdrop { background: rgba(8, 7, 24, .6); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .35s var(--ease); }
.v-shot { display: block; width: 100%; height: auto; max-height: 48dvh; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: var(--img-bg); border-bottom: 1px solid var(--hairline); }
.v-body { padding: 22px 26px 26px; display: grid; gap: 12px; }
.v-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.v-head h3 { font-size: 25px; }
.v-tag { font-size: var(--t-meta); font-weight: 700; color: var(--ink-subtle); margin: 0 0 4px; }
.v-tag .credit { color: inherit; text-underline-offset: 3px; }
.v-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--surface-1); cursor: pointer; display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.v-close:hover { border-color: var(--primary); }
.v-desc { margin: 0; font-size: var(--t-body); line-height: 1.75; color: var(--ink-muted); }
.v-meta { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: var(--t-meta); color: var(--ink-subtle); }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.v-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 26px 22px; }
.v-nav button { background: none; border: 0; color: var(--ink-subtle); font-size: var(--t-sm); font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0; }
.v-nav button:hover:not(:disabled) { color: var(--ink); }
.v-nav button:disabled { opacity: .3; cursor: default; }

dialog#search { border: 1px solid var(--hairline-strong); padding: 0; border-radius: var(--r-xl); width: min(680px, 100% - 24px); margin-top: min(12vh, 120px); background: var(--dialog-bg); color: var(--ink-muted);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.sr-box { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--hairline); }
.sr-box > i { font-size: 22px; color: var(--ink-subtle); }
#sr-q { flex: 1; min-width: 0; min-height: 56px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 20px; outline: none; }
#sr-q::placeholder { color: var(--ink-subtle); }
#sr-q::-webkit-search-cancel-button, #sr-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.sr-hint { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 6px; }
.sr-hint:empty { display: none; }
.sr-hint button { min-height: 36px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); background: none; color: var(--ink-muted); font-size: var(--t-meta); font-weight: 600; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.sr-hint button:hover { border-color: var(--primary); color: var(--ink); }
.sr-list { list-style: none; margin: 0; padding: 8px; max-height: min(56dvh, 560px); overflow: auto; overscroll-behavior: contain; display: grid; gap: 2px; }
.sr-h { padding: 12px 10px 4px; font-size: var(--t-cap); font-weight: 700; color: var(--ink-subtle); }
.sr-h b { font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.sr-item { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 8px 10px; border-radius: var(--r-btn); cursor: pointer; }
.sr-item img, .sr-ic { width: 72px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--hairline); background: var(--img-bg); }
.sr-ic { display: grid; place-items: center; color: var(--ink-subtle); font-size: 20px; }
.sr-text { display: grid; gap: 1px; min-width: 0; }
.sr-t { color: var(--ink); font-weight: 600; font-size: var(--t-sm); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-s { font-size: var(--t-meta); color: var(--ink-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item > i { color: var(--ink-subtle); font-size: 18px; }
.sr-list li[aria-selected="true"] .sr-item, .sr-item:hover { background: var(--accent-soft); }
.sr-list li[aria-selected="true"] .sr-item > i { color: var(--primary); }
mark { background: none; color: var(--primary-ink); font-weight: 700; }
.sr-empty { padding: 32px 20px; text-align: center; color: var(--ink-subtle); line-height: 1.7; }
.sr-empty b { color: var(--ink); font-weight: 600; }
.sr-foot { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 10px 20px 12px; border-top: 1px solid var(--hairline); font-size: var(--t-cap); color: var(--ink-subtle); }
.sr-keys { display: flex; gap: 10px; }
.sr-foot kbd { font: inherit; font-size: 11px; padding: 1px 6px; border: 1px solid var(--hairline-strong); border-radius: 4px; margin-right: 3px; }

dialog#player { border: 0; padding: 0; background: transparent; width: min(960px, 100% - 24px); overflow: visible; overscroll-behavior: contain; color: #d6d4ea; }
dialog#player .v-close { position: absolute; top: -52px; right: 0; background: rgba(16, 14, 42, .9); color: #fff; border-color: rgba(255, 255, 255, .2); }
.player-frame { aspect-ratio: 16 / 9; max-height: calc(100dvh - 120px); margin-inline: auto; border-radius: var(--r-tile); overflow: hidden; background: #05040f; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-title { margin: 12px 2px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; }
.player-title h3 { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: #fff; font-weight: 600; letter-spacing: 0; }
.player-acts { display: flex; flex-wrap: wrap; gap: 0 14px; }
.player-acts a, .player-acts button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; color: #c9c7e0; font: inherit; font-size: var(--t-meta); font-weight: 600; }
.player-acts a:hover, .player-acts button:hover { color: #fff; }
.player-eps { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.player-acts a, .player-acts button, .player-eps button { touch-action: manipulation; }
.player-eps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.player-eps [data-ep] { min-height: 40px; min-width: 52px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #d6d4ea; font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.player-eps [data-ep]:hover { border-color: #9a9dff; color: #fff; }
.player-eps [data-ep][aria-current] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ep-step { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(16, 14, 42, .9); color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.ep-step.next { order: 2; }
.ep-step:hover:not(:disabled) { border-color: #9a9dff; }
.ep-step:disabled { opacity: .3; cursor: default; }
@media (min-width: 1100px) {
  .ep-step { position: absolute; top: min(calc(min(960px, 100vw - 24px) * 9 / 32), calc(50dvh - 60px)); translate: 0 -50%; width: 52px; height: 52px; font-size: 22px; }
  .ep-step.prev { left: -72px; }
  .ep-step.next { right: -72px; }
}

dialog#bizcard { border: 0; padding: 20px; background: transparent; width: min(580px, 100% - 16px); max-height: 100dvh; overflow: visible; color: var(--ink-muted); }
.bc-close { position: absolute; top: -8px; right: 8px; background: rgba(16, 14, 42, .9); z-index: 2; }
.bc-card { position: relative; border-radius: var(--r-tile); padding: 22px 24px; display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); background: linear-gradient(160deg, #1a1840, #0c0b22 70%); }
.bc-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-subtle); }
.bc-card h2 { margin-top: 10px; font-size: 32px; line-height: 1.1; letter-spacing: -.04em; }
.bc-card h2 span { font-size: 14px; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0; margin-left: 6px; }
.bc-slogan { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.bc-slogan em { font-style: normal; color: var(--primary); }
.bc-role { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); }
.bc-role span { color: var(--ink-subtle); }
.bc-foot { margin-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bc-info { display: grid; gap: 12px; min-width: 0; }
.bc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.bc-list .row { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.bc-list a, .bc-list button { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0; background: none; border: 0; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.bc-list small { font-size: 11.5px; font-weight: 400; color: var(--ink-subtle); margin-left: 1px; }
.bc-list i { font-size: 17px; flex: none; }
.bc-list .yt i { color: #ff0033; }
.bc-list .ig i { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bc-list .mail i { color: var(--primary); }
.bc-list .nb { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #03c75a; color: #fff; font-size: 10.5px; font-weight: 800; flex: none; }
.bc-list a:hover span, .bc-list button:hover span { color: var(--primary); }
.bc-qr { flex: none; width: 96px; height: 96px; padding: 6px; background: #fff; border-radius: 10px; }
.bc-url { position: absolute; right: 24px; top: 22px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-subtle); }
.bc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.bc-actions .btn { min-height: 44px; padding: 0 16px; font-size: var(--t-sm); }
.bc-actions .btn-ghost { background: transparent; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); translate: -50% 20px; z-index: 20; margin: 0; padding: 10px 18px; border-radius: var(--r-pill); background: #f5f5f8; color: #0a0a12; font-size: var(--t-sm); font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), translate .25s var(--ease); }
.toast.on { opacity: 1; translate: -50% 0; }

/* 스르륵 등장 (스크립트가 html.reveal 을 건 뒤에만 숨긴다) */
.rise { transition: opacity .8s var(--ease), translate .8s var(--ease); }
html.reveal .rise:not(.in) { opacity: 0; translate: 0 22px; }

/* 마우스가 있는 기기에서만 떠오름 (휴대폰에서 눌린 채로 남지 않게) */
@media (hover: hover) and (pointer: fine) {
  .work:hover { translate: 0 -4px; border-color: var(--accent-line); box-shadow: var(--shadow); }
  .work:hover .thumb img { scale: 1.06; }
  .course:hover { translate: 0 -3px; border-color: var(--accent-line); }
  .course:hover .c-img { translate: 0 -3px; }
  .course:hover .c-go { color: var(--primary-ink); }
  .cover:not([aria-selected="true"]):hover { transform: rotateY(calc(-8deg + var(--mx) * 12deg)) translateY(-10px); filter: brightness(1); }
  .video:hover .v-thumb img { scale: 1.05; }
  .video:hover .v-play { opacity: 1; }
}

/* ───────── 강의·발표 모드 (--u = 16:9 화면의 1%. 1080p 에서 19.2px, 4:3 화면은 위아래 여백) */
html.stage-on { overflow: hidden; }
.stage { --u: min(1vw, 1.7778vh); position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; outline: none; color: var(--ink-muted);
  background: radial-gradient(calc(70 * var(--u)) calc(45 * var(--u)) at 15% 0%, rgba(139, 143, 255, .16), transparent 60%), var(--canvas); }
.stage #sky { position: absolute; inset: 0; z-index: 0; animation: none; }
.st-view { position: relative; z-index: 1; width: calc(100 * var(--u)); height: calc(56.25 * var(--u)); padding: calc(4 * var(--u)) calc(5 * var(--u)) calc(6 * var(--u)); }
#st-intro { touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.st-slide { position: absolute; inset: calc(4 * var(--u)) calc(5 * var(--u)) calc(6 * var(--u)); display: grid; align-content: center; gap: calc(2 * var(--u)); cursor: default; }
.st-slide.in > * { animation: st-in .5s var(--ease) backwards; }
.st-slide.in > :nth-child(2) { animation-delay: 70ms; }
.st-slide.in > :nth-child(n+3) { animation-delay: 140ms; }
@keyframes st-in { from { opacity: 0; translate: 0 calc(1.2 * var(--u)); } }
.st-kicker { margin: 0; font-size: calc(1.7 * var(--u)); font-weight: 600; color: var(--ink-subtle); }
.st-kicker b { color: var(--signal); margin-right: calc(.4 * var(--u)); }
.st-h { font-size: calc(3.6 * var(--u)); line-height: 1.25; letter-spacing: -.035em; max-width: calc(72 * var(--u)); }
.st-sub { margin: 0; font-size: calc(1.7 * var(--u)); line-height: 1.6; color: var(--ink-muted); max-width: calc(64 * var(--u)); }
.st-name { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 calc(2 * var(--u)); font-size: calc(9 * var(--u)); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: var(--ink); }
.st-name span { font-size: calc(2.2 * var(--u)); font-weight: 500; letter-spacing: 0; color: var(--ink-subtle); }
.st-slogan { margin: 0; font-size: calc(3.6 * var(--u)); font-weight: 700; line-height: 1.3; letter-spacing: -.035em; color: var(--ink); }
.st-slogan em { font-style: normal; color: var(--primary); }
.st-mini { position: absolute; right: 0; bottom: 0; margin: 0; display: grid; justify-items: center; gap: calc(.6 * var(--u)); font-size: calc(1.4 * var(--u)); font-weight: 700; color: var(--ink-subtle); }
.st-mini img { width: calc(11 * var(--u)); height: auto; padding: calc(.6 * var(--u)); background: #fff; border-radius: calc(1 * var(--u)); }
.st-me > div { display: grid; gap: calc(1.6 * var(--u)); }
.st-edu { margin: calc(1 * var(--u)) 0 0; display: grid; gap: calc(1.2 * var(--u)); }
.st-edu div { display: grid; grid-template-columns: calc(10 * var(--u)) minmax(0, 1fr); gap: calc(1.5 * var(--u)); }
.st-edu dt { font-size: calc(1.5 * var(--u)); font-weight: 700; color: var(--ink-subtle); padding-top: calc(.3 * var(--u)); }
.st-edu dd { margin: 0; font-size: calc(2 * var(--u)); line-height: 1.45; color: var(--ink-muted); }
.st-edu dd b { color: var(--ink); font-weight: 600; }
.st-numbers { list-style: none; margin: calc(1 * var(--u)) 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(3 * var(--u)); }
.st-numbers li { display: grid; gap: calc(.6 * var(--u)); padding-left: calc(2 * var(--u)); border-left: calc(.15 * var(--u)) solid var(--hairline-strong); }
.st-numbers b { font-size: calc(7 * var(--u)); line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.st-numbers span { font-size: calc(1.7 * var(--u)); color: var(--ink-subtle); }
.st-covers { display: flex; flex-wrap: wrap; gap: calc(2 * var(--u)); }
.st-covers img { width: calc(11 * var(--u)); height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: calc(.3 * var(--u)) calc(.6 * var(--u)) calc(.6 * var(--u)) calc(.3 * var(--u)); box-shadow: 0 calc(1.5 * var(--u)) calc(3 * var(--u)) calc(-1 * var(--u)) rgba(0, 0, 0, .9); }
.st-slide.in .st-covers img { animation: st-in .6s var(--spring) backwards; }
.st-slide.in .st-covers img:nth-child(2) { animation-delay: 60ms; } .st-slide.in .st-covers img:nth-child(3) { animation-delay: 120ms; }
.st-slide.in .st-covers img:nth-child(4) { animation-delay: 180ms; } .st-slide.in .st-covers img:nth-child(5) { animation-delay: 240ms; }
.st-slide.in .st-covers img:nth-child(n+6) { animation-delay: 300ms; }
.st-works, .st-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(2 * var(--u)); }
.st-works li, .st-tools li { display: grid; gap: calc(.6 * var(--u)); align-content: start; }
.st-works img, .st-tools img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: calc(1 * var(--u)); border: 1px solid var(--hairline-strong); margin-bottom: calc(.6 * var(--u)); }
.st-tag { margin: 0; font-size: calc(1.5 * var(--u)); font-weight: 600; color: var(--ink-subtle); }
.st-works h4, .st-tools h4 { font-size: calc(1.9 * var(--u)); line-height: 1.3; }
.st-papers { list-style: none; margin: calc(1 * var(--u)) 0 0; padding: 0; display: grid; }
.st-papers li { display: grid; grid-template-columns: calc(14 * var(--u)) minmax(0, 1fr); gap: calc(2 * var(--u)); padding: calc(1.1 * var(--u)) 0; border-top: 1px solid var(--hairline-strong); }
.st-pk { font-size: calc(1.5 * var(--u)); font-weight: 700; color: var(--ink-subtle); padding-top: calc(.3 * var(--u)); }
.st-pt { margin: 0; font-size: calc(2 * var(--u)); font-weight: 600; line-height: 1.4; color: var(--ink); }
.st-pt b { font-size: calc(1.3 * var(--u)); font-weight: 700; color: var(--signal); vertical-align: calc(.3 * var(--u)); margin-left: calc(.6 * var(--u)); }
.st-pm { margin: calc(.4 * var(--u)) 0 0; font-size: calc(1.5 * var(--u)); color: var(--ink-subtle); }
.st-reach { grid-template-columns: calc(34 * var(--u)) minmax(0, 1fr); align-items: center; column-gap: calc(5 * var(--u)); }
.st-qr { background: #fff; border-radius: calc(1.2 * var(--u)); overflow: hidden; aspect-ratio: 1; }
.st-qr svg, .st-qr img { display: block; width: 100%; height: 100%; }
.st-reach-t { display: grid; gap: calc(1.2 * var(--u)); align-content: center; min-width: 0; }
.st-url { margin: 0; font-size: calc(4.6 * var(--u)); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-chan { list-style: none; margin: calc(1 * var(--u)) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: calc(.6 * var(--u)) calc(2.4 * var(--u)); font-size: calc(1.6 * var(--u)); color: var(--ink); font-weight: 600; }
.st-chan small { font-size: calc(1.4 * var(--u)); font-weight: 400; color: var(--ink-subtle); margin-left: calc(.3 * var(--u)); }
.st-bye { margin: calc(.6 * var(--u)) 0 0; font-size: calc(1.5 * var(--u)); color: var(--ink-subtle); }
.st-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(.6 * var(--u)) 0 0; }
.st-btns .btn { min-height: max(40px, calc(2.8 * var(--u))); font-size: max(14px, calc(1.2 * var(--u))); padding: 0 max(14px, calc(1.2 * var(--u))); }
.stage .btn-ghost { background: transparent; }
/* 자료 QR 화면 */
.st-hand { display: grid; grid-template-columns: calc(30 * var(--u)) minmax(0, 1fr); gap: calc(4 * var(--u)); align-items: center; }
.st-pick { display: grid; gap: calc(.8 * var(--u)); align-content: start; height: 100%; min-height: 0; grid-template-rows: auto auto auto minmax(0, 1fr); }
.st-label { font-size: max(13px, calc(1.2 * var(--u))); font-weight: 700; color: var(--ink-subtle); }
#st-url { width: 100%; min-height: max(44px, calc(3.2 * var(--u))); padding: 0 max(12px, calc(1 * var(--u))); border-radius: var(--r-btn); border: 1px solid var(--hairline-strong); background: var(--surface-2); color: var(--ink); font: inherit; font-size: max(16px, calc(1.4 * var(--u))); }
#st-url::placeholder { color: var(--ink-subtle); }
#st-url:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.st-err { margin: 0; min-height: 1.4em; font-size: max(13px, calc(1.1 * var(--u))); color: var(--signal); }
.st-list { overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 2px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent; }
.st-lh { margin: max(10px, calc(1 * var(--u))) 0 4px; font-size: max(12px, calc(1.05 * var(--u))); font-weight: 700; color: var(--ink-subtle); }
.st-lh:first-child { margin-top: 0; }
.st-list button { display: grid; gap: 1px; width: 100%; text-align: left; padding: max(8px, calc(.7 * var(--u))) max(10px, calc(.9 * var(--u))); border: 0; border-radius: var(--r-btn); background: none; cursor: pointer; color: var(--ink); font-size: max(14px, calc(1.25 * var(--u))); font-weight: 600; transition: background-color .2s var(--ease); }
.st-list button small { font-size: max(12px, calc(1 * var(--u))); font-weight: 400; color: var(--ink-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list button:hover, .st-list button[aria-pressed="true"] { background: var(--accent-soft); }
.st-fig { margin: 0; display: grid; grid-template-columns: calc(28 * var(--u)) minmax(0, 1fr); gap: calc(3.5 * var(--u)); align-items: center; }
.st-fig figcaption { display: grid; gap: calc(1.2 * var(--u)); min-width: 0; }
.st-fig .st-kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 수업 도구 화면 */
.st-toolbox { display: grid; align-content: center; gap: calc(1.6 * var(--u)); overflow-y: auto; }
.st-tools img { aspect-ratio: 2 / 1; }
.st-tools li { grid-template-rows: auto auto 1fr; }
.st-tools h4 { margin-top: calc(.2 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tools .st-btns { flex-wrap: nowrap; align-self: end; }
.st-tools .st-btns .btn { flex: 1 1 0; min-width: 0; padding: 0 calc(.6 * var(--u)); gap: 4px; }
/* 아래 막대 */
.st-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, calc((100vw - 100 * var(--u)) / 2 + 3 * var(--u))) calc(14px + env(safe-area-inset-bottom)); font-size: max(14px, calc(.9 * var(--u))); transition: opacity .3s var(--ease); }
.st-modes, .st-acts { display: flex; gap: 4px; }
.st-bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-subtle); font-weight: 600; cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.st-bar button:hover { color: var(--ink); background: var(--hover); }
.st-modes button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.st-bar kbd { font: inherit; font-size: .8em; padding: 1px 6px; border: 1px solid var(--hairline-strong); border-radius: 4px; color: var(--ink-subtle); }
.st-count { margin: 0; color: var(--ink-subtle); font-variant-numeric: tabular-nums; text-align: center; }
.st-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hairline); z-index: 2; }
.st-progress span { display: block; height: 100%; background: var(--primary); transform-origin: left center; transform: scaleX(0); transition: transform .45s var(--ease); }
.stage.idle { cursor: none; }
.stage.idle #st-intro { cursor: none; }
.stage.idle .st-bar:not(:has(:focus-visible)) { opacity: 0; }
.stage.black::after { content: ""; position: absolute; inset: 0; z-index: 10; background: #000; cursor: none; }

/* ───────── 좁은 화면 */
@media (max-width: 860px) {
  .reel-tile { width: 62vw; }
  .why-cta { padding: 24px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 40px; }
  .band::before { width: 80vw; height: 80vw; right: 0; top: -10%; }
  .band::after { display: none; }
  h1 .name { font-size: clamp(76px, 25vw, 120px); }
  .slogan { font-size: clamp(24px, 6.8vw, 36px); margin-top: 16px; }
  .links { margin-top: 24px; gap: 8px; }
  .links a, .links button { min-height: 44px; padding: 0 14px; }
  .links .card-btn { flex: 1 1 100%; justify-content: center; }
  [data-stage] { display: none; }
  .hero-side { padding: 22px 22px 24px; }
  .side-name { font-size: 32px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; margin-top: 8px; padding: 24px 0; }
  .sec { margin-top: 80px; }
  .sec-head { margin-bottom: 24px; }
  .why { margin-top: 104px; }
  .nav-search span, .nav-search kbd { display: none; }
  .nav-search { width: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .sr-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .sr-item img, .sr-ic { width: 56px; }
  .sr-keys { display: none; }
  .now li > a, .now li > div { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .n-body { display: grid; gap: 3px; min-width: 0; grid-column: 2; grid-row: 1; }
  .n-state { grid-column: 3; grid-row: 1; }
  .courses { grid-template-columns: 1fr 1fr; }
  .courses li:nth-child(-n+2) { grid-column: 1 / -1; }
  .courses li:nth-child(n+3) { grid-column: span 1; }
  .rail { grid-auto-columns: minmax(230px, 64%); }
  .shelf { gap: 14px; padding: 28px 24px 34px; }
  .cover { width: 112px; }
  .rooms { grid-template-columns: 1fr; }
  .year-panel { grid-template-columns: 1fr; gap: 14px; }
  .yp-side { position: static; gap: 10px; }
  .yp-year { font-size: 56px; }
  .yp-year.span { font-size: 44px; }
  .topnav .brand span { display: none; }
}
@media (max-height: 500px) {
  dialog#player .v-close { top: 8px; right: 8px; z-index: 1; }
}
@media (max-width: 480px) {
  dialog#player { width: calc(100% - 16px); max-width: none; }   /* 휴대폰: 영상이 화면 폭 가득 */
  main, .hero { width: min(1200px, 100% - 32px); }
  .hero { padding-top: 32px; }
  .hero-kicker { font-size: var(--t-sm); margin-bottom: 12px; }
  .lede { font-size: 16px; }
  .links { gap: 6px; }
  .links a, .links button { padding: 0 12px; font-size: var(--t-meta); }
  .links i { font-size: 19px; }
  .stats b { font-size: 40px; }
  .filters { gap: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .filters button { padding: 0 7px; font-size: var(--t-meta); }
  .topnav { gap: 8px; padding: 0 12px; }
  .topnav ul a { padding: 0 8px; font-size: var(--t-meta); }
  .now li > a, .now li > div { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .n-when { grid-column: 1 / -1; grid-row: 1; }
  .n-body { grid-column: 1; grid-row: 2; }
  .n-state { grid-column: 2; grid-row: 2; }
  .paper { grid-template-columns: 1fr; gap: 6px; }
  .works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .works > li:first-child { grid-column: 1 / -1; }   /* 고정한 첫 작품은 휴대폰에서도 한 줄 가득 */
  .work .body { padding: 12px 14px 14px; }
  .work .title { font-size: var(--t-sm); }
  .work .desc { display: none; }
  .works > li:first-child .title { font-size: var(--t-lg); }
  .works > li:first-child .desc { display: -webkit-box; }
  .courses li:nth-child(n+3) { grid-column: 1 / -1; }
  .course.has-img { grid-template-columns: minmax(0, 1fr) 40%; column-gap: 14px; }
  .shelf { gap: 12px; margin: 0 -16px; padding: 24px 16px 32px; }
  .cover { width: 100px; }
  .book-open h3 { font-size: var(--t-xl); }
  .room { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .room img, .room .room-none { width: 72px; }
  .yp-year { display: none; }
  .yp-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .yp-w { grid-column: 2; text-align: left; }
  .why-body p { font-size: var(--t-body); }
  .bc-card { padding: 18px; }
  .bc-card h2 { font-size: 26px; }
  .bc-url { display: none; }
  .bc-foot { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
  .bc-info { display: contents; }
  .bc-role { grid-column: 1 / -1; font-size: 11.5px; }
  .bc-list .row { gap: 2px 10px; }
  .bc-list a, .bc-list button { font-size: 12.5px; }
  .bc-qr { width: 72px; height: 72px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fresh button { animation: none; }
  .work .thumb img { animation: none; }
  .reel-track { animation: none; }
  .reel-row { overflow-x: auto; scrollbar-width: none; }
  html { scroll-behavior: auto; }
  html.reveal .rise:not(.in) { opacity: 1; translate: none; }
  .rise { transition: none; }
  .hero-main > *, .hero-side, h1 .name > span, .band::before, .band::after, #sky, dialog[open], .book-open.flip > *, .year-panel.flip .yp-list li, .st-slide.in > *, .st-slide.in .st-covers img { animation: none; }
  .util, .work, .work .thumb img, .btn, .btn-primary::after, .links a, .links button, .cover, .course, .c-img, .v-thumb img, .toast, .st-progress span, .st-bar, h1, .hero-side { transition: none; }
  .work { transform: none; }
}
@media print {
  .fresh, .reel, #sky, .topnav, .skip, .links, .foot-stage, .band::before, .band::after, .gb-form, .gb-sort, .gb-states, .gb-apps, .filters, .more-btn, .rail-head, .rail, .rail-foot, .why-cta, .shelf, .years, dialog, .toast, .stage { display: none !important; }
  body, .band { background: #fff !important; color: #222; }
  h1, h2, h3, .name, .n-title, .work .title, .c-title, .book-open h3, .p-title, .yp-t, .stats b, .why-sign, .side-name { color: #000 !important; }
  .rise { opacity: 1 !important; translate: none !important; }
  .work, .course, .paper, .yp-list li, .hero-side, .room { background: none !important; border-color: #ccc !important; box-shadow: none !important; transform: none !important; }
  .sec { break-inside: avoid-page; }
}

/* 개발자 모드 (assets/dev.js) — 바닥글 [개발자 모드]로 여는 고치기 창 */
dialog#dev { border: 1px solid var(--hairline-strong); padding: 0; border-radius: var(--r-xl); width: min(1100px, 100% - 24px); height: min(820px, 100dvh - 24px); max-height: none; background: var(--dialog-bg); color: var(--ink-muted); box-shadow: var(--shadow); overflow: hidden; }
dialog#dev[open] { display: flex; flex-direction: column; }
#dev .dv-wait, #dev .dv-login { padding: 32px; }
#dev .dv-login h2 { margin: 0 0 8px; color: var(--ink); font-size: var(--t-xl); }
#dev .dv-login p { margin: 0 0 18px; }
#dev .dv-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--hairline); }
#dev .dv-head h2 { margin: 0; color: var(--ink); font-size: var(--t-lg); }
#dev .dv-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-subtle); font-size: var(--t-cap); }
#dev .dv-btn { min-height: 36px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-btn); background: var(--surface-1); color: var(--ink); font: 600 var(--t-meta)/1 var(--font); cursor: pointer; }
#dev .dv-btn:hover { background: var(--surface-2); }
#dev .dv-btn:disabled { opacity: .5; cursor: default; }
#dev .dv-primary { border-color: transparent; background: var(--primary); color: var(--on-primary); }
#dev .dv-primary:hover { background: var(--primary-ink); }
#dev .dv-danger { margin-top: 10px; color: #fca5a5; }
#dev .dv-login .dv-btn + .dv-btn { margin-left: 8px; }
#dev .dv-x { width: 36px; height: 36px; border: 0; border-radius: var(--r-btn); background: none; color: var(--ink-subtle); font-size: 24px; cursor: pointer; }
#dev .dv-x:hover { background: var(--hover); color: var(--ink); }
#dev .dv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px 1fr; }
#dev .dv-secs { overflow: auto; padding: 10px; border-right: 1px solid var(--hairline); }
#dev .dv-secs button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-muted); font: 500 var(--t-meta)/1.2 var(--font); text-align: left; cursor: pointer; }
#dev .dv-secs button:hover { background: var(--hover); }
#dev .dv-secs button.on { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
#dev .dv-secs b { padding: 1px 7px; border-radius: var(--r-pill); background: var(--signal-soft); color: var(--signal); font-size: 12px; }
#dev .dv-main { overflow: auto; padding: 16px 20px 24px; }
#dev .dv-q { width: 100%; min-height: 40px; margin-bottom: 12px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-btn); background: var(--surface-1); color: var(--ink); font: 400 var(--t-meta)/1 var(--font); }
#dev .dv-item { margin-bottom: 8px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-1); }
#dev .dv-item.is-hidden { opacity: .55; }
#dev .dv-item.is-changed { border-color: var(--accent-line); }
#dev .dv-item > summary, #dev .dv-sub > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--ink); font-size: var(--t-sm); font-weight: 600; cursor: pointer; list-style: none; }
#dev .dv-item > summary::-webkit-details-marker, #dev .dv-sub > summary::-webkit-details-marker { display: none; }
#dev .dv-item > summary::before, #dev .dv-sub > summary::before { content: '›'; color: var(--ink-subtle); transition: transform .2s var(--ease); }
#dev details[open] > summary::before { transform: rotate(90deg); }
#dev .dv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dev .dv-badge { padding: 1px 8px; border-radius: var(--r-pill); background: var(--hover); color: var(--ink-subtle); font-size: 12px; font-weight: 600; }
#dev .dv-badge-ch { background: var(--accent-soft); color: var(--primary-ink); }
#dev .dv-item[open] { padding-bottom: 12px; }
#dev .dv-tools { display: flex; align-items: center; gap: 12px; padding: 4px 14px 10px; }
#dev .dv-show { display: inline-flex; align-items: center; gap: 6px; flex: 1; color: var(--ink); font-size: var(--t-meta); cursor: pointer; }
#dev .dv-f { display: grid; gap: 4px; padding: 6px 14px; }
#dev .dv-f label { color: var(--ink-subtle); font-size: var(--t-cap); font-weight: 600; }
#dev .dv-f input:not([type=checkbox]), #dev .dv-f textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); background: var(--canvas); color: var(--ink); font: 400 var(--t-meta)/1.55 var(--font); resize: vertical; }
#dev .dv-f input:focus, #dev .dv-f textarea:focus, #dev .dv-q:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
#dev .dv-chk { display: flex; align-items: center; gap: 8px; }
#dev .dv-chk label { color: var(--ink-muted); font-size: var(--t-meta); }
#dev input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }
#dev .dv-sub { margin: 8px 14px 0; border: 1px dashed var(--hairline-strong); border-radius: var(--r-md); }
#dev .dv-sub .dv-item { margin: 6px 10px; }
#dev .dv-note { margin-top: 18px; color: var(--ink-subtle); font-size: var(--t-cap); line-height: 1.7; }
#dev .dv-msg { min-height: 1.5em; margin: 8px 0 0; color: var(--signal); font-size: var(--t-meta); }
#dev .dv-empty { color: var(--ink-subtle); }
.foot-stage .stage-link + .stage-link { margin-left: 10px; }
@media (max-width: 720px) {
  #dev .dv-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #dev .dv-secs { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); }
  #dev .dv-secs button { width: auto; flex: none; white-space: nowrap; }
  #dev .dv-head { flex-wrap: wrap; padding-left: 16px; }
  #dev .dv-who { order: 5; flex-basis: 100%; }
}
#dev .dv-move { display: inline-flex; gap: 2px; }
#dev .dv-move button { width: 28px; height: 28px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--canvas); color: var(--ink-muted); font-size: 14px; line-height: 1; cursor: pointer; }
#dev .dv-move button:hover { border-color: var(--accent-line); color: var(--ink); }
#dev .dv-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; }
#dev .dv-row .dv-show { flex: none; }
#dev .dv-top { margin: 0 0 12px; }
#dev .dv-top .dv-btn { margin-left: 8px; min-height: 30px; }

/* 오늘의 하늘(방명록 위 다녀간 사람 숫자판): 별이 숨 쉬는 '지금' 한 줄 + 큰 숫자 둘 + 앱마다 14일 흐름선 */
.sky { position: relative; margin: 0 0 40px; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--hairline); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(169,172,255,.10), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(253,230,138,.05), transparent 60%), var(--surface-1); }
.sky-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.sky-now { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-muted); font-size: var(--t-lg); }
.sky-now b { color: var(--ink); font-size: clamp(34px, 5vw, 46px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sky-pulse { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px 2px rgba(253,230,138,.55); }
.sky-pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(253,230,138,.6); animation: sky-ring 2.4s var(--ease) infinite; }
.sky.is-quiet .sky-pulse { background: var(--ink-subtle); box-shadow: none; }
.sky.is-quiet .sky-pulse::after { display: none; }
@keyframes sky-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.sky-figs { display: flex; gap: 36px; margin: 0; }
.sky-figs div { display: grid; gap: 4px; }
.sky-figs dt { color: var(--ink-subtle); font-size: var(--t-cap); font-weight: 600; }
.sky-figs dd { margin: 0; color: var(--ink); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sky-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.sky-app { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 58px; padding: 8px 14px; border-radius: var(--r-md); color: inherit; text-decoration: none; transition: background .2s var(--ease); }
.sky-app:hover { background: var(--hover); }
.sky-app:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.sky-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sky-on { flex: none; padding: 1px 8px; border-radius: var(--r-pill); background: var(--signal-soft); color: var(--signal); font-size: 12px; font-weight: 700; }
.sky-spark { width: 120px; height: 34px; overflow: visible; }
.sky-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sky-area { fill: var(--accent-soft); stroke: none; }
.sky-dot { fill: var(--primary); stroke: var(--surface-1); stroke-width: 2; }
.sky-spark rect { fill: transparent; }
.sky-nums { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 4px; min-width: 76px; text-align: right; justify-content: end; }
.sky-nums b { color: var(--ink); font-size: var(--t-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.sky-nums small { margin-left: 3px; color: var(--ink-subtle); font-size: 12px; }
.sky-nums span { grid-column: 1 / -1; color: var(--ink-subtle); font-size: var(--t-cap); font-variant-numeric: tabular-nums; }
.sky-note { margin: 16px 0 0; color: var(--ink-subtle); font-size: var(--t-cap); }
@media (max-width: 560px) {
  .sky { padding: 20px 16px; }
  .sky-app { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 6px; }
  .sky-spark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sky-pulse::after { animation: none; } }

/* 방명록 한눈에(11/5): 왼쪽 숫자판 + 짧은 글쓰기, 오른쪽 목록은 왼쪽 높이만큼만 차지하고 안에서 스크롤 */
.gb { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.gb-side { display: grid; gap: 16px; align-content: start; }
.sky { margin: 0; padding: 22px 22px 18px; border-radius: var(--r-tile); }
.sky-figs { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.sky-figs div { display: flex; flex-direction: column-reverse; gap: 6px; }
.sky-figs dd { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sky-figs dd b { font: inherit; }
.sky-figs .sky-now dd { color: var(--signal); }
.sky-figs dt { color: var(--ink-subtle); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sky-pulse { width: 9px; height: 9px; box-shadow: 0 0 10px 1px rgba(253,230,138,.55); }
.sky-pulse::after { inset: -5px; }
.sky-apps { display: table; width: 100%; margin: 0; padding: 0; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sky-apps th, .sky-apps td { padding: 6px 0; text-align: left; white-space: nowrap; }
.sky-apps tbody tr + tr th, .sky-apps tbody tr + tr td { border-top: 1px solid var(--hairline); }
.sky-apps th { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; font-weight: 700; }
.sky-apps th a { color: var(--ink); text-decoration: none; }
.sky-apps th a:hover { color: var(--primary-ink); }
.sky-apps td { padding-left: 12px; color: var(--ink-muted); text-align: right; }
.sky-apps td small { color: var(--ink-subtle); font-size: 11.5px; }
.sky-apps td.sky-on { padding: 6px 0 6px 12px; border-radius: 0; background: none; color: var(--signal); font-size: 13.5px; font-weight: 700; }
.sky-apps .sky-sp { padding-left: 4px; line-height: 0; }
.sky-spark { width: 64px; height: 20px; }
.sky-note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
.gb-form { gap: 12px; padding: 20px 22px; }
.gb-field legend { margin-bottom: 8px; font-size: var(--t-meta); }
.gb-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.gb-cats label { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--t-meta); }
.gb-input { min-height: 42px; padding: 8px 12px; font-size: 15px; }
textarea.gb-input { min-height: 96px; }
.gb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gb-send { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gb-note { display: block; font-size: 12.5px; line-height: 1.55; }
.gb-go { width: auto; flex: none; padding: 0 22px; }
.gb-msg { margin: 0; }
.gb-board { display: flex; flex-direction: column; min-width: 0; min-height: 0; contain: size; }
.gb-head { margin-bottom: 8px; }
.gb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.gb-chips button { min-height: 34px; padding: 0 13px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); background: none; color: var(--ink-muted); font-size: var(--t-meta); font-weight: 600; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.gb-chips button:hover { border-color: var(--accent-line); color: var(--ink); }
.gb-chips button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.gb-chips button b { margin-left: 2px; font-weight: 600; opacity: .75; }
.gb-apps { margin-bottom: 12px; }
.gb-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent; }
.gb-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-md); }
.gb-list { gap: 8px; }
.gb-item { gap: 6px; padding: 14px 18px; border-radius: var(--r-lg); box-shadow: none; }
.gb-meta { font-size: var(--t-cap); }
.gb-text { line-height: 1.6; }
.gb-who { margin: 0; font-size: var(--t-cap); }
.gb-reply { padding: 10px 14px; }
.gb-skel { height: 88px; }
.gb-scroll .more-btn { margin: 10px 0 2px; }
@media (max-width: 860px) {
  .gb { grid-template-columns: 1fr; gap: 28px; }
  .gb-board { contain: none; }
  .gb-scroll { flex: none; max-height: 70vh; }
}
@media (max-width: 480px) {
  .gb-two { grid-template-columns: 1fr; }
  .sky-figs dd { font-size: 24px; }
  .sky-apps .sky-sp { display: none; }
}
.sky-apps tr.sky-group th a { color: var(--ink-muted); font-weight: 600; }
