/* ── tokens ─────────────────────────────────────────── */
:root {
  --bg: #eceef6;
  --ink: #0c0f1d;
  --ink-2: #444a63;
  --ink-3: #7f859c;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-2: rgba(255, 255, 255, 0.72);
  --glass-solid: rgba(250, 251, 255, 0.86);
  --stroke: rgba(255, 255, 255, 0.75);
  --line: rgba(14, 18, 40, 0.08);
  --hl: rgba(255, 255, 255, 0.9);
  --spot: rgba(91, 91, 247, 0.85);
  --spec: rgba(255, 255, 255, 0.65);
  --shadow: 0 1px 1px rgba(14, 18, 40, 0.04), 0 10px 30px -12px rgba(30, 30, 80, 0.22), 0 30px 60px -30px rgba(30, 30, 80, 0.25);
  --accent: #5b5bf7;
  --accent-ink: #fff;
  --chip: rgba(255, 255, 255, 0.78);
  --a1: #8b7bff; --a2: #47a3ff; --a3: #3fd4c0; --a4: #ff8fb8; --a5: #ffb35c;
  --aurora-alpha: 0.55;
  --g1: #5b3df5; --g2: #2a6cff; --g3: #0d9e8b;
  --radius: 22px;
  --font: 'Inter Tight', 'Pretendard Variable', Pretendard, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #06070d; --ink: #eef0ff; --ink-2: #a9aecb; --ink-3: #6d7290;
    --glass: rgba(24, 26, 44, 0.42); --glass-2: rgba(34, 36, 58, 0.6); --glass-solid: rgba(16, 18, 32, 0.88);
    --stroke: rgba(255, 255, 255, 0.11); --line: rgba(255, 255, 255, 0.08); --hl: rgba(255, 255, 255, 0.14);
    --spot: rgba(160, 150, 255, 0.9); --spec: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --accent: #8c86ff; --accent-ink: #0b0b1a; --chip: rgba(40, 42, 66, 0.72);
    --a1: #5b3df5; --a2: #1667d9; --a3: #0c9c8a; --a4: #c2367a; --a5: #c4651c; --aurora-alpha: 0.5;
    --g1: #a89bff; --g2: #6fb1ff; --g3: #5ee6cf;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #06070d; --ink: #eef0ff; --ink-2: #a9aecb; --ink-3: #6d7290;
  --glass: rgba(24, 26, 44, 0.42); --glass-2: rgba(34, 36, 58, 0.6); --glass-solid: rgba(16, 18, 32, 0.88);
  --stroke: rgba(255, 255, 255, 0.11); --line: rgba(255, 255, 255, 0.08); --hl: rgba(255, 255, 255, 0.14);
  --spot: rgba(160, 150, 255, 0.9); --spec: rgba(255, 255, 255, 0.12);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --accent: #8c86ff; --accent-ink: #0b0b1a; --chip: rgba(40, 42, 66, 0.72);
  --a1: #5b3df5; --a2: #1667d9; --a3: #0c9c8a; --a4: #c2367a; --a5: #c4651c; --aurora-alpha: 0.5;
    --g1: #a89bff; --g2: #6fb1ff; --g3: #5ee6cf;
  color-scheme: dark;
}

/* ── base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; word-break: keep-all;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); transition: top 0.2s; }
.skip:focus { top: 16px; }

/* ── background layers ──────────────────────────────── */
.aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; filter: saturate(140%); opacity: var(--aurora-alpha); pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); }

/* ── glass primitive ────────────────────────────────── */
.glass {
  position: relative; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--hl), var(--shadow);
}
.spot::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -500px) var(--my, -500px), var(--spot), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.35s;
}
.spot:hover::after, .spot.is-active::after { opacity: 1; }

/* ── nav ────────────────────────────────────────────── */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 16px; border-radius: 999px; width: min(1080px, 100%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 200deg, var(--a1), var(--a2), var(--a3), var(--a4), var(--a1)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); animation: spin 12s linear infinite; }
@keyframes spin { to { filter: hue-rotate(360deg); } }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 0.25s, color 0.25s; }
.nav-links a:hover, .nav-links a.on { background: var(--glass-2); color: var(--ink); }
.nav-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.nav-meta b { color: var(--ink); font-weight: 500; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #2fd27a; box-shadow: 0 0 0 0 rgba(47, 210, 122, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 210, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 210, 122, 0); } }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-2); display: grid; place-items: center; position: relative; overflow: hidden; flex: none; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; position: absolute; transition: transform 0.5s var(--spring), opacity 0.3s; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
:root .theme-toggle .i-moon, :root[data-theme='dark'] .theme-toggle .i-sun { transform: translateY(24px) rotate(90deg); opacity: 0; }
:root[data-theme='dark'] .theme-toggle .i-moon { transform: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { transform: translateY(24px) rotate(90deg); opacity: 0; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { transform: none; opacity: 1; }
}

/* ── layout ─────────────────────────────────────────── */
main { width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-no { margin: 0 0 12px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.sec-head h2, .contact-title { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; }
.sec-head h2 em { font-style: normal; background: linear-gradient(120deg, var(--a1), var(--a2) 50%, var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }

/* ── buttons ────────────────────────────────────────── */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; background: var(--glass-2); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(var(--tx), var(--ty)); transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: transparent; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { transform: translate(var(--tx), var(--ty)) scale(0.97); }
.btn.ghost:hover { background: var(--glass-solid); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mini { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background 0.2s, color 0.2s, transform 0.2s var(--spring); }
.mini:hover { color: var(--ink); background: var(--glass-solid); }
.mini:active { transform: scale(0.94); }
.mini[aria-pressed='true'] { background: var(--ink); color: var(--bg); }

/* ── hero ───────────────────────────────────────────── */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 120px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a3)); }
.headline { margin: 0; font-size: clamp(42px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 800; }
.headline .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.headline .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 0.09s + 0.1s); }
.headline .ln:last-child > span { background: linear-gradient(100deg, var(--g1), var(--g2) 25%, var(--g3) 50%, var(--g2) 75%, var(--g1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1s var(--ease) forwards, sheen 8s linear infinite; animation-delay: calc(var(--i) * 0.09s + 0.1s), 0s; }
@keyframes rise { to { transform: none; } }
@keyframes sheen { to { background-position: -200% 0; } }
.intro { margin: 26px 0 0; color: var(--ink-2); font-size: 17px; max-width: 520px; }
.intro p { margin: 0; }
.intro b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.kpis { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 40px 0 0; }
.kpis div { display: flex; flex-direction: column-reverse; }
.kpis dt { font-size: 13px; color: var(--ink-3); }
.kpis dd { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.pit-wrap { height: min(620px, 74svh); display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; }
.pit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 0 18px; position: relative; z-index: 2; }
.pit-head .label { font-size: 12px; color: var(--ink-3); }
.pit-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pit { position: relative; flex: 1; margin: 8px; border-radius: 20px; overflow: hidden; touch-action: pan-y; background: radial-gradient(120% 80% at 50% 110%, color-mix(in srgb, var(--a2) 18%, transparent), transparent 60%); }
.pit::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; mask: linear-gradient(to bottom, transparent, #000 30%); pointer-events: none; }
.pit-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0; font-size: 11.5px; color: var(--ink-3); pointer-events: none; transition: opacity 0.6s; }
.body-chip {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 var(--hl), 0 6px 16px -8px rgba(20, 20, 60, 0.35);
  font-weight: 600; font-size: 14.5px; white-space: nowrap; user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab;
  will-change: transform; visibility: hidden;
}
.body-chip.ready { visibility: visible; }
.body-chip i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--c); box-shadow: inset 0 -2px 4px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.5); }
.body-chip.tool { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--ink) 25%, transparent); box-shadow: none; padding-left: 14px; font-weight: 500; color: var(--ink-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.body-chip.big { height: 48px; font-size: 16.5px; padding-right: 20px; }
.body-chip.big i { width: 32px; height: 32px; font-size: 12px; }
.body-chip.grab { cursor: grabbing; box-shadow: inset 0 1px 0 var(--hl), 0 18px 30px -10px rgba(20, 20, 60, 0.45); }
.pit.static { display: flex; flex-wrap: wrap; align-content: flex-end; gap: 8px; padding: 16px; }
.pit.static .body-chip { position: static; visibility: visible; }

/* ── toolbar ────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 20px; position: sticky; top: 76px; z-index: 20; }
.toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.seg button { position: relative; z-index: 1; border: 0; background: none; height: 34px; padding: 0 11px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: color 0.25s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { color: var(--ink); }
.seg button sup { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-left: 4px; vertical-align: 2px; }
.seg .thumb { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 11px; background: var(--glass-solid); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.15), inset 0 1px 0 var(--hl); transition: transform 0.45s var(--spring), width 0.45s var(--spring), height 0.45s var(--spring); pointer-events: none; }
.select select { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); font: inherit; font-size: 14px; padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.select select option { color: #111; background: #fff; }
.result { margin: 14px 4px 18px; font-size: 12.5px; color: var(--ink-3); }

/* ── bento ──────────────────────────────────────────── */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.bento > li { grid-column: span var(--cs, 1); grid-row: span var(--rs, 1); min-width: 0; }
.bento > li[hidden] { display: none; }
.card {
  --rx: 0deg; --ry: 0deg; --c: var(--accent);
  width: 100%; height: 100%; text-align: left; padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.card.tilting { transition: transform 0.08s linear, box-shadow 0.4s; }
.card:hover { box-shadow: inset 0 1px 0 var(--hl), 0 30px 60px -24px color-mix(in srgb, var(--c) 55%, transparent); }
.card::before { /* specular */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spec), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card .glow { position: absolute; width: 70%; aspect-ratio: 1; right: -22%; top: -38%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), transparent); filter: blur(10px); opacity: 0.55; pointer-events: none; transition: transform 0.8s var(--ease), opacity 0.5s; }
.card:hover .glow { transform: translate(-12%, 12%) scale(1.15); opacity: 0.85; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); position: relative; }
.card-cat { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cat::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.stars { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding: 3px 9px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); flex: none; }
.card h3 { margin: auto 0 0; font-size: 24px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; position: relative; transform: translateZ(30px); }
.card .kicker { margin: -4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.card .desc { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.card .tags li { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink-2); }
.card .tags li.hit { background: var(--ink); color: var(--bg); border-color: transparent; }
.minibar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: 6px; }
.minibar i { display: block; height: 100%; border-radius: 2px; }
.card .open { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); opacity: 0; transform: scale(0.6) rotate(-45deg); transition: 0.35s var(--spring); }
.card .open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.card:hover .open, .card:focus-visible .open { opacity: 1; transform: none; }
.card .ver { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.card.xl h3 { font-size: clamp(30px, 3.4vw, 44px); }
.card.xl .kicker { font-size: 17px; }
.card.s .desc, .card.s .minibar { display: none; }
.card.s h3 { font-size: 21px; }
.card.tall .desc { -webkit-line-clamp: 6; }
.card.wide .desc { -webkit-line-clamp: 2; }
.card.wide .minibar { display: none; }
.card.xl .rank { position: absolute; left: 22px; top: 52px; font-size: clamp(90px, 11vw, 150px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 45%, transparent); pointer-events: none; }
.card .rank { display: none; }
.card.xl .rank { display: block; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 0; }

/* view-transition tuning */
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ── detail sheet ───────────────────────────────────── */
.sheet { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: color-mix(in srgb, var(--bg) 45%, transparent); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
.sheet[open] { display: grid; place-items: start center; padding: 6vh 16px; }
.sheet-panel { --c: var(--accent); width: min(920px, 100%); background: var(--glass-solid); border-radius: 30px; padding: 0; overflow: hidden; }
.sheet-hero { position: relative; padding: 34px 34px 28px; overflow: hidden; border-bottom: 1px solid var(--line); }
.sheet-hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, transparent), transparent); filter: blur(20px); opacity: 0.7; }
.sheet-hero > * { position: relative; }
.sheet-close { position: absolute; right: 18px; top: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-2); display: grid; place-items: center; transition: transform 0.3s var(--spring); }
.sheet-close:hover { transform: rotate(90deg); }
.sheet-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sheet-cat::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.sheet h2 { margin: 18px 0 4px; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; }
.sheet .kicker { margin: 0; font-size: 19px; color: var(--ink-2); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; }
.sheet-main { padding: 28px 34px 34px; border-right: 1px solid var(--line); }
.sheet-main p.desc { margin: 0; font-size: 17px; line-height: 1.75; }
.sheet-main h4, .sheet-side h4 { margin: 26px 0 10px; font-size: 12px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.sheet-tags button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-2); font-size: 14px; transition: background 0.2s, transform 0.2s var(--spring); }
.sheet-tags button:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.sheet-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sheet-side { padding: 28px 34px 34px; }
.sheet-side > div:first-child h4 { margin-top: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.facts div { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.donut-row { display: flex; align-items: center; gap: 18px; }
.donut { width: 120px; height: 120px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray 1s var(--ease); }
.donut-legend { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 4px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; }
.donut-legend span { margin-left: auto; font-family: var(--mono); color: var(--ink-3); padding-left: 10px; }
.sheet-nav { display: flex; justify-content: space-between; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.sheet-nav button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; border: 0; background: none; padding: 8px 12px; border-radius: 12px; text-align: left; transition: background 0.2s; }
.sheet-nav button:last-child { align-items: flex-end; text-align: right; }
.sheet-nav button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sheet-nav small { font-size: 12px; color: var(--ink-3); }
.sheet-nav b { font-size: 15px; }
.sheet .stagger > * { opacity: 0; transform: translateY(14px); animation: in 0.6s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 60ms + 120ms); }
@keyframes in { to { opacity: 1; transform: none; } }

/* ── stack ──────────────────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 26px; overflow: hidden; }
.tile h3 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.tile .sub { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.tile .sub b { color: var(--ink); }
.lang-tile { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; }
.repo-tile { grid-column: span 7; }
.fw-tile { grid-column: span 7; }
.tools-tile { grid-column: span 12; }
.rings-wrap { position: relative; width: min(260px, 100%); aspect-ratio: 1; margin: 22px auto 18px; }
.rings { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rings circle { fill: none; stroke-linecap: round; }
.rings .track { stroke: color-mix(in srgb, var(--ink) 7%, transparent); }
.rings .arc { transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 40%, transparent)); }
.rings-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rings-center b { font-size: 36px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rings-center span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.stackbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 3px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.stackbar i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1.4s var(--ease); transition-delay: calc(var(--k) * 90ms); }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend span { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.repo-bars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.repo-bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 13.5px; }
.repo-bars button { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-bars button:hover { color: var(--accent); }
.repo-bars .track { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 5%, transparent); overflow: hidden; }
.repo-bars .fill { display: flex; height: 100%; width: 0; gap: 2px; transition: width 1.3s var(--ease); transition-delay: calc(var(--k) * 70ms); }
.repo-bars .fill i { height: 100%; border-radius: 2px; }
.repo-bars .kb { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: right; }
.fw { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fw li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); transition: transform 0.35s var(--spring), background 0.25s; }
.fw li:hover { transform: translateY(-3px); background: var(--glass-2); }
.fw .mk { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px var(--c); }
.fw b { display: block; font-size: 14.5px; line-height: 1.25; }
.fw small { color: var(--ink-3); font-size: 12.5px; }
.marquee { margin-top: 18px; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-2); font-weight: 600; font-size: 16px; white-space: nowrap; }
.marquee span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a3)); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ── contact ────────────────────────────────────────── */
.contact-card { padding: clamp(28px, 6vw, 72px); border-radius: 36px; overflow: hidden; text-align: center; }
.contact-card::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a1) 30%, transparent), transparent); pointer-events: none; }
.contact-card > * { position: relative; }
.contact-title { font-size: clamp(44px, 9vw, 112px); letter-spacing: -0.06em; background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 35%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.contact .about { max-width: 640px; margin: 22px auto 0; font-size: 18px; color: var(--ink-2); }
.contact .note { max-width: 560px; margin: 10px auto 0; font-size: 15px; color: var(--ink-3); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.copy small { font-size: 12px; font-weight: 500; opacity: 0.6; padding-left: 10px; border-left: 1px solid currentColor; }

.footer { width: min(1180px, 100%); margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); }
.footer p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; pointer-events: none; transition: 0.45s var(--spring); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .pit-wrap { height: 440px; }
  .nav-meta { display: none; }
  .lang-tile, .repo-tile, .fw-tile { grid-column: span 12; grid-row: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .bento > li { grid-column: span min(var(--cs, 1), 2); }
}
@media (max-width: 640px) {
  main { padding: 0 16px; }
  section { padding: 52px 0; }
  .nav { gap: 6px; padding-left: 14px; }
  .brand [data-brand] { display: none; }
  .nav-links { margin-left: auto; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .hero { gap: 28px; padding-top: 96px; }
  .headline { font-size: clamp(38px, 11.5vw, 56px); }
  .intro { font-size: 16px; }
  .kpis { gap: 8px 22px; }
  .kpis dd { font-size: 26px; }
  .pit-wrap { height: 400px; }
  .pit-head { flex-direction: column; align-items: flex-start; padding-top: 12px; }
  .pit-tools { justify-content: flex-start; }
  .body-chip { height: 34px; font-size: 13px; padding: 0 12px 0 6px; }
  .body-chip i { width: 22px; height: 22px; font-size: 9.5px; }
  .body-chip.big { height: 40px; font-size: 14.5px; }
  .body-chip.big i { width: 26px; height: 26px; }
  .toolbar { position: relative; top: 0; border-radius: 18px; }
  .toolbar-right { flex-wrap: nowrap; }
  .select select { width: 150px; }
  .card.xl .rank { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .toolbar > .seg { width: 100%; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .bento > li { grid-column: auto; grid-row: auto; }
  .card { min-height: 190px; padding: 20px; }
  .card.xl { min-height: 300px; }
  .card.s .desc { display: -webkit-box; }
  .card h3 { margin-top: 18px; }
  .card .open { opacity: 1; transform: none; }
  .sheet[open] { padding: 0; place-items: end center; }
  .sheet-panel { border-radius: 26px 26px 0 0; }
  .sheet-hero { padding: 26px 22px 22px; }
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-main { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .sheet-side { padding: 22px; }
  .tile { padding: 20px; }
  .fw { grid-template-columns: 1fr; }
  .repo-bars li { grid-template-columns: 84px minmax(0, 1fr) 52px; gap: 8px; }
  .legend { grid-template-columns: 1fr; }
}

/* ── reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .headline .ln > span { transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-track [aria-hidden] { display: none; }
  .card { transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.vt-theme .bento > li, .vt-theme .sheet-panel { view-transition-name: none !important; }
html.locked { overflow: hidden; }

/* ── AI Next 추가: 편집 보조 요소, 연락 폼 ── */
[hidden] { display: none !important; }
.ai-swatch { display: none; }
.contact-form { display: grid; gap: 10px; max-width: 520px; margin: 28px auto 0; text-align: left; }
.contact-form input:not(.hp), .contact-form textarea {
  width: 100%; padding: 12px 16px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--glass-2); border: 1px solid var(--line); border-radius: 14px; resize: vertical;
}
.contact-form input:not(.hp)::placeholder, .contact-form textarea::placeholder { color: var(--ink-3); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button { justify-self: center; }
.form-status { margin: 0; text-align: center; min-height: 1em; font-size: 13px; color: var(--ink-2); }
