/* 이미지 언어 — 스타일 v2
   국어·영어: 종이 · 잉크 · 파란 펜 · 형광펜 · 빨간 펜
   문예창작: 아이보리 지면 · 먹색 · 버건디 */
:root {
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --ink: #172033;
  --ink-2: #333C4F;
  --muted: #586174;
  --blue: #2B5BD7;
  --blue-2: #86A5EC;
  --blue-soft: #E7EEFC;
  --yellow: #FFE15A;
  --red: #E0484C;
  --line: #DCE0E7;
  --ivory: #F7F1E3;
  --ivory-2: #EFE6D2;
  --sepia: #2B241B;
  --wine: #8C2F39;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: 'Gowun Batang', 'AppleMyungjo', 'Batang', serif;
  --pen: 'Nanum Pen Script', var(--sans);
  --display: 'Do Hyeon', var(--sans);
  --wrap: 1140px;
  --r-s: 8px;
  --r-m: 14px;
  --shadow-sheet: 0 1px 0 rgba(23, 32, 51, .04), 0 20px 44px -20px rgba(23, 32, 51, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--sans); font-size: 17.5px; font-weight: 450; line-height: 1.72;
  color: var(--ink); background: var(--paper); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r-s); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* 비대면 강조: 형광펜 */
mark.remote { color: inherit; font-weight: 800; background: linear-gradient(transparent 55%, var(--yellow) 55% 92%, transparent 92%); padding: 0 .08em; }
.track-cw mark.remote { background: linear-gradient(transparent 55%, #F2C9A8 55% 92%, transparent 92%); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--white);
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 750; font-size: 16.5px;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-cw { background: var(--wine); border-color: var(--wine); }
.btn-cw:hover { background: var(--sepia); border-color: var(--sepia); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 247, 249, .93); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .3s; }
body[data-track="cw"] .site-header { background: rgba(247, 241, 227, .94); border-color: #E2D7BE; }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.brand-mark circle { stroke: var(--red); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand-creds { display: flex; gap: 12px; font-size: 11.5px; line-height: 1.3; font-weight: 650; color: var(--muted); }
.brand-creds span { padding-left: 10px; border-left: 2px solid var(--line); }
.track-switch { display: inline-flex; flex-direction: column; gap: 3px; padding: 3px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); flex: none; }
.track-switch button { border: 0; background: transparent; border-radius: 9px; padding: 2px 12px; font-size: 13px; font-weight: 750; color: var(--muted); cursor: pointer; text-align: left; }
.track-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
body[data-track="cw"] .track-switch button[aria-pressed="true"] { background: var(--wine); }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15.5px; font-weight: 650; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--blue); }
body[data-track="cw"] .nav a:not(.btn):hover { color: var(--wine); }
body[data-track="cw"] .nav .btn { background: var(--wine); border-color: var(--wine); }
.nav .btn { color: var(--white); }
.nav-toggle, .nav-track { display: none; }

/* ---------- 히어로 ---------- */
.hero { padding: 76px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-kicker { font-size: 15.5px; font-weight: 750; color: var(--blue); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.36; letter-spacing: -.025em; }
.lead { margin-top: 22px; font-size: 18.5px; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 34px; margin: 42px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13.5px; font-weight: 650; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 36px; line-height: 1; color: var(--ink); }
.facts dd small { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-left: 2px; color: var(--ink-2); }

/* 연습 지문 카드 */
.sheet {
  position: relative; margin: 0; background: var(--white);
  background-image: linear-gradient(var(--white) 0 0), repeating-linear-gradient(transparent 0 35px, #EEF1F5 35px 36px);
  background-size: 54px 100%, 100% 100%; background-repeat: no-repeat, repeat;
  border-radius: 4px; box-shadow: var(--shadow-sheet); padding: 28px 112px 26px 56px; transform: rotate(-.6deg);
}
.sheet::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 1.5px; background: #F2B8B9; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.replay { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 650; cursor: pointer; }
.replay:hover { border-color: var(--blue); color: var(--blue); }
.passage { font-family: var(--serif); font-size: 18px; line-height: 2.05; }
.question { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; }
.question p { font-weight: 750; margin-bottom: 6px; }
.question ol { counter-reset: q; }
.question li { counter-increment: q; padding-left: 26px; position: relative; line-height: 2; color: var(--ink-2); }
.question li::before { content: counter(q, decimal) "."; position: absolute; left: 4px; color: var(--muted); }
.sheet figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
.note { position: absolute; font-family: var(--pen); font-size: 26px; line-height: 1.05; color: var(--blue); opacity: 0; transition: opacity .4s; pointer-events: none; width: 90px; }
.note-1 { right: 12px; top: 108px; transform: rotate(-4deg); }
.note-2 { color: var(--blue); font-size: 22px; transform: rotate(-3deg); }
.sheet.notes-on .note-1, .sheet.link-on .note-2 { opacity: 1; }
.link-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.link-arrow path { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 0; }
.link-arrow marker path { fill: var(--blue); stroke: none; }
.sheet.no-rn [data-mk="highlight"] { background: var(--yellow); }
.sheet.no-rn [data-mk="underline"] { text-decoration: underline 2px var(--red); text-underline-offset: 4px; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 96px 0; }
.section.tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(27px, 3.1vw, 38px); line-height: 1.38; letter-spacing: -.02em; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17.5px; }
.sub-title { font-family: var(--serif); font-size: 24px; margin: 64px 0 22px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 18px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- 성과: 덤벨 그래픽 ---------- */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.big-stat { display: grid; justify-items: end; margin-bottom: 38px; }
.big-num { font-family: var(--display); font-size: clamp(64px, 8vw, 104px); line-height: .9; color: var(--blue); letter-spacing: -.02em; }
.big-num small { font-family: var(--sans); font-size: 22px; font-weight: 800; color: var(--ink); margin-left: 6px; }
.big-label { font-size: 14px; font-weight: 650; color: var(--muted); margin-top: 8px; }
.grade-axis, .db-row { display: grid; grid-template-columns: 230px 1fr 170px; gap: 28px; align-items: center; }
.grade-axis { padding: 0 24px 8px; }
.axis-ticks { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.axis-ticks i { font-style: normal; width: 20px; text-align: center; }
.axis-end { font-size: 13px; font-weight: 700; color: var(--muted); }
.dumbbells { display: grid; gap: 12px; }
.db-row { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); position: relative; }
.db-year { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.db-who { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.db-tag { display: inline-block; font-size: 12px; font-weight: 750; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 1px 9px; margin-top: 6px; }
.db-track { position: relative; height: 34px; margin: 0 10px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); transform: translateY(-50%); }
.db-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.db-ticks i { width: 2px; height: 10px; background: var(--line); border-radius: 2px; }
.db-bar { position: absolute; top: 50%; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); transform: translateY(-50%) scaleX(0); transform-origin: left center; }
.db-dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--white); }
.db-dot.from { background: var(--white); border: 3px solid var(--blue-2); }
.db-dot.to { background: var(--blue); transform: translate(-50%, -50%) scale(0); }
.db-dot.to::after { content: attr(data-label); position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--display); font-size: 18px; color: var(--blue); white-space: nowrap; }
.db-from-label { position: absolute; top: calc(50% + 16px); transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.db-res { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.db-res .n-from { font-family: var(--display); font-size: 26px; color: #9AA3B4; }
.db-res .arr { width: 22px; height: 14px; color: var(--muted); }
.db-res .n-to { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--ink); }
.db-res .unit { font-size: 14px; font-weight: 750; }
.db-up { display: block; text-align: right; font-size: 13px; font-weight: 800; color: var(--blue); }
.table-view { margin-top: 18px; font-size: 15px; }
.table-view summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.table-view table { border-collapse: collapse; margin-top: 10px; width: 100%; max-width: 640px; background: var(--white); }
.table-view th, .table-view td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- 진단 ---------- */
.check-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.check { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check-list { display: grid; gap: 10px; align-content: start; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r-m); font-weight: 650; line-height: 1.5; }
.check-item:hover { border-color: var(--line); }
.check-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check-item:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.rx { padding: 20px 22px; border-radius: var(--r-m); border: 1.5px dashed var(--line); min-height: 100%; }
.rx-empty { color: var(--muted); }
.rx-title { font-family: var(--pen); font-size: 30px; color: var(--red); line-height: 1.1; margin-bottom: 10px; }
.rx-block { margin-bottom: 14px; }
.rx-q { font-weight: 750; font-size: 15px; }
.rx-block li { position: relative; padding-left: 16px; font-size: 15.5px; color: var(--ink-2); }
.rx-block li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- 수업 방식 ---------- */
.tabs { display: inline-flex; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.tabs [role="tab"] { border: 0; background: transparent; padding: 9px 30px; border-radius: 999px; font-weight: 750; cursor: pointer; color: var(--muted); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); }
.method-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.method-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.method-list dt { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.method-list dd { margin: 6px 0 0; color: var(--ink-2); }

/* 영어 필기 데모 */
.demo { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; align-items: center; margin-top: 72px; padding-top: 56px; border-top: 2px solid var(--ink); }
.demo h3 { font-family: var(--serif); font-size: 26px; line-height: 1.4; }
.demo p { margin-top: 12px; color: var(--ink-2); }
.legend-list { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; font-weight: 650; }
.legend-list li { display: flex; align-items: center; gap: 10px; }
.lg { display: inline-block; width: 30px; height: 14px; flex: none; }
.lg.slash { background: linear-gradient(115deg, transparent 44%, var(--blue) 44% 56%, transparent 56%); }
.lg.circle { border: 2px solid var(--blue); border-radius: 50%; }
.lg.hl { background: var(--yellow); border-radius: 3px; }
.lg.ul { border-bottom: 3px solid var(--red); height: 10px; }
.eng-sheet { position: relative; margin: 0; background: var(--white); border-radius: 4px; box-shadow: var(--shadow-sheet); padding: 26px 132px 22px 30px; }
.eng-q { font-weight: 750; font-size: 15px; margin-bottom: 10px; }
.eng-passage { font-family: 'Times New Roman', Georgia, serif; font-size: 18px; line-height: 2.1; color: #1D2433; }
.eng-passage .sl { font-style: normal; color: var(--blue); font-family: var(--pen); font-size: 26px; margin: 0 2px; opacity: 0; display: inline-block; transform: translateY(2px); }
.enote { position: absolute; right: 12px; width: 112px; font-family: var(--pen); font-size: 23px; line-height: 1.1; color: var(--red); opacity: 0; }
.en1 { top: 70px; } .en2 { top: 190px; color: var(--blue); } .en3 { top: 300px; }
.eng-sheet figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* 비대면 */
.remote-sec { background: var(--ink); color: var(--white); }
.remote-sec .section-head p { color: #CBD2DF; }
.remote-sec mark.remote { color: var(--ink); }
.remote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tablet-art { position: relative; }
.tablet { width: 100%; height: auto; overflow: visible; }
.t-body { fill: #2A3346; stroke: #4A556C; stroke-width: 2; }
.t-screen { fill: #FBFBFD; }
.t-cam { fill: #4A556C; }
.t-video { fill: #DCE4F5; }
.t-person { fill: #9DB1DE; stroke: none; }
.t-person:is(path) { fill: none; stroke: #9DB1DE; stroke-width: 10; stroke-linecap: round; }
.t-live { fill: #22B573; }
.t-lines rect { fill: #E3E7EE; }
.t-hl { fill: var(--yellow); opacity: .75; transform-box: fill-box; transform-origin: left center; animation: hl 6s infinite; }
.t-ink { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: ink 6s infinite; }
.t-ink.red { stroke: var(--red); animation-delay: .9s; }
.t-ink.blue { stroke: var(--blue); animation-delay: 1.8s; }
.t-ink.blue + .t-ink.blue { animation-delay: 2.5s; }
.t-pen { stroke: #EDEFF4; stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); animation: pen 6s infinite; }
@keyframes ink { 0% { stroke-dashoffset: 420; } 18%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hl { 0% { transform: scaleX(0); } 14%, 84% { transform: scaleX(1); opacity: .75; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes pen { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-60px, 90px); } 50% { transform: translate(-150px, 70px); } 75% { transform: translate(-40px, 40px); } }
.remote-badge { position: absolute; left: 6%; top: -14px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.remote-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22B573; box-shadow: 0 0 0 3px rgba(34, 181, 115, .25); }
.remote-points { display: grid; gap: 14px; }
.remote-points li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.remote-points b { color: var(--yellow); font-weight: 800; }
.remote-points span { color: #E4E8F0; }

/* ---------- 가로 자동 회전(마키) ---------- */
.marquee { overflow: hidden; padding: 8px 0 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }
.m-item { flex: none; width: 230px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: var(--white); border-radius: 4px; box-shadow: var(--shadow-sheet); transition: transform .2s; }
.thumb:hover img { transform: translateY(-4px) rotate(-.4deg); }
.thumb-cap { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45; }

/* 책 회전 */
.books .marquee-track { gap: 18px; }
.book { flex: none; width: 210px; height: 290px; border-radius: 4px 10px 10px 4px; padding: 26px 20px 20px 28px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); position: relative; box-shadow: var(--shadow-sheet); }
.book::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .25); }
.book .b-genre { font-size: 12.5px; font-weight: 750; opacity: .85; }
.book .b-title { font-family: var(--serif); font-size: 25px; line-height: 1.35; font-weight: 700; }
.book .b-author { font-size: 15px; font-weight: 650; opacity: .92; }

/* 후기 */
.reviews { display: flex; gap: 26px; flex-wrap: wrap; }
.phone { margin: 0; width: min(300px, 100%); }
.phone img { border-radius: 26px; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-sheet); aspect-ratio: auto; }
.phone figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--ink-2); }

/* ---------- 강사 소개 ---------- */
.teacher-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.portrait { margin: 0; position: sticky; top: 100px; }
.portrait img { width: 100%; border-radius: var(--r-m); background: var(--white); }
.portrait figcaption { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.t-role { font-size: 14px; font-weight: 650; color: var(--muted); }
.t-name { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.vow { margin: 0 0 30px; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--blue-soft); font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.5; border-radius: 0 var(--r-s) var(--r-s) 0; }
.career { border-left: 2px solid var(--line); margin-left: 6px; }
.career li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 8px 0 8px 22px; position: relative; font-weight: 550; }
.career li::before { content: ""; position: absolute; left: -7px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.career b { font-family: var(--display); font-weight: 400; font-size: 19px; }
.docs-title { margin-top: 40px; font-family: var(--serif); font-size: 21px; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.docs .thumb-cap { font-size: 13px; }

/* ---------- 수강료 ---------- */
.price-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.calc { background: var(--paper); border-radius: var(--r-m); padding: 28px; border: 1px solid var(--line); }
.calc fieldset { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.calc legend { width: 100%; font-size: 14px; font-weight: 750; color: var(--muted); margin-bottom: 8px; }
.seg { position: relative; display: inline-flex; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.track-cw .seg input:checked + span { background: var(--wine); border-color: var(--wine); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.calc-out { display: grid; gap: 2px; margin-top: 8px; padding: 22px 24px; background: var(--white); border-radius: var(--r-m); border: 1px solid var(--line); }
.calc-label { font-size: 14px; font-weight: 650; color: var(--muted); }
.calc-total { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.1; }
.calc-per { font-size: 14.5px; color: var(--blue); font-weight: 700; }
.track-cw .calc-per { color: var(--wine); }

/* ---------- 단계·FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.steps { display: grid; gap: 18px; counter-reset: s; margin-top: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-size: 34px; line-height: 1; color: var(--blue); }
.steps h3 { font-size: 18px; font-weight: 800; }
.steps p { margin-top: 2px !important; font-size: 15.5px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 750; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* ---------- 상담 신청 ---------- */
.consult-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.alt { display: grid; gap: 10px; margin-top: 24px; }
.alt-link { display: inline-block; font-weight: 750; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--yellow); width: fit-content; }
.alt-link:hover { border-color: var(--blue); color: var(--blue); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px; box-shadow: var(--shadow-sheet); }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; }
.field > span, .field legend { font-size: 14.5px; font-weight: 750; color: var(--ink-2); padding: 0; }
.field em { font-style: normal; color: var(--red); font-size: 12px; margin-left: 4px; }
.opt { font-weight: 550; color: var(--muted); font-size: 12px; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--paper); font-weight: 500; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-soft); }
.field [aria-invalid="true"], .check-line input[aria-invalid="true"] { border-color: var(--red); outline: 2px solid var(--red); }
.err { color: var(--red); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 15px; }
.chip-check input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.track-cw .chip-check input:checked + span { background: var(--wine); border-color: var(--wine); }
.chip-check input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { background: var(--paper); border-radius: var(--r-s); padding: 14px 16px; margin-bottom: 14px; }
.consent.device { background: #FFF8D6; border: 1.5px solid #F2D96B; }
.consent p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.consent b { color: var(--ink); margin-right: 4px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-weight: 700; font-size: 15px; cursor: pointer; line-height: 1.5; }
.consent.device .check-line { margin-top: 0; }
.check-line input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 14px; font-size: 15px; font-weight: 700; }
.status.is-ok { color: #11865B; }
.status.is-error { color: var(--red); }

/* ---------- 문예창작 트랙 ---------- */
.track-cw { background: var(--ivory); color: var(--sepia); border-top: 6px solid var(--wine); }
.track-cw .section.tint { background: #FBF7EE; border-color: #E6DCC6; }
.track-cw .hero-kicker { color: var(--wine); }
.track-cw .section-head p, .track-cw .lead { color: #4E4436; }
.track-cw .tabs { background: #FBF7EE; border-color: #E2D7BE; }
.track-cw .tabs [role="tab"][aria-selected="true"] { background: var(--wine); }
.track-cw .check-item { background: #F3ECDC; }
.track-cw .check-item input { accent-color: var(--wine); }
.track-cw .check-item:has(input:checked) { border-color: var(--wine); background: #F5E3E1; }
.track-cw .rx { border-color: #DCCFB3; }
.track-cw .rx-title { color: var(--wine); }
.track-cw .rx-block li::before { background: var(--wine); }
.track-cw .calc, .track-cw .form { background: #FFFDF8; border-color: #E2D7BE; }
.track-cw .calc-out { background: var(--white); border-color: #E2D7BE; }
.track-cw .field input, .track-cw .field select, .track-cw .field textarea { background: #FBF7EE; border-color: #E2D7BE; }
.track-cw .consent { background: #F3ECDC; }
.track-cw .consent.device { background: #F8E9DA; border-color: #E9C4A1; }
.track-cw .career li::before { border-color: var(--wine); }
.track-cw .career { border-color: #E2D7BE; }
.track-cw .vow { border-color: var(--wine); background: #F3E6E2; }
.track-cw .alt-link { border-color: #E9C4A1; }
.track-cw .check-line input { accent-color: var(--wine); }
.cw-hero { padding-top: 92px; }
.cw-hero h1 { font-size: clamp(32px, 4.3vw, 52px); }
.cw-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 26px; font-size: 15px; font-weight: 700; }
.cw-creds li { padding-left: 16px; position: relative; }
.cw-creds li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--wine); transform: rotate(45deg); }
.cw-visual { position: relative; min-height: 520px; }
.cw-visual img { position: absolute; width: 66%; border-radius: 3px; box-shadow: var(--shadow-sheet); }
.cw-v1 { right: 0; top: 0; transform: rotate(3deg); }
.cw-v2 { left: 0; top: 70px; transform: rotate(-2.5deg); }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proof .thumb img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: transparent; box-shadow: none; }
.proof .thumb-cap { font-size: 15.5px; }
.cw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cw-col { background: #FFFDF8; border: 1px solid #E2D7BE; border-radius: var(--r-m); padding: 30px 32px; }
.cw-col h3 { font-family: var(--serif); font-size: 25px; color: var(--wine); margin-bottom: 14px; }
.cw-col li { padding: 11px 0 11px 22px; border-top: 1px solid #EDE4D0; position: relative; font-weight: 550; }
.cw-col li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 10px; height: 2px; background: var(--wine); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: #C7CEDB; padding: 48px 0 110px; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .brand-name { color: var(--white); display: block; margin-bottom: 6px; }
.site-footer ul { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.sticky-cta { display: none; }

/* ---------- 크게 보기 ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(23, 32, 51, .8); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 4px; background: var(--white); }
.lightbox p { color: var(--white); text-align: center; margin-top: 10px; font-weight: 700; }
.lb-close { position: absolute; right: 0; top: -46px; background: var(--white); border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 750; cursor: pointer; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .brand-creds { display: none; }
  .nav ul { gap: 18px; }
}
@media (max-width: 1000px) {
  .hero-grid, .check-grid, .price-grid, .faq-wrap, .consult-grid, .remote-grid, .demo { grid-template-columns: 1fr; gap: 36px; }
  .teacher-grid { grid-template-columns: 220px 1fr; gap: 36px; }
  .grade-axis, .db-row { grid-template-columns: 170px 1fr 130px; gap: 18px; }
  .docs { grid-template-columns: repeat(3, 1fr); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .cw-visual { min-height: 440px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .header-inner > .track-switch { margin-left: auto; }
  .header-inner > .track-switch button { font-size: 12.5px; padding: 1px 10px; }
  .nav { margin-left: 0; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav-open .bars { background: transparent; }
  .nav-open .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; }
  .nav-open .nav ul { display: flex; }
  .nav-track .track-switch { flex-direction: row; width: 100%; }
  .nav-track .track-switch button { flex: 1; text-align: center; padding: 9px; font-size: 15px; }
  .nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 14px; width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { padding: 40px 0 64px; }
  .facts { grid-template-columns: repeat(2, auto); gap: 16px 36px; }
  .sheet { padding: 22px 18px 20px 40px; transform: none; }
  .sheet::before { left: 26px; }
  .passage { font-size: 16.5px; }
  .note-1 { position: static; display: inline-block; width: auto; margin: 10px 14px 0 0; transform: rotate(-3deg); }
  .section { padding: 68px 0; }
  .results-head { display: block; }
  .big-stat { justify-items: start; margin-bottom: 24px; }
  .grade-axis { display: none; }
  .db-row { grid-template-columns: 1fr auto; gap: 12px 10px; padding: 16px; }
  .db-track { grid-column: 1 / -1; grid-row: 2; margin: 22px 10px 14px; }
  .db-res { grid-column: 2; grid-row: 1; }
  .check { grid-template-columns: 1fr; }
  .method-list { grid-template-columns: 1fr; }
  .eng-sheet { padding: 20px 18px; }
  .enote { position: static; display: inline-block; width: auto; margin: 6px 12px 0 0; }
  .m-item { width: 180px; }
  .book { width: 170px; height: 240px; }
  .book .b-title { font-size: 21px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 220px; }
  .career li { grid-template-columns: 58px 1fr; }
  .docs, .proof { grid-template-columns: repeat(2, 1fr); }
  .row.two, .cw-cols, .cw-creds { grid-template-columns: 1fr; gap: 0 12px; }
  .cw-cols { gap: 18px; }
  .form, .calc, .cw-col { padding: 22px 18px; }
  .calc-total { font-size: 40px; }
  .cw-visual { min-height: 360px; }
  .remote-points li { grid-template-columns: 80px 1fr; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
    min-height: 54px; border-radius: 999px; background: var(--blue); color: var(--white);
    font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(43, 91, 215, .6);
  }
  body[data-track="cw"] .sticky-cta { background: var(--wine); box-shadow: 0 10px 30px -8px rgba(140, 47, 57, .55); }
}
@media print { .site-header, .sticky-cta, .hero-cta { display: none; } }

/* rough-notation 애니메이션 키프레임: 라이브러리가 <style>을 직접 넣지 않도록 여기서 제공(CSP 대응) */
@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }

/* ---------- v2 보강: 덤벨 툴팁·완료 상태, 책 색 ---------- */
.db-tip { position: absolute; left: 50%; top: -12px; transform: translate(-50%, -100%); background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.db-row:hover .db-tip, .db-row:focus-visible .db-tip { opacity: 1; }
.db-row:hover { border-color: var(--blue-2); }
.db-row.is-done .db-bar { transform: translateY(-50%) scaleX(1); }
.db-row.is-done .db-dot.to { transform: translate(-50%, -50%) scale(1); }
.b1 { background: #3B4A5E; } .b2 { background: #8C2F39; } .b3 { background: #24323F; }
.b4 { background: #5A4378; } .b5 { background: #2F5D62; } .b6 { background: #A5642A; } .b7 { background: #4B2E2A; }
@media (max-width: 760px) { .db-tip { display: none; } }
@media (max-width: 760px) { .note-2 { display: none; } }
.remote-sec mark.remote { background: var(--yellow); color: var(--ink); padding: 0 .18em; border-radius: 4px; }

/* ---------- 문예창작 합격 사례 ---------- */
.wins-title { margin-top: 8px; }
.wins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 8px; }
.win { position: relative; background: #FFFDF8; border: 1px solid #E2D7BE; border-radius: var(--r-m); padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.win::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--wine); }
.win-year { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--wine); }
.win-year small { font-family: var(--sans); font-size: 15px; font-weight: 800; margin-left: 2px; color: var(--sepia); }
.win-who { font-size: 14px; font-weight: 700; color: #6B5E4B; }
.win-path { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E2D7BE; font-size: 13.5px; font-weight: 700; color: #6B5E4B; }
.win-school { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--sepia); margin-top: 2px; }
.win-tag { display: inline-block; width: fit-content; font-size: 13.5px; font-weight: 800; color: var(--wine); background: #F3E6E2; border-radius: 8px; padding: 3px 10px; line-height: 1.55; }
.win-now .win-year { font-size: 32px; }
.win-now .win-school { margin-top: 14px; }
@media (max-width: 1000px) { .wins { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wins { grid-template-columns: 1fr; } }

/* 문예창작 첫 화면 사진: 눌러서 크게 보기 + 모션 없을 때 벌어진 상태 */
.cw-visual img { cursor: zoom-in; }
.cw-visual.is-apart .cw-v1 { transform-origin: 100% 0; transform: translateX(9%) scale(.78) rotate(1deg); }
.cw-visual.is-apart .cw-v2 { transform-origin: 0 0; transform: translate(-9%, -30px) scale(.78) rotate(-1deg); }
.cw-hero { overflow-x: clip; }
