/* ============================================================
   공통 스타일 — 모던 미니멀
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e8e8ea;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --accent: #0284c7;
  --navy: #10182b;
  --accent-soft: #f0f9ff;
  --accent-light: #7dd3fc;
  --accent-hover: #0369a1;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 레이아웃 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: var(--brand-font, inherit);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0;
}
.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: .12s;
}
.nav a:hover { background: #f4f4f5; color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- 모바일 메뉴 ---------- */
.hamb { display: none; }
.nav-only-mobile { display: none; }

@media (max-width: 760px) {
  .topbar-inner { position: relative; gap: 10px; }

  .hamb {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 34px; padding: 0 8px;
    border: 1px solid var(--border-strong); border-radius: 9px;
    background: #fff; cursor: pointer; flex: none;
  }
  .hamb span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .18s; }
  .hamb.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamb.on span:nth-child(2) { opacity: 0; }
  .hamb.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    padding: 8px;
    overflow: visible;
  }
  .nav.open { display: flex !important; }
  .nav a { padding: 13px 14px; font-size: 15px; border-radius: 10px; }
  .nav-only-mobile { display: block; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px !important; }

  .hide-mobile { display: none !important; }
  .topbar-right { margin-left: auto; }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}
.wrap-narrow { max-width: 760px; }

/* ---------- 타이포 ---------- */
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 650; margin: 0 0 8px; }
.page-head { margin-bottom: 24px; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 14px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 13px; }

/* ---------- 카드 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card + .card { margin-top: 14px; }
.card-link { display: block; transition: .14s; }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid > .card { margin-top: 0; }   /* 바둑판 안에서는 위 .card + .card 간격을 끈다 (간격은 gap 이 맡음) */

/* ---------- 배지 ---------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}
.badge-accent  { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn    { background: var(--warn-soft); color: var(--warn); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-gray    { background: #f4f4f5; color: var(--text-muted); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: .12s;
  white-space: nowrap;
}
.btn:hover { background: #f4f4f5; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { color: var(--danger); border-color: #f0c6c6; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 폼 ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3f3f46;
}
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=url], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .13);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- 테이블 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  padding: 11px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid #f4f4f5; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fcfcfd; }

/* ---------- 목록 ---------- */
.list { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f4f4f5;
  transition: .12s;
}
.list-item:last-child { border-bottom: none; }
a.list-item:hover { background: #fafafa; }
.list-item .num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f4f4f5;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
}
.list-item.locked { opacity: .55; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 550; }
.list-item .s { font-size: 12.5px; color: var(--text-faint); margin-top: 1px; }

/* ---------- 비디오 ---------- */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #09090b;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 본문 첨부 사진 ---------- */
.pics { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.pic { margin: 0; }
.pic img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.pic figcaption { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

/* 본문 글 안에 끼워 넣은 사진 */
.content-body .inline-pic {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* ---------- 알림 ---------- */
.alert {
  padding: 12px 15px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error   { background: var(--danger-soft);  color: #991b1b; border-color: #fecaca; }
.alert-success { background: var(--success-soft); color: #166534; border-color: #bbf7d0; }
.alert-info    { background: var(--accent-soft);  color: #1e40af; border-color: #c7d2fe; }
.alert-warn    { background: var(--warn-soft);    color: #92400e; border-color: #fde68a; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- 로그인 화면 ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -10%, var(--accent-soft) 0%, transparent 65%),
    var(--bg);
}
.auth-box { width: 100%; max-width: 400px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .t { font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.auth-logo .s { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 4px; background: #f4f4f5; padding: 4px; border-radius: 10px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; padding: 8px; border: 0; background: transparent; border-radius: 7px;
  font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: .12s;
}
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.07); }

/* ---------- 기타 ---------- */
.sep { height: 1px; background: var(--border); margin: 22px 0; }
.stat { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.stat .box { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.stat .box .k { font-size: 12.5px; color: var(--text-muted); font-weight: 550; }
.stat .box .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.content-body { white-space: pre-wrap; line-height: 1.75; font-size: 14.5px; }
a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
a.link:hover { color: var(--accent-hover); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--border-strong);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-bg {
  position: fixed; inset: 0; background: rgba(9,9,11,.4);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal {
  background: #fff; border-radius: 16px; padding: 24px;
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal h2 { margin-bottom: 18px; }

/* 로그인 팝업 */
.auth-modal { position: relative; max-width: 420px; padding: 30px 26px 26px; }
.modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-faint);
  font-size: 15px; cursor: pointer; line-height: 1;
}
.modal-x:hover { background: #f4f4f5; color: var(--text); }

/* ---------- 강의실: 왼쪽 트리 + 오른쪽 표 ---------- */
.room { display: grid; grid-template-columns: 268px 1fr; gap: 20px; align-items: start; }

.tree {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 76px;
}
.tree-head {
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
}
.tree-year {
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #f4f4f5;
  user-select: none;
}
.tree-year:hover { background: #fafafa; }
.tree-season {
  padding: 9px 16px 9px 28px;
  font-size: 13.5px;
  font-weight: 600;
  color: #52525b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fcfcfd;
  border-bottom: 1px solid #f4f4f5;
  user-select: none;
}
.tree-season:hover { background: #f4f4f5; }
.tree-course {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 40px;
  font-size: 13.5px;
  border-bottom: 1px solid #f4f4f5;
  color: var(--text);
  transition: .12s;
}
.tree-course:hover { background: #fafafa; }
.tree-course.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
.tree-course .grow { flex: 1; min-width: 0; }
.tree-count {
  flex: none;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  background: #f4f4f5;
  border-radius: 5px;
  padding: 1px 6px;
}
.tree-course.on .tree-count { background: #fff; color: var(--accent); }
.caret { font-size: 10px; color: var(--text-faint); transition: transform .15s; }
.caret.open { transform: rotate(90deg); }

.lesson-table td.c { text-align: center; color: var(--text-muted); white-space: nowrap; }
.d-short { display: none; }
@media (max-width: 640px) { .d-full { display: none; } .d-short { display: inline; } }
.lesson-table tr.locked td { color: var(--text-faint); }
.lesson-table a { color: var(--text); font-weight: 550; }
.lesson-table a:hover { color: var(--accent); text-decoration: underline; }
.newdot {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
  color: #dc2626; border: 1px solid #fca5a5; border-radius: 4px; padding: 0 4px; vertical-align: 1px;
}

/* ---------- 소개(랜딩) 화면 ---------- */
.land-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.land-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.land-menu { display: flex; gap: 4px; flex: 1; justify-content: center; }
.land-menu a {
  padding: 7px 13px; border-radius: 8px; font-size: 14px; font-weight: 550;
  color: var(--text-muted); white-space: nowrap; transition: .12s;
}
.land-menu a:hover { background: #f4f4f5; color: var(--text); }
.land-actions { display: flex; align-items: center; gap: 8px; }
.hamb-land { display: none; }

@media (max-width: 900px) {
  .land-nav-inner { position: relative; gap: 10px; }
  .hamb-land {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 34px; padding: 0 8px; flex: none;
    border: 1px solid var(--border-strong); border-radius: 9px;
    background: #fff; cursor: pointer;
  }
  .land-nav.dark .hamb-land { background: transparent; border-color: rgba(255,255,255,.35); }
  .land-nav.dark .hamb-land span { background: #fff; }

  .land-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: #fff; padding: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
  }
  .land-menu.open { display: flex !important; }
  .land-menu a { padding: 13px 14px; font-size: 15px; border-radius: 10px; color: var(--text-muted) !important; }
  .land-menu a:hover { background: #f4f4f5; }
  .land-actions { margin-left: auto; }
}

section { scroll-margin-top: 80px; }
section + section { margin-top: 56px; }
.sec-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ---------- 강사 소개 ---------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: stretch; }
.about-photo {
  border-radius: 16px; background: #e4e4e7 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;          /* 글이 짧아도 사진이 너무 납작해지지 않게 */
  max-height: 620px;          /* 글이 아주 길어도 사진이 과하게 늘어나지 않게 */
  align-self: stretch;
  position: sticky; top: 84px;  /* 글이 더 길면 사진이 따라 내려옵니다 */
}
.about-quote {
  font-size: 20px; font-weight: 650; line-height: 1.55; letter-spacing: -.02em;
  margin-bottom: 18px; padding-left: 16px; border-left: 3px solid var(--accent);
}
ul.career { margin: 8px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; line-height: 1.9; }

/* ---------- 강좌 카드 ---------- */
.course-card { display: flex; flex-direction: column; gap: 5px; }
.cc-title { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.cc-time { font-size: 14px; color: var(--accent); font-weight: 600; }
.cc-target { font-size: 13.5px; color: var(--text-muted); }

/* ---------- 수강후기 ---------- */
.review { display: flex; flex-direction: column; gap: 8px; }
.stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.review-title { font-weight: 650; font-size: 15px; }
.review-body {
  font-size: 14px; color: var(--text-muted); line-height: 1.7; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review-who { font-size: 12.5px; color: var(--text-faint); margin-top: auto; padding-top: 8px; }

/* ---------- 히어로 공통 ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f4f5f7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero.full { min-height: calc(100vh - 62px); display: flex; align-items: center; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 12px; color: var(--text-faint); letter-spacing: .08em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue .arw { font-size: 16px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- 상단바 어둡게 ---------- */
.land-nav.dark {
  background: var(--navy);
  border-bottom: 0;
  backdrop-filter: none;
}
.land-nav.dark .brand { color: #fff; }
.land-nav.dark .brand small { color: rgba(255,255,255,.6); }
.land-nav.dark .land-menu a { color: rgba(255,255,255,.82); }
.land-nav.dark .land-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.land-nav.dark .btn-primary { background: #fff; border-color: #fff; color: var(--navy); }
.land-nav.dark .btn-primary:hover { background: var(--accent-soft); }

/* ---------- 히어로 1 : 큰 글자 + 누끼 사진 ---------- */
.hero-typo {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-size: clamp(46px, 8.4vw, 112px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  color: #d4d4d8;
  white-space: nowrap;
}
.wordmark b { color: var(--navy); font-weight: 800; }
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 550;
  color: var(--text-muted);
  letter-spacing: -.01em;
  line-height: 1.65;
}
.hero-sub b { color: var(--text); font-weight: 700; }
.hero-typo .btn-row { margin-top: 28px; }
.hero-cut {
  width: min(38vw, 430px);
  aspect-ratio: 3 / 4;
  background: center bottom/contain no-repeat;
  align-self: end;
}
.hero-cut.empty {
  background: #e4e4e7;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 13px; text-align: center; padding: 20px;
}

/* ---------- 히어로 2 : 배경 사진 ---------- */
.hero.style-photo { border-bottom: 0; }
.hero-photo-bg {
  position: absolute; inset: 0;
  background: #27272a center/cover no-repeat;
}
.hero-photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,35,.55) 0%, rgba(15,18,35,.75) 100%);
}
.hero-photo-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 900px; margin: 0 auto;
  padding: 110px 24px; text-align: center; color: #fff;
}
.hero-photo-inner h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.25; letter-spacing: -.035em; margin: 0 0 16px; }
.hero-photo-inner h1 b { color: var(--accent-light); }
.hero-photo-inner p { font-size: 16px; color: rgba(255,255,255,.82); margin: 0 0 30px; line-height: 1.75; }
.hero-photo-inner .btn { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; }
.hero-photo-inner .btn:hover { background: rgba(255,255,255,.18); }
.hero-photo-inner .btn-primary { background: #fff; border-color: #fff; color: var(--navy); }
.hero-photo-inner .btn-primary:hover { background: var(--accent-soft); }
.hero-photo-inner .btn-row { justify-content: center; }
.style-photo .scroll-cue { color: rgba(255,255,255,.6); z-index: 1; }

@media (max-width: 820px) {
  .hero.full { min-height: auto; }
  .hero-typo { grid-template-columns: 1fr; padding: 56px 20px 40px; text-align: left; }
  .wordmark { white-space: normal; }
  .hero-cut { width: 100%; max-width: 300px; margin-top: 24px; }
  .scroll-cue { display: none; }
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 72px 24px 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 42px; line-height: 1.25; letter-spacing: -.04em; margin: 0 0 16px; }
.hero h1 .thin { font-weight: 400; color: var(--text-muted); }
.hero p { font-size: 16px; color: var(--text-muted); margin: 0 0 28px; line-height: 1.75; }
.hero-photo {
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: #e4e4e7 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 13px; text-align: center; padding: 20px;
}
.point {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 0;
  border-top: 1px solid var(--border);
}
.point:first-of-type { border-top: 0; }
.point .n {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.point .t { font-weight: 650; margin-bottom: 2px; }
.point .s { font-size: 14px; color: var(--text-muted); }

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-muted);
}
.footer b { color: var(--text); font-size: 14px; }
.foot-cols { display: flex; gap: 48px; }
@media (max-width: 640px) { .foot-cols { gap: 32px; } .footer-inner { gap: 22px; } }

@media (max-width: 900px) {
  .land-menu { display: none; }
  .about { grid-template-columns: 1fr; gap: 22px; }
  .about-photo {
    max-width: 260px; position: static;
    aspect-ratio: 3 / 4; min-height: 0; max-height: none;
  }
  .room { grid-template-columns: 1fr; }
  .tree { position: static; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 56px; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .hero-photo { max-width: 320px; }
}

@media (max-width: 640px) {
  .wrap { padding: 22px 16px 80px; }
  .topbar-inner { padding: 0 16px; gap: 14px; height: 56px; }
  .brand small { display: none; }
  .topbar-right .uname { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  h1 { font-size: 21px; }

  /* 좁은 화면에서는 표를 압축한다 */
  .lesson-table th, .lesson-table td { padding: 11px 8px; font-size: 13.5px; }
  .lesson-table th:nth-child(4), .lesson-table td:nth-child(4) { display: none; }
  .lesson-table th:first-child, .lesson-table td:first-child { width: 30px; padding-right: 2px; }
  .lesson-table th:nth-child(3), .lesson-table td:nth-child(3) { width: 84px; }
  .lesson-table .badge { display: inline-block; margin: 4px 0 0 0 !important; }
  .tree { margin-bottom: 4px; }
}

/* ---------- 로고 이미지 ---------- */
.brand-logo { display: block; height: var(--logo-h, 30px); width: auto; }
.land-nav.dark .brand-logo.invert, .topbar .brand-logo.invert { filter: none; }
