/* PARK LAB — Dark Premium × Spatial Interaction × Minimal Typography */
:root {
  --bg: #0B0F19;
  --bg-2: #171E2E;
  --bg-3: #1D2539;
  --bg-4: #232C44;
  --line: rgba(232, 237, 246, .08);
  --line-2: rgba(232, 237, 246, .14);
  --text: #E8EDF6;
  --muted: #9AA6BD;
  --dim: #6B7486;
  --blue: #8BCBFF;
  --violet: #A48BFA;
  --green: #5BE3A8;
  --amber: #FFC86B;
  --red: #FF7A7A;
  --grad: linear-gradient(120deg, var(--blue), var(--violet));
  /* 박코더TV 로고 톤 */
  --brand: #FFCB3D;
  --brand-2: #FF9F43;
  --grad-brand: linear-gradient(120deg, #FFE066, var(--brand) 45%, var(--brand-2));
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font-ko: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', var(--font-ko);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-ko); font-size: 16px; line-height: 1.65; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(139, 203, 255, .3); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
#app { outline: none; min-height: calc(100vh - var(--header-h)); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--blue); color: var(--bg); border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(91, 227, 168, .15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(91, 227, 168, 0); } }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-display); }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(232, 237, 246, .24); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-primary:hover { background: #fff; box-shadow: 0 8px 30px -8px rgba(139, 203, 255, .6); }
.btn-glow { background: var(--grad-brand); color: #1a1405; border: 0; }
.btn-danger { background: rgba(255, 122, 122, .14); border-color: rgba(255, 122, 122, .4); color: #FFB4B4; }
.btn-danger:hover { background: rgba(255, 122, 122, .24); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px;
  transition: all .2s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: rgba(232, 237, 246, .3); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600; }
.chip .n { font-family: var(--font-display); font-size: 12px; opacity: .6; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.sample-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--amber); border: 1px dashed rgba(255, 200, 107, .5); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); background: rgba(11, 15, 25, .66); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11, 15, 25, .82); }
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; border: 5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-brand) border-box; position: relative; }
.logo-accent { color: var(--brand); font-weight: 700; }
.logo-mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--grad); opacity: .0; transition: opacity .3s; }
.logo:hover .logo-mark::after { opacity: 1; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-family: var(--font-display); font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tag { color: var(--dim); margin-top: 10px; font-size: 14px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--font-display); color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-admin { opacity: .45; }
.footer-copy { margin-top: 32px; color: var(--dim); font-size: 13px; }
body.is-admin .site-header, body.is-admin .site-footer { display: none; }

/* ---------- generated art ---------- */
.art { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--a1) 55%, transparent), transparent 60%), radial-gradient(100% 80% at 90% 100%, color-mix(in srgb, var(--a2) 60%, transparent), transparent 62%), linear-gradient(160deg, #141B2D, #0D1220); isolation: isolate; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%); }
.art-orb { position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -22%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 0 60px rgba(255, 255, 255, .06); }
.art-orb::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
.art-window { position: absolute; left: 12%; right: 12%; top: 22%; height: 34%; border-radius: 10px; background: rgba(11, 15, 25, .5); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); padding: 9% 7% 0; transform: perspective(500px) rotateX(10deg) rotateY(-8deg); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.art-window i { position: absolute; top: 7%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); left: 6%; }
.art-window i:nth-child(2) { left: calc(6% + 9px); }
.art-window i:nth-child(3) { left: calc(6% + 18px); }
.art-window b { display: block; height: 7%; min-height: 4px; margin-top: 7%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--a1) 70%, transparent), rgba(255, 255, 255, .08)); }
.art-window b.s { width: 55%; background: rgba(255, 255, 255, .12); }
.art-mono { position: absolute; left: 9%; bottom: 13%; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 22cqw, 84px); line-height: 1; letter-spacing: -.04em; color: rgba(255, 255, 255, .92); text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.art-cat { position: absolute; left: 9%; top: 7%; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.art { container-type: inline-size; }

/* ---------- home ---------- */
.home { position: relative; overflow: hidden; padding-top: clamp(28px, 6vh, 64px); }
.home-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow.g1 { width: 46vw; height: 46vw; left: -12vw; top: 10%; background: radial-gradient(circle, rgba(139, 203, 255, .35), transparent 65%); }
.glow.g2 { width: 40vw; height: 40vw; right: -10vw; top: 30%; background: radial-gradient(circle, rgba(164, 139, 250, .35), transparent 65%); }
.spot { position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), rgba(139, 203, 255, .07), transparent 60%); }
.home-head { position: relative; z-index: 1; text-align: center; }
.hero-title { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7.2vw, 104px); line-height: .95; letter-spacing: -.045em; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease) forwards; }
.hero-title .w:nth-child(2) { animation-delay: .08s; }
.hero-title .w:nth-child(3) { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { margin: 18px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); opacity: 0; animation: rise .9s .25s var(--ease) forwards; }

.explorer { position: relative; z-index: 1; margin-top: clamp(16px, 3vh, 36px); }
.explorer-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; margin: -4px -2px; }
.filters::-webkit-scrollbar { display: none; }
.explorer-tools { display: flex; gap: 8px; align-items: center; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; transition: all .2s; }
.tool-btn:hover { color: var(--text); }
.tool-btn[aria-pressed="true"] { color: var(--bg); background: var(--blue); border-color: transparent; }

/* ---------- carousel ---------- */
.carousel { position: relative; height: calc(var(--card-h) * 1.6 + 40px); margin-top: 8px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; --card-w: 290px; --card-h: 380px; }
.carousel.dragging { cursor: grabbing; }
.carousel:focus-visible .cz-card.is-front { outline: 2px solid var(--blue); outline-offset: 6px; }
.cz-stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 42%; }
.cz-ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.cz-card {
  /* laid out at the front-card size (--k, set by carousel.js) and scaled down from there */
  position: absolute; left: calc(var(--card-w) * var(--k, 1) / -2); top: calc(var(--card-h) * var(--k, 1) / -2);
  width: calc(var(--card-w) * var(--k, 1)); height: calc(var(--card-h) * var(--k, 1)); border-radius: calc(22px * var(--k, 1)); text-align: left;
  background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden;
  transform-origin: 50% 50%; backface-visibility: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: border-color .3s, box-shadow .35s var(--ease), filter .3s;
  display: flex; flex-direction: column;
}
.cz-card > * { zoom: var(--k, 1); }
.cz-card .art { flex: 1; min-height: 0; }
.cz-card .cz-meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, rgba(23, 30, 46, .6), var(--bg-2)); }
.cz-card .cz-title { font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-card .cz-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-card .cz-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cz-card .cz-summary { font-size: 13px; color: var(--muted); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.cz-card:hover, .cz-card.is-front { border-color: rgba(139, 203, 255, .45); }
.cz-card.is-front { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 203, 255, .25), 0 0 60px -10px rgba(139, 203, 255, .35); }
.cz-card:hover { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -8px rgba(164, 139, 250, .45); }
.cz-card:hover .cz-summary, .cz-card.is-front:hover .cz-summary { max-height: 60px; opacity: 1; }
.cz-card .sample-chip { position: absolute; top: 12px; right: 12px; background: rgba(11, 15, 25, .6); backdrop-filter: blur(6px); }
.cz-floor { position: absolute; left: 50%; bottom: 0; width: min(1100px, 92vw); height: 120px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(139, 203, 255, .14), transparent 70%); filter: blur(10px); pointer-events: none; }
.cz-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.carousel.mode-flat .cz-stage { perspective: none; }

.explorer-info { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 4px; }
.info-card { min-height: 128px; text-align: center; max-width: 720px; margin: 0 auto; }
.info-card .info-top { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; }
.info-card h2 { margin-top: 10px; font-size: clamp(24px, 3vw, 36px); }
.info-card h2 small { display: block; margin-top: 4px; font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.info-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.info-card .info-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.info-swap { animation: infoIn .45s var(--ease); }
@keyframes infoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 22px; transition: all .2s var(--ease); background: rgba(255, 255, 255, .02); }
.round-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(139, 203, 255, .5); transform: scale(1.05); }
.round-btn:active { transform: scale(.95); }
.hint { text-align: center; margin-top: 22px; color: var(--dim); font-size: 13px; }
.hint kbd { font-family: var(--font-display); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; }

/* index list */
.section { padding-top: clamp(80px, 12vh, 140px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); letter-spacing: -.035em; }
.section-num { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; color: var(--blue); margin-bottom: 12px; display: block; }
.index-list { border-top: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 56px 1.2fr 1fr 140px 40px; align-items: center; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .25s, padding .3s var(--ease); position: relative; }
.index-list a:hover { background: linear-gradient(90deg, rgba(139, 203, 255, .06), transparent); padding-left: 20px; }
.index-list .n { font-family: var(--font-display); color: var(--dim); font-size: 14px; }
.index-list .t { font-size: 19px; font-weight: 700; }
.index-list .t small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.index-list .c { color: var(--muted); font-size: 14px; }
.index-list .go { font-size: 20px; color: var(--dim); transition: transform .3s var(--ease), color .2s; }
.index-list a:hover .go { transform: translateX(4px); color: var(--blue); }

.cta-band { margin-top: clamp(80px, 12vh, 140px); border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: radial-gradient(80% 120% at 0% 0%, rgba(139, 203, 255, .16), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(164, 139, 250, .18), transparent 60%), var(--bg-2); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.035em; }
.cta-band p { color: var(--muted); margin-top: 10px; }

/* ---------- page head ---------- */
.page-head { padding-top: clamp(48px, 9vh, 96px); padding-bottom: 32px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -.045em; line-height: .98; margin-top: 14px; }
.page-head p.lead { margin-top: 18px; max-width: 680px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); }

/* ---------- projects grid ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; position: sticky; top: var(--header-h); z-index: 5; background: rgba(11, 15, 25, .86); backdrop-filter: blur(12px); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--blue); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--dim); }
.select { height: 40px; padding: 0 36px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA6BD' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line-2); appearance: none; -webkit-appearance: none; outline: none; }
.select option { background: var(--bg-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(139, 203, 255, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 40px -12px rgba(139, 203, 255, .3); }
.pcard .art { aspect-ratio: 16/10; }
.pcard .art img { transition: transform .6s var(--ease); }
.pcard:hover .art img { transform: scale(1.04); }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-body h3 { font-size: 19px; }
.pcard-body .sub { color: var(--muted); font-size: 14px; }
.pcard-body .sum { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.empty { padding: 80px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- detail ---------- */
.d-hero { padding-top: 28px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; font-family: var(--font-display); }
.crumbs a:hover { color: var(--text); }
.d-hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
.d-hero-art { border-radius: 28px; overflow: hidden; aspect-ratio: 21/9; border: 1px solid var(--line-2); view-transition-name: hero-art; }
.d-hero-art .art { width: 100%; height: 100%; }
.d-hero-art .art-mono { font-size: clamp(48px, 11cqw, 160px); }
.d-hero-art .art-window { left: auto; right: 7%; width: 44%; top: 16%; height: 56%; padding: 5% 4% 0; }

/* Screenshot banner: main screen over a blurred copy, accent gradients and edge fades */
.hero-shot > * { position: absolute; }
.hero-shot .hs-bg { inset: -6%; width: 112%; height: 112%; object-fit: cover; opacity: .28; filter: blur(22px) saturate(1.3); z-index: 0; }
.hero-shot .hs-tint { inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(11, 15, 25, .94) 0%, rgba(11, 15, 25, .7) 34%, rgba(11, 15, 25, .15) 62%, transparent 80%),
  radial-gradient(55% 75% at 8% 0%, color-mix(in srgb, var(--a1) 50%, transparent), transparent 62%),
  radial-gradient(55% 80% at 100% 100%, color-mix(in srgb, var(--a2) 48%, transparent), transparent 64%); }
.hero-shot .art-grid { z-index: 1; opacity: .6; }
.hero-shot .hs-frame {
  margin: 0; right: 4.5%; top: 11%; width: 61%; z-index: 2; border-radius: 14px; overflow: hidden;
  background: #0b0f19; border: 1px solid rgba(255, 255, 255, .16); opacity: .94;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 80px -20px color-mix(in srgb, var(--a1) 55%, transparent);
  transform: perspective(1600px) rotateY(-11deg) rotateX(4deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%), linear-gradient(to right, transparent 0%, #000 34%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 58%, transparent 100%), linear-gradient(to right, transparent 0%, #000 34%); mask-composite: intersect;
  animation: hsIn 1s var(--ease) both; transition: transform .7s var(--ease);
}
.hero-shot .hs-bar { position: relative; display: flex; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hero-shot .hs-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.hero-shot .hs-frame img { filter: brightness(.9) saturate(1.05); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.hero-shot .hs-fade { inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(11, 15, 25, .8) 0%, transparent 42%); pointer-events: none; }
.hero-shot .art-cat, .hero-shot .art-mono { z-index: 4; }
.d-hero-art:hover .hs-frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg) translateY(-6px); }
@keyframes hsIn { from { opacity: 0; transform: perspective(1600px) rotateY(-22deg) rotateX(6deg) translateX(60px); } }
.d-hero-art .art-orb { width: 46%; right: -6%; top: -30%; }
.d-hero-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.d-hero-info h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 84px); letter-spacing: -.045em; line-height: .98; }
.d-hero-info .subtitle { margin-top: 12px; font-size: clamp(18px, 2vw, 24px); color: var(--muted); }
.d-hero-info .summary { color: var(--muted); }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.local-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(164, 139, 250, .08); border: 1px solid rgba(164, 139, 250, .25); font-size: 14px; color: #CFC3FF; }
.sample-banner { margin-top: 24px; padding: 14px 18px; border-radius: 14px; border: 1px dashed rgba(255, 200, 107, .45); background: rgba(255, 200, 107, .06); color: #FFE2AE; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.preview-banner { position: sticky; top: 0; z-index: 60; padding: 10px var(--gutter); background: var(--amber); color: var(--bg); font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }

.d-nav { position: sticky; top: var(--header-h); z-index: 6; margin-top: 48px; background: rgba(11, 15, 25, .85); backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; position: relative; }
.d-nav-inner::-webkit-scrollbar { display: none; }
.d-nav button { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: all .2s; }
.d-nav button:hover { color: var(--text); }
.d-nav button.active { color: var(--bg); background: var(--text); font-weight: 600; }
.d-sec { padding-top: clamp(64px, 10vh, 112px); }
.d-sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-bottom: 36px; }
.d-sec-head .num { font-family: var(--font-display); color: var(--blue); font-size: 13px; letter-spacing: .14em; padding-top: 10px; }
.d-sec-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.035em; }
.d-sec-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }
.d-sec-body { margin-left: 232px; }
.prose { font-size: 17px; line-height: 1.8; color: #CAD3E3; max-width: 760px; white-space: pre-line; }
.ov-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.ov-card { padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.ov-card .k { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.ov-card p { margin-top: 10px; line-height: 1.65; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 32px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); aspect-ratio: 16/10; position: relative; cursor: zoom-in; }
.feature-media .art { width: 100%; height: 100%; }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature-media:hover img { transform: scale(1.03); }
.media-kind { position: absolute; left: 12px; top: 12px; z-index: 2; }
.kind { display: inline-flex; flex: none; white-space: nowrap; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: rgba(91, 227, 168, .16); color: var(--green); margin-right: 8px; }
.kind.concept { background: rgba(255, 200, 107, .16); color: var(--amber); }
.feature-no { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: var(--blue); }
.feature h3 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 30px); }
.feature .f-sum { margin-top: 12px; color: #CAD3E3; font-size: 16.5px; }
.feature .f-detail { margin-top: 10px; color: var(--muted); font-size: 15px; white-space: pre-line; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; }
.flow-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(139, 203, 255, .07); border: 1px solid rgba(139, 203, 255, .18); font-size: 13.5px; }
.flow-step b { font-family: var(--font-display); font-size: 11px; color: var(--blue); }
.flow-arrow { color: var(--dim); font-size: 13px; }
.f-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.media { position: relative; background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite linear; }
.media.loaded { animation: none; background: var(--bg-2); }
.media.broken { background: radial-gradient(70% 90% at 20% 0%, rgba(139, 203, 255, .12), transparent 60%), radial-gradient(70% 90% at 100% 100%, rgba(164, 139, 250, .12), transparent 60%), var(--bg-2); }
.media.broken::after { content: '화면 준비 중'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; letter-spacing: .04em; }
.media.broken .media-kind { display: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.gallery { position: relative; }
.gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.gallery-track::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 min(78%, 720px); scroll-snap-align: start; margin: 0; }
.g-item button { display: block; width: 100%; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line-2); cursor: zoom-in; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; align-items: center; }
.gallery-ctrl { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

.ba { position: relative; margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4/3; max-width: 760px; user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 20px rgba(139, 203, 255, .8); }
.ba .ba-line::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--bg); display: grid; place-items: center; font-size: 18px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-cap { margin-top: 10px; color: var(--muted); font-size: 14px; }
.ba-labels span { position: absolute; top: 14px; z-index: 2; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; padding: 4px 8px; border-radius: 6px; background: rgba(11, 15, 25, .7); }
.ba-labels span:first-child { left: 14px; }
.ba-labels span:last-child { right: 14px; }

.tech-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tech-group { padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.tech-group h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.tech-item { margin-top: 14px; }
.tech-item b { display: block; font-size: 16px; }
.tech-item span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; line-height: 1.55; }

/* architecture */
.arch { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.arch-canvas { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); gap: 40px 56px; padding: 36px; border-radius: 22px; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg-2); border: 1px solid var(--line); min-height: 280px; align-items: center; }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.arch-svg path { fill: none; stroke: rgba(139, 203, 255, .35); stroke-width: 1.6; transition: stroke .3s, opacity .3s; }
.arch-svg path.hot { stroke: var(--blue); stroke-width: 2.2; stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
.arch-svg path.dim { opacity: .15; }
.arch-svg text { fill: var(--muted); font-size: 11px; font-family: var(--font-display); }
@keyframes flow { to { stroke-dashoffset: -12; } }
.arch-node { position: relative; z-index: 1; padding: 14px 16px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line-2); text-align: left; transition: all .3s var(--ease); --k: var(--blue); }
.arch-node::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--k); }
.arch-node b { display: block; font-size: 14.5px; }
.arch-node span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.arch-node:hover { border-color: color-mix(in srgb, var(--k) 60%, transparent); transform: translateY(-2px); }
.arch-node.active { border-color: var(--k); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 18%, transparent), 0 20px 40px -20px rgba(0, 0, 0, .8); }
.arch-node.dim { opacity: .35; }
.arch-node[data-kind="client"] { --k: #9AA6BD; }
.arch-node[data-kind="app"] { --k: var(--blue); }
.arch-node[data-kind="server"] { --k: var(--violet); }
.arch-node[data-kind="data"] { --k: var(--green); }
.arch-node[data-kind="external"] { --k: var(--amber); }
.arch-node[data-kind="infra"] { --k: #FF8BB0; }
.arch-panel { padding: 22px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.arch-panel .k { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.arch-panel h4 { margin-top: 8px; font-size: 20px; }
.arch-panel p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.arch-panel ul { margin-top: 14px; display: grid; gap: 6px; font-size: 13.5px; }
.arch-panel li { color: #CAD3E3; }
.arch-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.arch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.arch-legend i { width: 10px; height: 10px; border-radius: 3px; }
.arch.vertical { grid-template-columns: 1fr; }
.arch.vertical .arch-canvas { padding: 22px 12px; }
.arch.vertical .arch-node { padding: 10px 10px 10px 12px; text-align: center; }
.arch.vertical .arch-node b { font-size: 13px; word-break: keep-all; }
.arch.vertical .arch-node span { font-size: 11px; word-break: keep-all; }

.timeline { position: relative; max-width: 820px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--blue), var(--violet), transparent); }
.tl-item { position: relative; padding-left: 40px; padding-bottom: 32px; }
.tl-item::before { content: ''; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); }
.tl-item .when { font-family: var(--font-display); font-size: 12.5px; color: var(--blue); letter-spacing: .08em; }
.tl-item h4 { margin-top: 4px; font-size: 18px; }
.tl-item p { margin-top: 6px; color: var(--muted); white-space: pre-line; }

.kv { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; word-break: break-all; }
.kv dd a { color: var(--blue); }
.links-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(80px, 12vh, 140px); }
.pn-nav a { padding: 28px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.pn-nav a:hover { border-color: rgba(139, 203, 255, .4); transform: translateY(-2px); }
.pn-nav .lbl { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.pn-nav b { display: block; margin-top: 8px; font-size: 22px; }
.pn-nav a.next { text-align: right; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.principle { padding: 26px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.principle .no { font-family: var(--font-display); color: var(--blue); font-size: 13px; letter-spacing: .1em; }
.principle h3 { margin-top: 14px; font-size: 20px; }
.principle p { margin-top: 8px; color: var(--muted); }
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.wf-step { padding: 24px 18px; border-left: 1px solid var(--line); position: relative; }
.wf-step:first-child { border-left: 0; }
.wf-step .no { font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(139, 203, 255, .5); }
.wf-step h4 { margin-top: 8px; font-size: 18px; }
.wf-step p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud .tag { height: 34px; padding: 0 14px; font-size: 14px; color: var(--text); }
.cloud .tag em { font-style: normal; margin-left: 6px; color: var(--dim); font-family: var(--font-display); font-size: 12px; }

/* ---------- contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-aside .item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-aside .item .k { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.contact-aside .item p { margin-top: 6px; }
.form { padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; font-size: 14px; }
.fld > span { color: var(--muted); font-weight: 500; }
.fld > span em { color: var(--red); font-style: normal; }
.fld input, .fld textarea, .fld select { width: 100%; padding: 11px 14px; border-radius: 12px; background: rgba(11, 15, 25, .6); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px; }
.fld select { appearance: none; -webkit-appearance: none; background: rgba(11, 15, 25, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA6BD' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.fld select option { background: var(--bg-2); }
.fld textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(139, 203, 255, .15); }
.fld small { color: var(--dim); font-size: 12.5px; }
.fld .err { color: var(--red); font-size: 12.5px; }
.fld.invalid input, .fld.invalid textarea { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.success { padding: 40px; text-align: center; }
.success .ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: rgba(91, 227, 168, .14); color: var(--green); font-size: 28px; }

/* ---------- modal / toast / lightbox ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(5, 8, 15, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal-backdrop.show { opacity: 1; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); transform: translateY(10px) scale(.98); transition: transform .25s var(--ease); }
.modal.wide { width: min(760px, 100%); }
.modal-backdrop.show .modal { transform: none; }
.modal h3 { font-size: 20px; }
.modal-body { margin-top: 12px; color: var(--muted); display: grid; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); font-size: 14px; opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast.success { border-color: rgba(91, 227, 168, .4); }
.toast.error { border-color: rgba(255, 122, 122, .5); color: #FFC9C9; }
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(5, 8, 15, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; opacity: 0; transition: opacity .25s; padding: 16px; }
.lightbox.show { opacity: 1; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 14px; grid-column: 2; grid-row: 1; width: 100%; min-width: 0; }
.lb-nav.prev { grid-column: 1; grid-row: 1; }
.lb-nav.next { grid-column: 3; grid-row: 1; }
.lb-nav[hidden] { display: block; visibility: hidden; }
.lb-media { width: 100%; display: grid; place-items: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 14px; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { transform: scale(.96); opacity: 0; } }
.lb-fig figcaption { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lb-count { font-family: var(--font-display); color: var(--dim); margin-left: 10px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 18px; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 28px; justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .16); }

/* ---------- view transitions ---------- */
::view-transition-old(root) { animation: vtOut .28s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(hero-art) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-old(hero-art), ::view-transition-new(hero-art) { height: 100%; object-fit: cover; }
::view-transition-group(site-header) { animation: none; }
.site-header { view-transition-name: site-header; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf b { font-family: var(--font-display); font-size: clamp(80px, 16vw, 200px); line-height: 1; letter-spacing: -.05em; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .carousel { --card-w: 250px; --card-h: 330px; }
  .d-sec-head { grid-template-columns: 1fr; gap: 8px; }
  .d-sec-body { margin-left: 0; }
  .arch { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .wf-step:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
  .d-hero-info, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .ov-cards { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .index-list a { grid-template-columns: 40px 1fr auto; }
  .index-list .c, .index-list .go { display: none; }
  .d-hero-art { aspect-ratio: 16/10; }
  .hero-shot .hs-frame { width: 80%; right: -8%; top: 12%; }
  .hero-shot .hs-tint { background: linear-gradient(90deg, rgba(11, 15, 25, .92) 0%, rgba(11, 15, 25, .5) 45%, transparent 85%), radial-gradient(70% 80% at 0% 0%, color-mix(in srgb, var(--a1) 45%, transparent), transparent 65%); }
}
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 16px 20px; background: rgba(11, 15, 25, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); margin: 0; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .carousel { --card-w: min(56vw, 230px); --card-h: calc(var(--card-w) * 1.32); }
  .explorer-info { grid-template-columns: 1fr; }
  .explorer-info .round-btn { display: none; }
  .explorer-bar { justify-content: center; }
  .explorer-tools { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .wf-step { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .kv > div { grid-template-columns: 110px 1fr; }
  .pn-nav { grid-template-columns: 1fr; }
  .pn-nav a.next { text-align: left; }
  .g-item { flex-basis: 86%; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-fig { grid-column: 1; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-nav.prev { left: 30%; }
  .lb-nav.next { right: 30%; }
  .toolbar { position: static; }
  .site-footer { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-title .w, .hero-sub { opacity: 1; transform: none; }
}

/* Brand: hero accent word in the 박코더TV yellow */
.hero-title .grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }
.logo-mark::after { background: var(--grad-brand); }

/* Card visual: stacked real app screens */
.card-shot > * { position: absolute; }
.card-shot .cs-glow { inset: 0; background:
  radial-gradient(90% 70% at 20% 0%, color-mix(in srgb, var(--a1) 55%, transparent), transparent 62%),
  radial-gradient(80% 70% at 100% 100%, color-mix(in srgb, var(--a2) 50%, transparent), transparent 64%); }
.card-shot .cs-win { display: block; border-radius: 9px; overflow: hidden; background: #0b0f19; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85); transition: transform .6s var(--ease); }
.card-shot .cs-bar { display: flex; gap: 4px; padding: 5px 7px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.card-shot .cs-bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.card-shot .cs-win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.card-shot .cs-win.front { left: 9%; right: -22%; top: 25%; z-index: 2; transform: perspective(900px) rotateY(-14deg) rotateX(5deg); }
.card-shot .cs-win.back { left: 26%; right: -38%; top: 9%; z-index: 1; opacity: .55; filter: saturate(.85); transform: perspective(900px) rotateY(-18deg) rotateX(6deg) scale(.92); }
.card-shot .cs-fade { inset: 0; z-index: 3; background: linear-gradient(0deg, var(--bg-2) 0%, color-mix(in srgb, var(--bg-2) 70%, transparent) 16%, transparent 48%); pointer-events: none; }
.card-shot .art-cat { z-index: 4; }
.card-shot .cs-badge { z-index: 4; left: 8%; bottom: 7%; padding: 5px 10px; border-radius: 9px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .02em; color: #fff; background: color-mix(in srgb, var(--a1) 30%, rgba(11, 15, 25, .7)); border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); backdrop-filter: blur(6px); }
.cz-card:hover .card-shot .cs-win.front, .cz-card.is-front .card-shot .cs-win.front, .pcard:hover .card-shot .cs-win.front { transform: perspective(900px) rotateY(-8deg) rotateX(3deg) translateY(-4px); }
.cz-card:hover .card-shot .cs-win.back, .pcard:hover .card-shot .cs-win.back { transform: perspective(900px) rotateY(-14deg) rotateX(4deg) translate(6%, -4%) scale(.92); }
.pcard .card-shot .cs-win.front { left: 7%; right: -12%; top: 22%; }
.pcard .card-shot .cs-win.back { left: 24%; right: -30%; top: 7%; }
.thumb .card-shot .cs-win, .thumb .card-shot .cs-badge { display: none; }

/* About: career journey */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; counter-reset: jr; }
.journey::before { content: ''; position: absolute; left: 4%; right: 4%; top: 27px; height: 1px; background: linear-gradient(90deg, rgba(139, 203, 255, .15), rgba(164, 139, 250, .45), var(--brand)); }
.jr-step { position: relative; padding: 0 4px; }
.jr-no { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted); }
.jr-step h3 { margin-top: 18px; font-size: 19px; }
.jr-step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.jr-step.now .jr-no { background: var(--grad-brand); color: #1a1405; border-color: transparent; box-shadow: 0 0 0 6px rgba(255, 203, 61, .14), 0 0 40px -6px rgba(255, 203, 61, .6); }
.jr-step.now h3 { color: var(--brand); }
@media (max-width: 1100px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(139, 203, 255, .15), rgba(164, 139, 250, .45), var(--brand)); }
  .jr-step { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 0 0 26px; }
  .jr-step .jr-no { grid-row: span 2; }
  .jr-step h3 { margin-top: 12px; }
}
.page-head + .about-grid .prose { white-space: pre-line; }
