/* 月下茶室 / 월하다실 — memorial-classic SIGNATURE
 * 차실 표구 + 두루마리 + SVG 서예 stroke draw + 차시 verse rotate + 향 연기 cursor
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;700;900&family=Source+Serif+Pro:wght@300;400;700&family=Nanum+Pen+Script&family=Inter:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg-base:   #e8d8b8;       /* warm beige */
  --bg-paper:  #f0e3c8;       /* lighter aged */
  --bg-warm:   #ede0c8;
  --bg-deep:   #4a3520;        /* dark brown */
  --ink:       #4a3520;
  --ink-soft:  #6b4f37;
  --muted:     #9a826a;

  --accent:    #8b1a1a;        /* 적단 cinnabar */
  --wood:      #8b6f4f;        /* tea wood */
  --gold:      #b8860b;
  --green:     #5d6f4f;        /* tea green */

  --display:   'Noto Serif KR', 'Source Serif Pro', serif;
  --serif:     'Source Serif Pro', 'Noto Serif KR', serif;
  --korean:    'Noto Serif KR', serif;
  --hanja:     'Noto Serif TC', 'Noto Serif KR', serif;
  --script:    'Nanum Pen Script', cursive;
  --sans:      'Inter', 'Pretendard', system-ui, sans-serif;

  --gap: 24px;
  --frame: 1px solid var(--ink);
  --frame-strong: 2px solid var(--ink);

  --z-cursor: 50;
  --z-nav: 80;
  --z-overlay: 100;
  --z-banner: 120;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--korean);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  background-image:
    radial-gradient(ellipse 1000px 500px at 30% 0%, rgba(139,26,26,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 80%, rgba(184,134,11,0.05) 0%, transparent 55%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--bg-paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 16px;
  width: 100%;
  font-family: var(--korean);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

/* ── Demo banner ──────────────────────────────────── */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-banner);
  background: var(--bg-deep); color: var(--bg-paper);
  font-family: var(--sans); font-size: 12px;
  padding: 8px 16px; text-align: center; letter-spacing: 0.06em;
}
.demo-banner a { color: var(--accent); text-decoration: underline; font-weight: 600; }
body.has-banner { padding-top: 32px; }

/* ── Top Centered Nav ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--bg-base);
  border-bottom: 1px solid var(--ink);
}
body.has-banner .nav { top: 32px; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.nav-brand {
  font-family: var(--display); font-weight: 900;
  display: inline-flex; align-items: baseline; gap: 14px;
}
.nav-brand .hanja {
  font-family: var(--hanja); font-weight: 900; font-size: 32px;
  letter-spacing: 0.16em; color: var(--ink);
}
.nav-brand .ko { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  color: var(--ink); position: relative; padding: 4px 0;
  letter-spacing: 0.04em;
}
.nav-link .hanja { font-family: var(--hanja); font-weight: 700; color: var(--accent); margin-right: 6px; }
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px; background: var(--accent);
  transform: translateX(-50%);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after { width: 100%; }
.nav-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--ink); align-items: center; justify-content: center; }

/* ── Section base ─────────────────────────────────── */
.section { padding: 100px 24px; border-top: 1px solid var(--ink-soft); position: relative; }
.section.no-border { border-top: 0; }
.container { max-width: 1100px; margin: 0 auto; }

.sec-head {
  text-align: center; margin-bottom: 48px; padding: 0 24px;
}
.sec-num {
  font-family: var(--hanja); font-weight: 700; font-size: 32px;
  color: var(--accent); letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.sec-eyebrow {
  font-family: var(--sans); font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.24em;
  text-transform: uppercase; margin-bottom: 14px;
}
.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em; line-height: 1.25;
}
.sec-title .hanja { font-family: var(--hanja); margin-right: 10px; color: var(--accent); }
.sec-deck {
  font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-soft);
  margin: 18px auto 0; max-width: 640px; line-height: 1.85;
}

/* ── Frame element (표구) ─────────────────────────── */
.frame {
  border: 1px solid var(--ink);
  background: var(--bg-paper);
  position: relative;
  padding: 28px;
}
.frame::before, .frame::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ── Hero — 차실 표구 ─────────────────────────────── */
#hero { padding: 0; position: relative; min-height: 100vh; overflow: hidden; border-top: 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(232,216,184,0.4) 0%, rgba(232,216,184,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  min-height: 100vh; padding: 100px 24px 80px;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 32px;
}
.hero-frame {
  background: rgba(240,227,200,0.85);
  border: 2px solid var(--ink);
  padding: 60px 80px;
  position: relative;
  max-width: 720px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.hero-frame::before, .hero-frame::after {
  content: ''; position: absolute;
  width: 28px; height: 28px; border: 3px solid var(--accent);
}
.hero-frame::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.hero-frame::after  { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

.hero-hanja {
  font-family: var(--hanja); font-weight: 900;
  font-size: clamp(72px, 10vw, 144px);
  color: var(--ink); letter-spacing: 0.24em; line-height: 1;
  display: flex; gap: 0;
}
.hero-hanja span {
  display: inline-block; padding: 0 8px;
  opacity: 0; transform: translateY(20px);
  animation: charDraw 1.2s ease-out forwards;
}
.hero-hanja span:nth-child(1) { animation-delay: 0.1s; }
.hero-hanja span:nth-child(2) { animation-delay: 0.5s; }
.hero-hanja span:nth-child(3) { animation-delay: 0.9s; }
.hero-hanja span:nth-child(4) { animation-delay: 1.3s; }
@keyframes charDraw { to { opacity: 1; transform: translateY(0); } }

.hero-korean {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink-soft); letter-spacing: -0.01em;
}
.hero-deck {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-soft); max-width: 540px; line-height: 1.85;
}
.hero-meta {
  font-family: var(--hanja); font-size: 14px;
  color: var(--accent); letter-spacing: 0.24em;
  margin-top: 12px; font-weight: 700;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 14px 28px;
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--bg-paper); color: var(--ink);
  transition: background .25s, color .25s;
  letter-spacing: 0.06em;
}
.btn-primary { background: var(--ink); color: var(--bg-paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--bg-warm); }

/* ── Heritage — 두루마리 unfold ───────────────────── */
.heritage-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
.heritage-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink);
  padding: 0;
  display: flex; flex-direction: column;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.heritage-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(74,53,32,0.15); }
.heritage-img {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ink-soft); filter: sepia(0.18);
}
.heritage-info { padding: 16px 18px; }
.heritage-year {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--accent); margin-bottom: 6px;
}
.heritage-body { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ── Master — 인장 + 한문 약력 ────────────────────── */
.master-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.master-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .35s;
  cursor: pointer;
}
.master-card:hover { transform: translateY(-3px); }
.master-card::after {
  content: '印'; position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: var(--accent); color: var(--bg-paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hanja); font-weight: 700; font-size: 14px;
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 1.5px var(--bg-paper) inset;
}
.master-img {
  aspect-ratio: 4/5; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ink-soft); filter: sepia(0.12);
}
.master-info { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.master-hanja {
  font-family: var(--hanja); font-weight: 700; font-size: 14px;
  color: var(--accent); letter-spacing: 0.06em;
}
.master-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.master-role {
  font-family: var(--sans); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.master-subject { font-size: 13px; color: var(--ink); margin-top: 6px; font-style: italic; }
.master-prev { font-family: var(--sans); font-size: 11px; color: var(--muted); }

/* ── Curriculum — 6 클래스 frame grid ─────────────── */
.curriculum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.curriculum-card {
  border: 1px solid var(--ink);
  background: var(--bg-paper);
  display: grid; grid-template-columns: 140px 1fr;
  cursor: pointer;
  transition: background .25s;
}
.curriculum-card:hover { background: var(--bg-warm); }
.curriculum-img { background-size: cover; background-position: center; filter: sepia(0.1); }
.curriculum-info { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.curriculum-hanja {
  font-family: var(--hanja); font-weight: 700; font-size: 24px;
  color: var(--accent); letter-spacing: 0.06em;
}
.curriculum-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.curriculum-body { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.curriculum-meta {
  display: flex; justify-content: space-between; margin-top: auto;
  font-family: var(--sans); font-size: 12px; color: var(--ink); padding-top: 10px;
  border-top: 1px dotted var(--ink-soft);
}
.curriculum-fee { color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 14px; }

/* ── Studio — 차실 풍경 grid ──────────────────────── */
.studio-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 480px; }
.studio-card {
  background-size: cover; background-position: center;
  border: 1px solid var(--ink);
  position: relative; overflow: hidden;
  transition: transform .4s;
}
.studio-card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.studio-card:hover { transform: scale(1.03); z-index: 2; }
.studio-card-label {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(74,53,32,0.92); color: var(--bg-paper);
  font-family: var(--hanja); font-size: 12px;
  padding: 6px 10px;
  letter-spacing: 0.04em; font-weight: 600;
}

/* ── Alumni Works — wall ─────────────────────────── */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink);
  padding: 0;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .35s;
}
.work-card:hover { transform: translateY(-3px) rotate(-0.5deg); }
.work-img {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ink-soft); filter: sepia(0.1);
}
.work-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.work-name { font-family: var(--display); font-weight: 700; font-size: 13px; }
.work-work { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.work-class { font-family: var(--hanja); font-size: 10px; color: var(--accent); letter-spacing: 0.06em; font-weight: 600; }

/* ── Process 5단 ──────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--ink); }
.process-card {
  padding: 28px 18px;
  border-right: 1px solid var(--ink-soft);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-paper);
  text-align: center;
  position: relative;
  transition: background .3s;
}
.process-card:last-child { border-right: 0; }
.process-card:hover { background: var(--bg-warm); }
.process-hanja {
  font-family: var(--hanja); font-weight: 900;
  font-size: 56px;
  color: var(--accent); line-height: 1;
}
.process-name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.process-body { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-top: 4px; }

/* ── Verse 차시 rotate ────────────────────────────── */
.verse-card {
  background: var(--bg-paper);
  border: 2px solid var(--ink);
  padding: 60px 56px;
  text-align: center;
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
}
.verse-card::before, .verse-card::after {
  content: ''; position: absolute;
  width: 32px; height: 32px;
  border: 3px solid var(--accent);
}
.verse-card::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.verse-card::after  { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

.verse-hanja {
  font-family: var(--hanja); font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.16em; line-height: 1.7;
  color: var(--ink);
}
.verse-korean {
  font-family: var(--display); font-style: italic;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-soft); line-height: 1.85;
}
.verse-author {
  font-family: var(--hanja); font-size: 13px;
  color: var(--accent); letter-spacing: 0.16em; font-weight: 700;
  border-top: 1px solid var(--ink-soft); padding-top: 14px;
  width: 240px;
}
.verse-dots { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.verse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); opacity: 0.3; cursor: pointer; transition: opacity .25s, background .25s; }
.verse-dot.active { opacity: 1; background: var(--accent); }

/* ── Press ────────────────────────────────────────── */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.press-card {
  border: 1px solid var(--ink);
  background: var(--bg-paper);
  display: grid; grid-template-columns: 1fr 2fr;
  overflow: hidden;
}
.press-img { background-size: cover; background-position: center; border-right: 1px solid var(--ink); filter: sepia(0.1); }
.press-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.press-source {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--accent); letter-spacing: 0.08em;
  border-bottom: 1px solid var(--ink-soft); padding-bottom: 10px;
}
.press-quote { font-family: var(--korean); font-style: italic; font-size: 14px; color: var(--ink); line-height: 1.85; }

/* ── CTA — 한지 신청서 ────────────────────────────── */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.cta-pane { padding: 36px; }
.cta-pane.left {
  background: var(--bg-deep); color: var(--bg-paper);
  border-right: 1px solid var(--ink);
  position: relative;
}
.cta-pane.left::after {
  content: ''; position: absolute; top: 16px; right: 16px;
  width: 60px; height: 60px;
  background: var(--accent); color: var(--bg-paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hanja); font-weight: 900; font-size: 22px;
  content: '入學';
  padding: 8px;
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 2px var(--bg-deep) inset;
}
.cta-headline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 16px;
}
.cta-headline .hanja { font-family: var(--hanja); margin-right: 12px; color: var(--accent); }
.cta-body { font-size: 14px; color: var(--bg-paper); opacity: 0.85; line-height: 1.85; margin-bottom: 18px; }
.cta-list { display: flex; flex-direction: column; gap: 8px; font-family: var(--korean); font-size: 13px; }
.cta-list-item { padding: 10px 0; border-bottom: 1px solid rgba(240,227,200,0.2); color: var(--bg-paper); }
.cta-list-item .hanja { color: var(--accent); margin-right: 8px; font-family: var(--hanja); font-weight: 700; }
.cta-form { display: flex; flex-direction: column; gap: 14px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label {
  display: block;
  font-family: var(--sans); font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 6px; font-weight: 700;
}
.field-label .hanja { color: var(--accent); margin-right: 6px; font-family: var(--hanja); font-weight: 700; }
.cta-submit {
  width: 100%; padding: 16px;
  background: var(--accent); color: var(--bg-paper);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  border: 1px solid var(--accent);
  letter-spacing: 0.06em;
  transition: background .3s;
}
.cta-submit:hover { background: var(--bg-deep); border-color: var(--bg-deep); }

/* ── Footer 印 ────────────────────────────────────── */
.footer { background: var(--bg-deep); color: var(--bg-paper); padding: 48px 24px 32px; margin-top: 60px; border-top: 4px double var(--ink); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand-hanja { font-family: var(--hanja); font-weight: 900; font-size: 32px; color: var(--bg-paper); letter-spacing: 0.08em; }
.footer-brand-ko { font-size: 14px; color: var(--accent); margin-top: 6px; }
.footer-tagline { font-family: var(--korean); font-style: italic; font-size: 13px; color: var(--bg-paper); margin-top: 4px; opacity: 0.85; }
.footer-imprint { font-family: var(--sans); font-size: 11px; color: var(--bg-paper); opacity: 0.6; margin-top: 14px; line-height: 1.85; border-top: 1px solid rgba(240,227,200,0.2); padding-top: 12px; }
.footer h4 { font-family: var(--hanja); font-weight: 700; color: var(--accent); font-size: 16px; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-list a, .footer-list span { font-family: var(--korean); font-size: 13px; color: var(--bg-paper); transition: color .2s; }
.footer-list a:hover { color: var(--accent); }
.footer-meta {
  max-width: 1100px; margin: 24px auto 0; padding: 16px 24px 0;
  border-top: 1px solid rgba(240,227,200,0.3);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 11px; color: var(--bg-paper); opacity: 0.85;
}
.footer-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--accent); color: var(--bg-paper);
  font-family: var(--hanja); font-weight: 900; font-size: 22px;
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 2px var(--bg-deep) inset;
}

/* ── Cursor 향 연기 (sig #5) ───────────────────────── */
.smoke-wrap { position: fixed; pointer-events: none; z-index: var(--z-cursor); inset: 0; overflow: hidden; }
.smoke {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,130,106,0.55) 0%, transparent 70%);
  opacity: 0;
  animation: smokeRise 3s ease-out forwards;
}
@keyframes smokeRise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(var(--dx), -120px) scale(2.2); }
}
@media (pointer: coarse) { .smoke-wrap { display: none; } }

/* ── Reveal — slow ink wash (sig #1) ─────────────── */
.reveal { opacity: 0; filter: blur(6px); transition: opacity 1.2s ease, filter 1.4s ease; }
.reveal.in { opacity: 1; filter: blur(0); }

/* ── Drawer ───────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--bg-paper);
  border-left: 1px solid var(--ink);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  padding: 80px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer.open { transform: translateX(0); }
.drawer a { font-family: var(--display); font-weight: 700; font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.drawer a .hanja { color: var(--accent); margin-right: 8px; font-family: var(--hanja); }
.drawer-back { position: fixed; inset: 0; background: rgba(74,53,32,0.5); z-index: calc(var(--z-overlay) - 1); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-back.show { opacity: 1; pointer-events: auto; }

/* PC nav user + Drawer X (T10 茶室 명조) */
.nav-cta { background: var(--ink); color: var(--bg-base) !important; padding: 6px 14px; }
.nav-user { display: inline-flex; gap: 8px; align-items: center; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--ink); }
.nav-user-link { font-family: var(--display); color: var(--ink); font-size: 13px; padding: 6px 10px; }
.nav-user-cta { border: 1px solid var(--ink); }
.nav-user-cta:hover { background: var(--ink); color: var(--bg-base) !important; }
.drawer-close {
  position: absolute; top: 60px; right: 24px;
  width: 48px; height: 48px;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 30px; font-weight: 300;
  color: var(--ink); line-height: 1; cursor: pointer;
  border: 1px solid var(--ink);
  transition: transform .2s, background .2s; z-index: 2;
}
body.has-banner .drawer-close { top: 80px; }
.drawer-close:hover { background: var(--ink); color: var(--bg-base); transform: rotate(90deg); }
.drawer-divider { width: 60%; height: 1px; background: var(--ink); opacity: 0.3; margin: 12px auto; }
.drawer-user-link { font-family: var(--display) !important; color: var(--accent) !important; padding: 12px 0 !important; font-size: 18px !important; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .heritage-strip, .master-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .curriculum-grid, .reviews-grid, .cta-grid, .press-grid { grid-template-columns: 1fr; }
  .cta-pane.left { border-right: 0; border-bottom: 1px solid var(--ink); }
  .studio-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .studio-card:nth-child(1) { grid-column: 1; grid-row: auto; }
  .studio-card { aspect-ratio: 16/9; }
  .process-grid { grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); }
  .process-card { border-right: 1px solid var(--ink-soft); border-bottom: 1px solid var(--ink-soft); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { flex-direction: row; justify-content: space-between; }
  .heritage-strip, .master-grid, .works-grid, .process-grid { grid-template-columns: 1fr; }
  .curriculum-card { grid-template-columns: 1fr; }
  .curriculum-img { aspect-ratio: 16/9; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 56px 18px; }
  .hero-frame { padding: 36px 24px; }
  .hero-hanja { font-size: 56px; }
  .verse-card { padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .smoke-wrap { display: none !important; }
}


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: memorial-classic
   effects: R, O
   =========================================== */
/* === retrofit v1.27 motionsites badge-orbit (MIT) === */
@media (prefers-reduced-motion: no-preference) {
  .stat-grid, .badge-row, [class*="-stats"], [class*="-badges"] {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .stat-grid:hover, .badge-row:hover, [class*="-stats"]:hover, [class*="-badges"]:hover {
    transform: rotate(0.5deg);
  }
}/* === retrofit v1.27 motionsites mask-reveal (MIT) === */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section h2, .section h3, [class*="-section"] h2, [class*="-section"] h3, h2[class*="-title"] {
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 100%);
      mask-image: linear-gradient(180deg, #000 0%, #000 100%);
      -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
      -webkit-mask-position: 200% 0; mask-position: 200% 0;
      animation: rt-mask-sweep linear forwards;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
    @keyframes rt-mask-sweep { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
  }
}