:root {
  --ink: #25211e;
  --muted: #6c655e;
  --paper: #f6f2ea;
  --paper-2: #efe8dc;
  --white: #fffdf9;
  --green: #244d3d;
  --green-2: #17382d;
  --peach: #d88762;
  --line: rgba(37, 33, 30, 0.14);
  --serif: "Gowun Batang", Georgia, serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", 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.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246, 242, 234, .9); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { height: 78px; max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 216px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 600; }
.site-nav > a { position: relative; }
.site-nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; height: 1px; background: var(--ink); transition: right .2s; }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }

.button { border: 0; border-radius: 999px; background: var(--green); color: white; min-height: 52px; padding: .85rem 1.45rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--green-2); }
.button-small { min-height: 42px; padding: .6rem 1.15rem; font-size: .88rem; }
.button-outline { background: transparent; color: var(--green); border: 1px solid var(--green); }
.button-outline:hover { color: white; }
.text-link { border: 0; background: transparent; padding: .5rem .1rem; font-weight: 700; color: var(--ink); cursor: pointer; border-bottom: 1px solid currentColor; }
.text-link span { margin-left: .35rem; }

.hero { min-height: calc(100svh - 78px); max-width: 1440px; margin: 0 auto; padding: 50px max(32px, calc((100vw - 1240px)/2)) 76px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(48px, 7vw, 110px); overflow: hidden; }
.eyebrow { margin: 0 0 1.15rem; color: var(--peach); font-size: .76rem; line-height: 1; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5.7vw, 6.2rem); line-height: 1.16; letter-spacing: -.075em; font-weight: 700; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 570px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); word-break: keep-all; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.quick-facts { list-style: none; padding: 0; margin: 3.6rem 0 0; display: flex; gap: 2.5rem; }
.quick-facts li { display: grid; gap: .15rem; }
.quick-facts strong { font-family: var(--serif); font-size: 1.2rem; }
.quick-facts span { color: var(--muted); font-size: .8rem; }

.hero-visual { position: relative; aspect-ratio: .8; min-height: 540px; border-radius: 210px 210px 12px 12px; background: var(--green); color: white; overflow: hidden; box-shadow: 24px 26px 0 var(--paper-2); }
.hero-visual::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); right: -90px; top: 70px; }
.hero-visual::after { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 190px 190px 6px 6px; }
.visual-caption { position: absolute; z-index: 2; left: 14%; top: 17%; display: grid; gap: 1rem; }
.visual-caption span { color: #e8d1bb; font-size: .86rem; letter-spacing: .18em; }
.visual-caption strong { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.18; letter-spacing: -.04em; }
.music-line { position: absolute; right: 14%; top: 44%; font-family: var(--serif); font-size: 5rem; color: var(--peach); transform: rotate(12deg); }
.piano-keys { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 24%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transform: perspective(560px) rotateX(14deg) rotateZ(-5deg); transform-origin: bottom; }
.piano-keys i { display: block; background: #f7f3eb; border-radius: 2px 2px 8px 8px; position: relative; }
.piano-keys i:nth-child(1)::after, .piano-keys i:nth-child(2)::after, .piano-keys i:nth-child(4)::after, .piano-keys i:nth-child(5)::after, .piano-keys i:nth-child(6)::after { content: ""; position: absolute; z-index: 1; width: 58%; height: 60%; background: var(--ink); right: -31%; top: 0; border-radius: 0 0 5px 5px; }

.direction { max-width: 1240px; margin: 0 auto; padding: 140px 32px 150px; }
.section-heading { max-width: 740px; margin-bottom: 4.5rem; }
.section-heading h2, .contact h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4.7rem); line-height: 1.22; letter-spacing: -.065em; }
.section-heading > p:last-child { max-width: 580px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.08rem; word-break: keep-all; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles article { padding: 2.5rem 2.5rem 1rem 0; }
.principles article + article { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.card-number { color: var(--peach); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.principles h3 { margin: 2.5rem 0 1rem; font-family: var(--serif); font-size: 1.55rem; }
.principles p { margin: 0; color: var(--muted); word-break: keep-all; }

.program { background: var(--green); color: white; padding: 140px max(32px, calc((100vw - 1240px)/2)) 150px; }
.section-heading-light p:last-child { color: rgba(255,255,255,.7); }
.program-shell { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid rgba(255,255,255,.2); }
.age-tabs { padding: 1.3rem 2rem 1.3rem 0; border-right: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; align-items: stretch; }
.age-tab { border: 0; background: transparent; color: rgba(255,255,255,.55); text-align: left; padding: 1.1rem 1rem; border-radius: 10px; cursor: pointer; font-size: 1.02rem; font-weight: 700; }
.age-tab.is-active { background: white; color: var(--green); }
.program-panel { min-height: 360px; padding: 3.2rem 0 3.4rem 4.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; }
.program-kicker { color: #e8d1bb; margin: 0 0 .6rem; font-weight: 700; }
.program-panel h3 { margin: 0; max-width: 650px; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.8rem); line-height: 1.26; letter-spacing: -.06em; }
.program-panel > div > p:last-child { color: rgba(255,255,255,.7); max-width: 630px; margin: 1.4rem 0 0; word-break: keep-all; }
.program-points { list-style: none; padding: 0; margin: 0; }
.program-points li { position: relative; padding: 1.1rem 0 1.1rem 2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.program-points li::before { content: "✓"; position: absolute; left: 0; color: #e8d1bb; }
.lesson-flow { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 3.2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.flow-title { display: grid; gap: .5rem; align-content: start; }
.flow-title span { color: #e8d1bb; font-size: .85rem; font-weight: 700; }
.flow-title strong { font-family: var(--serif); font-size: 1.7rem; line-height: 1.35; }
.flow-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.flow-items article { padding: 1.5rem; background: rgba(255,255,255,.08); border-radius: 14px; display: grid; gap: 1.4rem; }
.flow-items article > span { color: #e8d1bb; font-size: .72rem; letter-spacing: .1em; }
.flow-items article div { display: grid; gap: .3rem; }
.flow-items small { color: rgba(255,255,255,.62); }

.contact { max-width: 1240px; margin: 0 auto; padding: 150px 32px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 9vw, 120px); align-items: center; }
.contact-note { max-width: 520px; margin: 1.7rem 0 0; color: var(--muted); word-break: keep-all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.location-card { background: var(--white); padding: 2.3rem; border-radius: 24px; box-shadow: 0 24px 70px rgba(37,33,30,.08); }
.academy-gallery { height: 268px; display: grid; grid-template-columns: 1.35fr .85fr; grid-template-rows: 1fr 1fr; gap: 6px; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.academy-photo { margin: 0; min-width: 0; min-height: 0; overflow: hidden; }
.academy-photo-main { grid-row: 1 / -1; }
.academy-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.academy-photo-main img { object-position: center; }
.academy-photo-entrance img { object-position: center 54%; }
.academy-photo-lesson img { object-position: center 55%; }
.academy-photo:hover img { transform: scale(1.025); }
.location-card dl { margin: 2rem 0; }
.location-card dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.location-card dt { color: var(--muted); font-size: .82rem; }
.location-card dd { margin: 0; font-weight: 600; word-break: keep-all; }
.location-card .channel-row { padding: .72rem 0; }
.channel-link { display: inline; color: var(--green); font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; word-break: break-all; text-underline-offset: .25rem; }
.channel-link:hover, .channel-link:focus-visible { text-decoration: underline; }
.map-link { font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; }

footer { border-top: 1px solid var(--line); max-width: 1240px; margin: 0 auto; padding: 3rem 32px 4.5rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem; }
.footer-brand { grid-column: 1 / -1; margin-bottom: 1rem; }
.footer-logo { width: 264px; }
footer p, footer small { margin: 0; color: var(--muted); font-size: .82rem; }
.mobile-cta { display: none; }

.consult-dialog { width: min(620px, calc(100vw - 28px)); max-height: min(92vh, 760px); border: 0; border-radius: 24px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.consult-dialog::backdrop { background: rgba(23, 56, 45, .62); backdrop-filter: blur(5px); }
.dialog-card { padding: clamp(1.5rem, 5vw, 3rem); position: relative; overflow: auto; }
.dialog-card h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.05em; margin: 0; }
.dialog-card > p:not(.eyebrow):not(.form-error):not(.privacy-note) { color: var(--muted); margin: .8rem 0 1.8rem; }
.dialog-close { position: absolute; right: 1.2rem; top: 1rem; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.8rem; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label { display: grid; gap: .45rem; font-size: .84rem; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid select, .form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: .85rem .9rem; color: var(--ink); }
.form-grid textarea { resize: vertical; }
.form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--peach); border-color: transparent; }
.form-error { color: #a33d2f; min-height: 1.5em; margin: .6rem 0 0; font-size: .85rem; }
.dialog-actions { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; }
.privacy-note { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 2rem; transform: translate(-50%, 130%); background: var(--ink); color: white; border-radius: 999px; padding: .75rem 1.2rem; font-size: .86rem; opacity: 0; transition: .3s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

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

@media (max-width: 900px) {
  .header-inner { height: 68px; padding: 0 20px; }
  .menu-toggle { display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; border: 0; border-radius: 50%; background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; background: var(--ink); transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 1.2rem 20px 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .8rem 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 64px 20px 90px; gap: 65px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { width: min(100%, 560px); min-height: 0; justify-self: center; }
  .direction, .contact { padding: 100px 20px; }
  .program { padding: 100px 20px 110px; }
  .program-shell { grid-template-columns: 1fr; }
  .age-tabs { padding: 1rem 0; border-right: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; overflow-x: auto; }
  .age-tab { text-align: center; white-space: nowrap; padding: .85rem .5rem; }
  .program-panel { padding: 3rem 0; grid-template-columns: 1fr; gap: 2.5rem; }
  .lesson-flow { grid-template-columns: 1fr; gap: 2rem; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { padding-bottom: 68px; }
  .brand-logo { width: 190px; }
  .footer-logo { width: 228px; }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-lead { margin-top: 1.4rem; }
  .quick-facts { gap: 0; justify-content: space-between; margin-top: 2.7rem; }
  .quick-facts li { padding-right: 1rem; }
  .hero-visual { min-height: 430px; box-shadow: 12px 14px 0 var(--paper-2); }
  .visual-caption { left: 12%; top: 18%; }
  .visual-caption strong { font-size: 2.7rem; }
  .section-heading { margin-bottom: 3rem; }
  .principles { grid-template-columns: 1fr; }
  .principles article { padding: 2rem 0; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .principles h3 { margin-top: 1.3rem; }
  .age-tabs { grid-template-columns: repeat(4, minmax(86px, 1fr)); margin-right: -20px; padding-right: 20px; }
  .program-panel { min-height: 480px; align-content: start; }
  .flow-items { grid-template-columns: 1fr; }
  .flow-items article { grid-template-columns: 40px 1fr; gap: .5rem; }
  .location-card { padding: 1.2rem; border-radius: 18px; }
  .academy-gallery { height: 238px; gap: 4px; border-radius: 12px; }
  .location-card dl > div { grid-template-columns: 82px 1fr; gap: .7rem; }
  footer { margin: 0 20px; padding: 3rem 0 2rem; grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .mobile-cta { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: 68px; display: grid; grid-template-columns: 1fr 1.35fr; background: white; border-top: 1px solid var(--line); padding: 8px 12px; gap: 8px; }
  .mobile-cta a, .mobile-cta button { border: 1px solid var(--green); border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--green); background: white; }
  .mobile-cta button { background: var(--green); color: white; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
}

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