/* 피움국어논술 — 기준 디자인 E07(아이보리·세리프·짙은 초록) + 로고의 원고지 칸 모티프
   색은 :root 토큰만 쓴다. 움직임은 transform/opacity 위주, prefers-reduced-motion 존중. */

:root {
  --paper: #F7F3EA;
  --paper-2: #EFE8DA;
  --card: #FCFAF5;
  --ink: #1F2B25;
  --ink-2: #44504A;
  --mute: #5F6863;
  --line: rgba(31, 43, 37, .14);
  --line-2: #D9D0BE;
  --green: #24493D;
  --green-2: #2F5D4E;
  --green-ink: #1A372E;
  --tan: #E4A860;
  --tan-2: #D9944B;
  --tan-ink: #8B501B;
  --pen: #C8432B;
  --pink: #EEC5DC;
  --sky: #CFE6EE;
  --leaf: #BDD762;
  --cream: #F8DCA6;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hand: "Nanum Pen Script", "Gaegu", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --hd: 68px;
  --dock: 0px;
  --r: 6px;
  color-scheme: light;
}

/* 첫 화면 본문용 Pretendard 서브셋 (tools/fonts.py) — CDN 글꼴이 늦게 와도 히어로 줄바꿈이 바뀌지 않게 */
@font-face { font-family: "PiumHero"; src: url("/assets/fonts/pium-hero.woff2") format("woff2"); font-weight: 45 920; font-display: optional; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); scroll-padding-bottom: calc(var(--dock) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--tan-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cream); color: var(--ink); }
html { scrollbar-color: var(--tan) var(--paper); }
input, textarea { caret-color: var(--green); }
.ft__tel, .bigcall b, .hero__num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.nb { white-space: nowrap; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--green); color: #fff; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- 원고지 칸 */
.cells { display: inline-flex; padding: .16em 0; border-top: 2px solid var(--tan); border-bottom: 2px solid var(--tan); line-height: 1; }
.cells i {
  font-style: normal; display: grid; place-items: center; width: 1.3em; height: 1.3em;
  border: 1.5px solid var(--tan); margin-left: -1.5px;
}
.cells i:first-child { margin-left: 0; }
.cells--num { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.3vw, 40px); color: var(--ink); }
.cells--sm { font-size: 14px; font-weight: 700; color: var(--green); border-width: 1.5px; }
.cells--sm i { width: 1.9em; height: 1.9em; }
.cells--xs { font-size: 14px; font-weight: 700; color: var(--green); border-width: 1.5px; }
.cells--xs i { width: 1.85em; height: 1.85em; }
.js .rv .cells i, .js .stat .cells i { opacity: 0; transform: scale(.5) rotate(-8deg); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--d, 0s) + .15s + var(--k, 0) * 70ms); }
.js .rv.in .cells i, .js .stat.in .cells i { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid var(--green);
  background: var(--green); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: transform .16s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent; will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.btn b { font-weight: 600; }
.btn--line { background: transparent; color: var(--green); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn--lg { min-height: 58px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--green-ink); }
.btn--glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .38); color: #fff; }
@media (hover: hover) {
  .btn:hover { background: var(--green-2); border-color: var(--green-2); box-shadow: 0 10px 24px -14px rgba(26, 55, 46, .7); }
  .btn--line:hover { background: rgba(36, 73, 61, .07); border-color: var(--green); }
  .btn--paper:hover { background: #fff; border-color: #fff; }
  .btn--glass:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
  .btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
}
.ico-ring { animation: ring 6s 2s infinite; transform-origin: 50% 50%; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } 96% { transform: rotate(0); } }

/* ---------------------------------------------------------------- 진행선 */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--tan)); transform: scaleX(var(--sp, 0)); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .progress i { animation: grow-x linear both; animation-timeline: scroll(root); }
  @keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------------------------------------------------------------- 헤더 */
.hd { position: sticky; top: 0; z-index: 60; height: var(--hd); background: rgba(247, 243, 234, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; view-transition-name: hd; }
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__icon { height: 44px; width: auto; transition: transform .5s var(--ease); }
.brand__word { height: 30px; width: auto; }
@media (hover: hover) { .brand:hover .brand__icon { transform: rotate(-6deg) scale(1.06); } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 12px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav a span::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.nav a[aria-current="page"] span::after { transform: scaleX(1); }
@media (hover: hover) { .nav a:hover { color: var(--green); } .nav a:hover span::after { transform: scaleX(1); transform-origin: left; } }
.hd__act { display: flex; align-items: center; gap: 8px; }
.hd__tel .ico { width: 17px; height: 17px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: var(--hd) 0 0; z-index: 55; background: var(--paper); padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; opacity: 0; transition: opacity .3s var(--ease); }
.mnav[hidden] { display: none; }
.mnav.is-open { opacity: 1; }
.mnav__links a { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(.05s + var(--i) * 45ms); }
.mnav.is-open .mnav__links a { opacity: 1; transform: none; }
.mnav__links a .ico { margin-left: auto; color: var(--tan-2); }
.mnav__links a[aria-current="page"] { color: var(--green); }
.mnav__n { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--tan-ink); width: 22px; }
.mnav__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.mnav__hours { text-align: center; font-size: 14px; color: var(--mute); }

/* ---------------------------------------------------------------- 공통 타이포 */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.eyebrow__cell { width: 13px; height: 13px; border: 1.5px solid var(--tan-2); position: relative; flex: none; }
.eyebrow__cell::after { content: ""; position: absolute; inset: 3px; background: var(--tan); transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .3s; }
.eyebrow__cell { animation: none; }
.in .eyebrow__cell::after, .hero .eyebrow__cell::after, .phead .eyebrow__cell::after, .sec__head .eyebrow__cell::after { transform: scale(1); }
.eyebrow--light { color: var(--cream); }
.eyebrow--light .eyebrow__cell { border-color: var(--cream); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.1vw, 48px); line-height: 1.28; letter-spacing: -0.025em; margin-top: 14px; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.35; letter-spacing: -0.02em; }
.sec { position: relative; padding: clamp(76px, 10vw, 128px) 0; }
.sec::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1180px, 100% - 40px); transform: translateX(-50%); border-top: 1px solid var(--line); }
.sec--tight { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.sec--tight::before, .sec--paper2::before, .stats + .marq + .sec::before { display: none; }
.sec--paper2 { background: var(--paper-2); }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.sec__lead { font-size: 17px; color: var(--ink-2); margin-top: 16px; max-width: 36em; }
.sec__head--row .sec__lead { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 500; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.tags--lg li { font-size: 15px; padding: 8px 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--green); font-weight: 600; font-size: 15px; }
.more .ico { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.ticks { display: grid; gap: 10px; margin: 22px 0 28px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.ticks .ico { color: #fff; background: var(--green); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 2.6; }

/* ---------------------------------------------------------------- 리빌 (첫 화면은 제외) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.rv-mask .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.rv-mask .w > span { display: inline-block; }
.js .rv-mask .w > span { transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js .rv-mask.in .w > span { transform: none; }
.rv-clip { overflow: hidden; border-radius: var(--r); }
.rv-clip img { width: 100%; height: 100%; object-fit: cover; }
.js .rv-clip { clip-path: inset(10% 8% 10% 8% round var(--r)); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-clip img { transform: scale(1.14); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-clip.in { clip-path: inset(0 0 0 0 round var(--r)); }
.js .rv-clip.in img { transform: scale(1); }

/* ---------------------------------------------------------------- 인트로 (홈, 세션당 1회) */
.intro { display: none; }
html.is-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--paper); animation: intro-out .8s var(--ease) 1.55s forwards; cursor: pointer; }
html.is-intro body { overflow: hidden; }
.intro__in { display: grid; justify-items: center; gap: 22px; }
.intro__icon { width: 120px; height: auto; animation: intro-bloom .8s var(--ease) both; }
.intro__word { width: min(300px, 70vw); clip-path: inset(0 100% 0 0); animation: intro-type .72s steps(6, end) .45s forwards; }
.intro__word img { width: 100%; }
.intro__hand { font-size: 26px; color: var(--tan-ink); opacity: 0; transform: translateY(8px); animation: intro-hand .5s var(--ease) 1.05s forwards; }
html.is-intro-done .intro { display: none; }
@keyframes intro-bloom { from { clip-path: inset(100% 0 0 0); transform: translateY(14px); } to { clip-path: inset(0); transform: none; } }
@keyframes intro-type { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-hand { to { opacity: 1; transform: none; } }
@keyframes intro-out { to { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 16% 16%; } }

/* ---------------------------------------------------------------- 히어로 */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero__top .eyebrow, .hero__lead, .hero .hero__cta, .chips { font-family: "PiumHero", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.hero__t { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6.4vw, 78px); line-height: 1.16; letter-spacing: -0.035em; margin: 18px 0 22px; }
.hl { position: relative; display: inline-block; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.08em; right: -.1em; bottom: .08em; height: .34em; z-index: -1; background: var(--tan); opacity: .45; border-radius: .2em .05em .25em .08em; transform: scaleX(0) rotate(-1deg); transform-origin: left; animation: hl 1s var(--ease) .5s forwards; }
html.is-intro .hl::after { animation-delay: 2.1s; }
@keyframes hl { to { transform: scaleX(1) rotate(-1deg); } }
.hero__lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__num { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 500; letter-spacing: .01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }
.chips li { display: inline-flex; align-items: center; gap: 7px; }
.chips .ico { width: 17px; height: 17px; color: var(--tan-ink); }
.hero__ph { position: relative; margin: clamp(32px, 4vw, 48px) 0 0; aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.hero__ph img { width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); animation: hero-in 1.6s var(--ease) both; }
@keyframes hero-in { from { scale: 1.06; } to { scale: 1; } }
.hero__tag { position: absolute; left: 18px; bottom: 18px; padding: 8px 16px 6px; background: var(--paper); color: var(--green-ink); font-size: 25px; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); animation: tag-in .7s cubic-bezier(.3, 1.5, .5, 1) .9s both; }
html.is-intro .hero__tag { animation-delay: 2.3s; }
@keyframes tag-in { from { opacity: 0; transform: translateY(14px) rotate(-8deg); } }
.hero__notice { position: absolute; top: 16px; left: 16px; right: 16px; max-width: max-content; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; background: rgba(252, 250, 245, .94); backdrop-filter: blur(8px); border-radius: 99px; font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .45); animation: tag-in .6s var(--ease) both; }
.hero__notice[hidden] { display: none; }
.hero__nk { flex: none; padding: 2px 9px; border-radius: 99px; background: var(--tan); color: var(--ink); font-size: 12.5px; }
.hero__nt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__notice .ico { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------------------------------------------------------------- 숫자 줄 */
.stats { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { display: flex; align-items: flex-end; gap: 8px; }
.stat__u { font-family: var(--serif); font-size: 18px; color: var(--tan-ink); padding-bottom: 6px; }
.stat__l { margin-top: 12px; font-size: 14px; color: var(--mute); }

/* ---------------------------------------------------------------- 마퀴 */
.marq { overflow: hidden; border-bottom: 1px solid var(--line); padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq__track { display: flex; width: max-content; animation: marq 44s linear infinite; }
.marq__track > div { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marq span { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); white-space: nowrap; }
.marq__i { width: 22px; height: 22px; color: var(--tan-2); }
@media (hover: hover) { .marq:hover .marq__track { animation-play-state: paused; } }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- 이름 이야기 (꽃 드로잉, 스크롤로 그려짐) */
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story__art { position: sticky; top: calc(var(--hd) + 40px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 55%, #fff 0, var(--paper-2) 68%, transparent 69%); }
.js [data-scrub] { --p: 0; }
.bloom { width: 82%; overflow: visible; }
.bloom__ln path { stroke: var(--tan-2); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: clamp(0, calc(1 - (var(--p, 1) - var(--o, 0)) * 2.6), 1); }
.bloom .pf { transform-box: fill-box; transform-origin: 50% 100%; opacity: clamp(0, calc((var(--p, 1) - var(--o, 0)) * 3.2), 1); transform: scale(clamp(.6, calc(.6 + (var(--p, 1) - var(--o, 0)) * 1.4), 1)); }
.pf--pink { fill: var(--pink); } .pf--sky { fill: var(--sky); } .pf--cream { fill: var(--cream); } .pf--leaf { fill: var(--leaf); }
.bloom__dots circle { fill: var(--tan); transform-box: fill-box; transform-origin: center; transform: scale(clamp(0, calc((var(--p, 1) - .7) * 5), 1)); }
.story__p { font-size: 17px; color: var(--ink-2); margin-top: 20px; max-width: 32em; }
.story__ph { margin-top: 32px; aspect-ratio: 3 / 2; }

/* ---------------------------------------------------------------- 수업 과정 카드 */
.grow { position: relative; height: 40px; margin: -10px 0 18px; }
.grow svg { width: 100%; height: 100%; overflow: visible; }
.grow path { fill: none; stroke: var(--tan); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: clamp(0, calc(1 - var(--p, 1) * 1.3), 1); vector-effect: non-scaling-stroke; }
.grow__dot { position: absolute; left: var(--x); top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--green); transform: translate(-50%, -50%) scale(clamp(0, calc(var(--p, 1) * 4 - var(--n) * 1.1), 1)); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { display: flex; flex-direction: column; padding: 10px 10px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .75s var(--ease); }
.js .ccard.rv { transition: transform .75s var(--ease), opacity .75s var(--ease), box-shadow .45s var(--ease), border-color .3s; transition-delay: var(--d, 0s); }
.ccard__ph { position: relative; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--paper-2); }
.ccard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ccard__stage { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 4px 8px; border-radius: 99px; background: var(--paper); color: var(--green); }
.ccard__stage .ico { width: 18px; height: 18px; }
.ccard__stage b { font-size: 22px; color: var(--tan-ink); }
.ccard__body { padding: 20px 12px 0; display: flex; flex-direction: column; flex: 1; }
.ccard__lbl { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--green); }
.ccard__t { font-family: var(--serif); font-size: 22px; line-height: 1.4; margin: 8px 0 10px; }
.ccard__d { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.ccard .more { margin-top: auto; padding-top: 18px; }
@media (hover: hover) {
  .ccard:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -28px rgba(31, 43, 37, .45); border-color: var(--tan); }
  .ccard:hover .ccard__ph img { transform: scale(1.06); }
  .ccard:hover .more .ico, .note:hover .note__more .ico { transform: translateX(4px); }
}
.ccard:active { transform: scale(.985); }

/* ---------------------------------------------------------------- 피움의 세 가지 + 빨간 펜 */
.sigs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 36px; }
.sig { border-top: 1.5px solid var(--ink); padding-top: 26px; }
.sig__no { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; color: var(--green); letter-spacing: .04em; }
.sig__t { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.45; margin: 20px 0 12px; }
.sig__d { font-size: 15.5px; color: var(--ink-2); }
.sig__note { margin-top: 16px; font-size: 27px; color: var(--pen); transform: rotate(-4deg); transform-origin: left; }
.js .sig__note { opacity: 0; transform: rotate(-4deg) translateY(8px) scale(.9); transition: opacity .5s var(--ease), transform .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0s) + 1.15s); }
.js .in .sig__note { opacity: 1; transform: rotate(-4deg); }
.pen { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.pen svg { position: absolute; max-width: none; pointer-events: none; overflow: visible; z-index: -1; }
.pen--circle svg { left: -21%; top: -36%; width: 142%; height: 172%; }
.pen--line svg { left: -3%; bottom: -.3em; width: 106%; height: .5em; }
.pen path { fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .pen path { stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(var(--d, 0s) + .45s); }
.js .in .pen path { stroke-dashoffset: 0; }

/* ---------------------------------------------------------------- 미니 도서관 + 책등 선반 */
.lib__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lib__txt > p { font-size: 17px; color: var(--ink-2); margin-top: 20px; }
.lib__ph { position: relative; padding-bottom: 48px; }
.lib__a { width: 84%; aspect-ratio: 4 / 3; }
.lib__a img, .lib__b img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.lib__b { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; border: 7px solid var(--paper); box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .5); }
.js .lib__ph .rv-clip img { transform: translate3d(0, var(--py, 0px), 0) scale(1.22); }
.js .lib__ph .rv-clip.in img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.shelf { margin-top: clamp(56px, 7vw, 88px); }
.shelf__row { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 176px; padding: 0 16px; }
.bk { --c: var(--green); --t: #F7F3EA; position: relative; flex: none; width: var(--bw); height: var(--h); background: var(--c); color: var(--t); border-radius: 3px 3px 1px 1px; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); cursor: default; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .1), inset 2px 0 0 rgba(255, 255, 255, .15); }
.bk::before, .bk::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: currentColor; opacity: .55; }
.bk::before { top: 8px; } .bk::after { bottom: 10px; }
.bk b { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); writing-mode: vertical-rl; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; }
.bk--green { --c: var(--green); } .bk--green2 { --c: #3F6D5D; } .bk--ink { --c: #2B3631; --t: var(--cream); }
.bk--tan { --c: var(--tan); --t: var(--ink); } .bk--pink { --c: var(--pink); --t: var(--ink); } .bk--sky { --c: #BEE0EA; --t: var(--ink); }
.bk--leaf { --c: var(--leaf); --t: var(--ink); } .bk--cream { --c: var(--cream); --t: var(--ink); }
.js .shelf .bk { opacity: 0; transform: translateY(40px); transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), opacity .5s var(--ease); transition-delay: calc(var(--k) * 40ms); }
.js .shelf.in .bk { opacity: 1; transform: none; }
@media (hover: hover) {
  .shelf.in .bk:hover { transform: translateY(-18px) rotate(-4deg); transition-delay: 0s; }
  .shelf.in .bk:hover + .bk { transform: rotate(5deg) translateX(2px); transition-delay: 0s; }
}
.shelf.in .bk.is-pulled { transform: translateY(-18px) rotate(-4deg); transition-delay: 0s; }
.shelf__board { height: 14px; border-radius: 3px; background: linear-gradient(180deg, #E2AE72, #C98B4F); box-shadow: 0 14px 22px -12px rgba(120, 72, 30, .55); }
.shelf__cap { margin-top: 12px; text-align: right; font-size: 25px; color: var(--tan-ink); }

/* ---------------------------------------------------------------- 상담 4단계 */
.steps-wrap { position: relative; }
.steps__line { position: absolute; top: 18px; left: 0; right: 0; height: 2px; }
.steps__line i { display: block; height: 100%; border-top: 2px dashed var(--tan); transform: scaleX(var(--p, 1)); transform-origin: left; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step__no { display: inline-block; background: var(--paper); padding-right: 10px; }
.step__ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 24px 0 18px; border-radius: 50%; background: var(--paper-2); color: var(--green); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), background-color .3s, color .3s; }
.step__ic .ico { width: 24px; height: 24px; }
.step__t { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
.step__d { font-size: 15px; color: var(--ink-2); }
@media (hover: hover) { .step:hover .step__ic { transform: rotate(-10deg) scale(1.08); background: var(--green); color: #fff; } }

/* ---------------------------------------------------------------- 원장 */
.teacher__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.polaroid { position: relative; max-width: 360px; width: 100%; margin: 0 auto; padding: 14px 14px 62px; background: #fff; border-radius: 3px; box-shadow: 0 34px 60px -34px rgba(31, 43, 37, .55), 0 2px 6px rgba(0, 0, 0, .05); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-2.5deg); transition: transform .6s var(--ease), opacity .75s var(--ease); }
.js .polaroid.rv { transform: perspective(900px) translateY(30px) rotate(-6deg); }
.js .polaroid.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-2.5deg); }
.polaroid img { width: 100%; aspect-ratio: 354 / 472; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 30px; color: var(--ink-2); }
.tape { position: absolute; top: -12px; width: 92px; height: 28px; background: repeating-linear-gradient(90deg, rgba(228, 168, 96, .5) 0 6px, rgba(228, 168, 96, .38) 6px 12px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06); }
.tape--l { left: 8px; transform: rotate(-9deg); } .tape--r { right: 8px; transform: rotate(8deg); }
.seal { position: absolute; right: -26px; bottom: 84px; width: 86px; height: 86px; display: grid; place-items: center; text-align: center; border: 3px solid var(--pen); border-radius: 50%; color: var(--pen); font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.2; background: rgba(247, 243, 234, .55); transform: rotate(14deg); }
.js .seal { opacity: 0; transform: rotate(14deg) scale(2); transition: transform .45s var(--ease-in), opacity .3s; transition-delay: .9s; }
.js .in .seal { opacity: .95; transform: rotate(14deg) scale(1); }
.teacher__lead { font-size: 18px; color: var(--ink-2); margin-top: 20px; }
.bio { margin: 28px 0 6px; border-top: 1px solid var(--line); }
.bio div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bio dt { font-size: 13.5px; font-weight: 700; color: var(--green); padding-top: 2px; }
.bio dd { font-size: 16px; }
.sign { font-size: 32px; color: var(--ink-2); margin: 18px 0 24px; }

/* ---------------------------------------------------------------- 교육 노트 (원고지 카드) */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note { display: flex; flex-direction: column; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--card); background-image: linear-gradient(rgba(228, 168, 96, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(228, 168, 96, .13) 1px, transparent 1px); background-size: 30px 30px; background-position: -1px -1px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .75s var(--ease); }
.note__date { font-size: 13px; font-weight: 700; color: var(--tan-ink); letter-spacing: .04em; }
.note__t { font-family: var(--serif); font-size: 21px; line-height: 1.45; margin: 10px 0 12px; }
.note__ex { font-size: 15px; color: var(--ink-2); flex: 1; }
.note__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--green); font-size: 14.5px; font-weight: 600; }
.note__more .ico { width: 15px; height: 15px; transition: transform .3s var(--ease); }
@media (hover: hover) { .note:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -28px rgba(31, 43, 37, .45); border-color: var(--tan); } }

/* ---------------------------------------------------------------- FAQ */
.faq-sec__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 4px; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 600; cursor: pointer; transition: color .2s; }
.faq__pm { position: relative; flex: none; width: 18px; height: 18px; }
.faq__pm::before, .faq__pm::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--green); border-radius: 2px; transition: transform .4s var(--ease); }
.faq__pm::after { transform: rotate(90deg); }
.faq__item.is-open .faq__pm::after { transform: rotate(0); }
.faq__item.is-open .faq__pm::before { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 4px 22px; color: var(--ink-2); font-size: 16px; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; }
.no-js .faq__a, html:not(.js) .faq__a { grid-template-rows: 1fr; }
html:not(.js) .faq__a p { opacity: 1; transform: none; }
@media (hover: hover) { .faq__q:hover { color: var(--green); } }

/* ---------------------------------------------------------------- 마지막 CTA + 참 잘했어요 도장 */
.cta { padding: 0 0 clamp(64px, 8vw, 104px); }
.cta__in { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) clamp(24px, 6vw, 80px); border-radius: 8px; background-color: var(--green); background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; color: rgba(247, 243, 234, .86); }
.cta__t { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.25; letter-spacing: -0.025em; color: #fff; margin: 16px 0 18px; max-width: 14em; }
.cta__lead { font-size: 17px; max-width: 30em; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cta__note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.dot.is-open { background: #7CD69E; box-shadow: 0 0 0 0 rgba(124, 214, 158, .6); animation: pulse 2s infinite; }
.cta__stamp { position: absolute; right: clamp(20px, 7vw, 96px); top: 50%; width: clamp(120px, 14vw, 172px); color: #F08A6E; transform: translateY(-50%) rotate(-14deg); }
.stamp { width: 100%; height: auto; overflow: visible; }
.stamp__t { font-family: var(--hand); font-size: 27px; fill: currentColor; }
.js .cta__stamp .stamp { opacity: 0; transform: scale(2.3); }
.cta.is-stamped .cta__stamp .stamp, .done:not([hidden]) .stamp { animation: stamp-in .42s var(--ease-in) forwards; }
.cta.is-stamped .cta__stamp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; animation: stamp-ring .7s var(--ease) .38s both; }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(2.3); } 70% { opacity: .95; transform: scale(.94); } 100% { opacity: .92; transform: scale(1); } }
@keyframes stamp-ring { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.5); } }

/* ---------------------------------------------------------------- 푸터 + 하단 바 */
.ft { padding: clamp(48px, 7vw, 80px) 0 calc(28px + var(--dock)); border-top: 1px solid var(--line); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.brand--ft .brand__icon { height: 58px; }
.brand--ft .brand__word { height: 36px; }
.ft__desc { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.ft__sns { display: flex; gap: 8px; margin-top: 18px; }
.ft__sns a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--green); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.ft__sns a:active { transform: scale(.94); }
@media (hover: hover) { .ft__sns a:hover { background: var(--green); color: #fff; border-color: var(--green); } }
.ft__h { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--green); margin-bottom: 16px; }
.ft__links { display: grid; gap: 8px; font-size: 15px; }
.ft__links a { color: var(--ink-2); transition: color .2s; }
@media (hover: hover) { .ft__links a:hover { color: var(--green); } }
.ft__dl { display: grid; gap: 6px; margin-top: 14px; font-size: 14.5px; }
.ft__dl div { display: flex; gap: 12px; }
.ft__dl dt { width: 44px; flex: none; color: var(--mute); }
.ft__tel { font-family: var(--serif); font-size: 25px; color: var(--green-ink); letter-spacing: -0.01em; }
.ft__addr { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.ft__map { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--green); }
.ft__map .ico { width: 16px; height: 16px; }
.ft__biz { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 16px; font-size: 13px; color: var(--mute); }
.ft__legal { display: flex; gap: 16px; }
.ft__legal a b { color: var(--ink); }
.ft__credit a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tan); }
.openpill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.openpill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.openpill[data-state="open"] i { background: #2E9E6A; animation: pulse 2s infinite; }
.openpill[data-state="open"] { color: #1F7A50; }
.openpill--chip { font-weight: 500; font-size: 14.5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 158, 106, .5); } 70% { box-shadow: 0 0 0 8px rgba(46, 158, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 106, 0); } }
.dock { display: none; }

/* ---------------------------------------------------------------- 서브 페이지 머리 */
.phead { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 40px); }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--mute); margin-bottom: 22px; }
.crumb .ico { width: 14px; height: 14px; }
.crumb a { transition: color .2s; }
@media (hover: hover) { .crumb a:hover { color: var(--green); } }
.phead__t { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.2; letter-spacing: -0.03em; margin: 16px 0 18px; }
.phead__lead { font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 38em; }
.phead__ph { margin-top: clamp(28px, 4vw, 44px); aspect-ratio: 21 / 8; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.phead__ph img { width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }

/* ---------------------------------------------------------------- 소개 */
.letter__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.polaroid--sm { max-width: 300px; position: sticky; top: calc(var(--hd) + 40px); }
.letter__body { margin-top: 24px; }
.letter__body p { font-size: 17px; line-height: 1.9; color: var(--ink-2); margin-bottom: 16px; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { padding: 32px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.pcard__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; }
.pcard h3 { font-family: var(--serif); font-size: 22px; margin: 22px 0 10px; line-height: 1.4; }
.pcard p { font-size: 15.5px; color: var(--ink-2); }
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.space__ph { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.space__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) { .space:hover .space__ph img { transform: scale(1.05); } }
.space h3 { font-family: var(--serif); font-size: 22px; margin: 18px 0 6px; }
.space p { font-size: 15px; color: var(--ink-2); }
.own__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.own__grid p { font-size: 17px; color: var(--ink-2); margin: 20px 0 24px; }
.own__ph { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------- 수업 과정 */
.subnav { position: sticky; top: var(--hd); z-index: 40; background: rgba(247, 243, 234, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav__in { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 15px 16px; font-size: 15.5px; font-weight: 600; color: var(--mute); white-space: nowrap; transition: color .25s; }
.subnav a .ico { width: 18px; height: 18px; }
.subnav a.is-on { color: var(--green); }
.subnav__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w, 0); background: var(--green); transform: translateX(var(--x, 0)); transition: transform .45s var(--ease), width .45s var(--ease); }
.course { padding: clamp(64px, 8vw, 108px) 0 0; scroll-margin-top: calc(var(--hd) + 60px); }
.course + .course { margin-top: clamp(16px, 3vw, 32px); }
.course__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.course__grid--rev .course__head { order: 2; }
.course__stage { display: flex; align-items: center; gap: 10px; }
.course__stage > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--paper-2); color: var(--green); }
.course__stage .hand { font-size: 28px; color: var(--tan-ink); }
.course__stage b { font-size: 14px; color: var(--green); font-weight: 700; margin-left: 4px; }
.course__lead { font-size: 18px; color: var(--ink-2); margin: 18px 0 20px; }
.course__ph { aspect-ratio: 4 / 3; }
.course__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.ccol { padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.ccol h3 { margin-bottom: 14px; }
.ccol li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15.5px; }
.ccol li .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--green); }
.ccol p { font-size: 15.5px; color: var(--ink-2); }
.ccol--who { background: var(--paper-2); border-color: transparent; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-sec { margin-top: clamp(64px, 8vw, 104px); }
.flow__i { position: relative; text-align: center; padding: 0 8px; }
.flow__i:not(:last-child)::after { content: ""; position: absolute; top: 33px; right: -18px; width: 16px; height: 2px; background: var(--tan); }
.flow__ic { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; border: 1.5px solid var(--tan); background: var(--paper); color: var(--green); }
.flow__ic .ico { width: 28px; height: 28px; }
.flow__i b { display: block; font-family: var(--serif); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.flow__i p { font-size: 15px; color: var(--ink-2); }
.info-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; padding: clamp(28px, 4vw, 44px); border: 1.5px solid var(--tan); border-radius: 8px; background: var(--card); }
.info-box h2 { margin: 14px 0 12px; }
.info-box p { color: var(--ink-2); }
.info-box__dl { display: grid; gap: 4px; align-content: center; }
.info-box__dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-box__dl dt { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); }
.info-box__dl .ico { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- 갤러리 + 라이트박스 */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter__b { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .16s var(--ease); }
.filter__b:active { transform: scale(.96); }
.filter__b[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
@media (hover: hover) { .filter__b:hover:not([aria-pressed="true"]) { border-color: var(--green); color: var(--green); } }
.gal { columns: 3 280px; column-gap: 16px; }
.gi { break-inside: avoid; margin: 0 0 16px; }
.gi.is-hidden { display: none; }
.gi__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.gi__btn img { width: 100%; transition: transform .8s var(--ease); }
.gi__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 14px 12px; background: linear-gradient(to top, rgba(18, 26, 22, .78), transparent); color: #fff; font-size: 13.5px; line-height: 1.5; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gi__cap b { display: block; font-size: 12px; letter-spacing: .06em; color: var(--cream); }
.gi__zoom { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--green); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.gi__zoom .ico { width: 18px; height: 18px; }
@media (hover: hover) {
  .gi__btn:hover img { transform: scale(1.04); }
  .gi__btn:hover .gi__cap { opacity: 1; transform: none; }
  .gi__btn:hover .gi__zoom { transform: scale(1); }
}
@media (hover: none) { .gi__cap { opacity: 1; transform: none; padding-top: 30px; } }
.gi.is-new { animation: gi-in .6s var(--ease) both; }
@keyframes gi-in { from { opacity: 0; transform: translateY(16px); } }
.gal__more { margin-top: 24px; font-size: 15px; color: var(--ink-2); text-align: center; }
.gal__more a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 20, 17, .94); color: #fff; overflow: hidden; }
.lb[open] { display: grid; place-items: center; animation: lb-fade .3s var(--ease); }
.lb::backdrop { background: transparent; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 64px 72px; }
.lb__fig img { max-width: min(1400px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 4px; animation: lb-in .4s var(--ease); }
.lb__fig figcaption { font-size: 14.5px; opacity: .85; text-align: center; max-width: 40em; }
.lb__x, .lb__nav { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s, transform .16s var(--ease); }
.lb__x:active, .lb__nav:active { transform: scale(.94); }
@media (hover: hover) { .lb__x:hover, .lb__nav:hover { background: rgba(255, 255, 255, .24); } }
.lb__x { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; margin-top: -25px; }
.lb__next { right: 16px; top: 50%; margin-top: -25px; }
.lb__count { position: absolute; top: 28px; left: 24px; font-size: 14px; opacity: .7; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }

/* ---------------------------------------------------------------- 소식 */
.nlist { display: grid; gap: 16px; min-height: 120px; }
.nlist__loading { display: flex; justify-content: center; gap: 8px; padding: 40px; }
.nlist__loading span { width: 10px; height: 10px; border: 1.5px solid var(--tan); animation: load 1s var(--ease) infinite; }
.nlist__loading span:nth-child(2) { animation-delay: .15s; } .nlist__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes load { 50% { transform: translateY(-8px) rotate(45deg); background: var(--tan); } }
.ncard { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); animation: gi-in .6s var(--ease) both; animation-delay: var(--d, 0s); }
.ncard--img { grid-template-columns: 260px 1fr; }
.ncard__img { border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; }
.ncard__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.ncard__k { padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--green); color: var(--green); }
.ncard__k--이벤트 { background: var(--tan); border-color: var(--tan); color: var(--ink); }
.ncard__k--모집 { background: var(--green); color: #fff; }
.ncard__pin { color: var(--pen); font-weight: 700; }
.ncard h3 { font-family: var(--serif); font-size: 22px; line-height: 1.4; margin: 10px 0; }
.ncard__body { font-size: 15.5px; color: var(--ink-2); white-space: pre-line; }
.nlist__empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line-2); border-radius: 8px; color: var(--ink-2); }
.nlist__empty b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }

/* ---------------------------------------------------------------- 오시는 길 */
.loc__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.loc__map { position: relative; aspect-ratio: 4 / 3; min-height: 320px; background: var(--paper-2); }
.loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc__pin { position: absolute; top: 18px; left: 18px; padding: 6px 14px 4px; background: var(--paper); color: var(--pen); font-size: 25px; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4); }
.loc__info { display: grid; gap: 26px; }
.loc__lbl { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--green); }
.loc__lbl .ico { width: 17px; height: 17px; }
.loc__v { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin: 8px 0 14px; }
.loc__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mapbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-size: 15px; font-weight: 600; transition: transform .16s var(--ease), border-color .2s; }
.mapbtn:active { transform: scale(.97); }
@media (hover: hover) { .mapbtn:hover { border-color: var(--green); } }
.mapbtn b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: 13px; font-weight: 800; color: #fff; background: #03C75A; }
.mapbtn--kakao b { background: #FEE500; color: #191919; }
.mapbtn .ico { width: 18px; height: 18px; color: var(--green); }
.loc__dl { border-top: 1px solid var(--line); }
.loc__dl div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.loc__dl dt { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); padding-top: 2px; }
.loc__dl .ico { width: 17px; height: 17px; }
.loc__dl dd { font-size: 15.5px; }
.loc__dl a { color: var(--green); font-weight: 600; }
.loc__dl .openpill { margin-top: 6px; }
.loc__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.loc__photos figure { margin: 0; }
.loc__photos img { aspect-ratio: 3 / 2; border-radius: var(--r); }
.loc__photos figcaption { margin-top: 10px; font-size: 14.5px; color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--dock)); z-index: 120; padding: 12px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; transform: translate(-50%, 20px); opacity: 0; transition: transform .35s var(--ease), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------------- 상담 신청 */
.con__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.con__side { position: sticky; top: calc(var(--hd) + 24px); }
.bigcall { display: grid; grid-template-columns: 52px 1fr 20px; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 10px; border-radius: 8px; background: var(--green); color: #fff; transition: transform .2s var(--ease), box-shadow .3s; }
.bigcall:active { transform: scale(.98); }
@media (hover: hover) { .bigcall:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -20px rgba(26, 55, 46, .8); } }
.bigcall small { display: block; font-size: 13px; opacity: .8; }
.bigcall b { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.bigcall__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.bigcall--sms { background: var(--paper-2); color: var(--ink); }
.bigcall--sms .bigcall__ic { background: #fff; color: var(--green); }
.con__dl { margin-top: 18px; border-top: 1px solid var(--line); }
.con__dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.con__dl dt { font-size: 13.5px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.con__dl dd { font-size: 15.5px; }
.con__hand { margin-top: 18px; font-size: 30px; color: var(--pen); transform: rotate(-3deg); }
.form { padding: clamp(22px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px -48px rgba(31, 43, 37, .5); }
.form__head { margin-bottom: 24px; }
.form__head p { margin-top: 6px; font-size: 14px; color: var(--mute); }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 9px; font-size: 15px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #FFFDF8; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #646B66; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(36, 73, 61, .12); }
.field.is-bad input, .field.is-bad .chip span { border-color: var(--pen); }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 99px; background: #FFFDF8; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease); user-select: none; }
.chip span:active { transform: scale(.95); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--tan-2); outline-offset: 2px; }
@media (hover: hover) { .chip span:hover { border-color: var(--green); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { margin: 6px 0 20px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15.5px; font-weight: 600; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1.5px solid var(--line-2); border-radius: 6px; background: #FFFDF8; transition: background-color .2s, border-color .2s; }
.check__box .ico { width: 16px; height: 16px; color: #fff; stroke-width: 3; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.check input:checked + .check__box { background: var(--green); border-color: var(--green); }
.check input:checked + .check__box .ico { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--tan-2); outline-offset: 2px; }
.agree details { margin: 8px 0 0 36px; font-size: 14px; color: var(--mute); }
.agree summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.agree details p { margin-top: 8px; padding: 12px 14px; background: var(--paper); border-radius: var(--r); font-size: 13.5px; line-height: 1.7; }
.agree details a { color: var(--green); text-decoration: underline; }
.form__err { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r); background: #FBEAE6; color: #9E2F1C; font-size: 14.5px; font-weight: 600; }
.form__err[hidden] { display: none; }
.btn__label { display: inline-flex; align-items: center; gap: 9px; transition: opacity .2s; }
.btn__spin { position: absolute; width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; opacity: 0; }
.form button[type="submit"] { position: relative; }
.form.is-loading .btn__label { opacity: 0; }
.form.is-loading .btn__spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { padding: clamp(36px, 6vw, 60px) 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.done[hidden] { display: none; }
.done__stamp { width: 150px; margin: 0 auto 14px; color: var(--pen); transform: rotate(-10deg); }
.done p { margin: 10px auto 24px; max-width: 26em; color: var(--ink-2); }
.done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------------------------------------------------------------- 법적 고지 / 404 */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--serif); font-size: 21px; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 8px 0; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose a { color: var(--green); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.prose th { background: var(--paper-2); font-weight: 700; }
.prose__end { margin-top: 32px; }
.nf { text-align: center; }
.nf .hero__cta { justify-content: center; }
.nf .phead__lead { margin-inline: auto; }

/* ---------------------------------------------------------------- 페이지 전환 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.dock { view-transition-name: dock; }

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 1100px) {
  .hd__bar { gap: 16px; }
  .nav a { padding: 10px 9px; font-size: 15px; }
  .hd__tel span { display: none; }
  .hd__tel { width: 42px; padding: 0; }
}
@media (max-width: 960px) {
  :root { --hd: 64px; --dock: calc(62px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .hd__act { margin-left: auto; }
  .burger { display: block; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: grid; grid-template-columns: 1.5fr 1fr 1fr; height: var(--dock); padding-bottom: env(safe-area-inset-bottom); background: rgba(247, 243, 234, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: transform .16s var(--ease); -webkit-tap-highlight-color: transparent; }
  .dock a:active { transform: scale(.94); }
  .dock .ico { width: 21px; height: 21px; }
  .dock__call { flex-direction: row !important; gap: 8px !important; margin: 8px; border-radius: var(--r); background: var(--green); color: #fff !important; font-size: 15px !important; }
  .toast { bottom: calc(16px + var(--dock)); }
  .story__grid, .lib__grid, .teacher__grid, .faq-sec__grid, .letter__grid, .own__grid, .loc__grid, .con__grid { grid-template-columns: 1fr; }
  .story__art { position: relative; top: 0; max-width: 360px; width: 100%; margin: 0 auto; }
  .polaroid--sm, .con__side { position: relative; top: 0; }
  .teacher__grid .polaroid { max-width: 320px; }
  .stats__row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sigs__grid, .pcards { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .steps__line { display: none; }
  .cta__stamp { top: 22px; right: 18px; width: 96px; transform: rotate(-14deg); }
  .cta__in { padding-top: 120px; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
  .course__grid--rev .course__head { order: 0; }
  .course__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .sec::before { width: calc(100% - 32px); }
  .hd__cta { display: none; }
  .brand__icon { height: 36px; }
  .brand__word { height: 25px; }
  .hero__ph { aspect-ratio: 4 / 3; }
  .hero__cta .btn { width: 100%; }
  .hero__tag { font-size: 21px; left: 12px; bottom: 12px; }
  .phead__ph { aspect-ratio: 16 / 10; }
  .cards3, .notes, .spaces, .course__cols { grid-template-columns: 1fr; }
  .grow { display: none; }
  .flow { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .flow__i::after { display: none; }
  .info-box { grid-template-columns: 1fr; }
  .ncard--img { grid-template-columns: 1fr; }
  .loc__photos { grid-template-columns: 1fr; }
  .shelf__row { justify-content: flex-start; overflow-x: auto; padding-top: 24px; height: 200px; scrollbar-width: none; }
  .shelf__row::-webkit-scrollbar { display: none; }
  .lib__b { width: 48%; }
  .prose table { display: block; overflow-x: auto; }
  .lb__fig { padding: 70px 12px 80px; }
  .lb__nav { top: auto; bottom: 18px; margin-top: 0; }
  .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; }
  .stat { padding-right: 8px; }
  .stat + .stat { padding-left: 14px; }
  .cells--num { font-size: 26px; }
  .loc__btns { grid-template-columns: 1fr 1fr; }
  .loc__btns .mapbtn:last-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- 감속 모션 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-mask .w > span, .js .rv-clip, .js .rv-clip img, .js .shelf .bk, .js .sig__note, .js .seal, .js .rv .cells i, .js .stat .cells i { opacity: 1; transform: none; clip-path: none; }
  .js .pen path { stroke-dashoffset: 0; }
  .js [data-scrub] { --p: 1; }
  .js .cta__stamp .stamp { opacity: .92; transform: none; }
  .marq__track { animation: none; }
  .hero__ph img, .phead__ph img { height: 100%; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
