:root {
  --ink: #2a2030;
  --muted: #756b7b;
  --cream: #fffaf0;
  --paper: #ffffff;
  --yellow: #ffd84d;
  --plum: #63328a;
  --plum-deep: #3e1c5d;
  --coral: #ee6e50;
  --orange: #ef842f;
  --line: #eadfeb;
  --shadow: 0 22px 55px rgba(61, 30, 86, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; background: #111; color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 80; background: var(--yellow); border-bottom: 1px solid rgba(62, 28, 93, .14); }
.header-inner { width: min(var(--max), calc(100% - 40px)); min-height: 66px; margin: 0 auto; display: flex; align-items: center; gap: 26px; }
.brand { width: 188px; flex: 0 0 auto; }
.brand-lockup { width: 188px; height: auto; }
.header-tagline { color: #6f5730; font-size: 13px; font-weight: 800; }
.nav-shell { background: #fff; border-top: 1px solid rgba(62,28,93,.08); }
.nav-shell nav { width: min(var(--max), calc(100% - 40px)); min-height: 46px; margin: 0 auto; display: flex; align-items: center; gap: 6px; }
.nav-shell nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.nav-shell nav a:hover, .nav-shell nav a:focus-visible { background: #f5edf8; color: var(--plum); outline: none; }
.header-consult { padding: 12px 19px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 7px 0 rgba(62,28,93,.18); }
.header-consult { margin-left: auto; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: var(--plum); color: #fff; border-radius: 999px; padding: 10px 15px; font-weight: 900; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 96px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); column-gap: 42px; align-items: end; margin-bottom: 38px; }
.section-head > p { grid-column: 1 / -1; margin: 0 0 8px; color: var(--coral); font-size: 13px; font-weight: 950; letter-spacing: .18em; }
.section-head h2 { margin: 0; max-width: 720px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.045em; }
.section-head > span { color: var(--muted); font-size: 16px; }

.home-hero { min-height: 700px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: 50px; align-items: center; padding: 68px max(40px, calc((100vw - var(--max)) / 2)); background: linear-gradient(130deg, #6e3997 0%, #53247d 54%, #411d62 100%); color: #fff; overflow: hidden; position: relative; }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border: 1px solid rgba(255,216,77,.35); border-radius: 50%; pointer-events: none; }
.home-hero::before { width: 520px; height: 520px; left: -240px; top: -220px; }
.home-hero::after { width: 280px; height: 280px; right: 34%; bottom: -180px; }
.hero-copy, .hero-photo { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-weight: 950; letter-spacing: .18em; font-size: 14px; }
.hero-copy h1 { margin: 0; font-size: clamp(52px, 7vw, 90px); line-height: 1; letter-spacing: -.065em; }
.hero-copy h2 { margin: 20px 0 14px; max-width: 760px; font-size: clamp(26px, 3.3vw, 44px); line-height: 1.15; letter-spacing: -.04em; }
.hero-copy > p:not(.eyebrow) { max-width: 660px; margin: 0; color: #eadff2; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions a { min-width: 152px; padding: 15px 22px; border: 2px solid var(--yellow); border-radius: 12px; text-align: center; font-weight: 900; }
.hero-actions a:first-child { background: var(--yellow); color: var(--plum-deep); }
.hero-photo { align-self: stretch; min-height: 560px; border-radius: 170px 28px 28px 28px; overflow: hidden; box-shadow: 24px 24px 0 rgba(255,216,77,.22); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; }

.quick-finder { position: relative; z-index: 5; width: min(var(--max), calc(100% - 40px)); margin: -45px auto 0; padding: 27px 30px; display: grid; grid-template-columns: minmax(210px,.6fr) auto minmax(330px,1fr); align-items: center; gap: 24px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.quick-finder p { margin: 0; color: var(--coral); font-size: 13px; font-weight: 950; letter-spacing: .08em; }
.quick-finder h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.25; }
.quick-finder nav { display: flex; gap: 7px; }
.quick-finder nav a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f4edf7; color: var(--plum); font-weight: 950; }
.quick-finder form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.quick-finder label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quick-finder input { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fffcf6; }
.quick-finder button { border: 0; border-radius: 10px; padding: 0 17px; background: var(--plum); color: #fff; font-weight: 900; }
.quick-finder output { grid-column: 1 / -1; min-height: 0; color: var(--muted); font-size: 13px; }

.home-programs { padding-top: 120px; }
.portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.portrait-grid article { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.portrait-grid article:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.portrait-grid figure { margin: 0; height: 330px; overflow: hidden; background: #eee; }
.portrait-grid img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portrait-grid article > div { padding: 22px; }
.portrait-grid span { color: var(--coral); font-weight: 950; }
.portrait-grid h3 { margin: 4px 0 9px; font-size: 24px; }
.portrait-grid p { min-height: 78px; margin: 0 0 15px; color: var(--muted); }
.portrait-grid b { color: var(--plum); }

.confidence { background: #fff; border-radius: 34px; padding-left: 44px; padding-right: 44px; box-shadow: 0 0 0 1px var(--line); }
.tabs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
.tabs [role="tablist"] { display: grid; align-content: start; gap: 8px; }
.tabs [role="tab"] { border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px; background: #fffaf0; text-align: left; font-weight: 900; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.tab-panels article { min-height: 260px; padding: 46px; border-radius: 20px; background: linear-gradient(135deg, var(--plum), #8a4fb2); color: #fff; }
.tab-panels span { color: var(--yellow); font-weight: 950; letter-spacing: .15em; }
.tab-panels h3 { margin: 18px 0 12px; font-size: 35px; }
.tab-panels p { margin: 0; max-width: 650px; color: #efe3f5; font-size: 18px; }

.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.guide-grid article { min-width: 0; min-height: 230px; padding: 26px; border-radius: 18px; color: #fff; background: var(--plum); }
.guide-grid article:nth-child(2) { background: var(--coral); }
.guide-grid article:nth-child(3) { background: #2f7e71; }
.guide-grid article:nth-child(4) { background: #334f8c; }
.guide-grid span { color: var(--yellow); font-weight: 950; }
.guide-grid h3 { margin: 38px 0 8px; font-size: 24px; }
.guide-grid p { margin: 0; color: rgba(255,255,255,.85); }

.region-directory { padding-top: 86px; }
.region-switcher { display: flex; gap: 9px; margin-bottom: 25px; }
.region-switcher button { border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; background: #fff; font-weight: 900; cursor: pointer; }
.region-switcher button[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.region-groups { display: grid; gap: 35px; }
.region-groups > section { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.region-groups h3 { margin: 0 0 19px; font-size: 22px; }
.region-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.region-link-grid a { min-width: 0; min-height: 62px; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.region-link-grid a:hover, .region-link-grid a:focus-visible { background: #fff4d8; outline: none; }
.region-link-grid span { overflow-wrap: anywhere; font-weight: 800; }
.region-link-grid b { flex: 0 0 auto; color: var(--coral); font-size: 12px; }

.info-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 30px; }
.info-boxes article { min-width: 0; padding: 25px; border-radius: 16px; background: #fff; border-top: 6px solid var(--yellow); box-shadow: 0 8px 26px rgba(46,26,58,.07); }
.info-boxes article:nth-child(2) { border-top-color: var(--coral); }
.info-boxes article:nth-child(3) { border-top-color: var(--plum); }
.info-boxes article:nth-child(4) { border-top-color: #2f7e71; }
.info-boxes span { color: var(--muted); font-size: 12px; font-weight: 950; letter-spacing: .12em; }
.info-boxes h3 { margin: 16px 0 5px; font-size: 24px; }
.info-boxes p { margin: 0; color: var(--muted); }

.faq > div { display: grid; gap: 10px; }
.faq details { padding: 21px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.faq details p { margin: 13px 0 0; color: var(--muted); }

.closing { padding: 66px max(40px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--orange); color: #fff; }
.closing p { margin: 0 0 8px; color: #3d1d12; font-size: 13px; font-weight: 950; letter-spacing: .18em; }
.closing h2 { margin: 0 0 10px; max-width: 820px; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: -.045em; }
.closing span { color: #fff7ef; }
.closing > a { flex: 0 0 auto; padding: 15px 23px; border: 2px solid #fff; border-radius: 999px; font-weight: 950; }

footer { padding: 48px max(40px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 24px; background: #25152f; color: #e9dfee; }
.footer-lockup { width: 210px; filter: brightness(1.12); }
footer p { margin: 12px 0 0; color: #af9fb8; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-weight: 800; }
footer small { grid-column: 1 / -1; color: #82718b; }

.fixed-phone-cta { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 100; min-width: 112px; min-height: 52px; padding: 14px 20px; display: grid; place-items: center; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 950; box-shadow: 0 12px 28px rgba(97,40,45,.28); }
.fixed-phone-cta:hover, .fixed-phone-cta:focus-visible { background: var(--plum); outline: 3px solid var(--yellow); outline-offset: 3px; }

.breadcrumb { width: min(var(--max), calc(100% - 40px)); min-height: 58px; margin: 0 auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.breadcrumb a[aria-current="page"] { color: var(--plum); font-weight: 900; }

.detail-hero { padding: 68px max(40px, calc((100vw - var(--max)) / 2)) 0; background: linear-gradient(135deg, #6b3592 0%, #4b226f 100%); color: #fff; }
.detail-title { padding-bottom: 54px; }
.detail-title p { margin: 0 0 11px; color: var(--yellow); font-weight: 950; letter-spacing: .14em; }
.detail-title h1 { margin: 0; font-size: clamp(45px, 6vw, 78px); line-height: 1; letter-spacing: -.06em; }
.detail-title h2 { margin: 17px 0 0; color: #e9dcf1; font-size: clamp(22px, 3vw, 34px); }
.detail-float { width: min(var(--max), 100%); margin: 0 auto -105px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .65fr); background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transform: translateY(0); }
.detail-float article { padding: 42px; }
.detail-float article > span { color: var(--coral); font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.detail-float h2 { margin: 9px 0 13px; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.detail-float article > p { color: var(--muted); }
.detail-float dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.detail-float dl div { padding: 15px; background: #faf5fb; border-radius: 12px; }
.detail-float dt { color: var(--coral); font-size: 12px; font-weight: 950; }
.detail-float dd { margin: 4px 0 0; font-weight: 800; }
.detail-float article > a { display: inline-flex; padding: 13px 20px; border-radius: 10px; background: var(--plum); color: #fff; font-weight: 900; }
.detail-float figure { margin: 0; min-height: 470px; }
.detail-float img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.course-ledger { padding-top: 205px; }
.course-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.course-card-grid article { min-width: 0; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.course-card-grid article:nth-child(4), .course-card-grid article:nth-child(5) { grid-column: span 1; }
.course-card-grid article:nth-child(5) { grid-column: span 2; }
.course-card-grid header { display: flex; align-items: center; gap: 12px; }
.course-card-grid header span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--plum); font-weight: 950; }
.course-card-grid h3 { margin: 0; font-size: 24px; }
.course-card-grid p { min-height: 52px; margin: 17px 0; color: var(--muted); }
.course-card-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.course-card-grid li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.course-card-grid strong { color: var(--plum); }
.course-note { margin: 18px 0 0; color: var(--muted); }

.process > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.process article { min-width: 0; padding: 30px; border-radius: 18px; background: var(--plum); color: #fff; }
.process article:nth-child(2) { background: var(--coral); }
.process article:nth-child(3) { background: #2f7e71; }
.process span { color: var(--yellow); font-weight: 950; }
.process h3 { margin: 30px 0 8px; font-size: 26px; }
.process p { margin: 0; color: rgba(255,255,255,.86); }

.nearby nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.nearby nav a { min-width: 0; min-height: 63px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 850; overflow-wrap: anywhere; }
.nearby nav a:hover, .nearby nav a:focus-visible { background: #fff4d8; outline: none; }
.nearby nav span { color: var(--coral); }

.not-found { min-height: 80vh; display: grid; place-content: center; text-align: center; padding: 40px; }
.not-found p { margin: 0; color: var(--coral); font-size: 70px; font-weight: 950; }
.not-found h1 { margin: 0 0 22px; font-size: clamp(30px,5vw,56px); }
.not-found a { justify-self: center; padding: 13px 20px; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 900; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .header-inner { min-height: 74px; }
  .header-tagline { display: none; }
  .nav-shell { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; border: 0; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
  .nav-shell:has(nav.is-open) { display: block; }
  .nav-shell nav { width: 100%; min-height: 0; margin: 0; padding: 14px; flex-direction: column; align-items: stretch; }
  .nav-shell nav a { padding: 11px 14px; }
  .menu-toggle { display: block; }
  .header-consult { display: none; }
  .home-hero { min-height: auto; grid-template-columns: 1fr .75fr; gap: 30px; padding-top: 50px; padding-bottom: 86px; }
  .hero-photo { min-height: 480px; border-radius: 120px 22px 22px 22px; }
  .quick-finder { grid-template-columns: 1fr auto; }
  .quick-finder form { grid-column: 1 / -1; }
  .portrait-grid, .guide-grid, .info-boxes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .region-link-grid, .nearby nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-float { grid-template-columns: minmax(0,1.1fr) minmax(260px,.7fr); }
  .course-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .course-card-grid article:nth-child(5) { grid-column: span 2; }
}

@media (max-width: 720px) {
  .header-inner, .section, .breadcrumb, .quick-finder { width: min(100% - 28px, var(--max)); }
  .brand, .brand-lockup { width: 154px; }
  .section { padding: 68px 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(29px, 9vw, 42px); }
  .home-hero { grid-template-columns: 1fr; padding: 46px 22px 78px; }
  .hero-copy h1 { font-size: clamp(46px, 14vw, 70px); }
  .hero-photo { min-height: 520px; border-radius: 120px 18px 18px 18px; box-shadow: 12px 12px 0 rgba(255,216,77,.22); }
  .quick-finder { margin-top: -37px; padding: 22px; grid-template-columns: 1fr; }
  .quick-finder nav { justify-content: flex-start; }
  .quick-finder form { grid-column: auto; }
  .portrait-grid, .guide-grid, .info-boxes { grid-template-columns: 1fr; }
  .portrait-grid figure { height: 430px; }
  .portrait-grid p { min-height: 0; }
  .confidence { width: calc(100% - 28px); padding-left: 20px; padding-right: 20px; border-radius: 22px; }
  .tabs { grid-template-columns: 1fr; }
  .tabs [role="tablist"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tabs [role="tab"] { text-align: center; padding: 12px 9px; }
  .tab-panels article { min-height: 250px; padding: 30px 24px; }
  .region-switcher { overflow-x: auto; padding-bottom: 5px; }
  .region-switcher button { flex: 0 0 auto; }
  .region-groups > section { padding: 18px; }
  .region-link-grid, .nearby nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .closing { padding: 48px 22px 72px; flex-direction: column; align-items: flex-start; }
  footer { padding: 42px 22px 92px; grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
  footer small { grid-column: auto; }
  .detail-hero { padding: 48px 14px 0; }
  .detail-title { padding: 0 8px 38px; }
  .detail-title h1 { font-size: clamp(43px,13vw,66px); }
  .detail-float { grid-template-columns: 1fr; margin-bottom: -74px; }
  .detail-float article { padding: 28px 22px; }
  .detail-float dl { grid-template-columns: 1fr; }
  .detail-float figure { min-height: 500px; }
  .course-ledger { padding-top: 145px; }
  .course-card-grid, .process > div { grid-template-columns: 1fr; }
  .course-card-grid article:nth-child(5) { grid-column: auto; }
  .course-card-grid p { min-height: 0; }
  .fixed-phone-cta { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); min-width: 106px; min-height: 50px; }
}

@media (max-width: 390px) {
  .header-inner { width: calc(100% - 22px); }
  .brand, .brand-lockup { width: 142px; }
  .menu-toggle { padding: 9px 12px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions a { flex: 1 1 130px; min-width: 0; }
  .quick-finder form { grid-template-columns: 1fr; }
  .quick-finder button { min-height: 46px; }
  .region-link-grid, .nearby nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
