/* 스튜디오 제닐로 · 웹사이트 제작/상단노출
   genilo.kr과 같은 결: 짙은 남흑 배경 + 점 격자, 보라 네온 포인트 하나, 캡슐 헤더, HUD 모서리, 모노 라벨. */
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/orbitron.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jbmono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jbmono-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #06060a;
  --panel: #0b0b12;
  --raised: #12101c;
  --raised-2: #181524;
  --fg: #f0f0f8;
  --fg-2: #c9c9d2;
  --muted: #8f8f9b;
  --line: rgba(240, 240, 248, .09);
  --line-2: rgba(240, 240, 248, .18);
  --neon: #d24cff;
  --neon-2: #7c5cff;
  --neon-soft: rgba(210, 76, 255, .14);
  --grad: linear-gradient(135deg, #7c5cff 0%, #b04dff 55%, #d24cff 100%);
  --kakao: #fee500;
  --kakao-ink: #191600;
  --wrap: 1200px;
  --read: 760px;
  --gutter: clamp(18px, 4vw, 40px);
  --sec-y: clamp(56px, 3.4rem + 3vw, 112px);
  --radius: 6px;
  --head-h: 68px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hud: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --bg-hero: url("img/bg/hero-lounge-1280.webp");
  --bg-desk: url("img/bg/dark-desk-1280.webp");
  --bg-night: url("img/bg/hero-dark-1280.webp");
}
@media (min-width: 1281px) { :root { --bg-hero: url("img/bg/hero-lounge-1672.webp"); --bg-desk: url("img/bg/dark-desk-1920.webp"); --bg-night: url("img/bg/hero-dark-1920.webp"); } }
@media (max-width: 680px) { :root { --bg-hero: url("img/bg/hero-lounge-768.webp"); --bg-desk: url("img/bg/dark-desk-768.webp"); --bg-night: url("img/bg/hero-dark-768.webp"); } }
@media (min-width: 1600px) { :root { --wrap: 1400px; --read: 820px; } }
@media (min-width: 1920px) { :root { --wrap: 1520px; } html { font-size: 17px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 28px); -webkit-tap-highlight-color: transparent; background: var(--bg); }
html, body { overflow-x: clip; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; color: var(--fg); font: 400 1rem/1.8 var(--font); letter-spacing: -0.005em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(210, 76, 255, .08), transparent 60%),
    radial-gradient(rgba(240, 240, 248, .055) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--bg);
}
::selection { background: rgba(210, 76, 255, .38); color: #fff; }
a, button, summary { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 12px; }
b, strong { font-weight: 650; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--neon); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
code { padding: 1px 6px; background: var(--raised-2); border: 1px solid var(--line); border-radius: 4px; color: #e7c8ff; font: .84em/1.6 var(--mono); overflow-wrap: anywhere; }

/* HUD 모서리 (genilo.kr) */
.hud { position: fixed; inset: 14px; z-index: 30; pointer-events: none; }
.hud i { position: absolute; width: 22px; height: 22px; border-color: rgba(210, 76, 255, .55); border-style: solid; border-width: 0; }
.hud i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); background: var(--grad); color: #fff; font: 650 .95rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(176, 77, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.line { background: rgba(240, 240, 248, .03); color: var(--fg); border-color: var(--line-2); box-shadow: none; }
.btn.kakao { background: var(--kakao); color: var(--kakao-ink); box-shadow: none; }
.btn.kakao::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23191600' d='M12 3C6.5 3 2 6.5 2 10.8c0 2.7 1.8 5.1 4.5 6.5l-1 3.7c-.1.3.3.6.5.4l4.4-2.9c.5.1 1 .1 1.6.1 5.5 0 10-3.5 10-7.8S17.5 3 12 3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn:active, .pill:active { transform: translateY(1px) scale(.985); }

/* ---------------------------------------------------------------- header: 떠 있는 캡슐 */
.site-header { position: sticky; top: 0; z-index: 40; padding: calc(12px + env(safe-area-inset-top)) 0 0; }
.head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 1.6vw, 22px); min-height: var(--head-h); padding: 0 12px 0 clamp(16px, 2vw, 26px); background: rgba(10, 10, 16, .78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(210, 76, 255, .22); border-radius: 999px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); }
.brand { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; text-decoration: none; white-space: nowrap; line-height: 1.1; }
.brand-word { font: 700 1.12rem/1 var(--hud); letter-spacing: .01em; color: #fff; }
.brand-word b { font-weight: 700; color: var(--neon); }
.brand-ko { font-size: .66rem; letter-spacing: .08em; color: var(--muted); }
.site-nav { justify-self: center; align-self: stretch; }
.brand { justify-self: start; }
.head-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
.site-nav li { display: flex; }
.site-nav a { position: relative; display: flex; align-items: center; padding: 0 clamp(7px, .8vw, 12px); font-size: .9rem; font-weight: 550; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--neon); transform: translateX(-50%); box-shadow: 0 0 10px var(--neon); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(240, 240, 248, .03); font: 600 .84rem/1 var(--mono); letter-spacing: .02em; color: var(--fg); text-decoration: none; white-space: nowrap; }
.pill span { font-size: .66rem; letter-spacing: .14em; color: var(--neon); }
.head-cta { font-family: var(--font); font-size: .86rem; font-weight: 650; letter-spacing: 0; }
.head-cta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kakao); box-shadow: 0 0 8px rgba(254, 229, 0, .7); }
.menu-btn { display: none; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(240, 240, 248, .04); font: 600 .88rem var(--font); color: var(--fg); cursor: pointer; }

/* 드로어 */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(3, 3, 6, 0); transition: background-color .22s ease; }
.drawer.is-open { background: rgba(3, 3, 6, .66); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 90vw); padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 0; background: var(--panel); border-left: 1px solid rgba(210, 76, 255, .25); transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); font: 600 .78rem var(--hud); letter-spacing: .16em; color: var(--neon); }
.drawer-close { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: 600 .88rem var(--font); color: var(--fg); cursor: pointer; letter-spacing: 0; }
.drawer-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px 20px 20px; list-style: none; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-link, .drawer-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 1.02rem; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.drawer-list summary::-webkit-details-marker { display: none; }
.drawer-list summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--neon); border-bottom: 1.5px solid var(--neon); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.drawer-list details[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.drawer-list details ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.drawer-list details li a { display: block; padding: 9px 0; font-size: .92rem; color: var(--fg-2); text-decoration: none; }
.drawer-list details li:first-child { grid-column: 1 / -1; }
.drawer-list details li:first-child a { color: #fff; font-weight: 600; }
.drawer-foot { display: grid; gap: 8px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- 공통 머리 */
.doc { position: relative; z-index: 0; }
.page-head { position: relative; isolation: isolate; padding: clamp(48px, 3rem + 3vw, 104px) 0 clamp(40px, 2rem + 2vw, 72px); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-2); }
.crumbs [aria-current] { color: var(--fg-2); }
h1 { margin: 0 0 20px; max-width: 18em; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.18; letter-spacing: -0.045em; font-weight: 750; text-wrap: balance; color: #fff; }
.lead { max-width: 40em; margin: 0; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); line-height: 1.85; color: var(--fg-2); }
.lead a { color: #fff; }
.consult { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.byline { margin: 22px 0 0; font-size: .8rem; color: var(--muted); }
.byline a { color: var(--fg-2); }
.kicker { margin: 0 0 22px; font: 600 .74rem/1 var(--hud); letter-spacing: .22em; text-transform: uppercase; color: var(--neon); }
.kicker::before { content: "[ "; color: rgba(210, 76, 255, .6); }
.kicker::after { content: " ]"; color: rgba(210, 76, 255, .6); }

/* ---------------------------------------------------------------- home hero */
.home-head { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(760px, calc(92svh - var(--head-h))); margin-top: calc(-1 * (var(--head-h) + 12px)); padding: calc(var(--head-h) + clamp(56px, 4rem + 3vw, 120px)) 0 clamp(96px, 6rem + 3vw, 150px); }
.home-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(90deg, rgba(6, 6, 10, .92) 0%, rgba(6, 6, 10, .7) 46%, rgba(6, 6, 10, .45) 100%), linear-gradient(to bottom, rgba(6, 6, 10, .2), rgba(6, 6, 10, .1) 60%, var(--bg)), var(--bg-hero) center 40% / cover no-repeat, var(--bg); }
.home-head h1 { max-width: 13em; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); }
.home-head .notice { margin: 24px 0 0; font-size: .86rem; color: var(--muted); }
.hero-shot { margin: 0; }
.hero-shot a { position: relative; display: block; overflow: hidden; border-radius: 10px; border: 1px solid rgba(210, 76, 255, .35); box-shadow: 0 40px 90px -40px rgba(124, 92, 255, .8), 0 0 0 6px rgba(240, 240, 248, .03); }
.hero-shot img { width: 100%; background: #fff; }
.hero-shot figcaption { margin-top: 14px; font-size: .78rem; color: var(--muted); }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(-72px, -4.5vw, -44px) 0 0; padding: 0; list-style: none; background: rgba(12, 11, 20, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 10px; }
.facts li { padding: clamp(20px, 1.6vw, 28px) clamp(16px, 1.8vw, 28px); }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.04em; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
.facts li:first-child b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { display: block; margin-top: 8px; font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- sections */
h2 { margin: 0 0 18px; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); line-height: 1.3; letter-spacing: -0.04em; font-weight: 750; color: #fff; text-wrap: balance; }
h3 { margin: 30px 0 8px; font-size: 1.08rem; line-height: 1.5; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.block { position: relative; padding: var(--sec-y) 0; border-top: 1px solid var(--line); }
.doc > .block::before, .doc > .cta::before { content: ""; position: absolute; z-index: -1; top: -1px; left: 50%; width: 100vw; height: 1px; transform: translateX(-50%); background: var(--line); }
.facts + .block { border-top: 0; }
.facts + .block::before { display: none; }
.body { min-width: 0; container-type: inline-size; color: var(--fg-2); }
.body > p, .body > ul:not([class]), .body > ol:not([class]), .body > h3 { max-width: var(--read); }
.body > :first-child { margin-top: 0; }
.block ul:not([class]), .block ol:not([class]) { margin: 6px 0 18px; padding-left: 1.2em; }
.block li { margin: 6px 0; }
.block ul:not([class]) > li::marker { color: var(--neon); }
.block ol:not([class]) > li::marker { color: var(--neon); font: 600 .9em var(--mono); }
.block.stack .body > p:first-child { max-width: 44em; color: var(--fg-2); }
.block.statement { padding: clamp(72px, 5rem + 4vw, 150px) 0; }
.block.statement::after { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(90deg, rgba(6, 6, 10, .94), rgba(6, 6, 10, .6)), var(--bg-desk) center / cover no-repeat; }
.block.statement > h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.block.statement .body p { max-width: 30em; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.7; letter-spacing: -0.02em; color: var(--fg); }
.more { margin-top: 22px; }
.more a { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(210, 76, 255, .6); padding-bottom: 2px; }

/* 문서 2단: 왼쪽 목차 + 본문 (genilo.kr 가이드) */
.doc-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; padding-top: clamp(40px, 2rem + 2vw, 72px); }
.toc { position: sticky; top: calc(var(--head-h) + 36px); max-height: calc(100svh - var(--head-h) - 60px); overflow-y: auto; border-top: 1px solid var(--line-2); }
.toc-head { margin: 0; padding: 16px 0 10px; font: 650 .8rem/1.4 var(--font); color: var(--neon); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 11px 0; font-size: .88rem; line-height: 1.5; color: var(--fg-2); text-decoration: none; }
.toc a.is-active { color: #fff; }
.toc a.is-active::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); vertical-align: middle; }
.doc-main > .block { padding: clamp(40px, 2rem + 2vw, 72px) 0; }
.doc-main > .block:first-child { padding-top: 0; border-top: 0; }

/* 하는 일 2×2 */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.duo li { margin: 0; }
.duo a { position: relative; display: block; height: 100%; padding: clamp(24px, 2.2vw, 36px); background: linear-gradient(180deg, rgba(24, 21, 36, .9), rgba(11, 11, 18, .9)); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; overflow: hidden; }
.duo a::after { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(210, 76, 255, .7), transparent); opacity: .5; }
.duo strong { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); letter-spacing: -0.03em; color: #fff; }
.duo strong::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--neon); border-right: 1.5px solid var(--neon); transform: rotate(45deg); }
.duo span { display: block; max-width: 30em; color: var(--fg-2); font-size: .95rem; }
.duo a:active { border-color: rgba(210, 76, 255, .5); }
@container (max-width: 560px) { .duo { grid-template-columns: 1fr; } }

/* 최신 가이드 */
.latest { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.latest li { margin: 0; border-bottom: 1px solid var(--line); }
.latest a { display: grid; grid-template-columns: 7em minmax(0, 17em) minmax(0, 1fr); gap: 4px 28px; align-items: baseline; padding: 20px 0; text-decoration: none; }
.latest time, .rows time { font: 500 .78rem var(--mono); letter-spacing: .02em; color: var(--neon); font-variant-numeric: tabular-nums; }
.latest strong { font-weight: 650; color: #fff; }
.latest span { color: var(--muted); font-size: .92rem; }
@container (max-width: 620px) { .latest a { grid-template-columns: 1fr; gap: 3px; } }

/* tables */
.table-wrap { position: relative; overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.table-wrap.can-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.table-wrap.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 85%, transparent); }
.table-wrap.can-left:not(.can-right) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .9rem; background: rgba(11, 11, 18, .7); }
caption { padding: 10px 14px; text-align: left; font-size: .8rem; color: var(--muted); caption-side: bottom; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font: 600 .76rem var(--mono); letter-spacing: .04em; color: var(--neon); background: rgba(210, 76, 255, .05); }
tbody th { font-weight: 650; color: #fff; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }

/* hub rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.rows li { margin: 0; border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 28px; padding: 17px 0; text-decoration: none; }
.rows.dated a { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; }
.rows a strong { font-weight: 650; color: #fff; }
.rows a span { color: var(--muted); font-size: .92rem; }
@container (max-width: 620px) {
  .rows a, .rows.dated a { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; }
  .rows.dated time { order: -1; }
}

/* link columns → 칩 */
.cols-head { margin: 26px 0 10px; font: 650 .8rem var(--font); color: var(--neon); }
.cols-head:first-child { margin-top: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.cols li { margin: 0; }
.cols a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(240, 240, 248, .025); font-size: .9rem; color: var(--fg); text-decoration: none; }
.cols small { margin-left: 6px; color: var(--muted); font: 500 .72rem var(--mono); }
.cols li:has(small) { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(240, 240, 248, .025); padding-right: 12px; }
.cols li:has(small) a { border: 0; background: none; padding-right: 0; }

/* price */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.price { padding: clamp(24px, 2.4vw, 38px); background: linear-gradient(180deg, rgba(24, 21, 36, .92), rgba(11, 11, 18, .92)); border: 1px solid var(--line); border-radius: 10px; }
.price.alt { position: relative; border-color: rgba(210, 76, 255, .45); box-shadow: 0 30px 80px -40px rgba(176, 77, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .06); }
.price-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; font-size: .95rem; font-weight: 650; color: #fff; }
.price-name span { font: 600 .78rem var(--font); color: var(--neon); }
.price-num { margin: 0 0 20px; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem); line-height: 1.1; font-weight: 750; letter-spacing: -0.045em; color: #fff; font-variant-numeric: tabular-nums; }
.price-num small { font-size: .95rem; font-weight: 500; color: var(--fg-2); margin-left: 4px; letter-spacing: 0; }
.price-num.ask { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price ul { margin: 0; padding: 18px 0 0 1.1em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--fg-2); }
.price li { margin: 5px 0; }
.price li::marker { color: var(--neon); }
.price-note { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.price-note a { color: var(--fg); }
@container (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

/* region areas */
.areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; padding: 0; list-style: none; }
.areas li { margin: 0; padding: 7px 12px; min-width: 6.5em; border: 1px solid var(--line); border-radius: 6px; background: rgba(240, 240, 248, .025); font-size: .88rem; color: var(--fg); }
.areas-cap { font-size: .86rem; color: var(--muted); }

/* cases */
.mosaic { margin: 12px 0 0; }
.mosaic a { display: block; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.mosaic img { width: 100%; background: #fff; }
.mosaic.clip a { max-height: clamp(380px, 40vw, 620px); }
.mosaic.clip a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(to bottom, rgba(6, 6, 10, 0), var(--bg) 88%); }
.mosaic-more { position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; background: var(--grad); color: #fff; border-radius: var(--radius); font-size: .92rem; font-weight: 650; white-space: nowrap; }
.mosaic figcaption { margin-top: 12px; font-size: .8rem; color: var(--muted); }

.case-grid, .work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 30px 22px; align-items: start; margin: 10px 0 0; padding: 0; list-style: none; }
.case-grid li, .work-grid li { margin: 0; }
.shot { margin: 0; }
.shot a { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; }
.shot img { width: 100%; }
.case-grid .shot a { aspect-ratio: 4 / 3; }
.case-grid .shot img { height: 100%; object-fit: contain; object-position: top center; }
.shot figcaption { padding: 12px 0 0; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.shot figcaption b { display: block; margin-bottom: 3px; color: #fff; font-size: .95rem; }
.shot figcaption a { border: 0; background: none; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); }
.tag { margin-right: 8px; font: 650 .8rem var(--font); color: var(--neon); }
.snap-progress { display: none; }

.rank-cap { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.rank-grid li { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--fg); }
.rank-grid b { font: 600 .9rem var(--mono); color: var(--neon); }
.rank-grid li:not(.top) b { color: var(--muted); font-weight: 500; }

/* faq */
.faq .qa { padding: 22px 0; border-top: 1px solid var(--line); max-width: var(--read); }
.faq .qa:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { display: flex; gap: 12px; margin: 0 0 8px; font-size: 1.02rem; }
.faq h3::before { content: "Q."; flex: none; font: 600 .92rem/1.7 var(--mono); color: var(--neon); }
.faq .qa p { margin: 0; padding-left: 30px; color: var(--fg-2); }

/* cta */
.cta { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px clamp(28px, 4vw, 64px); align-items: center; margin: clamp(40px, 3vw, 72px) 0 0; padding: clamp(36px, 2rem + 2vw, 64px); border: 1px solid rgba(210, 76, 255, .35); border-radius: 14px; overflow: hidden; background: linear-gradient(90deg, rgba(10, 9, 18, .94), rgba(10, 9, 18, .66)), var(--bg-night) center / cover no-repeat, var(--panel); box-shadow: 0 40px 100px -50px rgba(124, 92, 255, .8); }
.cta-title { grid-column: 1 / -1; margin: 0; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.2rem); font-weight: 750; letter-spacing: -0.04em; color: #fff; }
.cta-text p { margin: 0; max-width: 36em; color: var(--fg-2); }
.cta-side { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cta-phone { font: 600 clamp(1.15rem, 1rem + .6vw, 1.5rem) var(--mono); letter-spacing: .01em; text-decoration: none; color: #fff; white-space: nowrap; }
.sources { margin: 26px 0 0; font-size: .8rem; line-height: 1.8; color: var(--muted); }
.sources a { color: var(--fg-2); }
.sources cite { font-style: normal; }
.related { padding: 40px 0 12px; }
.related .cols-head { margin: 0 0 12px; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: clamp(56px, 4vw, 96px); padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--fg-2); font-size: .86rem; background: linear-gradient(180deg, rgba(11, 11, 18, .6), var(--panel)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.5fr 1.3fr; gap: 36px; }
.foot-title { margin: 0 0 12px; font: 700 1.05rem var(--font); color: #fff; }
.foot-title img { display: none; }
.foot-desc { max-width: 30em; margin-bottom: 14px; line-height: 1.75; }
.foot-head { margin: 0 0 10px; font: 650 .78rem var(--font); color: var(--neon); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; }
.foot-links.col { flex-direction: column; gap: 6px; }
.foot-links a { text-decoration: none; }
.biz { display: grid; grid-template-columns: 92px 1fr; gap: 5px 10px; margin: 0; font-size: .8rem; }
.biz dt { color: var(--muted); }
.biz dd { margin: 0; }
.foot-faq .fq { margin: 0 0 12px; }
.foot-faq .fq a { display: block; font-weight: 600; text-decoration: none; color: #fff; }
.foot-faq .fq p { margin: 2px 0 0; font-size: .8rem; line-height: 1.65; color: var(--muted); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.foot-bottom a { color: var(--fg-2); }
.foot-bottom cite { font-style: normal; }
.foot-jump { margin: 0; }
.foot-jump .jump { margin-left: 14px; }
.foot-jump .jump a + a { margin-left: 10px; }
.copy { margin: 0; }
.mobile-bar { display: none; }

/* ---------------------------------------------------------------- hover: 마우스 환경에서만 */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); box-shadow: 0 14px 36px -12px rgba(176, 77, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .2); }
  .btn.line:hover { border-color: rgba(210, 76, 255, .6); filter: none; box-shadow: none; }
  .btn.kakao:hover { background: #f2da00; box-shadow: none; }
  .pill:hover, .menu-btn:hover { border-color: rgba(210, 76, 255, .6); }
  .site-nav a:hover { color: #fff; }
  .toc a:hover, .crumbs a:hover, .foot-links a:hover, .foot-faq .fq a:hover { color: #fff; text-decoration: underline; }
  .rows a:hover strong, .latest a:hover strong { color: var(--neon); }
  .duo a:hover { border-color: rgba(210, 76, 255, .5); background: linear-gradient(180deg, rgba(32, 26, 50, .95), rgba(13, 12, 22, .95)); }
  .duo a:hover strong::after { transform: rotate(45deg) translate(2px, -2px); }
  .cols a:hover, .cols li:has(small):hover { border-color: rgba(210, 76, 255, .6); color: #fff; }
  .more a:hover { border-bottom-color: var(--neon); }
  .hero-shot a:hover img { transform: scale(1.015); }
  .shot a:hover { border-color: rgba(210, 76, 255, .6); }
}

/* ---------------------------------------------------------------- 태블릿 */
@media (max-width: 1240px) { .head-phone { display: none; } }
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 960px) {
  .site-nav, .head-cta { display: none; }
  .head-row { grid-template-columns: 1fr auto; }
  .head-phone { display: inline-flex; }
  .menu-btn { display: inline-block; }
  .home-head { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .home-head .hero-shot { max-width: 640px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(3):last-child { grid-column: 1 / -1; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hud { display: none; }
  /* 목차: 가로 스크롤 탭 + 끝 페이드 */
  .doc-grid { display: block; padding-top: 0; }
  .toc { position: sticky; top: calc(var(--head-h) + 12px); z-index: 20; max-height: none; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); overflow: visible; border-top: 0; border-bottom: 1px solid var(--line); background: rgba(6, 6, 10, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .toc-head { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc ol.can-right { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .toc ol.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent); }
  .toc ol.can-left:not(.can-right) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
  .toc li { flex: none; border: 0; scroll-snap-align: start; }
  .toc a { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; white-space: nowrap; }
  .toc a.is-active { border-color: rgba(210, 76, 255, .7); color: #fff; }
  .toc a.is-active::before { display: none; }
  .doc-main > .block:first-child { padding-top: clamp(32px, 6vw, 48px); }
}
@media (min-width: 681px) and (max-width: 960px) {
  .case-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- 휴대폰 */
@media (max-width: 680px) {
  :root { --head-h: 58px; }
  .site-header { padding-top: calc(8px + env(safe-area-inset-top)); }
  .head-row { padding: 0 6px 0 16px; }
  .brand-word { font-size: 1rem; }
  .brand-ko { display: none; }
  .head-phone { padding: 0 12px; font-size: .78rem; }
  .head-phone span { display: none; }
  .home-head { margin-top: calc(-1 * (var(--head-h) + 8px)); padding-top: calc(var(--head-h) + 52px); }
  .consult .btn { flex: 1 1 calc(50% - 10px); padding: 0 12px; }
  .facts li { padding: 16px; }
  .mosaic-more { left: 16px; transform: none; }
  .price-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { flex-direction: column; }
  .snap { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .snap::-webkit-scrollbar { display: none; }
  .snap > li { scroll-snap-align: start; }
  .snap-progress { display: block; position: relative; height: 2px; margin: 16px 0 0; background: var(--line); border-radius: 2px; overflow: hidden; }
  .snap-progress span { display: block; height: 100%; background: var(--grad); will-change: transform; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: rgba(6, 6, 10, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .22s ease; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); color: #fff; font-weight: 650; text-decoration: none; }
  .mobile-bar a.kakao { border-color: var(--kakao); background: var(--kakao); color: var(--kakao-ink); }
  .mobile-bar a:active { filter: brightness(.9); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .head-phone { display: none; }
  .facts b { font-size: 1.15rem; }
}

/* 가로 모드 휴대폰 */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 960px) {
  .site-header { position: relative; }
  .home-head { padding: calc(var(--head-h) + 28px) 0 80px; }
  .home-head .hero-shot { display: none; }
  .home-head h1, h1 { font-size: 1.8rem; }
  .toc { top: 0; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: fixed; left: auto; right: max(12px, env(safe-area-inset-right)); bottom: 12px; width: 300px; padding: 6px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(6, 6, 10, .9); }
  .mobile-bar a { min-height: 42px; }
  body { padding-bottom: 0; }
}

/* 모션 */
@media (prefers-reduced-motion: no-preference) {
  .btn, .pill, .site-nav a, .duo a, .cols a, .mosaic-more, .shot a, .toc a { transition: background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease, box-shadow .2s ease, transform .12s ease; }
  .duo strong::after { transition: transform .18s ease; }
  .hero-shot img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-panel, .mobile-bar { transition: none; } }
@media (prefers-reduced-data: reduce) { :root { --bg-hero: none; --bg-desk: none; --bg-night: none; } }
@media print {
  body { background: #fff; color: #000; }
  .site-header, .mobile-bar, .drawer, .cta, .consult, .hud, .toc { display: none !important; }
  .home-head::before, .block.statement::after { display: none; }
  h1, h2, h3, .body, .lead { color: #000; }
}

/* 글쓴이 */
.author-box { display: grid; gap: 6px; margin: clamp(36px, 3vw, 56px) 0 0; padding: 22px 24px; max-width: calc(var(--read) + 48px); border: 1px solid var(--line-2); border-left: 2px solid var(--neon); border-radius: 8px; background: rgba(18, 16, 28, .7); font-size: .9rem; color: var(--fg-2); }
.author-box p { margin: 0; }
.author-head { font-size: .78rem; font-weight: 650; color: var(--neon); }
.author-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.author-name a { font-size: 1.02rem; font-weight: 700; color: #fff; text-decoration: none; }
.author-name span { font-size: .8rem; color: var(--muted); }
.author-box a { color: var(--fg); }

/* 상단노출 화면 벽(블러 캡처 반복, 한 장 이미지) */
.wall { position: relative; margin: 14px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0c14; }
.wall a { display: block; max-height: clamp(520px, 56vw, 900px); overflow: hidden; }
.wall img { width: 100%; }
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to bottom, rgba(6, 6, 10, 0), rgba(6, 6, 10, .92)); pointer-events: none; }
.wall-cap { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.shot > img { width: 100%; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; }
.case-grid .shot > img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
@media (max-width: 680px) { .wall a { max-height: 520px; } }

/* 헤더는 본문보다 넓게: 가운데 메뉴가 정확히 중앙에 오도록 양쪽 칸 여유 확보 */
.site-header .wrap { max-width: max(var(--wrap), 1400px); }

/* 2026-11-07 외부 체커 대응: 첫 화면 이미지(배경+preload), 요약, 홈 목차, 참고 자료 */
.hero-img { display: block; aspect-ratio: 900 / 760; background: #fff url("img/cases/blur/mosaic-hero.webp") center / cover no-repeat; }
.tldr { margin: clamp(28px, 4vw, 44px) 0 0; padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px); border: 1px solid rgba(210, 76, 255, .35); border-radius: 10px; background: rgba(124, 92, 255, .06); max-width: var(--read); }
.tldr-head { margin: 0 0 10px; font: 650 .8rem/1.4 var(--font); color: var(--neon); }
.tldr ul { margin: 0; padding-left: 1.1em; color: var(--fg-2); }
.tldr li { margin: 4px 0; line-height: 1.7; }
.toc.toc-home { position: static; max-height: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; overflow: visible; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.toc-home .toc-head { display: block; padding: 0 0 10px; }
.toc-home ol { display: flex; flex-wrap: wrap; gap: 6px; }
.toc-home li { border: 0; }
.toc-home a { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; }
.toc-home a.is-active::before { display: none; }
@media (max-width: 680px) {
  .toc-home ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toc-home li { flex: none; }
  .toc-home a { white-space: nowrap; }
}
.refs .sources { margin-top: 0; }
.search-box { display: flex; gap: 8px; max-width: var(--read); margin-top: 18px; }
.search-box input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #fff; font: inherit; font-size: 16px; }
.search-results { margin: 22px 0 0; padding: 0; list-style: none; max-width: var(--read); }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { color: #fff; font-weight: 600; }
.search-results p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }

/* 소제목 바로 아래 직답 문단 */
.block > .answer { max-width: var(--read); margin: 0 0 18px; color: var(--fg-2); }
.block.stack > .answer { max-width: 44em; }
.block.statement > .answer { max-width: 30em; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.7; letter-spacing: -0.02em; color: var(--fg); }
.refs > .sources { max-width: var(--read); }
