/* =========================================================
   평내잉글루 — 브랜드북 기반 디자인 토큰
   Navy Ink #1A2B49 · Cherry Red #E82B37 · Gunmetal #2C3E50 · Baltic Blue #4B6584
   ========================================================= */
:root {
  --navy: #1a2b49;
  --navy-deep: #13203a;
  --gunmetal: #2c3e50;
  --baltic: #4b6584;
  --red: #e82b37;          /* 장식·강조용 브랜드 레드 */
  --red-ink: #d11f2c;      /* 흰 글자와 대비 4.5:1 이상 확보한 버튼/텍스트용 */
  --red-ink-hover: #b81824;
  --pink-50: #fdf3f4;
  --pink-100: #fbe4e6;
  --blue-50: #f3f6fa;
  --blue-100: #e4eaf2;

  --ink: #1a2b49;
  --text: #34425a;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --bg: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(26, 43, 73, .06), 0 2px 8px rgba(26, 43, 73, .05);
  --shadow: 0 2px 6px rgba(26, 43, 73, .06), 0 12px 32px rgba(26, 43, 73, .08);
  --shadow-lg: 0 8px 24px rgba(26, 43, 73, .08), 0 32px 64px rgba(26, 43, 73, .12);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;          /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
strong { color: var(--ink); font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .9375rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red-ink); color: #fff; box-shadow: 0 6px 16px rgba(209, 31, 44, .22); }
.btn-primary:hover { background: var(--red-ink-hover); box-shadow: 0 8px 22px rgba(209, 31, 44, .3); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-white { background: #fff; color: var(--red-ink); }
.btn-white:hover { background: var(--pink-50); }
.btn-on-red { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-on-red:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-naver { background: #03c75a; color: #fff; }
.btn-naver:hover { background: #02b351; }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #f5dc00; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* 블러는 가상 요소에 둔다 — 헤더 자체에 backdrop-filter를 주면
   position:fixed 인 모바일 메뉴가 헤더 영역 안에 갇혀 잘린다 */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
body.menu-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(26,43,73,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { display: flex; gap: 3px; height: 30px; align-items: stretch; }
.brand-mark i { display: block; width: 6px; border-radius: 2px; background: var(--navy); transform: skewX(-8deg); }
.brand-mark i:first-child { background: var(--red); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-text em, .footer-name em { font-style: normal; color: var(--red); }
.brand-text small { font-size: .6875rem; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; }

.gnb { margin-left: auto; }
.gnb ul { display: flex; gap: 4px; }
.gnb a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .9375rem; font-weight: 600; color: var(--gunmetal);
  transition: color .2s, background-color .2s;
}
.gnb a:hover { color: var(--ink); background: var(--blue-50); }
.gnb a.is-active { color: var(--red-ink); }
.gnb a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--red);
}
.header-cta { display: flex; align-items: center; gap: 6px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink);
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #fff; overflow-y: auto;
  animation: menu-in .25s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu a:not(.btn) {
  display: block; padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 700; color: var(--ink);
}
.mobile-menu-cta { display: grid; gap: 10px; }

@media (max-width: 1080px) {
  .gnb a { padding: 8px 9px; font-size: .875rem; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .gnb { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .brand-text strong { font-size: 1.125rem; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 480px at 88% 10%, var(--pink-100) 0%, transparent 60%),
    radial-gradient(700px 420px at 0% 100%, var(--blue-100) 0%, transparent 65%),
    #fff;
}
.hero::before {                         /* 은은한 도트 패턴 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(26,43,73,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .8125rem; font-weight: 700; color: var(--gunmetal);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(232,43,55,.15); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.125rem, 5.2vw, 3.75rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -0.035em;
}
.hl { position: relative; color: var(--red-ink); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .22em; z-index: -1;
  border-radius: 4px; background: rgba(232,43,55,.16);
}
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.75; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: .9375rem; font-weight: 600; color: var(--gunmetal); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--red); stroke-width: 3; width: 1em; height: 1em; }

.hero-visual { position: relative; padding: 28px 12px; }
.report-card {
  position: relative; z-index: 1; max-width: 420px; margin-inline: auto;
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.report-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag-red { background: var(--pink-100); color: var(--red-ink); }
.report-title { margin-top: 18px; font-size: 1.125rem; font-weight: 700; color: var(--gunmetal); }
.report-main { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.big-num { font-size: clamp(3.5rem, 7vw, 4.5rem); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big-num small { font-size: .45em; margin-left: 2px; color: var(--red); }
.big-label { font-weight: 700; color: var(--muted); }
.report-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.report-facts li { padding: 12px 14px; border-radius: 12px; background: var(--blue-50); display: flex; flex-direction: column; line-height: 1.35; }
.report-facts strong { font-size: 1.125rem; }
.report-facts span { font-size: .8125rem; color: var(--muted); }
.mini-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; height: 150px; margin-top: 22px; padding-top: 8px; border-top: 1px dashed var(--line); }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar::before {
  content: ""; order: 2; width: 100%; max-width: 48px; border-radius: 8px 8px 4px 4px;
  height: calc(var(--v) * .75%); background: var(--blue-100);   /* 0~100% 척도 그대로 */
  transform-origin: bottom; transition: transform 1s var(--ease);
}
.bar span { order: 1; font-size: .75rem; font-weight: 700; color: var(--baltic); margin-bottom: 4px; }
.bar em { order: 3; font-style: normal; font-size: .6875rem; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.bar.is-hot::before { background: linear-gradient(180deg, var(--red), #f0626b); }
.bar.is-hot span { color: var(--red-ink); }
.js .hero-visual:not(.is-in) .bar::before { transform: scaleY(0); }
.report-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .875rem; font-weight: 700; color: var(--red-ink); }
.report-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.report-link .icon { transition: transform .2s; }
.report-link:hover .icon { transform: translateX(3px); }

.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .8125rem; line-height: 1.3; color: var(--muted);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: .9375rem; }
.chip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pink-100); color: var(--red-ink); }
.chip-b .chip-ico { background: var(--blue-100); color: var(--navy); }
.chip-a { top: 0; left: -8px; }
.chip-b { bottom: 0; right: -8px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .report-card { padding: 22px; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
}

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 44px) clamp(12px, 2vw, 28px); text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat-num { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; font-size: .875rem; color: rgba(255,255,255,.72); line-height: 1.5; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Section common ---------- */
.section { padding-block: var(--section-y); }
.section-soft { background: var(--blue-50); }
.section-navy { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.section-navy h2, .section-navy h3, .section-navy strong { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .875rem; font-weight: 800; color: var(--red-ink); letter-spacing: .02em;
}
.section-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-navy .section-kicker { color: #ff8a92; }
.section-title { font-size: clamp(1.625rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.section-desc { margin-top: 14px; font-size: clamp(1rem, 1.4vw, 1.0625rem); color: var(--muted); }
.section-navy .section-desc { color: rgba(255,255,255,.7); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile-card {
  position: relative; overflow: hidden; padding: 36px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--gunmetal) 100%); color: rgba(255,255,255,.78);
  box-shadow: var(--shadow-lg);
}
.profile-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,43,55,.45), transparent 70%);
}
.avatar {
  position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px;
  background: #fff; color: var(--navy); font-size: 2.25rem; font-weight: 800;
  box-shadow: inset 0 -6px 0 var(--red);
}
.profile-role { margin-top: 24px; font-size: .875rem; font-weight: 600; color: #ff9aa1; }
.profile-name { margin-top: 2px; font-size: 1.75rem; font-weight: 800; color: #fff; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.profile-tags li { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: .8125rem; color: #fff; }
.profile-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9375rem; }
.about-copy p:not(.section-kicker) { margin-top: 16px; font-size: 1.0625rem; }
.about-copy .section-title { margin-bottom: 8px; }
.quote {
  margin: 28px 0 0; padding: 22px 26px; border-radius: var(--radius);
  background: var(--pink-50); border-left: 4px solid var(--red);
}
.quote p { margin: 0 !important; font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.7; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 440px; }
}

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.principle {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-num { position: absolute; top: 22px; right: 22px; font-size: .8125rem; font-weight: 800; color: var(--line); font-variant-numeric: tabular-nums; }
.p-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-100); color: var(--navy); }
.p-ico .icon { width: 24px; height: 24px; }
.principle h3 { margin-top: 20px; font-size: 1.125rem; font-weight: 800; }
.principle p { margin-top: 10px; font-size: .9375rem; color: var(--muted); line-height: 1.7; }
.principle-honest { background: var(--navy); border-color: var(--navy); }
.principle-honest h3, .principle-honest strong { color: #fff; }
.principle-honest p { color: rgba(255,255,255,.75); }
.principle-honest .p-ico { background: var(--red); color: #fff; }
.principle-honest .p-num { color: rgba(255,255,255,.25); }
@media (max-width: 1024px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; gap: 12px; }
  .principle { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 22px 20px; }
  .p-ico { width: 44px; height: 44px; grid-row: span 2; }
  .principle h3 { margin-top: 0; align-self: center; font-size: 1.0625rem; padding-right: 24px; }
  .principle p { grid-column: 2; margin-top: 6px; }
  .p-num { top: 18px; right: 18px; }
}

/* ---------- Process ---------- */
.process { margin-top: clamp(48px, 7vw, 80px); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.process-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--pink-100); color: var(--red-ink); font-weight: 800;
}
.step:last-child .step-num { background: var(--red-ink); color: #fff; }
.step h4 { margin-top: 16px; font-size: 1.0625rem; font-weight: 800; }
.step p { margin-top: 6px; font-size: .9375rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-bottom: 24px; }
  .step:last-child { padding-bottom: 0; }
  .step .step-num { grid-row: span 2; }
  .step h4 { margin-top: 8px; }
  .step:not(:last-child)::after { top: 48px; bottom: 4px; left: 19px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
}

/* ---------- Curriculum ---------- */
.roadmap {
  display: flex; gap: 8px; margin-bottom: 32px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.roadmap::-webkit-scrollbar { display: none; }
.roadmap li {
  position: relative; flex: 1 0 auto; padding: 12px 18px 12px 26px; min-width: max-content;
  background: var(--blue-50); color: var(--gunmetal); font-size: .875rem; font-weight: 700; text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}
.roadmap li:first-child { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 10px 0 0 10px; }
.roadmap li:last-child { background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); border-radius: 0 10px 10px 0; }

.tab-list {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 20px; border-radius: 999px;
  background: var(--blue-50); border: 1px solid var(--line);
}
.tab {
  min-width: 96px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; font-weight: 700; color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff 0%, var(--pink-50) 100%); border: 1px solid var(--line); animation: fade-up .35s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.panel-goal { font-size: .875rem; font-weight: 800; color: var(--red-ink); }
.panel-grid h3 { margin-top: 10px; font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 800; }
.panel-grid h3 + p { margin-top: 14px; font-size: 1.0625rem; }
.checklist { display: grid; gap: 10px; }
.checklist li {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  font-size: .9375rem;
}
.checklist strong { font-size: .8125rem; color: var(--baltic); }
@media (max-width: 760px) {
  .panel-grid { grid-template-columns: 1fr; }
  .tab-list { display: flex; }
  .tab { flex: 1; min-width: 0; }
  .tab-panel { padding: 24px 18px; }
  .checklist li { grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 14px; }
}

/* ---------- Results ---------- */
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.score-card {
  display: block; padding: 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background-color .25s, transform .25s var(--ease), border-color .25s;
}
.score-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); transform: translateY(-3px); }
.score-meta { font-size: .875rem; color: rgba(255,255,255,.65); }
.score-main { margin-top: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.score-main strong { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-left: 4px; color: #ff8a92; }
.score-sub { margin-top: 4px; font-size: .9375rem; color: rgba(255,255,255,.72); }
@media (max-width: 860px) { .score-grid { grid-template-columns: 1fr; } .score-card { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 20px 22px; } .score-main { grid-row: span 2; grid-column: 2; margin: 0; text-align: right; } .score-main strong { font-size: 2rem; } }

.archive { margin-top: clamp(40px, 6vw, 64px); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; color: var(--text); }
.archive h3 { color: var(--ink); font-size: 1.25rem; font-weight: 800; }
.archive-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: .875rem; font-weight: 700; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.archive-list li a {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 8px; border-bottom: 1px solid var(--line); transition: background-color .2s;
}
.archive-list li a:hover { background: var(--blue-50); }
.archive-list li a:hover .a-title { color: var(--red-ink); }
.a-school { font-size: .875rem; font-weight: 700; color: var(--baltic); }
.a-title { font-weight: 600; color: var(--ink); transition: color .2s; }
.a-metric { padding: 4px 10px; border-radius: 8px; background: var(--pink-50); color: var(--red-ink); font-size: .8125rem; font-weight: 800; white-space: nowrap; }
.archive-note { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0; font-size: .875rem; color: var(--muted); }
.archive-note .icon { color: var(--red); margin-top: 3px; stroke-width: 3; }
.archive .btn-light { background: var(--navy); color: #fff; border-color: var(--navy); }
.archive .btn-light:hover { background: var(--gunmetal); }
@media (max-width: 760px) {
  .archive-list li a { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 4px; }
  .a-school { grid-column: 1; font-size: .8125rem; }
  .a-title { grid-column: 1; font-size: .9375rem; line-height: 1.5; }
  .a-metric { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Posts ---------- */
.post-filter { margin-bottom: 24px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.post-filter::-webkit-scrollbar { display: none; }
.post-filter .chip { flex: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb.is-placeholder { --ph: var(--baltic); display: grid; place-items: center; background: var(--navy); }
.post-thumb.is-placeholder::before {        /* 도트 패턴 + 종류별 포인트 컬러 */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px) 0 0 / 14px 14px,
    radial-gradient(120% 90% at 100% 0%, var(--ph) 0%, transparent 60%);
}
.post-thumb.is-placeholder::after { content: ""; position: absolute; left: 22px; bottom: 20px; width: 28px; height: 3px; border-radius: 2px; background: var(--red); }
.post-thumb.is-placeholder[data-type="내신"] { --ph: #c2323d; }
.post-thumb.is-placeholder[data-type="칼럼"] { --ph: var(--gunmetal); }
.post-thumb.is-placeholder[data-type="학습자료"] { --ph: #6d87a6; }
.post-thumb.is-placeholder span { position: relative; color: #fff; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.post-type { padding: 3px 9px; border-radius: 6px; background: var(--blue-50); color: var(--baltic); font-weight: 700; }
.post-type[data-type="칼럼"] { background: var(--pink-50); color: var(--red-ink); }
.post-title {
  margin-top: 12px; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-excerpt {
  margin-top: 8px; font-size: .9063rem; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card.is-skeleton { min-height: 340px; background: linear-gradient(100deg, var(--blue-50) 30%, #fff 50%, var(--blue-50) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; box-shadow: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.post-more { display: flex; justify-content: center; margin-top: 32px; }
.post-empty { grid-column: 1 / -1; padding: 40px; text-align: center; border-radius: var(--radius); background: var(--blue-50); color: var(--muted); }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; gap: 14px; }
  .post-card { flex-direction: row; }
  .post-thumb { flex: none; width: 112px; aspect-ratio: auto; }
  .post-thumb.is-placeholder span { font-size: .875rem; }
  .post-body { padding: 14px 16px; }
  .post-title { margin-top: 8px; font-size: 1rem; }
  .post-excerpt { -webkit-line-clamp: 2; font-size: .875rem; }
  .post-card.is-skeleton { min-height: 130px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-grid .section-head .btn { margin-top: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.faq[open] { border-color: #cfd8e3; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 64px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s var(--ease); }
.faq[open] summary .icon { transform: rotate(180deg); color: var(--red); }
.faq-body { padding: 0 24px 22px; color: var(--text); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .faq summary { padding: 18px 20px; font-size: 1rem; }
  .faq-body { padding: 0 20px 20px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.contact-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--line); }
.contact-list { display: grid; gap: 20px; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; height: 1.7em; font-size: .875rem; font-weight: 700; color: var(--baltic); }
.contact-list dt .icon { color: var(--red); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact-list dd a { color: var(--red-ink); font-weight: 800; font-size: 1.125rem; }
.map-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-wrap { overflow: hidden; min-height: 380px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--blue-50); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap, .map-wrap iframe { min-height: 300px; }
}
@media (max-width: 400px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--red-ink); color: #fff; padding-block: clamp(48px, 7vw, 80px); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.18), transparent 70%),
              radial-gradient(500px 300px at 0% 100%, rgba(26,43,73,.35), transparent 70%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; }
.cta-band p { margin-top: 10px; max-width: 36em; color: rgba(255,255,255,.88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .cta-actions { width: 100%; } .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.62); padding-block: 44px; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-name { font-size: 1.375rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.footer-name em { color: #ff6b75; }
.footer-info { display: grid; gap: 4px; text-align: right; }
.footer-info a { color: #fff; font-weight: 600; }
.footer-info a:hover { text-decoration: underline; }
.copyright { margin-top: 8px; color: rgba(255,255,255,.42); }
@media (max-width: 700px) { .footer-info { text-align: left; } }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(26,43,73,.08);
    transition: transform .3s var(--ease);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
    border-radius: 12px; background: var(--blue-50); color: var(--ink); font-size: .875rem; font-weight: 700;
  }
  .mobile-bar .mb-primary { background: var(--red-ink); color: #fff; }
  body.menu-open .mobile-bar { transform: translateY(110%); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .site-header, .mobile-bar, .cta-band, .map-wrap { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
