:root {
  --ink: #102334;
  --blue: #123e63;
  --blue-soft: #e5eef3;
  --amber: #f1b84b;
  --coral: #d96852;
  --paper: #f6f4ee;
  --white: #fff;
  --muted: #5f6b72;
  --line: rgba(16, 35, 52, .18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "IBM Plex Sans KR", sans-serif; line-height: 1.65; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .7rem 1rem; color: var(--ink); background: white; }
.skip-link:focus { top: 1rem; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: white; border-bottom: 1px solid rgba(255,255,255,.28); }
.nav-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; }
.brand > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--ink); background: var(--amber); font-family: Georgia, serif; font-size: 1.15rem; }
.site-header nav { display: flex; gap: 2.2rem; font-size: .9rem; }
.nav-cta { padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.65); font-size: .88rem; font-weight: 600; }
.hero { position: relative; min-height: min(840px, 92vh); overflow: hidden; color: white; background: var(--blue); }
.hero > img, .hero-overlay { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero > img { object-position: center 53%; animation: image-in 1.2s ease-out both; }
.hero-overlay { background: linear-gradient(90deg, rgba(6,26,43,.92), rgba(10,42,66,.58) 58%, rgba(10,42,66,.12)); }
.hero-content { position: relative; z-index: 2; padding-top: clamp(180px, 25vh, 240px); animation: rise .8s .1s ease-out both; }
.eyebrow, .kicker { margin: 0 0 1.4rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.eyebrow { color: #f8d893; }
.hero h1, .local-hero h1, .not-found h1 { margin: 0; font-family: "Song Myung", serif; font-size: clamp(4rem, 9vw, 8.3rem); font-weight: 400; line-height: .92; letter-spacing: 0; }
.hero-copy { max-width: 600px; margin: 2rem 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding: .75rem 1.25rem; border: 0; font-weight: 700; }
.button-primary { color: var(--ink); background: var(--amber); }
.button-dark { color: white; background: var(--ink); }
.hero-facts { position: absolute; right: max(24px, calc((100% - var(--max))/2)); bottom: 30px; z-index: 2; display: flex; gap: 2rem; font-size: .8rem; }
.hero-facts span { padding-left: 1rem; border-left: 2px solid var(--amber); }
.method, .areas, .local-intro, .local-details { padding: 8rem 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: end; margin-bottom: 4.5rem; }
.section-heading > p, .section-heading > div:last-child { max-width: 570px; margin: 0; color: var(--muted); font-size: 1.05rem; }
h2 { margin: 0; font-family: "Song Myung", serif; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.16; letter-spacing: 0; }
.kicker { color: var(--coral); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.method-grid article { min-height: 255px; padding: 1.5rem; border-right: 1px solid var(--line); }
.method-grid article:first-child { padding-left: 0; }
.method-grid article:last-child { border-right: 0; }
.method-grid b { color: var(--coral); font-size: .75rem; }
.method-grid h3 { margin: 3.8rem 0 .8rem; font-size: 1.15rem; }
.method-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.grade-section { padding: 8rem 0; color: white; background: var(--blue); }
.section-heading.light > p { color: rgba(255,255,255,.68); }
.grade-section .kicker { color: var(--amber); }
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.grade-card { min-height: 230px; padding: 1.7rem; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.grade-card span { color: var(--amber); font-size: .65rem; letter-spacing: .1em; }
.grade-card h3 { margin: 2.2rem 0 .8rem; font-size: 1.15rem; }
.grade-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; }
.study-scene { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 690px; background: var(--blue-soft); }
.study-scene > img { height: 100%; object-fit: cover; }
.study-scene > div { align-self: center; padding: clamp(3rem, 7vw, 7rem); }
.study-scene p { color: var(--muted); }
.study-scene ul { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.study-scene li { padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.region-link { position: relative; min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .2s, background .2s; }
.region-link small { color: var(--muted); font-size: .7rem; }
.region-link strong { margin-top: .35rem; }
.region-link > span { position: absolute; right: 1rem; bottom: 1rem; }
.region-link:hover, .region-link:focus-visible { color: var(--ink); background: var(--amber); }
.consult { padding: 7rem 0; background: var(--amber); }
.consult-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.consult-inner p { max-width: 560px; margin: 0 0 1.8rem; }
.consult .kicker { color: var(--blue); }
footer { padding: 3rem 0; color: rgba(255,255,255,.67); background: #0c1a25; font-size: .84rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.footer-brand { color: white; }
.footer-inner p { margin: 0; }
.local-page + footer { border-top: 1px solid rgba(255,255,255,.15); }
.local-hero { padding: 9rem 0 7rem; color: white; background: var(--blue); }
.breadcrumbs { display: flex; gap: .7rem; margin: 1rem 0 4rem; color: rgba(255,255,255,.55); font-size: .82rem; }
.local-hero h1 { max-width: 950px; font-size: clamp(3.7rem, 8vw, 7.2rem); }
.local-hero > .wrap > p:last-child { max-width: 690px; margin: 2rem 0 0; color: rgba(255,255,255,.72); font-size: 1.12rem; }
.local-intro .section-heading { align-items: start; margin-bottom: 0; }
.local-intro .section-heading > div:last-child p { margin: 0 0 1.3rem; }
.local-grades { padding: 7rem 0; }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8rem; }
.detail-grid article > p:not(.kicker) { max-width: 600px; color: var(--muted); }
.detail-grid h3 { margin: 0 0 1.5rem; font-size: 1.45rem; }
.nearby-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.nearby-links a { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.nearby-links a:nth-child(odd) { margin-right: 1rem; }
.local-cta { padding: 3.5rem 0; color: white; background: var(--coral); }
.local-cta > .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.local-cta h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.local-cta .kicker { color: white; }
.not-found { min-height: 75vh; display: grid; place-items: center; padding: 8rem 1.5rem; text-align: center; background: var(--blue-soft); }
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); }
.not-found p { color: var(--muted); }

@keyframes image-in { from { transform: scale(1.05); filter: brightness(.75); } to { transform: scale(1); filter: brightness(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .site-header nav { display: none; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 170px; }
  .hero-facts { left: 24px; right: 24px; flex-wrap: wrap; }
  .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid article:nth-child(2) { border-right: 0; }
  .method-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .method-grid article:nth-child(3) { padding-left: 0; }
  .grade-grid { grid-template-columns: 1fr 1fr; }
  .study-scene { grid-template-columns: 1fr; }
  .study-scene > img { min-height: 420px; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .consult-inner, .detail-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { height: 68px; }
  .brand { font-size: .92rem; }
  .nav-cta { padding: .5rem .65rem; }
  .hero { min-height: 720px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(6,26,43,.55), rgba(6,26,43,.93)); }
  .hero h1 { font-size: 4rem; }
  .hero-facts { left: 16px; right: 16px; gap: .7rem; }
  .hero-facts span { width: 100%; }
  .method, .areas, .local-intro, .local-details, .grade-section { padding: 5rem 0; }
  .method-grid, .grade-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 205px; padding: 1.4rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .method-grid article:first-child { border-top: 0; }
  .method-grid h3 { margin-top: 2.3rem; }
  .grade-card { min-height: 205px; }
  .study-scene > img { min-height: 310px; }
  .study-scene > div { padding: 4.5rem 16px; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .region-link { min-height: 105px; padding: 1rem; }
  .region-link strong { font-size: .9rem; }
  .consult-inner { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .local-hero { padding: 7rem 0 5rem; }
  .breadcrumbs { margin-bottom: 3rem; }
  .local-hero h1 { font-size: 3.4rem; }
  .nearby-links { grid-template-columns: 1fr; }
  .nearby-links a:nth-child(odd) { margin-right: 0; }
  .local-cta > .wrap { align-items: flex-start; flex-direction: column; }
}

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