/* 墨香書堂 — hanji-mukgrim SIGNATURE
 * 세로쓰기 옛 책 + 한지 grain + 먹 ink reveal + 인장 도장
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;700;900&family=Nanum+Myeongjo:wght@400;700;800&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:   #f5edd9;       /* hanji beige */
  --bg-paper:  #ede0c8;       /* darker hanji */
  --bg-warm:   #faf2dc;
  --ink:       #1a1410;        /* mukmuk */
  --ink-soft:  #4a3f37;
  --muted:     #8a7d72;

  --accent:    #8b1a1a;        /* 적단 cinnabar */
  --accent-soft: #c9a878;      /* aged paper trim */
  --gold:      #b8860b;

  --display:  'Noto Serif KR', 'Nanum Myeongjo', serif;
  --serif:    'Nanum Myeongjo', '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;

  --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.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 800px 400px at 30% 10%, rgba(139,26,26,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 80% 80%, rgba(184,134,11,0.05) 0%, transparent 55%);
  word-break: keep-all;
}
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-warm);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  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(--ink); color: var(--bg-base);
  font-family: var(--sans); font-size: 12px;
  padding: 8px 16px; text-align: center; letter-spacing: 0.06em;
}
.demo-banner a { color: var(--accent-soft); text-decoration: underline; font-weight: 600; }
body.has-banner { padding-top: 32px; }

/* ── Top Brush Stroke 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: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--display); font-weight: 900;
}
.nav-brand .hanja {
  font-size: 28px; color: var(--ink); letter-spacing: 0.08em;
}
.nav-brand .ko {
  font-size: 14px; color: var(--ink-soft); font-weight: 400;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--display); font-size: 15px; font-weight: 500;
  color: var(--ink); position: relative; padding: 4px 0;
}
.nav-link .hanja {
  font-family: var(--hanja); font-weight: 700; margin-right: 6px;
  color: var(--accent);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  background: var(--ink); color: var(--bg-base);
  padding: 8px 18px;
  border: 1px solid var(--ink);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.nav-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--ink); align-items: center; justify-content: center; }

/* ── Section base ─────────────────────────────────── */
.section { padding: 80px 24px; border-top: 1px solid var(--ink); position: relative; }
.section.no-border { border-top: 0; }
.container { max-width: 1200px; margin: 0 auto; }
.sec-head {
  display: flex; gap: 24px; align-items: baseline;
  border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 36px;
  flex-wrap: wrap;
}
.sec-num {
  font-family: var(--hanja); font-weight: 700; font-size: 36px;
  color: var(--accent);
}
.sec-eyebrow {
  font-family: var(--sans); font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sec-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.02em; line-height: 1.15;
  flex: 1; min-width: 0;
}
.sec-title .hanja { font-family: var(--hanja); margin-right: 12px; color: var(--accent); }
.sec-deck { font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-soft); margin-top: 14px; max-width: 720px; line-height: 1.65; width: 100%; }

/* ── 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.35;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,237,217,0.6) 0%, rgba(245,237,217,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  min-height: 100vh; padding: 120px 24px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 48px;
  align-items: center;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font-family: var(--hanja); font-weight: 900;
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: 0.16em; line-height: 1;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 20px;
}
.hero-vertical span {
  display: inline-block;
  opacity: 0; transform: translateX(20px);
  animation: heroChar .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-vertical span:nth-child(1) { animation-delay: 0.1s; }
.hero-vertical span:nth-child(2) { animation-delay: 0.3s; }
.hero-vertical span:nth-child(3) { animation-delay: 0.5s; }
.hero-vertical span:nth-child(4) { animation-delay: 0.7s; }
@keyframes heroChar {
  to { opacity: 1; transform: translateX(0); }
}
.hero-info { display: flex; flex-direction: column; gap: 20px; }
.hero-korean {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.hero-deck {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-soft); max-width: 480px; line-height: 1.7;
}
.hero-meta {
  font-family: var(--hanja); font-size: 13px;
  color: var(--accent); letter-spacing: 0.16em;
  border-top: 1px solid var(--ink-soft); padding-top: 14px;
  font-weight: 700;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 14px 26px;
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--bg-paper); color: var(--ink);
  transition: background .25s, color .25s;
}
.btn-primary { background: var(--ink); color: var(--bg-base); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--bg-warm); }

.hero-seal {
  position: absolute; right: 32px; bottom: 32px; z-index: 1;
  width: 80px; height: 80px;
  background: var(--accent); color: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hanja); font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.04em; border-radius: 6px;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 2px var(--bg-base) inset, 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Heritage — 옛 책 페이지 ──────────────────────── */
.heritage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.heritage-card {
  background: var(--bg-warm);
  border: 1px solid var(--ink);
  padding: 0;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .25s;
}
.heritage-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.heritage-img {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ink-soft);
  filter: sepia(0.15);
}
.heritage-info { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.heritage-year {
  font-family: var(--hanja); font-weight: 700; font-size: 16px;
  color: var(--accent); letter-spacing: 0.08em;
}
.heritage-body { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

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

/* ── Curriculum — 책 목차 (세로 ledger) ──────────── */
.curriculum-list { display: flex; flex-direction: column; gap: 0; }
.curriculum-row {
  display: grid; grid-template-columns: 100px 1fr auto auto;
  gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px dotted var(--ink);
  cursor: pointer; transition: background .25s, padding .25s;
}
.curriculum-row:hover { background: var(--bg-warm); padding-left: 16px; padding-right: 16px; }
.curriculum-row:last-child { border-bottom: 1px solid var(--ink); }
.curriculum-hanja {
  font-family: var(--hanja); font-weight: 800; font-size: 32px;
  color: var(--accent); letter-spacing: 0.04em;
}
.curriculum-info { display: flex; flex-direction: column; gap: 4px; }
.curriculum-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.curriculum-body { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.curriculum-meta { font-family: var(--sans); font-size: 12px; color: var(--ink); letter-spacing: 0.04em; white-space: nowrap; }
.curriculum-fee {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--accent); white-space: nowrap;
}

/* ── Special — 두루마리 (가로 strip) ──────────────── */
.special-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.special-card {
  background: var(--bg-warm);
  border: 1px solid var(--ink);
  display: flex; flex-direction: column;
  transition: transform .35s;
}
.special-card:hover { transform: translateY(-3px); }
.special-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border-bottom: 1px solid var(--ink); filter: sepia(0.1); }
.special-info { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.special-hanja { font-family: var(--hanja); font-weight: 700; color: var(--accent); font-size: 15px; }
.special-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.special-body { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* ── Alumni — 인장 stamp wall ─────────────────────── */
.alumni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.alumni-stamp {
  background: var(--bg-warm);
  border: 1px solid var(--ink);
  padding: 0;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .35s;
}
.alumni-stamp:hover { transform: rotate(-1deg) scale(1.02); }
.alumni-img {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ink); filter: sepia(0.1);
}
.alumni-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.alumni-name { font-family: var(--display); font-weight: 700; font-size: 14px; }
.alumni-school { font-size: 13px; color: var(--accent); font-weight: 600; }
.alumni-year { font-family: var(--hanja); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* ── Process — 5단 동양화 풍 ──────────────────────── */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--ink); }
.process-card {
  padding: 26px 18px;
  border-right: 1px solid var(--ink-soft);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-warm);
  position: relative;
}
.process-card:last-child { border-right: 0; }
.process-card::before {
  content: ''; position: absolute; bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  background-image: radial-gradient(circle, var(--accent) 0%, var(--accent) 70%, transparent 75%);
  border-radius: 50%;
  opacity: 0.18;
}
.process-hanja {
  font-family: var(--hanja); font-weight: 900; font-size: 44px;
  color: var(--accent); line-height: 1;
}
.process-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.process-body { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin-top: 4px; }

/* ── Verse — 한시 회전 ────────────────────────────── */
.verse-card {
  background: var(--bg-warm);
  border: 1px solid var(--ink);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
}
.verse-hanja {
  font-family: var(--hanja); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.12em; line-height: 1.5;
  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.65;
}
.verse-poet {
  font-family: var(--hanja); font-size: 13px;
  color: var(--accent); letter-spacing: 0.12em;
  font-weight: 600;
  border-top: 1px solid var(--ink-soft); padding-top: 12px;
  width: 200px;
}
.verse-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 18px;
}
.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); }

/* ── Reviews — 한지 편지 ──────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-warm);
  border: 1px solid var(--ink);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.review-card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 8px;
  background: repeating-linear-gradient(45deg, var(--ink) 0 6px, transparent 6px 12px);
  opacity: 0.2;
}
.review-name {
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.review-role {
  font-family: var(--hanja); font-size: 12px; color: var(--accent);
  letter-spacing: 0.06em; font-weight: 600;
}
.review-body { font-size: 14px; line-height: 1.75; color: var(--ink); }

/* ── CTA — 응시원서 ──────────────────────────────── */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); }
.cta-pane { padding: 36px; }
.cta-pane.left { background: var(--ink); color: var(--bg-base); border-right: 1px solid var(--ink); }
.cta-pane.left .sec-eyebrow { color: var(--accent-soft); }
.cta-headline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px;
}
.cta-body { font-size: 14px; color: var(--accent-soft); line-height: 1.7; margin-bottom: 18px; }
.cta-list { display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-size: 13px; }
.cta-list-item { color: var(--bg-base); padding: 10px 0; border-bottom: 1px solid rgba(245,237,217,0.2); }
.cta-list-item .hanja { color: var(--accent-soft); 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.12em; margin-bottom: 6px; font-weight: 700;
}
.cta-submit {
  width: 100%; padding: 14px;
  background: var(--accent); color: var(--bg-base);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  border: 1px solid var(--accent);
  letter-spacing: 0.06em;
  transition: background .25s;
}
.cta-submit:hover { background: var(--ink); border-color: var(--ink); }

/* ── Footer 印 ────────────────────────────────────── */
.footer { background: var(--ink); color: var(--bg-base); padding: 48px 24px 32px; margin-top: 60px; border-top: 4px double var(--ink); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.footer-brand-wrap {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-brand-hanja {
  font-family: var(--hanja); font-weight: 900; font-size: 32px;
  color: var(--bg-base); letter-spacing: 0.08em;
}
.footer-brand-ko { font-size: 14px; color: var(--accent-soft); }
.footer-tagline { font-style: italic; font-size: 13px; color: var(--bg-base); margin-top: 4px; opacity: 0.85; }
.footer-imprint { font-family: var(--sans); font-size: 11px; color: var(--accent-soft); margin-top: 14px; line-height: 1.7; border-top: 1px solid rgba(245,237,217,0.2); padding-top: 12px; }
.footer h4 { font-family: var(--hanja); font-weight: 700; color: var(--accent-soft); 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-base); transition: color .2s; }
.footer-list a:hover { color: var(--accent-soft); }
.footer-meta {
  max-width: 1200px; margin: 24px auto 0; padding: 16px 24px 0;
  border-top: 1px solid rgba(245,237,217,0.3);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 11px; color: var(--accent-soft); opacity: 0.85;
}
.footer-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--accent);
  font-family: var(--hanja); font-weight: 900; font-size: 22px;
  color: var(--bg-base);
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 2px var(--ink) inset;
}

/* ── Ink stamp click (sig #5) ─────────────────────── */
.ink-stamp {
  position: fixed; pointer-events: none; z-index: var(--z-cursor);
  width: 60px; height: 60px;
  margin-left: -30px; margin-top: -30px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hanja); font-weight: 900; font-size: 24px;
  color: var(--bg-base);
  border-radius: 6px;
  opacity: 0;
  animation: stampOut .55s ease-out;
}
@keyframes stampOut {
  0%   { opacity: 0; transform: scale(0.4) rotate(-30deg); }
  30%  { opacity: 0.95; transform: scale(1) rotate(-12deg); }
  100% { opacity: 0; transform: scale(1.4) rotate(-12deg); }
}

/* ── Reveal (ink bleed sig #1) ────────────────────── */
.reveal { opacity: 0; filter: blur(8px); transition: opacity 1s ease, filter 1.2s 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-base);
  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(26,20,16,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 (T9 한지·먹) */
.nav-user { display: inline-flex; gap: 8px; align-items: center; margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--ink); }
.nav-user-link { font-family: var(--hanja); color: var(--ink); font-size: 14px; padding: 6px 10px; }
.nav-user-cta { background: var(--ink); color: var(--bg-base) !important; padding: 6px 14px; }
.nav-user-cta:hover { background: var(--accent-red); }
.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(--hanja); 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 { color: var(--accent-red, #963f31) !important; padding: 12px 0 !important; font-size: 18px !important; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .heritage-grid, .faculty-grid, .alumni-grid, .special-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { 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); }
  .reviews-grid, .cta-grid { grid-template-columns: 1fr; }
  .cta-pane.left { border-right: 0; border-bottom: 1px solid var(--ink); }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-vertical { writing-mode: horizontal-tb; flex-direction: row; gap: 12px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .heritage-grid, .faculty-grid, .alumni-grid, .special-grid, .process-list { grid-template-columns: 1fr; }
  .curriculum-row { grid-template-columns: 60px 1fr; gap: 12px; }
  .curriculum-meta, .curriculum-fee { grid-column: 2; }
  .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-vertical { font-size: 56px; }
  .verse-card { padding: 32px 24px; min-height: 220px; }
}

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


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: hanji-mukgrim
   effects: M, T
   =========================================== */
/* === retrofit v1.27 motionsites cinematic-video (MIT) === */
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  /* Boost existing hero with cinematic gradient overlay */
  section.hero, section.cinematic-hero, .hero, [class*="-hero"]:first-of-type {
    position: relative;
  }
  section.hero::after, section.cinematic-hero::after, .hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
    opacity: 0.6;
  }
  section.hero > *, section.cinematic-hero > *, .hero > * { position: relative; z-index: 2; }
}/* === retrofit v1.27 motionsites velocity-parallax (MIT) === */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    [data-parallax], .parallax-bg, [class*="hero-bg"], [class*="-bg-img"] {
      animation: rt-parallax linear;
      animation-timeline: scroll(root);
    }
    @keyframes rt-parallax { to { transform: translateY(-20%); } }
  }
}