:root {
  --cream: #eee9df;
  --cream-2: #f8f4ed;
  --ink: #27221e;
  --muted: #756b63;
  --brown: #6e503d;
  --brown-deep: #4e3529;
  --rose: #a87b74;
  --line: rgba(78, 53, 41, .2);
  --white: #fffdf8;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 12px; top: -90px; z-index: 200; padding: 12px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { width: min(1140px, calc(100% - 48px)); min-height: 88px; margin: 0 auto; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 32px; }
.brand { width: 176px; }
.brand-lockup { width: 176px; height: auto; }
.header-note { justify-self: start; display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.header-note b { color: var(--brown); font-size: 9px; letter-spacing: .18em; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 750; }
.site-header nav a { padding: 30px 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a:focus-visible { border-bottom-color: var(--brown); }

main { overflow: clip; }
.hero { width: min(1140px, calc(100% - 48px)); margin: 48px auto 0; position: relative; min-height: 760px; }
.hero figure { width: min(78%, 860px); margin: 0 0 0 auto; border-radius: 220px 220px 16px 16px; overflow: hidden; background: #d8c7b9; }
.hero figure img { width: 100%; height: 760px; object-fit: cover; object-position: center 38%; }
.hero-card { position: absolute; left: 0; bottom: 54px; z-index: 2; width: min(55%, 620px); padding: 46px 48px 42px; background: var(--brown); color: var(--white); }
.eyebrow, .section-label { margin: 0 0 18px; color: #dac2b4; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -.055em; word-break: keep-all; }
.hero h2 { margin: 17px 0 0; max-width: 470px; font-size: clamp(20px, 2.5vw, 32px); line-height: 1.28; letter-spacing: -.03em; word-break: keep-all; }
.hero-card > p:not(.eyebrow) { margin: 20px 0 0; max-width: 500px; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero-actions a, .hero-actions button, .closing button, .modal-panel button:not(.modal-close), .not-found a { min-height: 48px; padding: 13px 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.66); background: transparent; color: white; font-weight: 800; cursor: pointer; }
.hero-actions a { color: var(--brown); background: var(--white); border-color: var(--white); }

.intro { width: min(1140px, calc(100% - 48px)); margin: 0 auto; padding: 104px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 86px; border-bottom: 1px solid var(--line); }
.intro .section-label, .courses .section-label, .areas .section-label { color: var(--brown); }
.intro h2, .courses h2, .areas h2, .closing h2 { margin: 0; font-size: clamp(34px, 4.7vw, 64px); line-height: 1.06; letter-spacing: -.055em; word-break: keep-all; }
.intro-copy > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.intro-copy dl { margin: 36px 0 0; border-top: 1px solid var(--line); }
.intro-copy dl div { min-height: 54px; display: grid; grid-template-columns: 100px 1fr; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.intro-copy dt { color: var(--brown); font-weight: 800; }
.intro-copy dd { margin: 0; color: var(--muted); }

.ticker { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker > div { min-width: max-content; display: flex; animation: ticker 36s linear infinite; }
.ticker a { padding: 17px 34px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.ticker a:nth-child(3n + 1) { color: var(--brown); font-weight: 800; }
@keyframes ticker { to { transform: translateX(-50%); } }

.courses, .areas { width: min(1140px, calc(100% - 48px)); margin: 0 auto; padding: 104px 0; }
.courses header, .areas header { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 42px; align-items: end; margin-bottom: 46px; }
.courses header .section-label, .areas header .section-label { grid-row: 1 / span 2; align-self: start; }
.courses header > p:last-child, .areas header > p:last-child { margin: 16px 0 0; color: var(--muted); line-height: 1.75; font-size: 14px; }
.course-table { border-top: 1px solid var(--line); }
.course-table article { min-height: 126px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); border-bottom: 1px solid var(--line); }
.course-copy { padding: 25px 24px 25px 0; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; }
.course-copy > span { color: var(--rose); font-size: 12px; font-weight: 900; }
.course-copy h3 { margin: 0 0 10px; font-size: 21px; }
.course-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.course-table ul { list-style: none; padding: 24px 0 24px 24px; margin: 0; display: grid; align-content: center; gap: 10px; border-left: 1px solid var(--line); }
.course-table li { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.course-table li b { color: var(--muted); font-weight: 600; }
.course-table li strong { color: var(--brown-deep); }
.course-note { max-width: 770px; margin: 28px 0 0 auto; color: var(--muted); font-size: 13px; line-height: 1.8; }

.areas { border-top: 1px solid var(--line); }
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.area-cards article { min-height: 310px; padding: 28px; display: flex; flex-direction: column; background: var(--cream-2); border: 1px solid var(--line); }
.area-cards article:nth-child(2) { background: #e6d7cc; }
.area-cards article:nth-child(3) { background: #ddcec4; }
.area-cards article > p { margin: 0; color: var(--rose); font-size: 11px; font-weight: 900; }
.area-cards h3 { margin: auto 0 10px; font-size: clamp(25px, 3vw, 39px); }
.area-cards span { color: var(--muted); font-size: 13px; }
.area-cards a { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.nearby { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.nearby a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.24); font-size: 12px; }
.nearby a:hover, .nearby a:focus-visible { background: var(--brown); color: white; }

.closing { width: min(1140px, calc(100% - 48px)); min-height: 540px; margin: 0 auto 96px; padding: 76px 66px; position: relative; overflow: hidden; background: var(--brown-deep); color: white; }
.closing > *:not(.rings) { position: relative; z-index: 2; }
.closing h2 { max-width: 760px; }
.closing > p:not(.section-label) { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.7); line-height: 1.85; }
.closing button { margin-top: 34px; background: white; color: var(--brown-deep); border-color: white; }
.rings { position: absolute; right: -150px; bottom: -340px; width: 740px; height: 740px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.rings::before, .rings::after { content: ""; position: absolute; inset: 86px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.rings::after { inset: 178px; }

footer { width: min(1140px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 104px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-lockup { width: 170px; height: auto; }
footer p { margin: 0; }
footer nav { display: flex; gap: 18px; }
footer small { grid-column: 2; }

.fixed-phone-cta { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 160; min-width: 116px; min-height: 50px; padding: 14px 21px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--brown-deep); color: white; box-shadow: 0 16px 34px rgba(78,53,41,.28); font-size: 14px; font-weight: 850; }

.consult-modal { position: fixed; inset: 0; z-index: 140; padding: 24px; display: flex; align-items: center; justify-content: center; background: rgba(35,28,24,.7); backdrop-filter: blur(7px); }
.consult-modal.is-hidden { display: none; }
.modal-panel { width: min(820px, 100%); min-height: 430px; position: relative; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: var(--cream-2); box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.modal-panel > img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: center 35%; }
.modal-panel > div { padding: 58px 46px; display: flex; flex-direction: column; justify-content: center; }
.modal-panel h2 { margin: 0; font-size: clamp(29px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.08; }
.modal-panel p:not(.section-label) { margin: 20px 0 0; color: var(--muted); line-height: 1.8; font-size: 14px; }
.modal-panel button:not(.modal-close) { margin-top: 28px; align-self: start; background: var(--brown); border-color: var(--brown); }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--brown-deep); font-size: 25px; cursor: pointer; }
body.modal-open { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.not-found { min-height: 100vh; padding: 40px; display: grid; place-content: center; justify-items: start; }
.not-found p { margin: 0; color: var(--rose); }
.not-found h1 { margin: 10px 0 28px; font-size: clamp(38px, 7vw, 72px); letter-spacing: -.05em; }
.not-found a { color: white; background: var(--brown); border-color: var(--brown); }
a:focus-visible, button:focus-visible { outline: 3px solid #b58a76; outline-offset: 3px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 170px 1fr; }
  .header-note { display: none; }
  .site-header nav { justify-self: end; }
  .hero { min-height: 700px; }
  .hero figure { width: 88%; }
  .hero-card { width: 66%; }
  .intro { gap: 50px; }
  .courses header, .areas header { grid-template-columns: 130px 1fr; }
  .course-table article { grid-template-columns: 1fr minmax(270px, .72fr); }
  footer { grid-template-columns: 180px 1fr; }
  footer nav, footer small { grid-column: 2; }
}

@media (max-width: 680px) {
  .header-inner, .hero, .intro, .courses, .areas, .closing, footer { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 76px; grid-template-columns: 142px 1fr; gap: 18px; }
  .brand, .brand-lockup { width: 142px; }
  .site-header nav { gap: 12px; font-size: 11px; }
  .site-header nav a { padding: 26px 0; }
  .hero { margin-top: 30px; min-height: auto; display: flex; flex-direction: column; }
  .hero figure { order: 1; width: 100%; margin: 0; border-radius: 160px 160px 12px 12px; }
  .hero figure img { height: min(118vw, 650px); object-position: center 36%; }
  .hero-card { order: 2; position: relative; left: auto; bottom: auto; width: 100%; margin-top: -1px; padding: 34px 26px 32px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero h2 { font-size: 23px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .intro { padding: 72px 0; grid-template-columns: 1fr; gap: 36px; }
  .intro h2, .courses h2, .areas h2, .closing h2 { font-size: clamp(34px, 10vw, 48px); }
  .courses, .areas { padding: 76px 0; }
  .courses header, .areas header { display: block; margin-bottom: 34px; }
  .courses header .section-label, .areas header .section-label { display: block; margin-bottom: 18px; }
  .course-table article { grid-template-columns: 1fr; }
  .course-copy { padding-right: 0; }
  .course-table ul { padding: 18px 0 24px 80px; border-left: 0; border-top: 1px dashed var(--line); }
  .area-cards { grid-template-columns: 1fr; }
  .area-cards article { min-height: 230px; }
  .closing { min-height: 500px; margin-bottom: 70px; padding: 52px 30px; }
  .rings { right: -330px; }
  footer { grid-template-columns: 1fr; padding-bottom: 112px; }
  footer nav, footer small { grid-column: 1; }
  .consult-modal { padding: 14px; }
  .modal-panel { max-height: calc(100vh - 28px); grid-template-columns: 1fr; overflow-y: auto; }
  .modal-panel > img { height: 220px; min-height: 220px; object-position: center 36%; }
  .modal-panel > div { padding: 32px 26px; }
  .fixed-phone-cta { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .header-inner { grid-template-columns: 124px 1fr; }
  .brand, .brand-lockup { width: 124px; }
  .site-header nav { gap: 9px; }
  .hero-card { padding-inline: 22px; }
  .course-copy { grid-template-columns: 44px 1fr; }
  .course-table ul { padding-left: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker > div { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
