@font-face {
  font-family: "Hahmlet Brand";
  src: url("assets/brand-hahmlet.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172c3e;
  --muted: #496376;
  --brand: #4d8fba;
  --deep: #195b87;
  --navy: #143e5a;
  --pale: #eef6fb;
  --line: #d5e2eb;
  --wrap: 1160px;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font); line-height: 1.65; word-break: keep-all; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.24; letter-spacing: -.06em; }
:focus-visible { outline: 3px solid #bf6222; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-150%); background: white; padding: 8px 16px; }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #e8eff3; }
.header-inner { display: flex; min-height: 88px; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(30px, 4vw, 41px); line-height: 1.2; white-space: nowrap; }
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.03;
  text-align: center;
}
.brand-tagline {
  color: var(--muted);
  font-size: clamp(11px, calc(1.2vw + 1px), 13px);
  font-weight: 750;
  letter-spacing: clamp(3px, calc(1.1vw - 4.5px), 5.75px);
  line-height: 1.2;
}
.brand-name {
  color: #245969;
  font-family: "Hahmlet Brand", AppleMyungjo, Batang, serif;
  font-weight: 600;
  letter-spacing: -.025em;
  padding-bottom: .03em;
  -webkit-text-stroke: 0;
}
.brand img { width: 58px; height: auto; flex: none; border-radius: 8px; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); font-size: 15px; font-weight: 650; }
nav a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { border: 1px solid #a7c1d4; border-radius: 6px; padding: 8px 14px; font-size: 14px; font-weight: 750; }
.nav-contact:hover { background: var(--pale); }
.nav-contact span, .button span { margin-left: 6px; }
.opening { background: linear-gradient(180deg, #eef6fb 0%, #eef6fb 80%, #fff 80%); }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(18px, 4vw, 62px); padding-block: 54px 34px; }
.hero-label, .section-label { color: var(--deep); font-size: 14px; font-weight: 800; letter-spacing: .015em; }
.hero-label { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.hero-label::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
h1 { font-size: clamp(37px, 4.55vw, 67px); font-weight: 850; line-height: 1.19; white-space: nowrap; }
h1 em { color: var(--deep); font-style: normal; }
.hero-description { margin-top: 22px; font-size: clamp(15px, 1.35vw, 19px); color: var(--muted); }
.hero-picture { position: relative; }
.hero-picture img { width: 100%; height: clamp(256px, 29vw, 392px); object-fit: cover; border-radius: 10px 10px 76px 10px; }
.entrances { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.entrance { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(12px,2vw,22px); align-items: center; min-height: 132px; padding: 21px clamp(14px,2.5vw,30px); border: 1px solid #bed7e9; border-radius: 12px; background: #fff; box-shadow: 0 9px 24px #143e5a0b; transition: transform .18s, box-shadow .18s; }
.entrance:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #143e5a25; }
.partner-route { background: var(--deep); color: #fff; border-color: var(--deep); }
.route-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--deep); background: #e5f1fa; border-radius: 11px; }
.partner-route .route-icon { color: #fff; background: #ffffff24; }
.route-icon i { position: relative; display: block; width: 24px; height: 19px; border: 2px solid currentColor; }
.book-icon { border-radius: 3px 3px 4px 4px; }
.book-icon::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: currentColor; left: calc(50% - 1px); }
.building-icon { border-radius: 2px; margin-top: 5px; }
.building-icon::before { content: ""; position: absolute; top: -8px; left: 3px; width: 13px; height: 7px; border: 2px solid currentColor; border-bottom: 0; transform: skewY(-18deg); }
.building-icon::after { content: ""; position: absolute; bottom: 0; left: 8px; height: 8px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; width: 3px; }
.entrance strong, .entrance small, .route-label { display: block; }
.entrance strong { font-size: clamp(21px, 2.1vw, 29px); line-height: 1.2; letter-spacing: -.055em; }
.entrance small { color: var(--muted); margin-top: 5px; font-size: 14px; }
.partner-route small { color: #e3f0fa; }
.route-label { margin-top: 8px; color: var(--deep); font-size: 13px; font-weight: 800; }
.partner-route .route-label { color: #fff; }
.route-arrow { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #c8dcea; border-radius: 50%; font-size: 19px; }
.partner-route .route-arrow { border-color: #ffffff65; }
.content-section { padding-block: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-label { margin-bottom: 9px; }
h2 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 800; }
.section-heading > p, .course-note { color: var(--muted); font-size: 15px; }
.course-grid, .case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course, .case { border: 1px solid var(--line); border-radius: 10px; padding: 23px; background: #fff; }
.course h3, .case h3 { font-size: 22px; }
.course > p { margin-top: 10px; min-height: 77px; color: var(--muted); font-size: 15px; }
details { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0 2px; color: var(--deep); font-size: 14px; font-weight: 780; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 21px; line-height: 1; font-weight: 500; }
details[open] > summary::after { content: "−"; }
.course-detail p { padding-top: 13px; font-size: 14px; }
.course-detail strong, .course-detail span { display: block; }
.course-detail span { color: var(--muted); margin-top: 3px; }
details button { border: 0; padding: 5px 0; background: transparent; color: var(--deep); font-weight: 780; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.course-note { margin-top: 18px; }
.partner-section { background: var(--navy); color: white; }
.partner-inner { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(25px, 6vw, 100px); }
.partner-intro .section-label { color: #c1e4f9; }
.partner-intro > p:not(.section-label) { color: #d8e8f2; max-width: 360px; margin-top: 17px; }
.partner-intro .button { margin-top: 23px; }
.partner-list { border-bottom: 1px solid #ffffff45; }
.partner-list details { border-color: #ffffff45; }
.partner-list summary { padding: 17px 0; color: #fff; font-size: 18px; }
.partner-list p { color: #e1eef5; font-size: 15px; padding-bottom: 5px; }
.partner-list details button { color: #fff; margin-bottom: 12px; }
.case-totals { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: var(--deep); color: #fff; border-radius: 12px; }
.case-totals > div { display: flex; flex-direction: column; justify-content: center; min-height: 130px; padding: 16px 28px; }
.case-totals > div + div { border-left: 1px solid #ffffff55; }
.case-totals dt { font-size: 15px; font-weight: 700; color: #e2f2fc; }
.case-totals dd, .case-metrics dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
.case-totals dd { font-size: 19px; }
.case-totals dd strong { font-size: clamp(42px, 6vw, 62px); letter-spacing: -.05em; margin-right: 3px; }
.case-basis { margin: 10px 0 24px; font-size: 13px; color: var(--muted); }
.case { border-top: 3px solid var(--brand); }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 12px; padding: 10px; border-radius: 7px; background: var(--pale); color: var(--deep); }
.case-metrics > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.case-metrics dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.case-metrics dd { font-size: 28px; letter-spacing: -.035em; }
.case-metrics dd span { font-size: 13px; margin-left: 2px; }
.case > p { color: var(--deep); font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.case > span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; }
.case > .case-breakdown { margin: 11px 0 0; font-weight: 650; }
.about-section { background: var(--pale); }
.about-layout { display: grid; grid-template-columns: minmax(200px, 290px) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 68px); padding-block: 64px; justify-content: center; }
.portrait { border-radius: 12px 12px 58px 12px; background: linear-gradient(150deg,#f8fbfd,#dcecf7); overflow: hidden; }
.portrait img { width: 100%; }
.about-layout h2 span { font-size: .44em; letter-spacing: 0; white-space: nowrap; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; margin-top: 22px; }
.profile-grid h3 { border-bottom: 1px solid #b8cfe0; padding-bottom: 8px; color: var(--deep); font-size: 18px; }
.profile-grid ul { padding-left: 1.2em; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.profile-grid li + li { margin-top: 6px; }
.profile-grid li span { white-space: nowrap; }
.contact-section { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 74px; }
.contact-section h2 + p { margin-top: 10px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; max-width: 395px; }
.contact-actions a { flex-basis: 100%; color: var(--deep); font-size: 14px; padding-top: 5px; text-decoration: underline; text-underline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; background: var(--deep); color: #fff; font-size: 14px; font-weight: 750; }
.button:hover { background: var(--navy); }
.white-button, .outline { background: #fff; color: var(--deep); border-color: #a7c1d4; }
.white-button:hover, .outline:hover { background: #e6f2fa; }
footer { border-top: 1px solid var(--line); background: #f6f9fb; }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 105px; padding-block: 14px; color: var(--muted); font-size: 13px; }
.footer-inner > a:last-child { margin-left: auto; text-decoration: underline; white-space: nowrap; }
dialog { width: min(530px, calc(100% - 30px)); max-height: 90dvh; padding: 23px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); }
dialog::backdrop { background: #142d45a0; }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dialog-top h2 { font-size: 27px; }
.close { width: 35px; height: 35px; border: 0; border-radius: 8px; background: var(--pale); color: var(--ink); font-size: 23px; line-height: 1; flex: 0 0 auto; }
.preview-note { padding: 9px 12px; margin: 12px 0 14px; border-radius: 7px; background: var(--pale); color: var(--muted); font-size: 13px; }
form { display: grid; gap: 10px; }
form label { display: grid; gap: 3px; font-size: 14px; font-weight: 720; }
form small { display: inline; font-weight: 450; }
form input, form select, form textarea { width: 100%; color: var(--ink); border: 1px solid #adc3d2; border-radius: 6px; min-height: 42px; padding: 7px 9px; background: #fff; font-size: 16px; }
form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inquiry-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; font-size: 14px; }
.inquiry-result dt { font-weight: 750; }
.inquiry-result dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 12px; }
  nav { gap: clamp(12px, 2vw, 20px); }
  .course-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course > p { min-height: 0; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 112px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .brand { font-size: 27px; gap: 9px; }
  .brand-tagline { letter-spacing: 2px; }
  .brand img { width: 44px; }
  .nav-contact { font-size: 12px; padding: 5px 9px; }
  nav { order: 3; justify-content: space-between; width: 100%; min-height: 38px; gap: 6px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 17px; padding-block: 29px 14px; }
  .hero-copy { display: contents; }
  .hero-label { margin: 0; font-size: 12px; }
  h1 { font-size: clamp(32px, 7.7vw, 52px); }
  .hero-description { margin: 0; }
  .desktop { display: none; }
  .hero-picture { display: none; }
  .opening { background: linear-gradient(180deg, #eef6fb 0%, #eef6fb 87%, #fff 87%); padding-bottom: 0; }
  .entrances { grid-template-columns: 1fr; gap: 8px; }
  .entrance { min-height: 84px; padding: 10px 13px; grid-template-columns: auto 1fr auto; }
  .entrance strong { font-size: 20px; }
  .entrance small { margin-top: 3px; font-size: 12px; }
  .route-label { margin-top: 3px; font-size: 11px; }
  .route-icon { width: 40px; height: 40px; }
  .route-arrow { width: 28px; height: 28px; font-size: 16px; }
  .content-section { padding-block: 50px; }
  .section-heading, .contact-section { align-items: start; flex-direction: column; gap: 11px; }
  .course, .case { padding: 15px; }
  .course h3, .case h3 { font-size: 19px; }
  .case-totals > div { min-height: 107px; padding: 12px; }
  .case-totals dt { font-size: 12px; }
  .partner-inner { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-block: 43px; }
  .portrait { max-width: 200px; }
  .contact-section { padding-block: 48px; }
  .contact-actions { margin-top: 8px; }
  .footer-inner { gap: 12px 18px; flex-wrap: wrap; }
  .footer-inner p { order: 3; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .course-grid, .case-grid { grid-template-columns: 1fr; gap: 9px; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.inquiry-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.submission-status { color: #9a351e; font-size: 14px; }
.submission-status:empty { display: none; }
button:disabled { cursor: wait; opacity: .65; }
