/* vivid.css — 버전 C (원색의 캔버스) */

html { scroll-behavior: smooth; }
body { background: var(--bg); padding-bottom: 88px; }
section[id], #about, #works, #teaching, #contact { scroll-margin-top: 80px; }

/* About 본문 산문 (vivid 톤) */
.about-prose { max-width: 640px; }
.about-prose p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; color: var(--text); word-break: keep-all; }
.about-prose p strong { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 22px; color: #e63a7a; letter-spacing: 1px; display: inline-block; margin-right: 6px; }
.about-prose p em { font-style: italic; color: #ff5d2a; font-weight: 600; }
.about-prose .about-quote {
  margin: 28px 0 14px; padding: 18px 22px;
  border-left: 4px solid #ff5d2a;
  background: linear-gradient(90deg, rgba(255,93,42,0.06), transparent);
  font-family: 'Black Han Sans', sans-serif; font-size: 18px; color: #0f0f0f;
  letter-spacing: 0.5px; line-height: 1.5;
}
.about-prose .about-quote cite { display: block; margin-top: 10px; font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 4px; font-style: normal; font-weight: 500; color: #888; }
.about-prose .about-en-lead { font-family: 'Cormorant Garamond', serif; color: #4a4a4a; font-size: 16px; }

/* 초상화/세로 긴 그림은 전체를 보이도록 (contain) — 목자처럼 인물 얼굴 잘리지 않게 */
.hero-slide-contain {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #0f0f0f;
}

/* 강좌 액션 버튼 — 크기·모양 통일 (전화 / 링크복사) */
.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 18px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-action-primary {
  background: linear-gradient(145deg, #ff8a3a, #e63a7a);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(230, 58, 122, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-action-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230, 58, 122, 0.45); }
.btn-action-ghost {
  background: rgba(255,255,255,0.95);
  color: #0f0f0f;
  border-color: rgba(230, 58, 122, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
}
.btn-action-ghost:hover { transform: translateY(-2px); background: #ffffff; border-color: #e63a7a; }

/* 글자 세로 스택 방지 — Korean keep-all */
.timeline-row, .timeline-title, .timeline-status, .course-title, .course-status, .course-desc,
.poster-panel .course-title, .course-latest .course-title {
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .timeline-row {
    grid-template-columns: 60px 1fr !important;
    grid-template-areas: "year title" "status title";
    row-gap: 2px;
    padding: 14px 0;
  }
  .timeline-year { grid-area: year; }
  .timeline-status { grid-area: status; font-size: 12px; }
  .timeline-title { grid-area: title; font-size: 15px; line-height: 1.4; }
  .course-title { font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.2; }
  .poster-panel { padding: 40px 24px !important; aspect-ratio: auto !important; min-height: auto !important; }
  .poster-panel .course-title { font-size: clamp(26px, 7.5vw, 40px) !important; }
  .course-actions { grid-template-columns: 1fr; }
  .btn-action { width: 100%; }
  .course-actions .btn, .course-actions a, .course-actions button,
  .course-actions .btn-hero { width: 100%; text-align: center; }
}

/* NAV — transparent at top, inked on scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background .25s, color .25s; color: white; }
.nav.scrolled { background: var(--ink, #0f0f0f); border-bottom: 1px solid #222; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.brand { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; font-weight: 800; color: white; }
.nav-menu { display: flex; gap: 36px; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.nav-menu a { color: white; }
.nav-menu a:hover { color: var(--accent); }
.nav-toggle { display: none; font-size: 24px; background: none; border: 0; color: white; cursor: pointer; }
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #0f0f0f; padding: 16px 24px; border-bottom: 1px solid #222; gap: 16px; }
  .nav-toggle { display: block; }
}

/* HERO full-bleed crossfade */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; color: white; display: grid; place-items: center; text-align: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5)); }
.hero-text { position: relative; z-index: 2; padding: 0 24px; }
.hero-display-kr { font-family: 'Black Han Sans', sans-serif; font-size: clamp(84px, 14vw, 180px); line-height: 0.9; letter-spacing: -2px; color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.hero-display-en { font-family: var(--font-display); font-size: clamp(40px, 7vw, 88px); letter-spacing: 10px; margin-top: 16px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-tag { margin-top: 28px; font-size: 22px; letter-spacing: 10px; opacity: 0.95; font-weight: 500; }
.hero-ctas { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 16px 32px; font-weight: 600; font-size: 16px; border-radius: 4px; background: var(--accent); color: white; border: 0; text-transform: uppercase; letter-spacing: 1px; transition: transform .2s; display: inline-block; }
.btn-hero:hover { transform: translateY(-2px); }
.btn-hero.ghost { background: transparent; border: 2px solid white; }

/* Section colored blocks */
.section { padding: 120px 24px; position: relative; }
.section-canvas { background: var(--canvas, #f9f7f2); color: #0f0f0f; }
.section-ink { background: #0f0f0f; color: #f9f7f2; }
.section-orange { background: var(--accent); color: white; }
.section-turquoise { background: var(--secondary); color: white; }
.section-purple { background: var(--tertiary); color: white; }

.section-head { max-width: 1200px; margin: 0 auto 64px; }
.section-label { font-size: 13px; letter-spacing: 6px; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.section-title { font-family: 'Black Han Sans', sans-serif; font-size: clamp(48px, 8vw, 96px); line-height: 1; margin-top: 12px; }

/* ABOUT — quote style */
.about-block { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.about-portrait { aspect-ratio: 3/4; background: var(--accent); padding: 12px; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-quote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.2; }
.about-quote cite { display: block; margin-top: 16px; font-size: 14px; letter-spacing: 4px; font-style: normal; font-weight: 400; opacity: 0.7; }
@media (max-width: 768px) { .about-block { grid-template-columns: 1fr; } }

/* CV */
.cv-vivid { max-width: 900px; margin: 0 auto; }
.cv-vivid h4 { font-family: 'Black Han Sans', sans-serif; font-size: 24px; margin: 32px 0 12px; }
.cv-vivid .cv-row { display: grid; grid-template-columns: 80px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px; }

/* WORKS — horizontal strips */
.works-strip { margin-bottom: 64px; }
.works-strip-head { padding: 0 24px 16px; }
.works-strip-head h3 { font-family: 'Black Han Sans', sans-serif; font-size: clamp(28px, 4vw, 40px); }
.gallery-h-scroll { padding: 16px 24px; }

/* TEACHING — 9:16 poster panel */
.poster-panel { max-width: 540px; margin: 0 auto; aspect-ratio: 9/16; background: linear-gradient(160deg, var(--accent) 0%, var(--tertiary) 100%); color: white; padding: 56px 40px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.poster-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%); pointer-events: none; }
.poster-panel::before { content: ''; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; background: var(--quaternary); border-radius: 50%; opacity: 0.3; z-index: 0; }
.poster-panel > * { position: relative; z-index: 1; }
.poster-panel .course-card { background: transparent; color: white; box-shadow: none; padding: 0; font-size: 1.1em; }
.poster-panel .course-card .course-status { background: rgba(255,255,255,0.25); color: white; font-size: 16px; padding: 7px 18px; font-weight: 700; letter-spacing: 1px; }
.poster-panel .course-title { color: white; font-size: clamp(40px, 5vw, 56px); font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.4); margin-top: 16px; margin-bottom: 12px; }
.poster-panel .course-open, .poster-panel .course-dday { color: white; font-size: 19px; opacity: 0.95; }
.poster-panel .course-dday strong { color: var(--quaternary); font-size: 24px; }
.poster-panel .course-facts { font-size: 18px; color: white; opacity: 0.95; line-height: 1.7; gap: 10px 22px; }
.poster-panel .course-facts li { padding: 6px 0; }
.poster-panel .course-desc { color: white; opacity: 0.92; font-size: 17px; line-height: 1.6; }
.poster-panel .course-actions { position: relative; z-index: 2; }

/* ============================================
   TEACHING — 강사 작품 갤러리 (poster-panel 아래)
   ============================================ */
.teaching-gallery { max-width: 1200px; margin: 56px auto 0; }
.teaching-gallery-intro {
  text-align: center; color: #ffffff; font-size: 16px;
  letter-spacing: 0.5px; margin-bottom: 28px; opacity: 0.95;
}
.teaching-gallery-intro strong {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: 19px; margin: 0 4px; letter-spacing: 1px;
}
.teaching-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.teaching-gallery-grid figure {
  margin: 0; border-radius: 10px; overflow: hidden; position: relative;
  background: rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: transform .25s, box-shadow .25s;
}
.teaching-gallery-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.teaching-gallery-grid img {
  display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.teaching-gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px; color: #fff;
  font-size: 14px; letter-spacing: 0.3px; font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}
@media (max-width: 900px) { .teaching-gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .teaching-gallery-grid { gap: 12px; } .teaching-gallery-intro { font-size: 14px; margin-bottom: 20px; } }

/* CONTACT 2x2 blocks */
.contact-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 0 auto; }
.contact-block { aspect-ratio: 2/1; display: grid; place-items: center; text-align: center; color: white; font-weight: 700; border-radius: 8px; transition: transform .2s; font-size: 20px; padding: 16px; }
.contact-block:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.contact-block.phone { background: var(--accent); }
.contact-block.ig { background: var(--tertiary); }
.contact-block.kakao { background: var(--quaternary); color: #0f0f0f; }
.contact-block.email { background: var(--secondary); }
@media (max-width: 640px) { .contact-blocks { grid-template-columns: 1fr; } }

/* STICKY SHARE BAR */
.share-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #0f0f0f; color: white; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 50; font-size: 13px; gap: 12px; flex-wrap: wrap; }
.share-bar button { color: white; background: transparent; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.share-bar button:hover { background: rgba(255,255,255,0.1); }

/* FOOTER */
.site-footer { background: #0f0f0f; color: var(--muted); text-align: center; padding: 48px 24px 96px; font-size: 13px; }
.site-footer p { margin-bottom: 8px; }
