/* ─────────────────────────────────────────────────────────────
   에이지(A&D) — Editorial theme
   종이색 바탕 · 네이비 잉크 · 테라코타 포인트 1색 · 명조 제목 · 얇은 선
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #f6f4ef;
  --paper-2: #eeeae1;
  --white: #fffdf9;
  --ink: #14213d;
  --ink-2: #3e4657;
  --muted: #7b808a;
  --line: #ddd7cb;
  --line-2: #c9c2b3;
  --accent: #c8553d;
  --ok: #2f5d50;

  /* 이전 버전 호환용 별칭 (JS 인라인 스타일에서 사용) */
  --bg: var(--paper); --bg-2: var(--paper-2); --surface: var(--white);
  --pink: var(--accent); --teal: var(--ok); --blue: #2b4c7e; --amber: #a9792b; --violet: #5a4a78;
  --sh-out: 0 0 0 1px var(--line); --sh-out-sm: 0 0 0 1px var(--line); --sh-in: inset 0 0 0 1px var(--line);

  --serif: 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --r: 6px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; letter-spacing: -0.005em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.desc { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eyebrow-text { font-size: 13px; letter-spacing: .02em; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.dots { display: none !important; }
.kicker { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

/* ───────── Header ───────── */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(246, 244, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 4px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 12px; letter-spacing: -.02em; flex: none; }
.logo > span:last-child { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.1; }
.logo small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 6px 11px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-radius: 4px; transition: color .15s; position: relative; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 1.5px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: .15s; }
.icon-btn:hover { border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.admin-btn.on { color: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); cursor: pointer; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: var(--r); transition: background .15s, color .15s, border-color .15s; white-space: nowrap; background: transparent; color: var(--ink); line-height: 1.3; }
.btn-primary, .btn-teal, .btn-zoom { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover, .btn-teal:hover, .btn-zoom:hover { background: #22325a; }
.btn-soft { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-soft:hover { border-color: var(--ink); }
.btn-link { border-color: transparent; padding-left: 4px; padding-right: 4px; color: var(--ink-2); }
.btn-link:hover { color: var(--accent); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-outline-light { color: var(--paper); border-color: rgba(246, 244, 239, .5); }
.btn-outline-light:hover { border-color: var(--paper); }
.btn-danger { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-cta-head { padding: 8px 16px; font-size: 14px; margin-right: 4px; }

/* ───────── Image frames ───────── */
.frame, .svc-img, .blob-frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img, .svc-img img, .blob-frame img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; background:
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(20, 33, 61, .05) 23px 24px),
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(20, 33, 61, .05) 23px 24px), var(--paper-2); }
.ph-glyph { display: none; }

/* ───────── Hero ───────── */
.hero { padding: 132px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.1vw, 52px); line-height: 1.22; letter-spacing: -0.035em; margin: 0 0 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 500px; margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-figure { margin: 0; }
.hero-figure .frame { aspect-ratio: 3 / 2; border-radius: 2px; }
.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.hero-facts div { padding: 16px 0 14px 16px; border-right: 1px solid var(--line); }
.hero-facts div:first-child { padding-left: 0; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { font-size: 12.5px; color: var(--muted); }
.hero-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.hero-facts small { font-size: 15px; margin-left: 2px; }
.clients { margin-top: 70px; display: flex; gap: 28px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--line); }
.clients-label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.clients li { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }

/* ───────── Sections ───────── */
section { position: relative; }
.sec { padding: 104px 0; }
.sec-tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head > div { max-width: 640px; }
.sec-head p { max-width: 440px; color: var(--ink-2); margin: 0; font-size: 15.5px; }
.sec-no { display: block; font-family: var(--serif); font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 10px; letter-spacing: .04em; }
.sec-head h2, .req-side h2, .zoom-band h2, .h2-sm { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.28; letter-spacing: -0.03em; margin: 0; }
.h2-sm { font-size: clamp(24px, 2.4vw, 30px) !important; }
.sec-head h2 strong { font-weight: 600; }
.count { font-family: var(--sans); font-size: .5em; color: var(--muted); font-weight: 500; vertical-align: middle; margin-left: 6px; }
.num-badge { display: none; }

/* ───────── Services ───────── */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { grid-column: span 2; background: var(--paper); padding: 0 0 28px; display: flex; flex-direction: column; transition: background .2s; }
.svc:nth-child(4) { grid-column: 1 / span 3; }
.svc:nth-child(5) { grid-column: 4 / span 3; }
.svc:hover { background: var(--white); }
.svc-img { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.svc:nth-child(n+4) .svc-img { aspect-ratio: 21 / 10; }
.svc-no { font-family: var(--serif); color: var(--accent); font-weight: 600; font-size: 13px; padding: 0 26px; }
.svc h3 { font-family: var(--serif); font-weight: 600; margin: 4px 0 0; font-size: 22px; letter-spacing: -0.02em; padding: 0 26px; }
.svc p { color: var(--ink-2); font-size: 15px; margin: 10px 0 14px; padding: 0 26px; }
.svc ul { list-style: none; margin: 0 26px 20px; padding: 0; font-size: 14px; color: var(--ink-2); }
.svc li { padding: 5px 0; border-top: 1px solid var(--line); }
.svc li:last-child { border-bottom: 1px solid var(--line); }
.svc .more { margin-top: auto; padding: 0 26px; font-weight: 600; font-size: 14px; color: var(--ink); }
.svc .more:hover { color: var(--accent); }
.svc-ic, .en { display: none; }

/* ───────── Instructor teaser ───────── */
.inst { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.inst-photo { aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.inst-photo img { width: 100%; height: 100%; object-fit: cover; }
.inst-photo .mono { font-family: var(--serif); font-size: 96px; color: var(--ink); opacity: .85; }
.inst-name { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.inst-name small { font-family: var(--sans); font-size: 15px; color: var(--accent); font-weight: 600; margin-right: 10px; vertical-align: middle; }
.inst-title { color: var(--ink-2); margin: 6px 0 18px; }
.inst-tag { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin: 0 0 16px; color: var(--ink); }
.inst-intro { color: var(--ink-2); font-size: 15.5px; margin: 0 0 24px; max-width: 680px; }
.inst-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.inst-cols h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 8px; letter-spacing: .02em; }
.inst-cols ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.inst-cols li { padding: 7px 0; border-top: 1px solid var(--line); }
.inst-cols li small { display: block; color: var(--muted); font-size: 12.5px; }
.inst-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 26px 0 30px; }
.inst-stats div { padding: 14px 12px 12px 0; }
.inst-stats b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.inst-stats span { font-size: 12px; color: var(--muted); }

/* ───────── Portfolio ───────── */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-rev { grid-template-columns: 1fr 1.1fr; }
.feature-rev > .browser { order: 2; }
.browser { display: block; border: 1px solid var(--line-2); background: #fff; border-radius: 4px; overflow: hidden; transition: transform .3s var(--ease); }
.browser:hover { transform: translateY(-3px); }
.browser-bar { display: flex; gap: 5px; align-items: center; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-left: 10px; font-size: 11.5px; color: var(--muted); }
.browser-body { aspect-ratio: 16 / 10; position: relative; background: #1d2b4a; color: #fff; padding: 7% 8%; overflow: hidden; }
.browser-body h4 { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2.1vw, 27px); margin: 8px 0 6px; line-height: 1.3; }
.browser-body p { opacity: .75; font-size: 12px; margin: 0; }
.browser-body .mini-nav { display: flex; gap: 14px; font-size: 10.5px; opacity: .8; margin-bottom: 11%; flex-wrap: wrap; }
.browser-body .mini-nav b { margin-right: auto; }
.browser-body .mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8%; }
.browser-body .mini-cards div { height: 46px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.mini-stats { display: flex; gap: 8px; margin-top: 7%; }
.mini-stats span { flex: 1; padding: 9px 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); font-size: 10px; text-align: center; }
.mini-stats b { display: block; font-size: clamp(13px, 1.3vw, 16px); }
.browser-body.kihss { background: #1f3b4d; }
.browser-body.kaup { background: #2a2f4f; }
.browser-body.kai { background: #f4e8dc; color: #2b2420; }
.browser-body.kai .mini-stats span { background: rgba(255, 255, 255, .75); }
.browser-body.teal { background: #24443d; }
.browser-body.pink { background: #4d2a2a; }
.browser-body.shot { padding: 0; }
.browser-body.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0; letter-spacing: -0.02em; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 18px; }
.tag { font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }

/* ───────── Apps ───────── */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 9px 16px; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line); }
.tabs button:last-child { border-right: 0; }
.tabs button.on { background: var(--ink); color: var(--paper); }
.tabs button em { font-style: normal; font-size: 12px; opacity: .65; margin-left: 5px; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); height: 42px; background: var(--paper); color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; flex: 1; font-size: 14.5px; color: var(--ink); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.app { display: block; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background .15s; position: relative; }
.app:hover { background: var(--paper); }
.app h4 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; padding-right: 18px; }
.app p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.app .cat { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 6px; letter-spacing: .02em; }
.app .go { position: absolute; right: 18px; top: 18px; color: var(--muted); transition: .15s; }
.app:hover .go { color: var(--accent); transform: translate(2px, -2px); }
.app.star .cat::after { content: " · 추천"; color: var(--accent); }
.app-av { display: none; }
.apps-more { text-align: center; margin-top: 28px; }
.empty { padding: 40px; color: var(--muted); grid-column: 1 / -1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ───────── Lectures ───────── */
.lectures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.lec { padding: 34px 40px 36px 0; }
.lec + .lec { padding: 34px 0 36px 40px; border-left: 1px solid var(--line); }
.lec h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.lec .sub { color: var(--muted); margin: 4px 0 22px; }
.modules { counter-reset: m; list-style: none; margin: 0 0 22px; padding: 0; }
.modules li { counter-increment: m; display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.modules li::before { content: counter(m, decimal-leading-zero); font-family: var(--serif); color: var(--accent); font-size: 13px; font-weight: 600; }
.modules li small { margin-left: auto; color: var(--muted); font-size: 12px; }
.lec-target { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.formats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 34px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formats div { padding: 16px 14px 14px 0; }
.formats dt { font-size: 12.5px; color: var(--muted); }
.formats dd { margin: 2px 0 0; font-weight: 600; }

/* ───────── Process ───────── */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.process li { padding: 22px 22px 8px 0; }
.process li span { font-family: var(--serif); font-size: 32px; color: var(--accent); font-weight: 600; line-height: 1; }
.process h4 { margin: 14px 0 6px; font-size: 17px; }
.process p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ───────── Zoom band ───────── */
.zoom-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.zoom-art .frame { aspect-ratio: 3 / 2; }
.zoom-band h2 { margin-bottom: 22px; }
.zoom-points { list-style: none; padding: 0; margin: 0 0 28px; }
.zoom-points li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.zoom-points li:last-child { border-bottom: 1px solid var(--line); }

/* ───────── Request ───────── */
.req { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.req-side { position: sticky; top: 96px; }
.req-side h2 { margin-bottom: 16px; }
.req-side p { color: var(--ink-2); }
.req-art .frame { aspect-ratio: 3 / 2; margin: 26px 0 6px; }
.contact-list { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list .ci { font-size: 12px; color: var(--muted); width: 54px; flex: none; }
.contact-list a:hover { color: var(--accent); }
.form-card { padding: 34px; background: var(--white); border: 1px solid var(--line); }
.form-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.form-tabs button { border: 0; background: transparent; padding: 12px 6px 14px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.form-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea { border: 1px solid var(--line-2); outline: none; background: #fff; border-radius: 4px; padding: 11px 13px; font-size: 15px; width: 100%; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { cursor: pointer; position: relative; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: .12s; background: #fff; }
.checks input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 6px 0 20px; }
.agree input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }
.agree details { margin-top: 4px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-weight: 600; font-size: 14px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent); }
.zoom-note { padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--paper); margin-bottom: 20px; font-size: 14px; }
.zoom-note small { color: var(--muted); }
.slots-pick { min-height: 40px; align-items: center; }
.slots-pick input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slot-hint { font-size: 13px; color: var(--muted); }
.zoom-done { padding: 10px 0; }
.zoom-done .big { display: none; }
.zoom-done h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 24px; }
.zoom-done .when { font-size: 18px; font-weight: 600; margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zoom-done p { color: var(--ink-2); font-size: 14px; }

/* ───────── FAQ ───────── */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ───────── Closing / Footer ───────── */
.closing { background: var(--ink); color: var(--paper); padding: 88px 0; }
.closing-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.closing h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; margin: 0; letter-spacing: -0.03em; }
.footer { padding: 64px 0 36px; color: var(--ink-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.foot-about { margin: 16px 0 0; max-width: 360px; }
.footer h5 { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a:hover { color: var(--accent); }
.biz { line-height: 1.85; margin-top: 16px; color: var(--muted); font-size: 13px; }
.copy { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }

/* ───────── Floating / toast ───────── */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab .icon-btn { width: 46px; height: 46px; background: var(--white); border-color: var(--line-2); }
.fab .main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fab .top { opacity: 0; pointer-events: none; transition: .3s; }
.fab .top.show { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); z-index: 400; background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: var(--r); font-weight: 500; font-size: 14px; transition: transform .3s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ───────── Reveal ───────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .06s; } .rv-d2 { transition-delay: .12s; } .rv-d3 { transition-delay: .18s; } .rv-d4 { transition-delay: .24s; }

/* ───────── Modal ───────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(20, 33, 61, .45); padding: 20px; }
.modal.open { display: grid; }
.modal-card { width: min(420px, 100%); background: var(--white); border-radius: 6px; padding: 32px; position: relative; border: 1px solid var(--line); }
.modal-card h3 { margin: 0 0 6px; font-size: 21px; font-family: var(--serif); font-weight: 600; }
.modal-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.modal-card .num-badge { display: none; }
.modal-card.editor { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.editor-grid .full { grid-column: 1 / -1; }

/* ───────── Admin ───────── */
.admin { position: fixed; inset: 0; z-index: 120; background: var(--paper); display: none; grid-template-columns: 236px 1fr; }
.admin.open { display: grid; }
.admin-side { padding: 22px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; background: var(--white); }
.admin-side .logo { margin: 0 8px 22px; }
.admin-side button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 4px; font-weight: 500; font-size: 14.5px; cursor: pointer; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.admin-side button:hover { background: var(--paper); }
.admin-side button.on { background: var(--ink); color: var(--paper); }
.admin-side .spacer { flex: 1; min-height: 20px; }
.admin-main { overflow: auto; padding: 32px 40px 60px; }
.admin-main h2 { margin: 0 0 6px; font-size: 26px; font-family: var(--serif); font-weight: 600; }
.admin-main .desc { margin: 0 0 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 26px; border: 1px solid var(--line); background: var(--white); }
.kpi { padding: 18px 20px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.panel { padding: 22px; border: 1px solid var(--line); background: var(--white); margin-bottom: 20px; }
.panel h4 { margin: 0 0 14px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; background: var(--ink); position: relative; min-height: 2px; border-radius: 2px 2px 0 0; }
.bars div span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.bars div:hover::after { content: attr(data-v); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-tbl tr.clickable { cursor: pointer; }
.req-tbl tr.clickable:hover td { background: var(--paper); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; color: #fff; background: var(--ink-2); }
.pill.lecture { background: var(--ok); }
.pill.platform { background: var(--blue); }
.st { border: 1px solid var(--line-2); background: #fff; border-radius: 4px; padding: 6px 8px; font-size: 13px; }
.detail { font-size: 13px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }
.detail b { color: var(--ink); }
.memo { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 4px; padding: 7px 9px; font-size: 13px; margin-top: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.slot { padding: 16px; border: 1px solid var(--line); background: var(--white); }
.slot-prev { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); margin-bottom: 10px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.slot-prev img { width: 100%; height: 100%; object-fit: cover; }
.slot textarea { width: 100%; min-height: 90px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; padding: 9px; font-size: 12px; margin: 8px 0; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.note { font-size: 13.5px; padding: 12px 14px; border-left: 3px solid var(--line-2); background: var(--paper); color: var(--ink-2); margin-bottom: 16px; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav a { padding: 6px 7px; font-size: 14px; }
  .inst-stats { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .formats { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 10px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .btn-cta-head { display: none; }
  .hero-grid, .feature, .feature-rev, .lectures, .req, .zoom-band, .inst, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .feature-rev > .browser { order: 0; }
  .lec, .lec + .lec { padding: 28px 0; border-left: 0; }
  .lec + .lec { border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr 1fr; }
  .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: auto; }
  .svc:nth-child(n+4) .svc-img { aspect-ratio: 16 / 10; }
  .req-side { position: static; }
  .inst { gap: 28px; } .inst-photo { max-width: 240px; }
  .admin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-side { flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-side .logo, .admin-side .spacer { display: none; }
  .admin-side button { white-space: nowrap; }
  .admin-main { padding: 22px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 104px; }
  .services, .grid2, .editor-grid, .inst-cols { grid-template-columns: 1fr; }
  .process, .formats { grid-template-columns: 1fr 1fr; }
  .inst-stats { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 76px 0; }
  .form-card { padding: 22px; }
  .form-tabs button { font-size: 13.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients { flex-direction: column; gap: 10px; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl thead { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* 로고 이미지 */
.logo-img { height: 31px; width: auto; display: block; }
.footer .logo-img { height: 34px; }
.admin-side .logo { display: flex; align-items: center; gap: 8px; }
.admin-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 3px; }
.chat-head img { border-radius: 4px; }
@media (max-width: 560px) { .logo-img { height: 26px; } }

/* 연락처 */
.foot-contact { display: grid; gap: 4px; margin-top: 18px; }
.foot-contact a { display: flex; gap: 12px; align-items: baseline; font-size: 15px; font-weight: 600; color: var(--ink); }
.foot-contact span { font-size: 12px; font-weight: 500; color: var(--muted); width: 64px; }
.closing-contact { margin: 18px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.closing-contact a { color: rgba(246, 244, 239, .85); border-bottom: 1px solid rgba(246, 244, 239, .35); padding-bottom: 2px; }
.closing-contact a:hover { color: var(--paper); border-color: var(--paper); }
.contact-list .ci { width: 72px; }

/* ───────── 웹플랫폼 구축 방식 ───────── */
.build { margin-top: 72px; scroll-margin-top: 90px; }
.build-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.build-head .eyebrow-text { grid-column: 1 / -1; margin: 0 0 -26px; }
.build-head h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin: 0; letter-spacing: -0.02em; }
.build-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.build-card { padding: 30px 36px 32px 0; display: flex; flex-direction: column; }
.build-card + .build-card { padding: 30px 0 32px 36px; border-left: 1px solid var(--line); }
.build-no { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--accent); line-height: 1; }
.build-card h4 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 12px 0 8px; letter-spacing: -0.02em; }
.build-lead { color: var(--ink-2); margin: 0 0 16px; }
.build-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.build-card li { padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; position: relative; }
.build-card li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1.5px; background: var(--accent); }
.build-fit { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; padding: 12px 14px; background: var(--white); border-left: 2px solid var(--ink); }
.build-fit b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.build-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .build-head, .build-grid { grid-template-columns: 1fr; gap: 14px; }
  .build-head .eyebrow-text { margin: 0; }
  .build-card, .build-card + .build-card { padding: 26px 0; border-left: 0; }
  .build-card + .build-card { border-top: 1px solid var(--line); }
}
.build-flow { list-style: none; counter-reset: f; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 2px 0 16px; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.build-flow li { counter-increment: f; display: flex; align-items: center; }
.build-flow li::before { content: counter(f); width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; margin-right: 6px; }
.build-flow li:not(:last-child)::after { content: "→"; margin: 0 9px; color: var(--muted); }
.build-card .build-flow li { padding: 0; border-bottom: 0; font-size: 12.5px; position: static; }
.build-card .build-flow li::before { position: static; top: auto; left: auto; width: 18px; height: 18px; background: transparent; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); }

/* 사이트 버전 */
.app-ver { margin-left: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 구축 방식 ② — 탑재 가능한 웹앱 */
.build-apps { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); }
.build-apps > b { display: block; font-size: 14px; margin-bottom: 10px; }
.build-card .build-apps ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.build-card .build-apps li { padding: 5px 10px; border: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; background: var(--paper); }
.build-card .build-apps li::before { display: none; }
.build-apps small { color: var(--muted); font-size: 12.5px; }

/* 상단 로고 옆 버전 */
.logo-ver { align-self: center; margin-left: -16px; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .logo-ver { margin-left: -6px; font-size: 10px; padding: 1px 6px; } }

/* 견적 안내 */
.est-notice { margin: -20px 0 26px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--white); color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.est-notice b { color: var(--ink); font-weight: 600; }

/* ── 계약·결제 안내 ── */
.terms-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.terms-item { padding: 24px 22px 26px; background: var(--white); }
.terms-ic { font-size: 26px; line-height: 1; }
.terms-item h4 { margin: 14px 0 8px; font-size: 17px; }
.terms-item p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.terms-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }
.terms-docs:empty { display: none; }

/* ── 유지보수·운영 비용 ── */
.care-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.care-plan { position: relative; padding: 28px 26px 26px; background: var(--white); border: 1px solid var(--line); }
.care-plan.is-pick { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.care-badge { position: absolute; top: -12px; left: 24px; padding: 2px 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.care-plan h4 { margin: 0; font-size: 18px; }
.care-price { margin: 10px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.care-price b { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent); }
.care-price small { margin-left: 6px; font-size: 14px; color: var(--ink-2); }
.care-plan ul { margin: 0; padding: 0; list-style: none; }
.care-plan li { position: relative; padding: 4px 0 4px 22px; font-size: 14.5px; color: var(--ink-2); }
.care-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.care-costs { margin-top: 40px; }
.care-costs:empty { display: none; }
.care-costs h4 { margin: 0 0 12px; font-size: 17px; }
.care-costs h4 small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.care-costs table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 14.5px; }
.care-costs th, .care-costs td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.care-costs th { width: 28%; font-weight: 600; }
.care-costs td:nth-child(2) { width: 20%; white-space: nowrap; }
.care-costs td:last-child { color: var(--ink-2); }
.care-note { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 1100px) {
  .terms-grid { grid-template-columns: repeat(2, 1fr); }
  .terms-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .terms-grid { grid-template-columns: 1fr; }
  .terms-item { padding: 20px 4px; }
  .care-costs th, .care-costs td { display: block; width: auto; padding: 2px 0; border: 0; }
  .care-costs tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* ── 포트폴리오 주요 성과 ── */
.pf-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.pf-results div { padding: 12px 12px 4px 0; }
.pf-results dd { order: -1; margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--accent); }
.pf-results dt { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.pf-results div { display: flex; flex-direction: column; }

/* ── 포트폴리오 항목별 사용 후기 ── */
.pf-review { grid-column: 1 / -1; order: 3; margin: -16px 0 0; padding: 22px 26px 20px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.pf-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pf-review-label { font-size: 13px; font-weight: 700; color: var(--accent); }
.pf-review .stars { font-size: 12px; }
.pf-review blockquote { margin: 0; white-space: pre-line; font-family: var(--sans); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.pf-review blockquote.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.pf-review-more { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.pf-review-by { margin: 12px 0 0 !important; font-size: 13.5px !important; color: var(--ink-2); }
.pf-review + .pf-review { margin-top: -40px; }
