/* ============================================================
   EDU-CORP-010 · 정상수학학원 · CRP 코퍼레이트·신뢰형
   메인 컬러 #1747C7 (H 224°) — 데이터·실적 중심의 활기찬 신뢰감
   ============================================================ */

:root {
  --brand:       #1747c7;
  --brand-ink:   #ffffff;
  --accent:      #0b1b3f;
  --accent-ink:  #ffffff;
  --surface:     #ffffff;
  --surface-alt: #f1f5fc;
  --font-display: var(--font-sans);
  --r: var(--r-md);
}

body { background: var(--surface); }

/* ── 공통 타입 ─────────────────────────────────────────────── */

.kicker, .label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brand);
}
.label { color: var(--ink-3); }

.h2 {
  font-size: var(--fs-3xl);
  letter-spacing: var(--ls-tighter);
  line-height: 1.08;
}
.h3 { font-size: var(--fs-xl); letter-spacing: var(--ls-tight); }

.body-lg { font-size: var(--fs-md); color: var(--ink-2); max-width: 48ch; }
.body-sm { font-size: var(--fs-sm); color: var(--ink-2); }

.lead-mark {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--surface-alt);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--brand);
}

/* ── 버튼 ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--r);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: var(--sp-3) var(--sp-5); }

.btn--solid { background: var(--brand); color: var(--brand-ink); }
.btn--solid:hover { background: var(--accent); }

.btn--line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }

.btn--ghost { color: var(--brand); padding-inline: 0; }
.btn--ghost::after { content: "→"; transition: transform var(--dur) var(--ease); }
.btn--ghost:hover::after { transform: translateX(4px); }

/* ── 헤더 ──────────────────────────────────────────────────── */
/* 히어로 오른쪽이 어두운 풀블리드 사진이다. 헤더는 항상 배경을 깐다. */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.nav__logo {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-right: auto;
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
}
.nav__logo b { color: var(--brand); }
.nav__logo span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--ink-3);
  letter-spacing: var(--ls-wide);
}

.nav__menu { display: none; gap: var(--sp-6); }
.nav__menu a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
  padding-block: var(--sp-2);
  transition: color var(--dur) var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--brand); }
.nav__menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--brand);
}

/* 모바일 메뉴 — JS 없이 <details> 로 동작한다 */
.nav__more { position: relative; }
.nav__more summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  cursor: pointer;
  list-style: none;
}
.nav__more summary::-webkit-details-marker { display: none; }
.nav__more summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.nav__more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav__drawer {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sp-3));
  width: max(56vw, 220px);
  display: grid;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
}
.nav__drawer a {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-sm);
}
.nav__drawer a:hover { background: var(--surface-alt); color: var(--brand); }
.nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__more { display: none; }
  .nav__cta { display: inline-flex; }
}

/* ── 히어로 ────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  padding-top: var(--sp-8);
}
/* ★SPEC v1.2 8절 — 375px 에서 텍스트와 이미지를 세로로 쌓으면 100svh 를 넘긴다.
   모바일에서는 이미지를 배경으로 깔고 그 위에 텍스트를 겹친다.
   스크림은 작품 자신의 --surface 톤으로 깔았다. 본문 색을 바꾸지 않고도
   글자가 놓이는 상단부 합성 밝기가 항상 0.92 이상이라 대비 4.5:1 이 보장된다. */
.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  padding-inline: var(--gutter);
  padding-block: var(--sp-5) var(--sp-6);
}
.hero__title {
  font-size: var(--fs-4xl);
  line-height: 1.02;
  letter-spacing: var(--ls-tighter);
}
.hero__title em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(transparent 62%, color-mix(in oklab, var(--brand) 18%, transparent) 0);
}
.hero__lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.hero__meta b { color: var(--ink-2); font-weight: var(--fw-semibold); }

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .img-slot {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.hero__media .img-slot > img { object-position: 62% 50%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg,
    var(--surface) 0%,
    color-mix(in oklab, var(--surface) 94%, transparent) 50%,
    color-mix(in oklab, var(--surface) 40%, transparent) 78%,
    transparent 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 47%); padding-top: 0; }
  /* 데스크탑에서는 2단 분할로 되돌린다 */
  .hero__media { position: relative; inset: auto; }
  .hero__media::after {
    background: linear-gradient(200deg,
      color-mix(in oklab, var(--accent) 44%, transparent),
      transparent 46%);
  }
  .hero__text {
    padding-block: var(--sp-10) var(--sp-9);
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-right: var(--sp-8);
  }
  .hero__media { min-height: 100svh; }
}

/* 히어로 사진 위로 올라오는 지표 카드 — 겹침 장치 */
.hero-stats { position: relative; z-index: 5; margin-top: calc(var(--sp-7) * -1); }
.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.hstat { padding: var(--sp-5); border-bottom: 1px solid var(--line); }
.hstat:nth-child(odd) { border-right: 1px solid var(--line); }
.hstat:nth-last-child(-n+2) { border-bottom: 0; }
.hstat dt { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--sp-2); }
.hstat dd {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tighter);
  line-height: 1;
  color: var(--brand);
}
.hstat dd span { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink-2); margin-left: 2px; }

@media (min-width: 768px) {
  .hero-stats__grid { grid-template-columns: repeat(4, 1fr); }
  .hstat { border-bottom: 0; border-right: 1px solid var(--line); }
  .hstat:last-child { border-right: 0; }
}
@media (min-width: 1024px) {
  .hero-stats { margin-top: calc(var(--sp-8) * -1); }
}

/* ── 티커 ──────────────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  margin-top: var(--sp-8);
  border-block: 1px solid var(--line);
  background: var(--surface-alt);
  padding-block: var(--sp-4);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: max-content;
  animation: ticker 44s linear infinite;
}
.ticker__track span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker__track b { color: var(--brand); font-weight: var(--fw-black); }
.ticker__track i { width: 4px; height: 4px; border-radius: var(--r-full); background: var(--ink-4); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ── 섹션 헤더 ─────────────────────────────────────────────── */

.sec-head { display: grid; gap: var(--sp-4); align-content: start; margin-bottom: var(--sp-7); }
.sec-head--center { justify-items: center; text-align: center; }

/* ── 강점 3카드 ────────────────────────────────────────────── */

.why__inner { display: grid; gap: var(--sp-7); }
.why__list { display: grid; gap: var(--sp-6); }
.why-card { display: grid; gap: var(--sp-4); }
.why-card .img-slot { border-radius: var(--r); }
.why-card__num {
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  color: var(--brand);
  letter-spacing: var(--ls-wide);
}
.why-card h3 { font-size: var(--fs-lg); letter-spacing: var(--ls-tight); }
.why-card p { font-size: var(--fs-sm); color: var(--ink-2); }

@media (min-width: 768px) { .why__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .why__inner { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--sp-9); }
  .why__head { position: sticky; top: calc(var(--sp-9) + var(--sp-2)); }
}

/* ── 커리큘럼 (풀블리드 + 겹침 카드) ───────────────────────── */

.curri { position: relative; padding-bottom: var(--section-y); }
.curri__media { border-radius: 0; aspect-ratio: 4 / 5; }
.curri__media .img-slot__hint { color: rgba(255,255,255,.86); }
.curri__card {
  position: relative;
  margin-top: calc(var(--sp-8) * -1);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  display: grid;
  gap: var(--sp-5);
}
.curri__list { display: grid; gap: 0; }
.curri__list li {
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.curri__list li:last-child { border-bottom: 1px solid var(--line); }
.curri__row { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.curri__grade {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--brand-ink);
  background: var(--brand);
  padding: 2px var(--sp-2);
  border-radius: var(--r-sm);
}
.curri__name { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.curri__time { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); }
.curri__list p { font-size: var(--fs-sm); color: var(--ink-2); }

@media (min-width: 768px) {
  .curri__media { aspect-ratio: 21 / 9; }
  .curri__card { margin-top: calc(var(--sp-9) * -1); max-width: 720px; padding: var(--sp-8); }
}

/* ── 성적 데이터 (CSS 막대) ────────────────────────────────── */

.data { background: var(--surface-alt); }
.data__inner { display: grid; gap: var(--sp-7); }
.chart { display: grid; gap: var(--sp-5); }
.chart__row { display: grid; gap: var(--sp-2); }
.chart__label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); }
.chart__label b { font-weight: var(--fw-semibold); }
.chart__label span { font-weight: var(--fw-black); color: var(--brand); font-size: var(--fs-md); }
.chart__bar {
  height: 12px;
  background: color-mix(in oklab, var(--ink-4) 30%, transparent);
  border-radius: var(--r-full);
  overflow: hidden;
}
.chart__bar i {
  display: block;
  height: 100%;
  width: var(--v, 50%);
  background: linear-gradient(90deg, var(--brand), color-mix(in oklab, var(--brand) 62%, var(--accent)));
  border-radius: var(--r-full);
}
.chart__note { font-size: var(--fs-xs); color: var(--ink-3); }

.figure-big { display: grid; gap: var(--sp-4); align-content: start; }
.figure-big__num {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tighter);
  line-height: .95;
  color: var(--brand);
}
.figure-big__num small { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--ink-2); }

@media (min-width: 1024px) {
  .data__inner { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--sp-9); align-items: start; }
}

/* ── 인용 ──────────────────────────────────────────────────── */

.quote-sec { background: var(--accent); color: var(--accent-ink); }
.quote { display: grid; gap: var(--sp-5); }
.quote p {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  letter-spacing: var(--ls-tight);
}
.quote p::before { content: "“"; color: var(--brand); }
.quote p::after { content: "”"; color: var(--brand); }
.quote footer { font-size: var(--fs-sm); color: color-mix(in oklab, var(--accent-ink) 62%, transparent); }
.quote footer b { color: var(--accent-ink); }

/* ── 시간표 (헤어라인 그리드) ──────────────────────────────── */

.table-wrap { overflow-x: auto; }
.tt {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.tt caption { text-align: left; font-size: var(--fs-xs); color: var(--ink-3); padding-bottom: var(--sp-4); }
.tt th, .tt td { border: 1px solid var(--line); padding: var(--sp-4); text-align: left; vertical-align: top; }
.tt thead th { background: var(--surface-alt); font-weight: var(--fw-bold); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); }
.tt tbody th { font-weight: var(--fw-bold); white-space: nowrap; }
.tt td b { display: block; font-weight: var(--fw-semibold); }
.tt td span { color: var(--ink-3); font-size: var(--fs-xs); }
.tt .is-on { background: color-mix(in oklab, var(--brand) 7%, transparent); }

/* ── CTA ───────────────────────────────────────────────────── */

.cta { background: var(--brand); color: var(--brand-ink); padding-block: var(--section-y); }
.cta__inner { display: grid; gap: var(--sp-5); }
.cta__title { font-size: var(--fs-3xl); letter-spacing: var(--ls-tighter); line-height: 1.06; }
.cta__lead { font-size: var(--fs-md); color: color-mix(in oklab, var(--brand-ink) 82%, transparent); max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.cta .btn--solid { background: var(--brand-ink); color: var(--brand); }
.cta .btn--solid:hover { background: var(--accent); color: var(--accent-ink); }
.cta .btn--line { border-color: color-mix(in oklab, var(--brand-ink) 45%, transparent); color: var(--brand-ink); }
.cta .btn--line:hover { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.cta__note { font-size: var(--fs-xs); color: color-mix(in oklab, var(--brand-ink) 66%, transparent); }

@media (min-width: 1024px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: end; gap: var(--sp-8); }
  .cta__actions { justify-content: flex-end; }
}

/* ── 서브 페이지 헤더 ──────────────────────────────────────── */

.page-head {
  position: relative;
  padding-top: calc(var(--sp-9) + var(--sp-6));
  padding-bottom: var(--sp-8);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 46vw; height: 46vw;
  border-radius: var(--r-full);
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 62%);
  pointer-events: none;
}
.page-head__inner { position: relative; display: grid; gap: var(--sp-4); }
.page-head h1 { font-size: var(--fs-3xl); letter-spacing: var(--ls-tighter); line-height: 1.06; }
.page-head p { font-size: var(--fs-md); color: var(--ink-2); max-width: 52ch; }
.crumb { display: flex; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

/* ── 공통 조각 ─────────────────────────────────────────────── */

.split { display: grid; gap: var(--sp-7); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--sp-9); align-items: start; }
  .split__aside { position: sticky; top: calc(var(--sp-9) + var(--sp-2)); }
}

.rule-list { display: grid; }
.rule-list > li {
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.rule-list > li:last-child { border-bottom: 1px solid var(--line); }
.rule-list h3 { font-size: var(--fs-lg); letter-spacing: var(--ls-tight); }
.rule-list p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 62ch; }
.rule-list__meta { font-size: var(--fs-xs); color: var(--brand); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); }

.card-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); box-shadow: var(--sh-md); }
.card--alt { background: var(--surface-alt); }
.card h3 { font-size: var(--fs-lg); letter-spacing: var(--ls-tight); }
.card p { font-size: var(--fs-sm); color: var(--ink-2); }
.card__tag {
  justify-self: start;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--brand);
  letter-spacing: var(--ls-wide);
}

/* 강사 카드 — 사진 대신 이니셜 모노그램 */
.tutor { display: grid; gap: var(--sp-4); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r); }
.tutor__mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  letter-spacing: 0;
}
.tutor h3 { font-size: var(--fs-lg); }
.tutor__role { font-size: var(--fs-xs); color: var(--brand); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); }
.tutor ul { display: grid; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); }
.tutor li { padding-left: var(--sp-4); position: relative; }
.tutor li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: var(--r-full); background: var(--ink-4); }

/* 연혁 */
.timeline { display: grid; }
.timeline > li {
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline b { font-size: var(--fs-lg); font-weight: var(--fw-black); color: var(--brand); letter-spacing: var(--ls-tight); }
.timeline p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 768px) {
  .timeline > li { grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-6); align-items: baseline; }
}

/* FAQ */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand); }
.qa summary::after {
  content: "";
  width: 13px; height: 13px; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform var(--dur) var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); max-width: 66ch; }

/* 폼 */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-2); letter-spacing: var(--ls-wide); }
.field input, .field select, .field textarea {
  padding: var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.form__agree { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-2); }
.form__agree input { margin-top: 3px; }

/* 정보 리스트 */
.info { display: grid; }
.info > div {
  display: grid;
  gap: var(--sp-1);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
}
.info > div:last-child { border-bottom: 1px solid var(--line); }
.info dt { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: var(--ls-wide); }
.info dd { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
@media (min-width: 768px) {
  .info > div { grid-template-columns: 140px minmax(0, 1fr); gap: var(--sp-5); align-items: baseline; }
}

/* 지도 대체 블록 */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(color-mix(in oklab, var(--brand) 8%, transparent), color-mix(in oklab, var(--brand) 8%, transparent)),
    repeating-linear-gradient(0deg, var(--surface-alt) 0 38px, var(--surface) 38px 40px),
    repeating-linear-gradient(90deg, var(--surface-alt) 0 62px, var(--surface) 62px 64px);
  overflow: hidden;
}
.map__pin {
  position: absolute;
  left: 46%; top: 44%;
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}
.map__dot {
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: var(--brand);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--brand) 22%, transparent);
}
.map__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  white-space: nowrap;
}

/* ── 푸터 ──────────────────────────────────────────────────── */

.foot { background: var(--accent); color: var(--accent-ink); padding-block: var(--sp-8) var(--sp-6); }
.foot__inner { display: grid; gap: var(--sp-6); }
.foot__brand { display: grid; gap: var(--sp-3); }
.foot__logo { font-size: var(--fs-md); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); }
.foot__logo b { color: color-mix(in oklab, var(--brand-ink) 70%, var(--brand)); }
.foot address {
  font-style: normal;
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: color-mix(in oklab, var(--accent-ink) 70%, transparent);
}
.foot__nav { display: grid; gap: var(--sp-3); align-content: start; }
.foot__nav h2 { font-size: var(--fs-xs); letter-spacing: var(--ls-widest); text-transform: uppercase; color: color-mix(in oklab, var(--accent-ink) 55%, transparent); }
.foot__nav a { font-size: var(--fs-sm); color: color-mix(in oklab, var(--accent-ink) 80%, transparent); }
.foot__nav a:hover { color: var(--accent-ink); }
.foot__copy {
  grid-column: 1 / -1;
  padding-top: var(--sp-5);
  border-top: 1px solid color-mix(in oklab, var(--accent-ink) 18%, transparent);
  font-size: var(--fs-xs);
  color: color-mix(in oklab, var(--accent-ink) 55%, transparent);
}
@media (min-width: 768px) {
  .foot__inner { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-7); }
}

/* ===== 인터랙션 보강 (EDU 상향) ===== */
/* ============================================================
   SPEC 4-C — 브랜드 마크 · 아이콘 · 반응 하한 상향
   레이아웃/색/타이포는 건드리지 않는다. 얹기만 한다.
   ============================================================ */

/* ── 아이콘 ─────────────────────────────────────────────────── */

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; display: inline-block; }

.hero__meta span,
.curri__time,
.rule-list__meta,
.info dt,
.tt td span,
.figure-big .label,
.foot address span { display: inline-flex; align-items: center; gap: var(--sp-2); }

.hero__meta .ico,
.curri__time .ico,
.info dt .ico,
.figure-big .label .ico { color: var(--brand); font-size: var(--fs-md); }

.tt .is-on span .ico { color: var(--brand); }
.foot address .ico { color: color-mix(in oklab, var(--accent-ink) 70%, transparent); font-size: var(--fs-md); }
.btn .ico { font-size: 1.25em; }

/* ── 브랜드 마크 ────────────────────────────────────────────── */
/* 정상(頂上) — 기준선 위로 올라가 오른쪽 끝에서 정점을 찍는 꺾은선. */

.nav__mark {
  flex: none;
  align-self: center;
  color: var(--brand);
  transition: transform var(--dur-slow) var(--ease-out), color var(--dur) var(--ease);
}
.nav__logo:hover .nav__mark { transform: translateY(-2px) scale(1.06); }

.foot__logo { display: flex; align-items: center; gap: var(--sp-3); }
.foot__logo .nav__mark { color: color-mix(in oklab, var(--brand-ink) 70%, var(--brand)); }
.foot__brand:hover .nav__mark { transform: translateY(-2px) scale(1.06); }

/* ── 내비 — 밑줄이 한쪽에서 그어진다 ────────────────────────── */

.nav__menu a::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__menu a:hover::before { transform: scaleX(1); transform-origin: left; }

.nav__more summary { transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav__more summary:hover { border-color: var(--brand); background: var(--surface-alt); }
.nav__drawer a { transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.nav__drawer a:hover { transform: translateX(3px); }

/* ── 버튼 화살표가 밀려나간다 ───────────────────────────────── */

.btn__arrow { margin-left: 1px; transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── 지표 카드 ──────────────────────────────────────────────── */

.hstat { transition: background var(--dur) var(--ease); }
.hstat:hover { background: var(--surface-alt); }
.hstat dd { transition: transform var(--dur) var(--ease-out); }
.hstat:hover dd { transform: translateY(-2px); }
.hstat dt { transition: color var(--dur) var(--ease); }
.hstat:hover dt { color: var(--ink-2); }

/* ── 티커 — 올리면 멈춘다 ───────────────────────────────────── */

.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { transition: color var(--dur) var(--ease); }
.ticker:hover .ticker__track span { color: var(--ink); }

/* ── 강점 카드 — 들어올려지고 사진이 당겨진다 ──────────────── */

.why-card { transition: transform var(--dur) var(--ease-out); }
.why-card:hover { transform: translateY(-6px); }
.why-card .img-slot img { transition: transform var(--dur-slow) var(--ease-out); }
.why-card:hover .img-slot img { transform: scale(1.05); }
.why-card h3 { transition: color var(--dur) var(--ease); }
.why-card:hover h3 { color: var(--brand); }
.why-card__num { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.why-card:hover .why-card__num { transform: translateX(4px); }

/* ── 개설 과정 — 왼쪽에서 브랜드 선이 차오른다 ─────────────── */

.curri__list li { position: relative; transition: background var(--dur) var(--ease); }
.curri__list li::before {
  content: "";
  position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--brand);
  transition: width var(--dur-slow) var(--ease-out);
}
.curri__list li:hover { background: color-mix(in oklab, var(--brand) 4%, transparent); }
.curri__list li:hover::before { width: 100%; }
.curri__grade { transition: transform var(--dur) var(--ease-out); }
.curri__list li:hover .curri__grade { transform: translateY(-1px) scale(1.04); }
.curri__time .ico { transition: transform var(--dur-slow) var(--ease-out); }
.curri__list li:hover .curri__time .ico { transform: rotate(180deg); }

/* ── 성적 막대 — 로드될 때 차오르고, 올리면 진해진다 ───────── */

@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chart__bar i { transform-origin: left; animation: barGrow 1s var(--ease-out) both; }
.chart__bar i { transition: filter var(--dur) var(--ease); }
.chart__row:hover .chart__bar i { filter: saturate(1.25) brightness(1.06); }
.chart__label span { transition: transform var(--dur) var(--ease-out); display: inline-block; }
.chart__row:hover .chart__label span { transform: translateY(-2px); }

/* ── 시간표 ─────────────────────────────────────────────────── */

.tt tbody td, .tt tbody th { transition: background var(--dur) var(--ease); }
.tt tbody tr:hover td, .tt tbody tr:hover th { background: var(--surface-alt); }
.tt td.is-on:hover { background: color-mix(in oklab, var(--brand) 14%, transparent); }
.tt td span .ico { transition: transform var(--dur) var(--ease-out); }
.tt tbody tr:hover td span .ico { transform: scale(1.15); }

/* ── 규칙 목록 · 카드 · 연혁 ────────────────────────────────── */

.rule-list > li { transition: padding-left var(--dur) var(--ease-out); }
.rule-list > li:hover { padding-left: var(--sp-3); }
.rule-list__meta .ico { transition: transform var(--dur) var(--ease-out); }
.rule-list > li:hover .rule-list__meta .ico { transform: scale(1.15); }
.rule-list h3 { transition: color var(--dur) var(--ease); }
.rule-list > li:hover h3 { color: var(--brand); }

.card { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.card:hover { transform: translateY(-4px); }
.card__tag { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.card:hover .card__tag { transform: translateX(3px); }

.timeline > li { transition: background var(--dur) var(--ease); }
.timeline > li:hover { background: var(--surface-alt); }
.timeline b { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.timeline > li:hover b { transform: translateX(4px); }

.tutor__mark { transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease); }
.tutor:hover .tutor__mark { transform: rotate(-6deg) scale(1.06); background: color-mix(in oklab, var(--brand) 20%, transparent); }

/* ── FAQ — 열릴 때 답이 흘러나온다 ─────────────────────────── */

@keyframes qaOpen { from { opacity: 0; transform: translateY(-6px); } }
.qa[open] p { animation: qaOpen var(--dur) var(--ease-out) both; }
.qa summary { transition: color var(--dur) var(--ease); }
.qa summary:hover::after { transform: rotate(90deg); }

/* ── 폼 ─────────────────────────────────────────────────────── */

.field input, .field select, .field textarea {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent);
}

/* ── 지도 핀이 뛴다 ─────────────────────────────────────────── */

@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--brand) 22%, transparent); }
  50%      { box-shadow: 0 0 0 14px color-mix(in oklab, var(--brand) 8%, transparent); }
}
.map__dot { animation: pinPulse 2.4s var(--ease) infinite; transition: transform var(--dur) var(--ease-out); }
.map:hover .map__dot { transform: scale(1.2); }
.map__label { transition: transform var(--dur) var(--ease-out); }
.map:hover .map__label { transform: translateY(-2px); }

/* ── 푸터 링크 밑줄 ─────────────────────────────────────────── */

.foot__nav a { position: relative; transition: color var(--dur) var(--ease); }
.foot__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.foot__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 형제 계단식 지연 ───────────────────────────────────────── */

html.js .why__list .reveal:nth-child(2) { transition-delay: 90ms; }
html.js .why__list .reveal:nth-child(3) { transition-delay: 180ms; }
html.js .hero-stats__grid .reveal:nth-child(2) { transition-delay: 60ms; }
html.js .hero-stats__grid .reveal:nth-child(3) { transition-delay: 120ms; }
html.js .hero-stats__grid .reveal:nth-child(4) { transition-delay: 180ms; }
html.js .card-grid .reveal:nth-child(2) { transition-delay: 80ms; }
html.js .card-grid .reveal:nth-child(3) { transition-delay: 160ms; }
html.js .card-grid .reveal:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transition-delay: 0s !important; }
  .nav__logo:hover .nav__mark,
  .foot__brand:hover .nav__mark,
  .why-card:hover,
  .why-card:hover .img-slot img,
  .why-card:hover .why-card__num,
  .hstat:hover dd,
  .card:hover,
  .timeline > li:hover b,
  .chart__row:hover .chart__label span,
  .curri__list li:hover .curri__grade,
  .curri__list li:hover .curri__time .ico,
  .tt tbody tr:hover td span .ico,
  .rule-list > li:hover .rule-list__meta .ico,
  .tutor:hover .tutor__mark,
  .map:hover .map__dot,
  .map:hover .map__label { transform: none; }
  .map__dot { animation: none; }
  .chart__bar i { animation: none; }
}


/* ===== 획일성 제거 — CRP 무드 어휘 =====================================
   160작품이 레퍼런스의 밑줄 draw·카드 리프트·대문자 킥커를 그대로 복사해
   같은 사이트 리스킨으로 보였다. 반응 방식을 무드에 맞게 갈아끼운다.
   ==================================================================== */
/* 세로 카덴스를 작품마다 다르게 — 전부 같은 --section-y 를 쓰는 게 구조적 tell 이었다 */
:root { --section-y: clamp(3.79rem, 2.3545rem + 6.1421vw, 7.58rem); }

/* 코퍼레이트 — 밑줄이 애니메이션 없이 즉시 나타난다. 신뢰형에는 절제가 맞다. */
.foot__nav a::after { display: none !important; }
.foot__nav a { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.foot__nav a:hover { border-bottom-color: var(--brand); }
.nav__logo:hover .nav__mark, .foot__brand:hover .nav__mark, .hstat:hover dd, .why-card:hover, .curri__list li:hover .curri__grade, .chart__row:hover .chart__label span, .card:hover, .map:hover .map__label { transform: none; }
.nav__logo:hover .nav__mark, .foot__brand:hover .nav__mark, .hstat:hover dd, .why-card:hover, .curri__list li:hover .curri__grade, .chart__row:hover .chart__label span, .card:hover, .map:hover .map__label { box-shadow: 0 2px 10px color-mix(in oklab, var(--ink) 8%, transparent); }


/* ===== 티커 걷어내기 — CRP 무드에 마퀴는 어울리지 않는다 ==========
   내용(실적·목록·인증)은 실제 정보라 유지하고 장치만 바꾼다.
   ================================================================ */
/* 티커 → 격자. 실적·지점 목록은 흐르는 것보다 표로 보이는 게 신뢰를 만든다. */
.ticker { overflow: visible; }
.ticker__track {
  animation: none !important; width: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
}
.ticker__track > span { background: var(--surface); padding: var(--sp-3) var(--sp-4); }
.ticker__track > i { display: none; }
@media (min-width: 768px) { .ticker__track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* webit-touch */
@media (max-width: 767px) {
  .nav__inner { flex-wrap: wrap; overflow: visible; }
  .hero__actions, .hero__acts { flex-wrap: wrap; }
}
html.tier-premium .btn--solid { letter-spacing: .08em; text-transform: uppercase; font-size: .92em; }
