/* Portfolio dev-console dark design system — 2026-05-13 리뉴얼
 * 모든 새 페이지가 공유. 라이트 테마 site.css 는 (있다면) 따로 유지.
 * Tailwind config (커스텀 색상/폰트 명) 은 페이지 inline 으로 유지 — CDN 특성상 필수.
 */

:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body {
  background-color: #0B0F14;
  color: #E6EDF3;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-feature-settings: "ss01" on, "ss02" on;
}
body.menu-open { overflow: hidden; touch-action: none; }
img { display: block; max-width: 100%; }

/* === backgrounds === */
.bg-grid-dots {
  background-color: #0B0F14;
  background-image: radial-gradient(rgba(111,227,255,0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}
.bg-grid-lines {
  background-image:
    linear-gradient(rgba(111,227,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,227,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* === caret blink === */
@keyframes blink { 0%, 60% { opacity: 1; } 60.01%, 100% { opacity: 0; } }
.caret { display: inline-block; width: 0.6ch; background: currentColor; animation: blink 1.05s steps(2, end) infinite; margin-left: 2px; }
.caret-thin { display: inline-block; width: 1px; height: 1em; background: currentColor; animation: blink 1.05s steps(2, end) infinite; vertical-align: middle; margin-left: 4px; }

/* === corner ticks === */
.ticks { position: relative; }
.ticks::before, .ticks::after,
.ticks > .tl, .ticks > .tr, .ticks > .bl, .ticks > .br { position: absolute; width: 10px; height: 10px; border-color: #6FE3FF; border-style: solid; pointer-events: none; transition: width 200ms ease, height 200ms ease, border-color 200ms ease; }
.ticks::before { content: ""; top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.ticks::after { content: ""; bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.ticks > .tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.ticks > .bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.ticks-amber::before, .ticks-amber::after, .ticks-amber > .tr, .ticks-amber > .bl { border-color: #F5C26B; }
.group:hover .ticks::before, .group:hover .ticks::after, .group:hover .ticks > .tr, .group:hover .ticks > .bl { width: 14px; height: 14px; }

/* === scanlines / CRT === */
.scanlines { position: relative; }
.scanlines::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.22) 50%); background-size: 100% 3px; }

/* === terminal window === */
.term-window { border: 1px solid rgba(230,237,243,0.12); background: #0E141B; box-shadow: 0 30px 120px rgba(0,229,255,0.06), inset 0 0 0 1px rgba(0,0,0,0.4); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 32px; border-bottom: 1px solid rgba(230,237,243,0.10); background: rgba(17, 22, 29, 0.8); }
.term-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(230,237,243,0.24); }
.term-dot.r { background: #FF7B72; }
.term-dot.y { background: #F5C26B; }
.term-dot.g { background: #6EE787; }
.term-title { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #76818F; }

/* === chips === */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #E6EDF3; border: 1px solid rgba(230,237,243,0.16); background: rgba(17, 22, 29, 0.6); border-radius: 2px; }
.chip-cyan { color: #6FE3FF; border-color: rgba(111,227,255,0.32); background: rgba(111,227,255,0.06); }
.chip-amber { color: #F5C26B; border-color: rgba(245,194,107,0.32); background: rgba(245,194,107,0.06); }

/* === mono labels === */
.kicker { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #76818F; }
.kicker-cyan { color: #6FE3FF; }
.kicker-amber { color: #F5C26B; }

/* === chapter rule === */
.chapter-rule { display: flex; align-items: center; gap: 16px; }
.chapter-rule .tag { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 12px; border: 1px solid; }
.chapter-rule .line { flex: 1; height: 1px; background: linear-gradient(to right, rgba(230,237,243,0.24), rgba(230,237,243,0.04)); }
.chapter-rule .tail { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #76818F; }

/* === card === */
.card { border: 1px solid rgba(230,237,243,0.08); background: #11161D; transition: border-color 200ms ease, transform 200ms ease; }
.card:hover { border-color: rgba(111,227,255,0.32); }
.card-amber:hover { border-color: rgba(245,194,107,0.32); }

/* === display headlines, 35px 캡 === */
.display-hero { font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.5rem, 3vw + 0.5rem, 2.1875rem); line-height: 1.15; }
.display-section { font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.25rem, 2vw + 0.4rem, 1.75rem); line-height: 1.2; }

/* === KR balance === */
.kr-balance { text-wrap: pretty; word-break: keep-all; overflow-wrap: normal; }

/* === buttons === */
.btn-cyan { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: #6FE3FF; color: #0B0F14; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid #6FE3FF; transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.btn-cyan:hover { background: #ABEDFF; box-shadow: 0 12px 32px rgba(111,227,255,0.24); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: transparent; color: #E6EDF3; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(230,237,243,0.16); transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease; }
.btn-ghost:hover { border-color: rgba(111,227,255,0.48); color: #6FE3FF; background: rgba(111,227,255,0.04); }

/* === nav link === */
.nav-link { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A94A6; padding: 8px 4px; border-bottom: 1px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.nav-link:hover { color: #6FE3FF; }
.nav-link.is-active { color: #6FE3FF; border-bottom-color: #6FE3FF; }

/* === ticker === */
.ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A94A6; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid rgba(230,237,243,0.08); border-bottom: 1px solid rgba(230,237,243,0.08); }
.ticker .dot { width: 4px; height: 4px; background: #6FE3FF; border-radius: 999px; }

/* === card window bar === */
.card-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 28px; border-bottom: 1px solid rgba(230,237,243,0.08); background: rgba(17, 22, 29, 0.9); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #76818F; }

/* === media frame === */
.media-frame { position: relative; overflow: hidden; background: #0B0F14; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease, filter 320ms ease; filter: grayscale(0.4) contrast(1.05); }
.group:hover .media-frame img { transform: scale(1.03); filter: grayscale(0) contrast(1.1); }
.media-frame.frame-contain { background: #07090C; }
.media-frame.frame-contain img { object-fit: contain; padding: 12px; filter: none; }
.media-frame.video { aspect-ratio: 16 / 9; border: 1px solid rgba(230,237,243,0.08); background: #07090C; }
.media-frame.video.video-portrait { aspect-ratio: 9 / 16; }
.media-frame.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Product captures retain their native aspect ratio and colors. */
.planner-album { align-items: flex-start; scroll-snap-type: x proximity; }
.planner-album figure { width: min(88vw, 1000px); flex: 0 0 auto; scroll-snap-align: start; }
.planner-album .planner-portrait { width: min(80vw, 340px); }
.planner-capture { position: relative; display: block; border-bottom: 1px solid rgba(230,237,243,0.08); background: #fff; }
.planner-capture img { display: block; width: 100%; height: auto; object-fit: contain; filter: none; }
.planner-capture:focus-visible { outline: 2px solid #6FE3FF; outline-offset: 3px; }
.planner-capture .capture-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; background: #0B0F14; color: #E6EDF3; border: 1px solid rgba(230,237,243,0.16); }

/* === horizontal scroller === */
.h-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 12px;
  scroll-behavior: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 8px; }
.h-scroll::-webkit-scrollbar-track { background: rgba(230,237,243,0.04); }
.h-scroll::-webkit-scrollbar-thumb { background: rgba(111,227,255,0.24); }
.h-scroll > * { scroll-snap-align: none; flex: 0 0 auto; }
.h-scroll img, [data-h-drag] img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; }

/* === checklist === */
.check { display: flex; align-items: baseline; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.04em; }
.check .mark { color: #6FE3FF; }
.check .mark-pending { color: #76818F; }
.check .label { color: #E6EDF3; }
.check .label-pending { color: #8A94A6; }
.check .desc { color: #8A94A6; }

/* === sticky nav === */
.sticky-nav { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(11,15,20,0.72); border-bottom: 1px solid rgba(230,237,243,0.08); }

/* === mobile drawer === */
.mobile-drawer { display: flex; min-height: 100dvh; overflow-y: auto; background: #0B0F14 !important; }

/* === selection / focus === */
::selection { background: #6FE3FF; color: #0B0F14; }
:focus-visible { outline: 2px solid #6FE3FF; outline-offset: 2px; }

/* === DeskRelay 등 글로우 === */
.glow-cyan { box-shadow: 0 60px 180px -40px rgba(111,227,255,0.18), inset 0 0 0 1px rgba(111,227,255,0.10); }

/* === architecture lane (DeskRelay 케이스) === */
.lane { border: 1px solid rgba(230,237,243,0.08); padding: 20px; background: rgba(17,22,29,0.6); transition: border-color 200ms ease; position: relative; }
.lane:hover { border-color: rgba(111,227,255,0.32); }
.lane .lane-num { position: absolute; top: 12px; right: 12px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; color: #76818F; }
.lane-flow { display: grid; gap: 0; position: relative; }
.lane-arrow { display: flex; align-items: center; justify-content: center; padding: 8px 0; color: #6FE3FF; font-family: "JetBrains Mono", monospace; font-size: 14px; }

/* === inline code === */
code { font-family: "JetBrains Mono", monospace; font-size: 0.92em; color: #6FE3FF; background: rgba(111,227,255,0.06); padding: 1px 6px; border: 1px solid rgba(111,227,255,0.18); }

/* === pullquote === */
.pullquote { font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-style: italic; font-size: clamp(1rem, 1.6vw + 0.4rem, 1.5rem); line-height: 1.4; color: #E6EDF3; border-left: 2px solid #6FE3FF; padding-left: 20px; }
.pullquote .colon { color: #6FE3FF; font-weight: 700; font-size: 1.4em; line-height: 0; vertical-align: -0.1em; margin-right: 4px; }

/* === timeline === */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, rgba(111,227,255,0.4), rgba(245,194,107,0.4)); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 8px; width: 9px; height: 9px; background: #11161D; border: 2px solid #6FE3FF; border-radius: 50%; }
.timeline-item.is-climax::before { border-color: #F5C26B; background: #F5C26B; box-shadow: 0 0 0 4px rgba(245,194,107,0.18); }
.timeline-item .date { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #76818F; }
.timeline-item.is-climax .date { color: #F5C26B; }
.timeline-item .ti-title { font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-weight: 700; font-size: 16px; color: #E6EDF3; margin-top: 4px; letter-spacing: -0.02em; }
.timeline-item.is-climax .ti-title { color: #F5C26B; }
.timeline-item .ti-body { font-size: 13px; color: #8A94A6; line-height: 1.7; margin-top: 6px; max-width: 56ch; }
