/* 학교 사이트 틀 school-v1 — A(단정한 명문) + B(따뜻한 이야기). 학교 색은 :root만 바꾸면 됨 */
:root {
  --navy-dd: #0E2240; --navy-d: #162B51; --navy: #0A4060; --teal: #03696B;
  --gold: #E9B21A; --gold-d: #AE8F37; --red: #941716;
  --paper: #FBF8F1; --paper-2: #F3EEE3; --ink: #1B2433; --sub: #5A6474; --line: #E2DCCF;
  --sk-a: #E9E4D8; --sk-b: #F5F1E8;
  --wrap: 1160px; --r: 14px;
  --serif: "Hahmlet", "Hanuman", Georgia, serif;
  --display: "Cormorant Garamond", "Song Myung", "Hanuman", Georgia, serif;
  --sans: "Lexend", "Gothic A1", "Kantumruy Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-synthesis: none; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.75; font-size: 20px; font-weight: 400; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="km"] body { line-height: 1.9; }
html[lang="km"] { --serif: "Hanuman", "Hahmlet", Georgia, serif; --display: "Hanuman", "Cormorant Garamond", Georgia, serif; --sans: "Kantumruy Pro", "Lexend", "Gothic A1", sans-serif; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--navy-d); font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(31px, 3.8vw, 46px); }
h3 { font-size: 23px; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* 버튼 · 링크 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: #2B2100;
  font-weight: 700; text-decoration: none; font-size: 18px; border: 1.5px solid var(--gold); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #F2C33A; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.link { color: var(--teal); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.eyebrow { font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; margin-bottom: 12px; }
html[lang="km"] .eyebrow { letter-spacing: .04em; text-transform: none; }
.eyebrow.gold { color: var(--gold); }
.lead { color: var(--sub); font-size: 22px; margin-top: 10px; max-width: 46em; }
.soon { color: var(--sub); font-style: italic; }

/* 머리 (위에 붙는 메뉴) */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.top.solid { background: rgba(251,248,241,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.top .wrap { max-width: 1400px; }
.top-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.nav, .nav > a, .btn, .langs a { font-family: var(--sans); font-size: 15px; padding: 5px 8px; border-radius: 6px; text-decoration: none; opacity: .75; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand b { font-family: var(--serif); font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: 12px; opacity: .8; font-family: "Kantumruy Pro", var(--sans); }
.nav { display: flex; align-items: center; gap: 4px; }
/* 메뉴: 뉴스 사이트처럼 굵고 또렷한 고딕(Pretendard) + 마우스를 올리면 밑줄이 왼쪽에서 사악 그어짐 */
.nav > a { position: relative; padding: 8px 12px; border-radius: 0; text-decoration: none; font-family: "Pretendard", var(--sans); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; opacity: 1; }
html[lang="km"] .nav > a { font-family: "Kantumruy Pro", "Pretendard", var(--sans); font-weight: 600; letter-spacing: 0; }
.nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav > a:hover::after, .nav > a:focus-visible::after, .nav > a[aria-current]::after { transform: scaleX(1); }
.langs { display: flex; gap: 2px; padding-left: 10px; border-left: 1px solid rgba(127,127,127,.35); flex: none; }
.langs a { font-family: var(--sans); font-size: 16px; padding: 5px 8px; border-radius: 6px; text-decoration: none; opacity: .75; white-space: nowrap; }
.langs a[lang="km"] { font-family: "Kantumruy Pro", var(--sans); font-size: 17px; }
.langs a[aria-current] { opacity: 1; font-weight: 700; background: rgba(127,127,127,.15); }
.langs .short { display: none; }
.cta { padding: 9px 18px; font-size: 16px; }
.burger { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 10px; cursor: pointer; }

/* 첫 화면: 글 왼쪽 + 사진 오른쪽(자르지 않는 4:3 틀, 회전목마) */
.hero { position: relative; color: #fff; overflow: hidden; background:
  radial-gradient(900px 560px at 85% 10%, rgba(233,178,26,.16), transparent 60%),
  radial-gradient(800px 600px at 0% 100%, rgba(3,105,107,.45), transparent 60%),
  linear-gradient(165deg, var(--navy-d) 0%, var(--navy) 70%, #0b5a63 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; min-height: 92vh; min-height: 92svh; padding-top: 108px; padding-bottom: 72px; }
.hero-frame { position: relative; justify-self: end; width: min(100%, calc((100svh - 220px) * 4 / 3)); aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #1B3360;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.14); }
.hero-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(0deg, rgba(14,34,64,.5), transparent); pointer-events: none; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; }
.slide.on .media img { animation: drift 7s ease-out forwards; }
.slide:not(.on) .media img { transform: scale(1.13); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.13); } }
.media.fill img, .media.r169 img, .media.avatar img { object-position: var(--pos, 50% 50%); }
.veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,64,.55) 0%, rgba(14,34,64,.15) 40%, rgba(14,34,64,.85) 100%); }
.veil.warm { background: linear-gradient(90deg, rgba(14,34,64,.88) 0%, rgba(14,34,64,.55) 55%, rgba(14,34,64,.2) 100%); }
.kicker { font-size: 17px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang="km"] .kicker { letter-spacing: .05em; text-transform: none; }
.display { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(54px, 7.2vw, 104px); line-height: 1.08; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
html[lang="km"] .display { line-height: 1.35; }
.verse { color: var(--gold); font-family: var(--display); font-weight: 600; margin-top: 8px; font-size: 24px; }
.hero-text { max-width: 30em; font-size: clamp(20px, 2.1vw, 24px); margin-top: 20px; color: #E8EEF3; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dots { position: absolute; right: 18px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.dot { width: 34px; height: 5px; border: 0; border-radius: 3px; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.dot.on { background: var(--gold); }
.copies { display: grid; }
.copy { grid-area: 1 / 1; opacity: 0; transform: translateX(-64px); transition: opacity 1s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.copy.on { opacity: 1; transform: none; pointer-events: auto; }
.copy .display { margin-top: 12px; }
.hero-copy > * { animation: inleft 1.3s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .15s; } .hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; } .hero-copy > :nth-child(5) { animation-delay: .6s; }
.hero-frame { animation: inright 1.4s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes inleft { from { opacity: 0; transform: translateX(-64px); } to { opacity: 1; transform: none; } }
@keyframes inright { from { opacity: 0; transform: translateX(64px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }


/* 첫 화면 배경: 사진이 흐리게 번져 화면 가득 깔림 */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.bgslide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.05); }
.bgslide.on { opacity: .9; animation: bgdrift 16s ease-in-out infinite alternate; }
@keyframes bgdrift { from { transform: scale(1.05); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,34,64,.78) 0%, rgba(14,34,64,.38) 50%, rgba(14,34,64,.08) 100%), linear-gradient(180deg, rgba(14,34,64,.4), transparent 26%, rgba(14,34,64,.55)); }
.hero-grid { position: relative; z-index: 1; }
.hero-frame { outline: 1px solid rgba(233,178,26,.6); outline-offset: 12px; }

/* 사진에 마우스를 올리면 아래에서 은은하게 설명이 뜸 */
.tile { overflow: hidden; border-radius: 12px; cursor: default; }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 56px 18px 16px; color: #fff; font-size: 19px; line-height: 1.45;
  background: linear-gradient(0deg, rgba(14,34,64,.88) 0%, rgba(14,34,64,.55) 55%, rgba(14,34,64,0) 100%);
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.tile:hover .cap, .tile:focus-within .cap, .tile:focus .cap { opacity: 1; transform: none; }
@media (hover: none) { .cap { opacity: 1; transform: none; padding-top: 40px; font-size: 16px; } }

/* 미션(넓은 칸) */
.symbol.wide { grid-column: 1 / -1; }
.symbol.wide ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.symbol.wide li { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.55; color: var(--navy-d); padding-left: 18px; border-left: 3px solid var(--gold); }

/* 한 줄 큰 문구 */
.sec.tagline { background: var(--navy-d); text-align: center; padding: 84px 0; }
.tag { color: #fff; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.35; max-width: 20em; margin: 0 auto; }
.tagline .rule { display: block; width: 72px; height: 4px; background: var(--gold); border-radius: 2px; margin: 26px auto 0; }

/* 쪽 머리 (소개·교육 등) */
.page-head { position: relative; min-height: 46vh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-dd); overflow: hidden; }
.page-head .wrap { position: relative; padding: 120px 20px 48px; }
.page-head h1 { color: #fff; font-size: clamp(40px, 6vw, 68px); animation: up 1s cubic-bezier(.2,.7,.2,1) both; }
.page-head p { max-width: 40em; margin-top: 10px; color: #E8EEF3; font-size: 22px; animation: up 1s .15s cubic-bezier(.2,.7,.2,1) both; }

/* 그림 + 스켈레톤 로딩 */
.media { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--sk-a); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.sk { background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.sk img, .sk video, .sk iframe { opacity: 0; transition: opacity .7s ease; }
.sk.ok { animation: none; background: var(--sk-a); }
.sk video[poster] { opacity: 1; }
.sk.ok img, .sk.ok video, .sk.ok iframe { opacity: 1; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.media.fill { position: absolute; inset: 0; border-radius: 0; }
.media.r169 { aspect-ratio: 16 / 9; }
.media.r43 { aspect-ratio: 4 / 3; }
.media.portrait { aspect-ratio: 4 / 5; }
.media.avatar { aspect-ratio: 1; border-radius: 50%; width: 140px; margin: 0 auto; }
.media.contain { background: #0A2F3B; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
.media.contain img { width: auto; height: 62%; object-fit: contain; }
.initials { display: flex; align-items: center; justify-content: center; background: var(--paper-2); color: var(--navy); font-family: var(--serif); font-size: 43px; }
.dark .sk, .hero .sk, .page-head .sk, .band .sk { --sk-a: #1B3360; --sk-b: #2A4677; }

/* 스크롤하면 슥 떠오름 */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* 구역 */
.sec { padding: 96px 0; scroll-margin-top: 64px; }
.sec.paper { background: var(--paper-2); }
.sec.dark { background: var(--navy-d); color: #E8EEF3; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.small { padding: 64px 0; }
.sec-head { margin-bottom: 40px; }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* 숫자 띠 */
.stats { background: var(--navy-d); color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 18px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 56px); color: var(--gold); line-height: 1.1; }
.stat span { font-size: 17px; color: #C9D6E2; }
.stat.small b { font-size: clamp(24px, 2.4vw, 32px); padding: 8px 0 6px; }
.chips { padding-bottom: 34px; }
.chips .eyebrow { margin-bottom: 14px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid rgba(233,178,26,.45); color: #F3EEE3; border-radius: 999px; padding: 7px 16px; font-size: 17px; background: rgba(255,255,255,.04); }
.stat-row.light { margin-top: 40px; background: #fff; border-radius: var(--r); grid-template-columns: repeat(3, 1fr); }
.stat-row.light .stat { border-left-color: var(--line); }
.stat-row.light .stat b { color: var(--navy); }
.stat-row.light .stat span { color: var(--sub); }

/* 인사말 */
.quote { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 2.6vw, 31px); line-height: 1.6; color: var(--navy-d); }
blockquote::before { content: "“"; display: block; font-size: 96px; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.who { margin: 20px 0 16px; color: var(--sub); }
.who b { color: var(--ink); }
.message { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.msg-photo { position: sticky; top: 100px; }
.msg-body p + p { margin-top: 1.1em; }
.msg-body { font-size: 22px; }
.sign { font-family: var(--serif); color: var(--navy); font-weight: 700; margin-top: 1.6em !important; }

/* 기둥 카드 */
.pillars { display: grid; gap: 18px; }
.pillars.n3 { grid-template-columns: repeat(3, 1fr); }
.pillars.n4 { grid-template-columns: repeat(4, 1fr); }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; transition: transform .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,43,81,.1); }
.ico { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #FDF6E2; color: var(--gold-d); padding: 11px; margin-bottom: 16px; }
.ico svg { width: 100%; height: 100%; }
.pillar h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.pillar p { color: var(--sub); font-size: 19px; }

/* 이야기 + 영상 */
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.story-p { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.75; margin-bottom: 28px; color: #fff; }
.video { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sk-a); }
.video video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video figcaption { font-size: 17px; color: var(--sub); padding: 8px 2px 0; background: var(--paper); }
.timeline-wrap .video { aspect-ratio: auto; background: transparent; }
.timeline-wrap .video video { aspect-ratio: 16 / 9; border-radius: var(--r); }

/* 사진 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { position: relative; aspect-ratio: 4 / 3; }
.tile .media { border-radius: 12px; }
.tile .media img { transition: transform .8s; }
.tile:hover .media img { transform: scale(1.05); }
.gallery.bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
.gallery.bento .tile { aspect-ratio: auto; }
.gallery.bento .tile:first-child { grid-column: span 2; grid-row: span 2; }
.gallery + .center { margin-top: 28px; }

/* 소식 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.news:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,43,81,.1); }
.news .media { border-radius: 0; }
.news time { display: block; padding: 18px 22px 0; font-size: 16px; color: var(--gold-d); font-weight: 700; letter-spacing: .05em; }
.news h3 { padding: 4px 22px 0; font-size: 22px; }
.news p { padding: 8px 22px 22px; color: var(--sub); font-size: 18px; }
.news-grid + .center { margin-top: 28px; }

/* 띠 (함께하기) */
.band { position: relative; color: #fff; overflow: hidden; min-height: 420px; display: flex; align-items: center; background: var(--navy-dd); }
.band-in { position: relative; padding: 80px 20px; max-width: var(--wrap); }
.band h2 { color: #fff; }
.band p { max-width: 32em; margin: 14px 0 26px; font-size: 22px; color: #E8EEF3; }

/* 오시는 길 */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info .addr, .contact-info .row { display: flex; gap: 12px; margin: 14px 0; }
.contact-info svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 3px; }
.contact-info small { color: var(--sub); display: inline-block; margin-right: 6px; }
.phones { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.phones a { display: flex; gap: 12px; align-items: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: border-color .2s; }
.phones a[href]:hover { border-color: var(--teal); }
a.tel:not([href]) { cursor: text; user-select: text; }
.phones svg { margin: 0; }
.contact-info .link { display: inline-block; margin-top: 10px; }
.map { border-radius: var(--r); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
/* 위치 줌인 영상(16:9 그대로) + 자막 */
.locator { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #050a14; box-shadow: 0 20px 50px rgba(14,34,64,.25); }
.locator video { width: 100%; height: 100%; display: block; object-fit: contain; }
.loc-caps { position: absolute; inset: 0; pointer-events: none; }
.loc-cap { position: absolute; left: 6%; top: 10%; margin: 0; max-width: 70%; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .8s; text-shadow: 0 2px 14px rgba(0,0,0,.65); }
.loc-cap b { display: block; font-family: var(--display); font-size: clamp(26px, 4.4vw, 56px); line-height: 1.1; font-weight: 400; }
.loc-cap span { display: block; margin-top: 8px; font-size: clamp(15px, 1.7vw, 21px); color: #F3EEE3; }
.loc-cap.on { opacity: 1; transform: none; }
.loc-cap.pin { left: 50%; top: 50%; max-width: none; transform: translate(-50%, calc(-100% - 12px)); text-align: center; text-shadow: none; }
.loc-cap.pin b { font-family: var(--sans); font-weight: 700; font-size: clamp(14px, 1.6vw, 19px); background: var(--gold); color: var(--navy-dd); padding: 7px 14px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35); white-space: nowrap; }
.loc-cap.pin::after { content: ""; display: block; width: 12px; height: 12px; margin: -6px auto 0; background: var(--gold); transform: rotate(45deg); }
.loc-cap.pin.on { transform: translate(-50%, calc(-100% - 6px)); }
.loc-btns { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.loc-btn { font: inherit; font-family: var(--sans); font-size: 15px; padding: 6px 14px; border-radius: 999px; border: 0; background: rgba(14,34,64,.8); color: #fff; cursor: pointer; }
.loc-btn.replay { opacity: 0; pointer-events: none; transition: opacity .4s; }
.locator.ended .loc-btn.replay { opacity: 1; pointer-events: auto; }

/* 상징 */
.symbols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.symbol { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; }
.symbol .big { font-size: 29px; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.symbol p:not(.big):not(.eyebrow) { color: var(--sub); font-size: 18px; }
.emblem { width: 120px; height: auto; margin: 4px 0 12px; border-radius: 18px; }

/* 연혁 */
.timeline-wrap.has-video { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.timeline-wrap.has-video .video { position: sticky; top: 100px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.sec.paper .timeline li::before { box-shadow: 0 0 0 4px var(--paper-2); }
.timeline time { font-weight: 700; color: var(--navy); font-size: 18px; letter-spacing: .03em; }

/* 사람 */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.person { background: #fff; border-radius: var(--r); padding: 30px 20px; text-align: center; border: 1px solid var(--line); }
.person h3 { margin-top: 16px; font-family: var(--serif); }
.person p { color: var(--sub); font-size: 18px; }
.person small { display: block; margin-top: 6px; font-size: 16px; }
.group-title { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 36px 0 14px; }
.people.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.person.small { padding: 18px 12px; }
.person.small .avatar { width: 96px; height: 96px; margin: 0 auto; }
.person.small p { font-size: 16px; color: var(--ink); margin: 10px 0 0; font-weight: 600; }

/* 카드 */
.cards { display: grid; gap: 22px; }
.cards.n3 { grid-template-columns: repeat(3, 1fr); }
.cards.n4 { grid-template-columns: repeat(4, 1fr); }
.cards.n2 { grid-template-columns: 1fr 1fr; }
.cards.n2 .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 20px; }
.card-video { border-radius: var(--r); overflow: hidden; background: #000; }
.card-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cards.n1 .card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.cards.n1 .card > .media { grid-row: span 2; }
.cards.n1 .card h3 { margin: 0; align-self: end; }
.cards.n1 .card p { align-self: start; margin: 0; }
.cards-btn { margin-top: 28px; }
.card h3 { margin: 14px 0 4px; }
.card p { color: var(--sub); font-size: 19px; }

/* 학년 */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.level { background: #fff; border-top: 4px solid var(--gold); border-radius: 0 0 var(--r) var(--r); padding: 24px; }
.level small { color: var(--gold-d); font-weight: 700; }
.level h3 { font-family: var(--serif); font-size: 26px; margin: 4px 0; }
.level p { color: var(--sub); }

/* 두 칸 목록 */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.col { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.col h3 { font-family: var(--serif); margin-bottom: 10px; }
.col ul { margin: 0; padding-left: 1.1em; color: var(--sub); }
.col li + li { margin-top: 6px; }

/* 준비 중 */
.notice { border: 2px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; background: rgba(255,255,255,.6); }
.notice h2 { margin-bottom: 10px; }
.notice p:not(.eyebrow) { color: var(--sub); max-width: 34em; margin: 0 auto 20px; }
/* 공지 */
.pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 18px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; text-decoration: none; font-size: 16px; backdrop-filter: blur(6px); transition: background .3s; }
.pill:hover { background: rgba(255,255,255,.22); }
.pill b { flex: none; background: var(--gold); color: var(--navy-dd); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notices { display: grid; gap: 18px; }
.notice-item { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--r); padding: 26px 28px; }
.notice-item time { font-weight: 700; color: var(--gold-d); font-size: 16px; letter-spacing: .05em; }
.notice-item h3 { margin: 4px 0 8px; font-size: 24px; }
.notice-item p { color: var(--sub); max-width: 46em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.tags li { background: var(--paper-2); border-radius: 999px; padding: 4px 14px; font-size: 16px; font-weight: 600; color: var(--navy); }

/* 학년별 사진 보기 */
.lv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lv-tabs button { font: inherit; font-family: var(--sans); font-size: 17px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.lv-tabs button:hover { border-color: var(--navy); }
.lv-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.lv-empty { margin: 0 0 22px; }
.tile.off { display: none; }

/* 교가 */
.anthem { position: relative; color: #E8EEF3; background: var(--navy-dd); overflow: hidden; }
.anthem .veil { background: linear-gradient(90deg, rgba(14,34,64,.92) 0%, rgba(14,34,64,.78) 50%, rgba(14,34,64,.6) 100%); }
.anthem-in { position: relative; display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.anthem h2 { color: #fff; font-size: clamp(32px, 4vw, 46px); }
.anthem .by { margin: 6px 0 22px; color: #C9D6E2; }
.anthem audio { width: 100%; max-width: 380px; }
.anthem .note { margin-top: 14px; font-size: 16px; color: #C9D6E2; }
.lyrics { columns: 2; column-gap: 40px; font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.stanza { break-inside: avoid; margin-bottom: 26px; }
.stanza p + p { margin-top: 14px; }
.stanza.chorus { color: #fff; }

/* 소식 기사 쪽 */
.news h3 a { color: inherit; text-decoration: none; }
.news h3 a:hover { color: var(--teal); }
.news .more-link { display: inline-block; margin: 0 22px 22px; }
.article { max-width: 40em; margin: 0 auto; font-size: 20px; }
.article p + p { margin-top: 18px; }
.video.article-video { max-width: 340px; margin: 36px auto 0; aspect-ratio: auto; overflow: visible; background: none; }
.article-videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.article-videos .video.article-video { flex: 1 1 260px; max-width: 320px; margin-left: 0; margin-right: 0; }
.video.article-video video { height: auto; aspect-ratio: 9 / 16; border-radius: var(--r); }

/* 자료실 */
.linkcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.linkcard { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.linkcard:hover { border-color: var(--teal); transform: translateY(-2px); }
.linkcard b { font-family: var(--serif); font-size: 21px; color: var(--navy); }
.linkcard span { color: var(--sub); font-size: 17px; line-height: 1.5; }
.linkcard small { margin-top: auto; padding-top: 8px; color: var(--teal); font-size: 14px; }
.more { text-align: center; }
.more h2 { margin-bottom: 8px; }
.more p { color: var(--sub); margin: 0 auto 18px; max-width: 34em; }

/* 텔레그램 문의 버튼 + QR 펼치기 */
.tg-btn { padding: 6px 14px; font-size: 16px; margin-left: 8px; }
.qr { margin-top: 10px; }
.qr summary { cursor: pointer; font-size: 16px; color: var(--teal); font-weight: 600; width: fit-content; }
.qr[open] summary { margin-bottom: 10px; }
.qr img { display: block; width: 210px; max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 22px rgba(14,34,64,.16); }

/* 함께하는 길 (후원 카드) */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.way-pic { position: relative; aspect-ratio: 16 / 10; background: var(--navy-dd); }
.way-pic figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 14px; color: #fff; background: rgba(14,34,64,.7); padding: 3px 10px; border-radius: 6px; }
.way-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1; }
.way-body h3 { font-family: var(--serif); font-size: 26px; margin: 0; }
.way-body p { color: var(--sub); margin: 0; }
.way-body .btn { margin-top: auto; }
.way-goal b { font-family: var(--serif); font-size: 30px; color: var(--navy); }
.way-goal small { color: var(--gold-d); font-weight: 700; margin-right: 6px; }
.way .tags { margin: 0; }

/* 편지 입력창: 줄 공책 편지지 + 우표 */
.letter-sec { background: var(--paper-2); scroll-margin-top: 70px; }
.letter { position: relative; max-width: 720px; margin: 0 auto; padding: 44px 48px 36px; background: #FFFDF6; color: #2B2A28; box-shadow: 0 1px 0 #E9E2D0, 0 18px 40px rgba(60,48,20,.14); transform: rotate(-.35deg);
  font-family: "Gowun Batang", "Hanuman", Georgia, serif; font-size: 20px; line-height: 2.1;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, rgba(10,64,96,.1) 41px, rgba(10,64,96,.1) 42px); }
.letter h2 { font-family: "Nanum Pen Script", "Caveat", "Hanuman", cursive; font-size: 40px; font-weight: 400; color: var(--navy); margin: 0 0 6px; padding-right: 110px; line-height: 1.3; }
.letter .to { font-weight: 700; margin: 0; }
.letter .line { margin: 0; }
.stamp { position: absolute; top: 24px; right: 28px; padding: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); outline: 2px dotted #D8CFB8; outline-offset: -1px; transform: rotate(3deg); }
.stamp img { display: block; }
.postmark { position: absolute; top: 96px; right: 16px; margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: rgba(148,23,22,.65); border: 1.5px solid rgba(148,23,22,.5); border-radius: 999px; padding: 1px 10px; transform: rotate(-6deg); line-height: 1.5; background: #FFFDF6; }
.letter .blank { font-family: "Nanum Pen Script", "Caveat", "Hanuman", cursive; font-size: 26px; color: var(--navy); background: transparent; border: 0; border-bottom: 1.5px dashed var(--gold-d); padding: 0 6px; max-width: 100%; min-width: 0; line-height: 1.3; }
.letter select.blank { cursor: pointer; }
.letter .blank::placeholder, .letter textarea::placeholder { color: #A9A08A; opacity: 1; }
.letter .blank:focus, .letter textarea:focus { outline: 0; border-bottom-color: var(--navy); background: rgba(233,178,26,.1); }
.letter textarea { display: block; width: 100%; margin: 0; border: 0; resize: vertical; background: transparent; font-family: "Nanum Pen Script", "Caveat", "Hanuman", cursive; font-size: 26px; line-height: 42px; color: var(--navy); padding: 0 6px; }
.letter .hp { position: absolute; left: -9999px; }
.letter-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; }
.letter-foot .btn { border: 0; cursor: pointer; font-family: var(--sans); }
.letter-foot .btn:disabled { opacity: .6; cursor: wait; }
.letter-msg { margin: 0; color: var(--teal); font-weight: 700; font-size: 18px; line-height: 1.5; }
.letter .small { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: #6B6556; word-break: break-all; }
.letter .small:first-of-type { margin-top: 10px; }
html[lang="km"] .letter { font-size: 18px; }

.km-notice { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 520px; margin: 0 auto; display: flex; gap: 10px; align-items: center;
  background: #FDF6E2; color: #6B5310; font-size: 17px; padding: 10px 12px 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.km-notice button { margin-left: auto; flex: none; border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; width: 32px; height: 32px; }
.km-notice.hide { display: none; }

/* 바닥 */
.foot { background: var(--navy-dd); color: #C9D6E2; padding: 64px 0 28px; font-size: 18px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 12px; }
.foot-brand b { display: block; color: #fff; font-family: var(--serif); font-size: 22px; }
.foot-brand span { font-size: 16px; }
.foot-info p + p { margin-top: 6px; }
.foot a { color: #fff; text-decoration: none; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8FA6BC; }
.foot-bottom a { font-weight: 700; border-bottom: 1px solid rgba(233,178,26,.6); }

/* 태블릿 · 폰 */
@media (max-width: 1320px) {
  .burger { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink);
    padding: 10px 20px 20px; box-shadow: 0 12px 30px rgba(0,0,0,.15); display: none; }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a::after { left: 8px; right: auto; width: 3em; bottom: 8px; }
  .anthem-in { grid-template-columns: 1fr; gap: 28px; }
  .symbols, .levels, .pillars.n4, .cards.n4 { grid-template-columns: repeat(2, 1fr); }
  .symbol.wide ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 19px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 14px; }
  .brand small { font-size: 12px; }
  .top-in { gap: 6px; }
  .sec { padding: 64px 0; }
  .cta { display: none; }
  .langs { padding-left: 4px; gap: 0; }
  .langs a { padding: 5px 6px; font-size: 15px; }
  .langs .long { display: none; }
  .langs .short { display: inline; }
  .lyrics { columns: 1; }
  .pill span { white-space: normal; }
  .ways { grid-template-columns: 1fr; }
  .cards.n2 { grid-template-columns: 1fr; }
  .cards.n1 .card { grid-template-columns: 1fr; gap: 14px; }
  .cards.n1 .card > .media { grid-row: auto; }
  .letter { padding: 92px 20px 28px; transform: none; font-size: 19px; }
  .letter h2 { padding-right: 0; font-size: 34px; }
  .letter .blank { font-size: 24px; }
  .brand b { font-size: 14px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 16px; }
  .stat-row.light { grid-template-columns: 1fr; }
  .stat-row.light .stat { border-left: 0; border-top: 1px solid var(--line); }
  .quote, .message, .story, .contact, .timeline-wrap.has-video, .twocol { grid-template-columns: 1fr; gap: 28px; }
  .quote .media { max-width: 260px; }
  .msg-photo, .timeline-wrap.has-video .video { position: static; }
  .msg-photo .media { max-width: 300px; }
  .pillars.n3, .pillars.n4, .cards.n3, .cards.n4, .news-grid, .people, .symbols, .levels { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery.bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 92px; padding-bottom: 56px; min-height: 0; }
  .hero-frame { order: -1; width: 100%; justify-self: stretch; }
  .foot-in { grid-template-columns: 1fr; }
}
/* 움직임 줄이기 설정을 켠 사람 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .sk img, .sk video, .sk iframe { opacity: 1; }
}
