:root {
  --ink: #15201d;
  --forest: #16332d;
  --green: #27594d;
  --mint: #cfe4dc;
  --paper: #f3f0e8;
  --white: #fffdf8;
  --coral: #ee745e;
  --line: rgba(21, 32, 29, 0.18);
  --display: "Gowun Batang", serif;
  --sans: "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .7rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(1.2rem, 4vw, 4.5rem); color: white; background: linear-gradient(to bottom, rgba(8, 20, 17, .75), transparent); transition: background .25s, height .25s; }
.site-header.scrolled { height: 66px; background: rgba(22, 51, 45, .96); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid currentColor; font-family: Georgia, serif; font-size: 1.05rem; }
.desktop-nav { display: flex; gap: 2rem; font-size: .88rem; font-weight: 600; }
.desktop-nav a { border-bottom: 1px solid transparent; }
.desktop-nav a:hover { border-color: currentColor; }
.header-cta { justify-self: end; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.75); font-size: .84rem; font-weight: 700; }

.hero { position: relative; min-height: min(790px, 92vh); overflow: hidden; display: flex; align-items: center; color: white; background: var(--forest); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; animation: hero-in 1.2s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,25,21,.88) 0%, rgba(9,25,21,.55) 50%, rgba(9,25,21,.15) 100%), linear-gradient(0deg, rgba(9,25,21,.55), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(1160px, calc(100% - 3rem)); margin: 3rem auto 0; }
.eyebrow, .section-number { margin: 0 0 1.2rem; font-size: .76rem; font-weight: 700; letter-spacing: 0; }
.eyebrow { color: #e5d9a9; }
h1, h2 { margin: 0; font-family: var(--display); line-height: 1.22; }
h1 { max-width: 760px; font-size: clamp(3.2rem, 8vw, 7.4rem); }
.hero-copy { max-width: 600px; margin: 1.6rem 0 2.2rem; font-size: clamp(1rem, 1.6vw, 1.25rem); word-break: keep-all; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .75rem 1.4rem; border: 0; cursor: pointer; font-weight: 700; }
.button-primary { color: var(--ink); background: #f1d77d; }
.text-link { padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.6); font-size: .9rem; }
.hero-note { position: absolute; z-index: 2; right: clamp(1.5rem, 4vw, 4.5rem); bottom: 2rem; display: flex; gap: 1.5rem; font-size: .78rem; }
.hero-note span + span { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.45); }

.approach, .areas, .contact { padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - 1160px) / 2)); }
.approach { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem 7vw; }
.section-number { color: var(--green); }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.25rem); word-break: keep-all; }
.approach-copy { max-width: 640px; font-size: 1.05rem; }
.approach-copy p:first-child { margin-top: 2.3rem; }
.process-list { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.process-list li { display: grid; grid-template-rows: auto 1fr; min-height: 245px; padding: 1.4rem 1.2rem; border-right: 1px solid var(--line); }
.process-list li:last-child { border-right: 0; }
.process-list li > span { color: var(--coral); font-size: .76rem; font-weight: 800; }
.process-list strong { font-size: 1.1rem; }
.process-list p { margin: .45rem 0 0; color: #4e5a56; font-size: .9rem; }

.program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 720px; background: var(--white); }
.program-visual { position: relative; min-height: 580px; overflow: hidden; }
.program-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); }
.program-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,27,23,.68), transparent 58%); }
.program-visual p { position: absolute; z-index: 1; left: clamp(1.5rem, 5vw, 4.5rem); bottom: 3rem; margin: 0; color: white; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.35; }
.program-content { align-self: center; padding: 5rem clamp(1.5rem, 6vw, 6.5rem); }
.program-content h2 { margin-bottom: 2.7rem; font-size: clamp(2.2rem, 3.5vw, 3.5rem); }
.program-list { border-top: 1px solid var(--ink); }
.program-list details { border-bottom: 1px solid var(--line); }
.program-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-weight: 700; }
.program-list summary::-webkit-details-marker { display: none; }
.program-list summary span:last-child { color: var(--coral); font-size: 1.25rem; transition: transform .2s; }
.program-list details[open] summary span:last-child { transform: rotate(45deg); }
.program-list details p { margin: -.3rem 0 1.4rem; color: #4e5a56; font-size: .93rem; }

.areas { color: white; background: var(--forest); }
.areas .section-number { color: #f1d77d; }
.area-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 1rem 5rem; margin-bottom: 3.5rem; }
.area-heading .section-number { grid-column: 1 / -1; }
.area-heading p:last-child { margin: 0 0 .55rem; color: rgba(255,255,255,.7); }
.district-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.45); }
.district-grid a { display: flex; justify-content: space-between; min-height: 78px; padding: 1.35rem .8rem; border-bottom: 1px solid rgba(255,255,255,.25); font-size: .92rem; transition: color .2s, background .2s; }
.district-grid a:hover { color: var(--forest); background: #f1d77d; }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; background: var(--mint); }
.contact-heading > p:last-child { max-width: 430px; margin-top: 1.5rem; color: #4e5a56; }
.contact-phone { display: grid; width: fit-content; margin-top: 2rem; padding-bottom: .35rem; border-bottom: 2px solid var(--green); color: var(--forest); font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.25; }
.contact-phone span { margin-bottom: .25rem; font-family: var(--sans); font-size: .72rem; font-weight: 700; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-content: start; }
.contact-form label { display: grid; gap: .45rem; }
.contact-form label > span { font-size: .82rem; font-weight: 700; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(21,32,29,.45); border-radius: 0; padding: .8rem .2rem; color: var(--ink); background: transparent; outline: 0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--coral); }
.contact-form textarea { resize: vertical; }
.full-width { grid-column: 1 / -1; }
.consent { grid-template-columns: auto 1fr; align-items: center; }
.consent input { width: 18px; height: 18px; accent-color: var(--green); }
.button-submit { color: white; background: var(--forest); }
.form-status { min-height: 1.7rem; margin: 0; font-size: .85rem; }

footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 3rem max(1.5rem, calc((100% - 1160px) / 2)); color: rgba(255,255,255,.75); background: #0e211c; font-size: .82rem; }
.footer-brand { color: white; }
.footer-phone { color: white; font-size: .9rem; font-weight: 700; }
.copyright { grid-column: 2; margin: 0; }

/* District pages */
.sub-header { background: rgba(22,51,45,.98); }
.area-hero { padding: 170px max(1.5rem, calc((100% - 980px) / 2)) 90px; color: white; background: var(--forest); }
.area-hero h1 { max-width: none; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.area-hero .hero-copy { margin-bottom: 0; }
.breadcrumb { margin-bottom: 2rem; color: rgba(255,255,255,.65); font-size: .82rem; }
.area-main { width: min(980px, calc(100% - 3rem)); margin: 0 auto; padding: 6rem 0; }
.area-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; margin-bottom: 6rem; }
.area-intro h2, .grade-guide h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.area-intro p { margin-top: .3rem; color: #495550; font-size: 1.03rem; }
.grade-guide { padding-top: 5rem; border-top: 1px solid var(--ink); }
.grade-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.grade-card { padding: 1.6rem; background: var(--white); }
.grade-card span { color: var(--coral); font-size: .72rem; font-weight: 800; }
.grade-card h3 { margin: .7rem 0 .5rem; }
.grade-card p { margin: 0; color: #56615d; font-size: .88rem; }
.area-cta { margin-top: 6rem; padding: 3rem; color: white; background: var(--green); }
.area-cta h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.area-cta p { margin-bottom: 1.6rem; color: rgba(255,255,255,.78); }
.area-cta .button { color: var(--ink); background: #f1d77d; }
.area-footer { display: flex; justify-content: space-between; }

@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-image { animation: none; } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .approach, .contact { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(2) { border-right: 0; }
  .program { grid-template-columns: 1fr; }
  .program-visual { min-height: 520px; }
  .area-heading { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(3, 1fr); }
  .contact { gap: 3rem; }
  .area-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .grade-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding-inline: 1rem; }
  .brand { font-size: .9rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; }
  .header-cta { padding: .45rem .7rem; font-size: .75rem; }
  .hero { min-height: 720px; align-items: flex-start; padding-top: 150px; }
  .hero-content { margin-top: 0; }
  h1 { font-size: clamp(3rem, 17vw, 4.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .hero-note { right: auto; left: 1.5rem; bottom: 1.5rem; flex-wrap: wrap; gap: .5rem 1rem; }
  .hero-note span + span { padding-left: 1rem; }
  .approach, .areas, .contact { padding-inline: 1.5rem; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: 155px; border-right: 0; border-bottom: 1px solid var(--line); }
  .program-visual { min-height: 430px; }
  .program-content { padding: 4rem 1.5rem; }
  .district-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label { grid-column: 1; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
  .area-hero { padding-top: 135px; }
  .area-hero h1 { font-size: 2.45rem; word-break: keep-all; }
  .grade-cards { grid-template-columns: 1fr; }
  .area-cta { padding: 2rem 1.5rem; }
  .area-footer { display: grid; }
}