:root {
  --paper: #ffffff;
  --ink: #14284b;
  --ink-soft: #46546d;
  --blue: #2b63c6;
  --blue-deep: #1f4fa3;
  --mist: #eef3fa;
  --line: #d6dfec;
  --serif: 'Gowun Batang', 'Noto Serif KR', serif;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* 버튼·링크 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--blue); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--sans); border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--blue-deep); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { color: var(--ink); font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover { color: var(--blue); }

/* 머리글 */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--serif); text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand span { font: 500 .85rem/1 var(--sans); color: var(--ink-soft); margin-left: -4px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* 첫 화면 */
/* 넓은 화면: 사진을 배경처럼 깔고, 사진 왼쪽의 밝은 여백 위에 글을 얹는다 */
.hero {
  position: relative; overflow: hidden; background: #fbfaf8;
  min-height: clamp(560px, calc(100vh - 68px), 760px);
  display: flex; align-items: center;
}
.hero > .wrap { position: relative; width: 100%; }
.hero__text { max-width: 31rem; padding: 64px 0; }
.hero__name { margin: 0 0 20px; font-weight: 600; font-size: 1.05rem; color: var(--blue); }
.hero__slogan {
  margin: 0; font: 700 clamp(1.9rem, 3.6vw, 3.1rem)/1.36 var(--serif);
  letter-spacing: -.01em; text-wrap: balance;
}
.hero__lead { margin: 28px 0 36px; max-width: 30em; font-size: 1.1rem; color: var(--ink-soft); }
.hero__lead strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__photo { position: absolute; inset: 0; margin: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
/* 글 쪽을 조금 더 밝게 덮어 글씨가 또렷하게 읽히게 한다 */
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251, 250, 248, .92) 0%, rgba(251, 250, 248, .75) 34%, rgba(251, 250, 248, 0) 56%);
}

/* 공통 영역 */
.section { padding: 112px 0; }
.section--tint { background: var(--mist); }
.section__head { max-width: 36em; margin-bottom: 48px; }
.section__head p { margin: 12px 0 0; color: var(--ink-soft); }
.h2 { margin: 0; font: 700 clamp(1.8rem, 3.2vw, 2.5rem)/1.35 var(--serif); }
.h3 { margin: 72px 0 8px; font: 700 1.35rem/1.4 var(--serif); }
.note { margin: 0 0 20px; color: var(--ink-soft); font-size: .95rem; }

/* 강사 소개 */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px 72px; }
.about__belief {
  margin: 28px 0 0; padding-left: 20px; border-left: 3px solid var(--blue);
  font: 400 1.15rem/1.8 var(--serif); max-width: 24em;
}
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
  content: ''; position: absolute; left: 9px; top: 14px; bottom: 40px;
  border-left: 2px dashed var(--blue); opacity: .55;
}
.route__stop { position: relative; padding: 0 0 36px 44px; }
.route__stop::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue);
}
.route__stop--now::before { background: var(--blue); box-shadow: 0 0 0 6px var(--mist); }
.route__stop h3 { margin: 0 0 4px; font: 700 1.25rem/1.5 var(--serif); }
.route__stop p { margin: 0; color: var(--ink-soft); max-width: 30em; }
.values {
  grid-column: 1 / -1; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.values div { padding: 24px 24px 0 0; }
.values dt { font-weight: 600; }
.values dd { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* 경력과 자격 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.creds { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0 72px; }
.creds__head p { margin: 12px 0 0; color: var(--ink-soft); }
.creds__body { grid-column: 2; grid-row: 1 / span 2; }
.ledger { margin: 40px 0 0; }
.ledger__row { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.ledger__row:last-child { border-bottom: 1px solid var(--line); }
.ledger dt { font: 700 1.6rem/1.2 var(--serif); color: var(--ink); }
.ledger dd { margin: 0; }
.ledger small { display: block; color: var(--ink-soft); font-size: .88rem; }
.h3--flush { margin-top: 0; }
.h3--small { margin-top: 40px; font-size: 1.1rem; }
.badges { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badge a, .badge div { display: block; height: 100%; text-decoration: none; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.badge a:hover { border-color: var(--blue); }
.badge img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 6px; margin-bottom: 12px; background: var(--mist); }
.badge strong { display: block; font-weight: 600; line-height: 1.45; }
.badge span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .9rem; }
.more-creds { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more-creds li { padding: 6px 14px; border-radius: 999px; background: var(--mist); font-size: .92rem; }

/* 강의 프로그램 */
.programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.program { padding: 24px 0; border-top: 1px solid var(--line); }
.program__name { margin: 0; font: 700 1.3rem/1.45 var(--serif); }
.program__who { margin: 2px 0 8px; color: var(--blue); font-size: .92rem; font-weight: 500; }
.program__desc { margin: 0; color: var(--ink-soft); }
.program__link { display: inline-block; margin-top: 10px; color: var(--blue); font-size: .94rem; font-weight: 500; text-underline-offset: 5px; }
.program__link:hover { color: var(--blue-deep); }
.steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: s; background: var(--paper); border-radius: 16px; padding: 24px; }
.steps li::before { content: counter(s); display: block; font: 700 1.6rem/1 var(--serif); color: var(--blue); margin-bottom: 14px; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); font-size: .95rem; }

/* 현장과 후기 */
/* 강의 현장 사진: 큰 사진이 천천히 겹치며 바뀌고, 바뀌는 동안 아주 살짝 확대된다 */
.gallery { margin-top: 20px; display: grid; grid-template-columns: 1fr 180px; gap: 16px; align-items: start; }
.gallery__stage {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  padding: 0; border: 0; border-radius: 12px; background: var(--mist); cursor: zoom-in;
}
.gallery__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.gallery__img.is-active { opacity: 1; animation: slow-zoom 7s ease-out forwards; }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
.gallery__caption { margin: 10px 0 0; font-size: .95rem; color: var(--ink-soft); min-height: 1.6em; }
.gallery__thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery__thumbs button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; cursor: pointer; opacity: .55; transition: opacity .2s; }
.gallery__thumbs button:hover { opacity: .85; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--blue); outline-offset: 3px; }
.gallery__thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .gallery__img { transition: none; }
  .gallery__img.is-active { animation: none; }
}

/* 누르면 크게 보기 */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 16px 24px; border: 0; background: rgba(12, 22, 42, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto auto; align-items: center; gap: 8px; }
.lightbox::backdrop { background: transparent; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__img { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; touch-action: pan-y; user-select: none; }
.lightbox__caption { grid-column: 1 / -1; grid-row: 2; margin: 8px 0 0; text-align: center; color: #dbe4f3; }
.lightbox__count { grid-column: 1 / -1; grid-row: 3; margin: 0; text-align: center; font-size: .88rem; color: #9fb0cf; }
.lightbox__nav, .lightbox__close {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff; font: 400 1.8rem/1 var(--sans); cursor: pointer;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
.quote { margin: 0; }
.quote p { margin: 0; font: 400 1.15rem/1.8 var(--serif); }
.quote p::before { content: '“'; display: block; font: 700 2.6rem/1 var(--serif); color: var(--blue); margin-bottom: 6px; }
.quote footer { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px;
  overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
}
.review { scroll-snap-align: start; text-decoration: none; }
.review img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.review span { display: block; margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }
.review:hover span { color: var(--blue); }
.records ul { list-style: none; margin: 16px 0 0; padding: 0; }
.records li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.records__when { color: var(--ink-soft); font-size: .95rem; }
.records__org { font-weight: 600; color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a.records__org:hover { color: var(--blue); }
.records__topic { margin: 2px 0 0; color: var(--ink-soft); }

/* 문의 */
.contact { background: var(--ink); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact__intro p { color: #c9d4e8; max-width: 26em; }
.channels { list-style: none; margin: 32px 0 0; padding: 0; }
.channels li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.channels span { display: block; font-size: .88rem; color: #9fb0cf; }
.channels a { color: #fff; font-weight: 500; text-underline-offset: 5px; }
.form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 36px; }
.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.6 var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 24px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form__msg { min-height: 1.6em; margin: 14px 0 0; font-size: .95rem; }
.form__msg.is-ok { color: #1c7a4a; }
.form__msg.is-err { color: #b42318; }
.form__msg a { color: inherit; }

.foot { padding: 32px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.foot p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__links a { color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.foot__links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* 태블릿 */
@media (max-width: 960px) {
  .nav { display: none; }
  .top__inner { justify-content: space-between; }
  .about, .contact__grid, .creds { grid-template-columns: 1fr; }
  .creds__body { grid-column: auto; grid-row: auto; margin-top: 56px; }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery__thumbs { flex-direction: row; gap: 8px; }
  .gallery__thumbs li { flex: 1; }
  /* 좁은 화면: 사진을 위에, 글을 아래에 쌓는다 */
  .hero { display: block; min-height: 0; background: var(--paper); }
  .hero__photo { position: static; }
  .hero__photo::after { display: none; }
  .hero__photo img { height: auto; aspect-ratio: 16 / 10; object-position: 78% 30%; }
  .hero__text { max-width: 36rem; padding: 40px 0 72px; }
}

/* 모바일 */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero__photo img { aspect-ratio: 5 / 4; object-position: 80% 25%; }
  .hero__name { margin-bottom: 12px; }
  /* 휴대폰에서는 문의 버튼을 슬로건 바로 아래로 올려 첫 화면에 보이게 한다 */
  .hero__text { display: flex; flex-direction: column; padding: 28px 0 56px; }
  .hero__actions { order: 3; margin-top: 24px; }
  .hero__lead { order: 4; margin: 28px 0 0; }
  .programs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto auto; }
  .lightbox__img { grid-column: 1 / -1; max-height: calc(100vh - 220px); }
  .lightbox__nav--prev { grid-column: 1; grid-row: 4; justify-self: end; margin-right: 12px; }
  .lightbox__nav--next { grid-column: 2; grid-row: 4; justify-self: start; margin-left: 12px; }
  .form { padding: 24px 20px; }
  .records li { grid-template-columns: 1fr; gap: 2px; }
  .badges { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 7em 1fr; }
  .ledger dt { font-size: 1.35rem; }
}
