@font-face {
  font-family: "NeoDunggeunmo";
  src: url("../assets/fonts/neodgm.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --space: #08090d;
  --surface: #17191f;
  --ink: #f8f8fa;
  --muted: #b3b5bf;
  --line: #ffffff20;
  --scrollbar: #656975;
  --focus: #a8c9ff;
  font-family: "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--space);
  font-synthesis: none;
  scrollbar-color: var(--scrollbar) var(--surface);
  scrollbar-width: thin;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 620px; height: 100svh; height: 100dvh; position: relative; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:not(:disabled):active, .github-link:active { transform: scale(.97); }
button:focus-visible, a:focus-visible, canvas:focus-visible, nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #969aa5; }
::-webkit-scrollbar-thumb:active { background: #b3b5bf; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 14px 20px; background: var(--ink); color: var(--space); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.brand-screen { position: fixed; inset: 0; z-index: 8; background: #000; overflow: hidden; }
.brand-screen:not(.is-playing) { animation: intro-safety 0s 9s forwards; }
.brand-screen > svg { display: block; width: 100%; height: 100%; }
#brand-vector * { animation-play-state: paused; }
.is-playing #brand-vector * { animation-play-state: running; }
@keyframes intro-safety { to { visibility: hidden; pointer-events: none; } }
.site-header { position: absolute; inset: 0 0 auto; z-index: 3; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { width: 36px; height: 27px; }
.header-links { display: flex; align-items: baseline; gap: 30px; font-size: 13px; font-weight: 500; }
/* 한글 획의 하단을 GitHub 영문 획과 맞춘다. */
.text-button { position: relative; top: -1px; background: transparent; padding: 12px 0; color: #d7d8df; }
.text-button:hover { color: white; }
/* 글자 상자보다 위에 놓이는 실제 획을 보정하고 버튼의 전체 높이는 유지한다. */
.github-link { display: flex; align-items: baseline; gap: 8px; line-height: 1; padding: 13px 18px 9px; border: 1px solid #ffffff32; border-radius: 30px; transition: background .2s; }
.github-link:hover { background: #ffffff12; }
.external-arrow { width: 17px; height: 17px; stroke-width: 1.7; }
.github-link .external-arrow { width: 7.8px; height: 7.8px; }
.mobile-break { display: none; }
#universe { position: absolute; inset: 0; }
#scene { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#scene.is-dragging { cursor: grabbing; }
#scene.is-hovering { cursor: pointer; }
.vignette { position: absolute; inset: 0; background: linear-gradient(180deg, #08090d60, transparent 18%, transparent 70%, #08090d99); pointer-events: none; }
.intro { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-family: "NeoDunggeunmo", monospace; pointer-events: none; width: max-content; max-width: 88%; transition: opacity .7s, filter .7s; }
.is-exploring .intro { opacity: 0; filter: blur(5px); }
.eyebrow { width: max-content; max-width: 100%; font-size: 14px; line-height: 1.6; letter-spacing: 0; margin: 0 auto 12px; font-weight: 400; color: #dedee6; word-break: keep-all; }
h1 { margin: 0; font: 400 clamp(64px, 8vw, 128px)/1 "NeoDunggeunmo", monospace; letter-spacing: 0; text-shadow: 0 3px 35px #08090d45; }
.title-line { position: relative; display: block; width: max-content; margin-inline: auto; transform: scaleX(1.12); transform-origin: center; }
.title-dot { position: absolute; top: 0; left: calc(100% - .125em); color: #f66c5a; }
.intro-hint { display: flex; justify-content: center; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin: 31px auto 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; word-break: keep-all; }
.intro-hint svg { width: 16px; height: 16px; opacity: .8; }
.scene-status { position: absolute; bottom: max(32px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(88%, 430px); text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); pointer-events: none; }
.scene-status:empty { display: none; }
.scene-failed .intro { top: 40%; }
.scene-failed .intro-hint { display: none; }
.social-links { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.social-links:focus-within, .scene-failed .social-links { z-index: 4; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; width: max-content; height: auto; max-width: 94%; padding: 14px; border-radius: 12px; clip-path: none; overflow: visible; background: var(--surface); font-size: 12px; }
.social-links a { text-decoration: underline; }
.object-label { position: absolute; z-index: 3; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; pointer-events: none; background: #f8f8f2; color: #191c23; font-size: 12px; font-weight: 700; border-radius: 30px; padding: 10px 15px 8px; box-shadow: 0 5px 20px #0002; }
.object-label { opacity: 0; visibility: hidden; transform: translateY(8px) scale(.3); transform-origin: left bottom; transition: transform .26s cubic-bezier(.5, -.65, .7, .2), opacity .16s ease-in .08s, visibility 0s .26s; }
.object-label.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition: transform .48s cubic-bezier(.16, 2.15, .4, 1), opacity .09s ease-out, visibility 0s; }
.object-label::after { content: '↗'; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: transparent; font-size: 19px; transition: background .2s; }
.icon-button:not(:disabled):hover { background: #ffffff15; }
dialog { position: fixed; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px 32px 25px; border: 1px solid #ffffff25; border-radius: 28px; background: #17191ff5; color: var(--ink); box-shadow: 0 35px 140px #0009; overflow: auto; scrollbar-gutter: stable; }
dialog::backdrop { background: #03050a94; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin: -6px -10px 12px 0; }
.dialog-top p { font: 600 11px/1.3 "Avenir Next", sans-serif; letter-spacing: .14em; color: var(--muted); }
.close-button { font-size: 29px; font-weight: 300; }
.dialog-nav { display: flex; gap: 7px; flex-wrap: wrap; }
.dialog-nav button { min-height: 40px; border-radius: 22px; padding: 10px 17px; font-size: 12px; color: var(--muted); background: #ffffff06; }
.dialog-nav button:hover { background: #ffffff12; color: var(--ink); }
.dialog-nav button[aria-pressed="true"] { color: #13161e; background: #f6f6f8; }
.project-copy { padding: 27px 0 0; }
.project-symbol { width: 110px; height: 95px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.tomato-symbol { background: #f04a3a; border-radius: 32px; }
.teum-symbol { background: #3876e8; border-radius: 29px; }
.teum-symbol img { filter: brightness(0) invert(1); }
.signal-symbol { background: #101a2b; border-radius: 29px; }
.world-symbol { background: #fff8df; border-radius: 29px; }
.world-symbol img { image-rendering: pixelated; }
.project-category { font: 600 10px/1.4 "Avenir Next", sans-serif; letter-spacing: .12em; color: #a5a9b7; margin: 0 0 12px; }
h2 { font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -.045em; margin: 0 0 20px; word-break: keep-all; }
.project-description { color: #c0c3cd; font-size: 14px; line-height: 1.8; word-break: keep-all; margin: 0 0 28px; }
.project-visit { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 53px; background: #f4f4f6; color: #191c23; border-radius: 14px; padding: 15px 19px; font-size: 14px; font-weight: 700; transition: background .2s; }
.project-visit:hover { background: white; }
.no-script { position: absolute; z-index: 4; inset: auto 16px 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 20px; background: var(--surface); border-radius: 16px; }
.no-script p { width: 100%; text-align: center; margin: 0; }
.no-script a { text-decoration: underline; }
@media (min-width: 1700px) { .site-header { padding: 36px 56px; } }
@media (max-width: 1000px) { .intro { top: 46%; } }
@media (max-width: 640px) {
  .site-header { padding: max(21px, env(safe-area-inset-top)) 20px 20px; gap: 4px 12px; flex-wrap: wrap; }
  .wordmark img { width: 25px; height: 21px; }
  .header-links { gap: 9px; font-size: 11px; white-space: nowrap; margin-left: auto; }
  .github-link { border: 0; padding: 12px 0 8px; gap: 5px; }
  .intro { top: 46.5%; }
  h1 { font-size: clamp(56px, 17vw, 92px); }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  .mobile-break { display: initial; }
  .dialog-nav { gap: 5px; flex-wrap: nowrap; }
  .dialog-nav button { flex: 1; padding-inline: 8px; font-size: 11px; white-space: nowrap; }
  .intro-hint { font-size: 11px; gap: 6px; margin-top: 23px; }
  .scene-status { font-size: 12px; }
  dialog { padding: 22px 24px; border-radius: 24px; }
  h2 { font-size: 30px; }
}
@media (max-width: 360px) { .dialog-nav button { padding-inline: 6px; font-size: 10.5px; } }
@media (max-height: 650px) and (min-width: 641px) { body { min-height: 500px; } .intro { top: 45%; } h1 { font-size: 66px; } .site-header { padding-top: 20px; } .eyebrow { margin-bottom: 10px; } .intro-hint { margin-top: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: reduce), (forced-colors: active) { .brand-screen { display: none; } }
@media (forced-colors: active) { :root { scrollbar-color: auto; } button, .github-link, dialog { border: 1px solid ButtonText; } .vignette { display: none; } }
