/* 쇼타임연기뮤지컬보컬학원 — 디턴(ditton-homepage) 문법의 밝은 테마.
   큰 검정 제목 · 넉넉한 여백 · 포인트는 학원 빨강 하나 · 떠 있는 캡슐 내비. */
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0e0e10;
  --text: #17171a;
  --muted: #73737b;
  --faint: #b9b9bf;
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --line: rgba(14, 14, 16, .1);
  --brand: #d32029;
  --brand-deep: #a4161a;
  --brand-bright: #ef4444;
  --on-dark: #f4f2ec;
  --on-dark-muted: #a9a7a0;
  --wrap: 1200px;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* 작은 머리말 — 점 하나 찍힌 잿빛 캡션 */
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted);
  margin-bottom: 18px; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ── 상단 — 맨 위에서는 아래 화면과 한 몸(투명), 스크롤하면 짙은 고정 바 ── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-dark);
  background: transparent;
  transition: background .25s, box-shadow .25s, color .25s;
}
.header.scrolled, .header.open {
  background: rgba(16, 16, 18, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
/* 하위 페이지는 머리가 밝은 띠라 맨 위에서는 글자를 어둡게 */
.header.light:not(.scrolled):not(.open) { color: var(--ink); }
.header.light:not(.scrolled):not(.open) .brand em,
.header.light:not(.scrolled):not(.open) .nav a:not(.nav-cta) { color: var(--muted); }
.header.light:not(.scrolled):not(.open) .nav a:not(.nav-cta):hover,
.header.light:not(.scrolled):not(.open) .nav a[aria-current="page"] { color: var(--ink); }
.header.light:not(.scrolled):not(.open) .nav-toggle i { background: var(--ink); }
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  width: min(var(--wrap), 100% - 48px); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 50%; background: #fff; }
.brand em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .85); margin-left: 8px; font-size: 13.5px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { color: #fff; transition: opacity .15s; }
.nav a:not(.nav-cta):hover { opacity: .75; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .nav-cta { color: #fff; background: var(--brand); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--brand-bright); }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
/* 하위 메뉴(프로그램) — 올리면 아래로 펼쳐진다 */
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.has-sub .sub { position: absolute; top: 100%; left: 50%; display: grid; min-width: 168px; padding: 8px; margin-top: 14px; border-radius: 14px; background: rgba(16, 16, 18, .96); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub .sub a { padding: 10px 14px; border-radius: 9px; font-size: 14.5px; color: rgba(255, 255, 255, .85) !important; white-space: nowrap; }
.has-sub .sub a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; opacity: 1; }
.nav-toggle i { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ── 단추 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn::after { content: '→'; font-weight: 600; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-bright); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--on-dark); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { border: 1px solid rgba(14, 14, 16, .2); color: var(--text); }
.btn-dark:hover { border-color: var(--text); }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #2a2a2e; }

/* ── 첫 화면 — 영상 위에 아주 큰 흰 제목, 바닥엔 가는 줄과 작은 글 두 단 ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--on-dark);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(10, 10, 12, .4), rgba(10, 10, 12, .62)); }
/* 글은 위쪽 정렬 — 헤더 아래 일정한 거리에서 시작 */
.hero-in {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column;
  padding: clamp(118px, 17vh, 170px) 0 clamp(36px, 6vh, 64px);
}
/* 제목은 위, 소개 문구와 단추는 아래로 — 화면을 위아래로 나눠 쓴다 */
.hero-cta { margin-top: auto; padding-top: 32px; }
.hero .eyebrow { color: rgba(244, 242, 236, .75); }
.hero .eyebrow::before { background: var(--brand-bright); }
.hero h1 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1.16; font-weight: 900; letter-spacing: -.045em;
  color: #fff;
}
.hero h1 span { color: #fff; }
.hero h1 .dot { color: var(--brand-bright); }
.lead { margin-top: 18px; font-size: clamp(15px, 1.5vw, 17px); color: rgba(244, 242, 236, .85); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-foot { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .24); }
.hero-foot-in {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0 30px; font-size: 14px; color: rgba(244, 242, 236, .78); line-height: 1.75;
}
.hero-foot-in p:last-child { text-align: right; }
/* 단추는 가는 줄 아래, 왼쪽 — 오른쪽의 주소·전화와 한 줄 */
.hero-foot-in { align-items: center; }
.hero-foot .hero-btns { margin-top: 0; }

/* ── 첫 화면 (시안 C 채택) — 영상 전면 + 왼쪽 위 제목, 바닥은 교육과정 4칸 유리 타일 ── */
.hv-c {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: #6b6b70; color: var(--on-dark);  /* 사진이 오기 전까지 회색 자리 */
  isolation: isolate;
}
.hv-c__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* 위(헤더 자리)와 아래(타일 자리)는 짙게, 왼쪽 제목 쪽도 살짝 짙게 */
.hv-c__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .6) 0%, rgba(10, 10, 12, .3) 50%, rgba(10, 10, 12, .06) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, .62) 0%, rgba(10, 10, 12, .22) 34%, rgba(10, 10, 12, .28) 62%, rgba(10, 10, 12, .66) 100%);
}

/* ── 제목 블록: 헤더(64px) 아래 일정한 거리에서 시작 ── */
.hv-c__top {
  flex: 1;
  width: min(var(--wrap), 100% - 48px); margin-inline: auto;
  padding: clamp(116px, 16vh, 168px) 0 clamp(40px, 7vh, 72px);
}
.hv-c .eyebrow { color: rgba(244, 242, 236, .78); margin-bottom: 20px; }
.hv-c .eyebrow::before { background: var(--brand-bright); }
.hv-c__title {
  font-size: clamp(38px, 4.7vw, 66px); line-height: 1.14;
  font-weight: 900; letter-spacing: -.045em; color: #fff;
}
.hv-c__title b { font-weight: inherit; color: var(--brand-bright); }
.hv-c__lead {
  margin-top: 22px; max-width: 30em;
  font-size: clamp(15px, 1.25vw, 17px); line-height: 1.7;
  color: rgba(244, 242, 236, .86); text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hv-c__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hv-c__btns .btn-ghost { background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ── 바닥: 반투명 검정 유리 띠 + 교육과정 4칸 ── */
.hv-c__menu {
  position: relative;
  background: rgba(12, 12, 14, .52);
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.hv-c__menu-in { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.hv-c__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  padding: 14px 0; position: relative;
  font-size: 13px; color: rgba(244, 242, 236, .7);
}
/* 칸 위의 가는 금은 본문 폭에서 끊지 않고 화면 양끝까지 잇는다 */
.hv-c__bar::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 1px;
  transform: translateX(-50%); background: rgba(255, 255, 255, .14);
}
.hv-c__bar strong { font-weight: 700; letter-spacing: .14em; color: rgba(244, 242, 236, .9); }
.hv-c__addr { display: inline-flex; align-items: center; gap: 8px; }
.hv-c__addr::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-bright); }

.hv-c__tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.hv-c__tiles li { position: relative; }
.hv-c__tiles li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.hv-c__tile {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start;
  min-height: clamp(128px, 17vh, 168px);
  padding: 22px 24px 26px;
  transition: background .25s;
}
.hv-c__tiles li:first-child .hv-c__tile { padding-left: 0; }
.hv-c__tiles li:last-child .hv-c__tile { padding-right: 0; }
.hv-c__no {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand-bright); font-variant-numeric: tabular-nums;
}
.hv-c__no small { font-size: inherit; margin-left: 8px; color: rgba(244, 242, 236, .55); }
.hv-c__name {
  grid-column: 1 / -1; align-self: end;
  font-size: clamp(19px, 1.75vw, 24px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25;
  color: #fff;
}
.hv-c__arrow {
  grid-column: 2; grid-row: 1;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 15px; color: #fff;
  transition: transform .25s, background .25s, border-color .25s;
}
/* 호버: 칸 바닥에 빨간 밑줄이 왼쪽부터 그어진다 */
.hv-c__tile::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.hv-c__tiles li:not(:first-child) .hv-c__tile::after { left: 0; }
.hv-c__tile:hover, .hv-c__tile:focus-visible { background: rgba(255, 255, 255, .05); }
.hv-c__tile:hover::after, .hv-c__tile:focus-visible::after { transform: scaleX(1); }
.hv-c__tile:hover .hv-c__arrow, .hv-c__tile:focus-visible .hv-c__arrow {
  background: var(--brand); border-color: var(--brand); transform: translateX(3px);
}
.hv-c__tile:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: -2px; }

/* ── 들어오는 움직임: 짧고 얌전하게 ── */
@keyframes hv-c-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hv-c__top > * { animation: hv-c-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hv-c__top > :nth-child(2) { animation-delay: .08s; }
.hv-c__top > :nth-child(3) { animation-delay: .16s; }
.hv-c__top > :nth-child(4) { animation-delay: .24s; }
.hv-c__menu { animation: hv-c-rise .9s .3s cubic-bezier(.2, .7, .2, 1) both; }

/* ── 태블릿: 제목이 너무 작아지지 않게, 칸 안쪽 여백은 줄인다 ── */
@media (max-width: 1024px) {
  .hv-c__tile { padding: 20px 18px 22px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .hv-c__top { padding-top: clamp(124px, 15vh, 180px); }
  .hv-c__title { font-size: clamp(44px, 6.2vw, 54px); }
  .hv-c__lead { font-size: 16.5px; }
}
@media (max-width: 760px) {
  .hv-c__no small { display: none; }
}
/* ── 모바일: 타일 2x2 ── */
@media (max-width: 640px) {
  .hv-c__top { padding-top: 108px; }
  .hv-c__title { font-size: clamp(34px, 9.4vw, 40px); }
  .hv-c__lead { margin-top: 16px; font-size: 15px; }
  .hv-c__btns { margin-top: 24px; }
  .hv-c__btns .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
  .hv-c__bar { padding: 12px 0; font-size: 12.5px; }
  .hv-c__tiles { grid-template-columns: 1fr 1fr; }
  .hv-c__tiles li + li { border-left: 0; }
  .hv-c__tiles li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .16); }
  .hv-c__tiles li:nth-child(3)::before {
    content: ''; position: absolute; top: 0; left: -50vw; width: 200vw; height: 1px;
    background: rgba(255, 255, 255, .16);
  }
  .hv-c__tile { min-height: 104px; padding: 16px 14px 18px; }
  .hv-c__tiles li:nth-child(odd) .hv-c__tile { padding-left: 0; }
  .hv-c__tiles li:nth-child(even) .hv-c__tile { padding-right: 0; padding-left: 16px; }
  .hv-c__tiles li:last-child .hv-c__tile { padding-right: 0; }
  .hv-c__no small { display: none; }
  .hv-c__name { font-size: 17.5px; }
  .hv-c__arrow { width: 28px; height: 28px; font-size: 13px; }
}
/* 키 작은 폰(SE 등): 위아래 여백을 줄여 첫 화면 안에 타일까지 들어오게 */
@media (max-width: 640px) and (max-height: 720px) {
  .hv-c__top { padding: 90px 0 22px; }
  .hv-c .eyebrow { margin-bottom: 14px; }
  .hv-c__lead { margin-top: 12px; }
  .hv-c__btns { margin-top: 18px; }
  .hv-c__bar { padding: 10px 0; }
  .hv-c__tile { min-height: 86px; padding-top: 12px; padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-c__top > *, .hv-c__menu { animation: none; }
  .hv-c__tile::after, .hv-c__arrow, .hv-c__tile { transition: none; }
}

/* ── 공통 구역 ── */
.section { position: relative; padding: clamp(60px, 7.5vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(25px, 3.4vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 36em; }
.hl { color: var(--brand); font-style: normal; }
.section-cta { margin-top: 36px; }

/* ── 목적별 과정 — 번호 달린 큰 줄들 ── */
.class-list { margin-top: 40px; border-top: 1px solid var(--line); }
.class-list a {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center;
  padding: 28px 8px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.class-list a:hover { background: rgba(14, 14, 16, .025); }
.cl-no { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.class-list h3 { font-size: clamp(21px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.035em; margin-top: 8px; color: var(--ink); transition: transform .25s; }
.class-list a:hover h3 { transform: translateX(8px); }
.cl-left p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.cl-quote { font-size: clamp(15.5px, 1.5vw, 18px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.cl-quote em { font-style: normal; color: var(--brand); }
.cl-cap { margin-top: 10px; color: var(--muted); font-size: 15px; }
.cl-right .more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand); transition: transform .2s; }
.class-list a:hover .more { transform: translateX(4px); }

/* ── 홈 교육과정 — 4열 8칸 타일 (검정·회색·흰 테두리·흑백 사진을 섞는다) ── */
/* 히어로 바로 아래라 위쪽을 더 띄운다 */
#find.section { padding-top: clamp(96px, 11vw, 160px); }
.section .pg-title { text-align: center; font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; letter-spacing: -.03em; color: var(--ink); }
.section .pg-title strong { font-weight: 800; }
.pg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: clamp(36px, 4vw, 52px); }
.pg-tile {
  position: relative; display: block; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 3; border-radius: 12px;
  padding: clamp(22px, 2.2vw, 32px);
  background: #f3f3f2; color: var(--ink);
  transition: background .2s, transform .2s;
}
a.pg-tile:hover { background: #ebebea; }
.pg-tile h3 { font-size: clamp(17px, 1.45vw, 21px); font-weight: 800; letter-spacing: -.035em; }
.pg-tile p { margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.pg-no { position: absolute; right: clamp(22px, 2.2vw, 32px); bottom: clamp(18px, 1.8vw, 26px); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.pg-dark { background: #0b0b0c; color: #fff; }
a.pg-dark:hover { background: #1c1c1f; }
.pg-dark p { color: rgba(255, 255, 255, .78); }
.pg-line { background: #fff; border: 1px solid #1b1b1d; }
a.pg-line:hover { background: #fafafa; }
.pg-photo { padding: 0; background: #111; }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .5s; }
.pg-photo:hover img { filter: grayscale(0); transform: scale(1.03); }
a.pg-tile:hover .pg-no { color: var(--brand); }
.pg-dark:hover .pg-no { color: var(--brand-bright); }

/* ── 수업 피드백 피드 — 코멘트 카드가 천천히 위로 흐른다(예시) ── */
.feed-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(211, 32, 41, .5); animation: feed-ping 1.8s infinite; }
@keyframes feed-ping { 0% { box-shadow: 0 0 0 0 rgba(211, 32, 41, .45); } 70% { box-shadow: 0 0 0 9px rgba(211, 32, 41, 0); } 100% { box-shadow: 0 0 0 0 rgba(211, 32, 41, 0); } }
.feed-window {
  position: relative; height: 460px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.feed-track { display: grid; gap: 12px; animation: feed-up 36s linear infinite; }
.feed-window:hover .feed-track { animation-play-state: paused; }
@keyframes feed-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.fd-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(14, 14, 16, .04); }
.fd-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.fd-subj { font-weight: 700; color: var(--brand); background: rgba(211, 32, 41, .07); border-radius: 999px; padding: 2px 9px; }
.fd-meta time { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.fd-text { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink); }
/* 학사 관리 시스템 안의 라이브 피드백 띠 — 코멘트 카드가 옆으로 흐른다.
   카드 간격을 gap이 아니라 margin으로 둬야 한 벌 길이의 -50%가 정확히 맞아 이음매가 안 튄다. */
.sysx__live { margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.sysx__live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.sysx__live-head .feed-live { margin-top: 0; }
.sysx__live-note { font-size: 13.5px; color: var(--muted); }
.feed-window--x {
  height: auto; margin-top: 22px; padding-block: 6px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.feed-window--x .feed-track { display: flex; width: max-content; gap: 0; animation: feed-left 60s linear infinite; }
.feed-window--x .fd-card { width: clamp(260px, 24vw, 340px); margin-right: 14px; flex: none; }
@keyframes feed-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 처음 보일 때 카드가 한 장씩 뒤집히며 나타난다(뒷면은 무늬 없는 검정).
   타일이 overflow:hidden 이라 3D 앞뒷면을 쓸 수 없어서, 뒷면은 덮개(::after)로 흉내 내고
   카드가 옆으로 선 순간(90°)에 덮개를 걷는다. */
.pg-grid .pg-tile.reveal { opacity: 1; transform: none; transition: background .2s; }
.pg-grid .pg-tile.reveal::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: #141416;
  opacity: 0;
}
.pg-grid .pg-tile.reveal:not(.in) { transform: perspective(1400px) rotateY(180deg); }
.pg-grid .pg-tile.reveal:not(.in)::after { opacity: 1; }
.pg-grid .pg-tile.reveal.in { animation: pg-flip .95s cubic-bezier(.3, .7, .2, 1) both; animation-delay: var(--flip, 0ms); }
.pg-grid .pg-tile.reveal.in::after { animation: pg-flip-back .95s linear both; animation-delay: var(--flip, 0ms); }
@keyframes pg-flip {
  from { transform: perspective(1400px) rotateY(180deg); }
  to { transform: perspective(1400px) rotateY(0); }
}
@keyframes pg-flip-back { 0%, 44% { opacity: 1; } 45%, 100% { opacity: 0; } }
.pg-grid .pg-tile:nth-child(1) { --flip: 0ms; }
.pg-grid .pg-tile:nth-child(2) { --flip: 90ms; }
.pg-grid .pg-tile:nth-child(3) { --flip: 180ms; }
.pg-grid .pg-tile:nth-child(4) { --flip: 270ms; }
.pg-grid .pg-tile:nth-child(5) { --flip: 140ms; }
.pg-grid .pg-tile:nth-child(6) { --flip: 230ms; }
.pg-grid .pg-tile:nth-child(7) { --flip: 320ms; }
.pg-grid .pg-tile:nth-child(8) { --flip: 410ms; }

/* ── 홈 학사 관리 시스템 — 얇은 큰 번호의 기능 4개 + 실제 앱 화면 (시안 sys-2 아랫부분 채택) ── */
.sysx__head { display: grid; grid-template-columns: 1fr minmax(0, 25em); gap: 24px 64px; align-items: end; }
.sysx__head .section-sub { margin-top: 0; max-width: none; }
.sysx__body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line);
}
.sysx__feats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 3.4vw, 48px) clamp(24px, 3vw, 44px); }
.sysx__feats li { display: grid; gap: 6px; align-content: start; }
.sysx__num { font-size: clamp(36px, 3.4vw, 48px); font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.sysx__feats strong { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.35; }
.sysx__feats span { font-size: 15px; color: var(--muted); line-height: 1.6; }
.sysx__app { display: grid; justify-items: center; gap: 22px; }
.sysx__phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.4vw, 18px); }
.sysx__phone { margin: 0; width: clamp(92px, 10.6vw, 152px); flex: 0 1 auto; }
.sysx__phone:nth-child(2) { width: clamp(104px, 12vw, 172px); }
.sysx__screen { display: block; overflow: hidden; border: 5px solid #1d1d20; border-radius: clamp(16px, 1.7vw, 24px); background: #101013; box-shadow: 0 22px 48px rgba(14, 14, 16, .16); }
.sysx__screen img { width: 100%; height: auto; }
.sysx__phone figcaption { margin-top: 10px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sysx__note { font-size: 13.5px; color: var(--muted); text-align: center; }
.sysx__note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sysx__note a:hover { color: var(--brand); }

/* ── 학사 관리 시스템 로테이션 — 왼쪽 기능이 차례로 강조되고, 오른쪽 큰 목업이 그 화면으로 넘어간다 ── */
.sysx-rot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.sysx-rot .sysx__feats { grid-template-columns: 1fr; gap: 6px; }
.sysx-rot .sysx__feats li { display: block; }
.sysx__feat {
  position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; row-gap: 6px; width: 100%;
  padding: 22px 4px 24px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer;
  opacity: .32; transition: opacity .45s;
}
.sysx__feat:hover { opacity: .6; }
.sysx-rot li.is-on .sysx__feat { opacity: 1; }
.sysx__feat .sysx__num { grid-row: span 2; margin: 0; font-size: 40px; transition: color .45s; }
.sysx-rot li.is-on .sysx__num { color: var(--brand); }
.sysx__feat strong { font-size: 21px; }
.sysx__feat span { font-size: 15px; }
/* 진행 막대 — 강조된 항목 아래에서 차오르면 다음으로 넘어간다(--rot = 한 칸 머무는 시간) */
.sysx__bar { position: absolute; left: 86px; right: 4px; bottom: 0; height: 2px; background: var(--line); overflow: hidden; }
.sysx__bar::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.sysx-rot li.is-on .sysx__bar::after { animation: sysx-fill var(--rot, 4.5s) linear both; }
.sysx-rot.is-paused li.is-on .sysx__bar::after { animation-play-state: paused; }
@keyframes sysx-fill { to { transform: scaleX(1); } }

.sysx__stage { display: grid; justify-items: center; gap: 22px; }
/* 오른쪽 회색 영역 — 타이포그래피가 들어올 자리. 화면이 가로로 이어진 띠라 다음 화면이 오른쪽에서 밀려 들어온다 */
.sysx-rot .sysx__stage { justify-items: stretch; }
/* 바탕 판 없이 폰만 띄운다 — 아래가 잘린 폰이 칼같이 끊겨 보이지 않게 끝을 흐린다 */
.sysx__panel { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.sysx__slides { display: flex; height: 100%; transform: translateX(calc(var(--i, 0) * -100%)); transition: transform .8s cubic-bezier(.65, 0, .25, 1); }
.sysx__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.sysx__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 자리 표시 — 어느 화면인지만 보이게 번호 하나 */
.sysx__ph { display: grid; place-items: center; height: 100%; font-size: 64px; font-weight: 200; letter-spacing: -.04em; color: rgba(14, 14, 16, .14); font-variant-numeric: tabular-nums; }

/* 기능 모션 — 아이폰 안에 실제 학생 앱 화면(밝은 바탕·큰 제목·흰 카드)을 그대로 줄여 그린다.
   폰은 414px(화면 390 + 테두리) 실물 크기로 짜고 site.js 가 패널 너비에 맞춰 --k 로 줄인다.
   애니메이션은 슬라이드에 .is-on 이 붙을 때만 돈다. 아무것도 안 걸린 기본 상태가 마지막 장면이라
   모션을 끈 사용자(prefers-reduced-motion)와 넘어가는 중인 슬라이드는 완성된 화면을 본다. */
.sysx-rot { --rot: 6s; }
.sysx__slide { position: relative; overflow: hidden; }
.ph { position: absolute; left: 50%; top: 6%; width: 414px; padding: 12px; border-radius: 66px; background: #111113; box-shadow: inset 0 0 0 2px #2c2c30, 0 30px 60px rgba(14, 14, 16, .18); transform: translateX(-50%) scale(var(--k, .7)); transform-origin: top center; }
.ph-scr { position: relative; height: 844px; overflow: hidden; border-radius: 54px; background: #f4f4f5; color: #141414; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; text-align: left; }
.ph-sb { position: relative; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 4px 30px 0 44px; }
.ph-sb b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.ph-sb svg { width: 66px; height: 12px; fill: currentColor; }
.ph-isl { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ap { padding: 10px 16px 0; }
.ap-back { display: inline-flex; align-items: center; height: 36px; padding: 0 14px 0 10px; margin-bottom: 12px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(23, 25, 28, .08); font-size: 14px; font-weight: 600; color: #6b6b6b; }
.ap-eye { padding: 0 4px; font-size: 13px; font-weight: 600; color: #9a9a9a; }
.ap-title { padding: 0 4px; margin-top: 2px; font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.ap-sub { padding: 0 4px; margin-top: 4px; font-size: 14px; color: #6b6b6b; }
.ap-title + .ap-card, .ap-sub + .ap-grow, .ap-title + .ap-sec { margin-top: 18px; }
.ap-sec { padding: 0 6px; margin: 24px 0 8px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.ap-card { border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(23, 25, 28, .03), 0 4px 14px -6px rgba(23, 25, 28, .06); }
.ap-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fef2f2; color: #d32029; font-size: 12px; font-weight: 800; }

.ap-tap { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(20, 20, 20, .16); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); opacity: 0; pointer-events: none; }
.ap-bars { display: grid; gap: 16px; padding: 18px 16px; }
.ap-bars p { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; align-items: baseline; }
.ap-bars b { font-size: 15px; font-weight: 700; }
.ap-bars p > span { position: relative; font-size: 13px; color: #6b6b6b; font-variant-numeric: tabular-nums; }
.ap-bars i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #ededed linear-gradient(#d32029, #d32029) no-repeat; background-size: var(--w) 100%; }

.ap-grow { display: grid; grid-template-rows: 1fr; }
.ap-grow > div { min-height: 0; overflow: hidden; }
.ap-cmt { padding: 16px 18px 18px; }
.ap-cmt + .ap-cmt, .ap-grow + .ap-cmt, .ap-grow > div > .ap-cmt { margin-top: 12px; }
.ap-sub + .ap-grow > div > .ap-cmt { margin-top: 0; }
.ap-cmt.is-new { box-shadow: inset 0 0 0 1.5px rgba(211, 32, 41, .35), 0 4px 14px -6px rgba(23, 25, 28, .06); }
.ap-cmt-hd { display: flex; align-items: center; gap: 8px; }
.ap-subj { padding: 2px 9px; border-radius: 99px; background: #f4f4f5; font-size: 12px; font-weight: 600; color: #6b6b6b; }
.ap-subj.ap-at { background: #fef2f2; color: #d32029; font-weight: 800; font-variant-numeric: tabular-nums; }
.ap-cmt-hd time { margin-left: auto; font-size: 13px; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.ap-cmt-tx { position: relative; min-height: 48px; margin-top: 10px; font-size: 15px; line-height: 1.6; color: #333; }
.mo-typing { position: absolute; left: 0; top: 8px; display: flex; gap: 5px; opacity: 0; }
.mo-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c4c4c8; }

.mo-roll { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; font-weight: 700; color: #141414; }
.mo-roll > span { display: block; transform: translateY(-1.25em); }
.mo-roll > span > span { display: block; line-height: 1.25; }
.mo-minus { position: absolute; right: 0; bottom: 100%; font-style: normal; font-size: 13px; font-weight: 800; color: #d32029; white-space: nowrap; opacity: 0; }
.ap-list { padding: 0 16px; }
.ap-row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 0; border-top: 1px solid #ededed; }
.ap-list > .ap-grow:first-child .ap-row, .ap-list > .ap-row:first-child { border-top: 0; }
.ap-date { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f4f5; font-size: 12px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-date small { font-size: 10px; font-weight: 600; color: #9a9a9a; }
.ap-rt { display: grid; flex: 1; min-width: 0; }
.ap-rt b { font-size: 15px; font-weight: 700; }
.ap-rt small { font-size: 12px; color: #9a9a9a; }
.ap-st { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.ap-st.ok { background: #edf6f1; color: #2aa56e; }
.ap-st.mk { background: #fef2f2; color: #d32029; }
.ap-row.is-new { margin: 0 -16px; padding: 10px 16px; background: #fffafa; }

.ap-log { padding: 10px; }
.mo-vid { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse 34% 75% at 50% 18%, rgba(255, 232, 196, .5), transparent 72%), linear-gradient(#2a2a30, #111113); }
.mo-actor { position: absolute; left: 50%; bottom: 0; width: 64px; height: 92px; margin-left: -32px; border-radius: 32px 32px 0 0; background: #0b0b0d; }
.mo-actor::before { content: ''; position: absolute; left: 50%; top: -40px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: #0b0b0d; }
.mo-dur { position: absolute; right: 10px; top: 10px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mo-play { position: absolute; left: 50%; top: 42%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.mo-play svg { width: 26px; height: 26px; fill: #d32029; }
.mo-track { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.mo-pin { position: absolute; left: 62%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid #fff; border-radius: 50%; background: #d32029; }
.mo-up { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(14, 14, 16, .6); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; }
.mo-up i { width: 170px; height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .25); }
.mo-up i::after { content: ''; display: block; height: 100%; background: #fff; transform-origin: left; }
.ap-memo { display: grid; gap: 2px; padding: 12px 6px 6px; font-size: 14px; color: #6b6b6b; }
.ap-memo b { font-size: 15px; color: #141414; }

/* ── 관리자 블록 — 기능 4개를 위에 가로로, 그 아래 노트북 속 관리 화면(V2 그대로)이 바뀐다 ──
   노트북은 1340px 실물로 짜고 site.js 가 패널 너비에 맞춰 --k 로 줄인다. 화면 전환은 미끄러지지 않고 겹쳐 바뀐다. */
/* 토글 — 학생·학부모 / 원장·선생님. 고른 쪽 판만 보이고, 옆 설명 한 줄도 같이 바뀐다 */
.sysx-tabs-row { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.sysx-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: #f0f0f1; }
.sysx-tabs button { position: relative; z-index: 1; padding: 11px 26px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--muted); cursor: pointer; transition: color .3s; white-space: nowrap; }
.sysx-tabs button[aria-selected="true"] { color: #fff; }
.sysx-tabs__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); box-shadow: 0 6px 16px rgba(14, 14, 16, .18); transition: transform .45s cubic-bezier(.65, 0, .25, 1); }
.sysx-tabs[data-at="1"] .sysx-tabs__thumb { transform: translateX(100%); }
.sysx-pane .sysx__body { margin-top: clamp(28px, 3vw, 40px); padding-top: 0; border-top: 0; }
.sysx-pane:not([hidden]) { animation: tch-in .45s ease both; }
/* 학생 쪽과 같은 꼴 — 왼쪽 기능 목록, 오른쪽 기기. 노트북이 넓어야 해서 오른쪽 칸을 더 준다 */
.sysx-rot--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 48px clamp(32px, 4vw, 56px); }
.sysx-rot--wide .sysx__feat { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 18px 2px 20px; }
.sysx-rot--wide .sysx__feat .sysx__num { font-size: 32px; }
.sysx-rot--wide .sysx__feat strong { font-size: 18px; }
.sysx-rot--wide .sysx__feat span { font-size: 14px; }
.sysx-rot--wide .sysx__bar { left: 64px; }
.lp-panel { position: relative; aspect-ratio: 1340 / 722; -webkit-mask-image: none; mask-image: none; }
.lp { position: absolute; left: 50%; top: 0; width: 1340px; transform: translateX(-50%) scale(var(--k, .8)); transform-origin: top center; color: #141414; text-align: left; letter-spacing: -.01em; }
.lp-scr { display: flex; width: 1300px; height: 700px; margin: 0 auto; overflow: hidden; border: 14px solid #161618; border-bottom-width: 18px; border-radius: 26px 26px 0 0; background: #f4f4f5; box-shadow: 0 0 0 1.5px #3a3a3e; }
.lp-base { position: relative; height: 22px; border-radius: 0 0 20px 20px; background: linear-gradient(#dcdcdf, #a8a8ad); }
.lp-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 170px; height: 8px; margin-left: -85px; border-radius: 0 0 8px 8px; background: #9a9aa0; }
.lp-side { display: flex; flex-direction: column; flex: 0 0 224px; padding: 22px 14px 16px; background: #34121a; color: #fff; }
.lp-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.lp-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; font-size: 17px; font-weight: 900; }
.lp-logo b { display: block; font-size: 16px; font-weight: 900; letter-spacing: .02em; }
.lp-logo small { display: block; margin-top: 2px; font-size: 10.5px; color: #cbaab0; }
.lp-nav { display: grid; gap: 2px; }
.lp-nav li { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #cbaab0; transition: background .3s, color .3s; }
.lp-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-nav .lp-sub { display: none; flex-direction: column; align-items: stretch; height: auto; padding: 2px 0 6px 44px; gap: 0; }
.lp-sub i { display: flex; align-items: center; gap: 8px; height: 30px; font-style: normal; font-size: 13px; }
.lp-sub i::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.sysx-rot:not([data-at="1"]):not([data-at="3"]) .lp-n-tt, .sysx-rot[data-at="1"] .lp-n-stu, .sysx-rot[data-at="3"] .lp-n-stu { background: #d32029; color: #fff; }
.sysx-rot:not([data-at="1"]):not([data-at="3"]) .lp-sub-tt, .sysx-rot[data-at="1"] .lp-sub-stu, .sysx-rot[data-at="3"] .lp-sub-stu { display: flex; }
.sysx-rot:not([data-at]) .lp-s-tt, .sysx-rot[data-at="0"] .lp-s-tt, .sysx-rot[data-at="2"] .lp-s-att, .sysx-rot[data-at="1"] .lp-s-cmt, .sysx-rot[data-at="3"] .lp-s-list { color: #fff; font-weight: 700; }
.lp-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid #4a1c25; }
.lp-me span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #632731; font-size: 13px; font-weight: 700; }
.lp-me b { font-size: 13.5px; }
.lp-me small { display: block; font-size: 11.5px; font-weight: 500; color: #cbaab0; }
.lp-main { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.lp .sysx__slides { display: grid; height: 100%; transform: none; transition: none; }
.lp .sysx__slide { grid-area: 1 / 1; display: block; height: 100%; padding: 24px 34px; opacity: 0; transition: opacity .5s; }
.lp .sysx__slide.is-cur { opacity: 1; }
.lp-ph { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.lp-h { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.lp-d { margin-top: 4px; font-size: 13.5px; color: #6b6b6b; }
.lp-state { display: grid; }
.lp-state i { grid-area: 1 / 1; height: 28px; padding: 0 12px; font-size: 13px; }
.lp-state .mute { opacity: 0; }
.lp-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lp-chip.ok { background: #edf6f1; color: #2aa56e; }
.lp-chip.mute { background: #f0f0f1; color: #6b6b6b; }
.lp-chip.warn { background: #fbf1e7; color: #d96f1d; }
.lp-chip.gold { background: #fdf6dc; color: #a07a10; }
.lp-chip.red { background: #fef2f2; color: #d32029; }
.lp-chip.file { border: 1px solid #ededed; background: #f7f7f8; color: #141414; font-weight: 600; }
.lp-card { padding: 18px 20px; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
.lp-ct { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15px; font-weight: 800; }
.lp-ct span { font-size: 12.5px; font-weight: 600; color: #9a9a9a; }
.lp-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lp-roster li { display: flex; align-items: center; gap: 8px; height: 48px; border-top: 1px solid #ededed; font-size: 14px; }
.lp-roster li:first-child { border-top: 0; }
.lp-roster b { flex: none; width: 50px; }
.lp-left { flex: none; width: 54px; font-size: 12px; color: #9a9a9a; }
.lp-roster .lp-chip.warn { flex: none; }
.lp-btns { display: flex; gap: 4px; margin-left: auto; }
.lp-btns i { padding: 4px 6px; border: 1px solid #ededed; border-radius: 6px; background: #fff; font-style: normal; font-size: 11px; font-weight: 700; color: #9a9a9a; white-space: nowrap; }
.lp-btns i.on.ok { border-color: #2aa56e; background: #2aa56e; color: #fff; }
.lp-btns i.on.pre { border-color: #f5c445; background: #f5c445; color: #4a3a00; }
.lp-roster li > .lp-chip:last-child { flex: none; justify-content: center; width: 64px; }
.lp-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: #6b6b6b; }
.lp-btn { position: relative; padding: 9px 18px; border-radius: 8px; background: #d32029; color: #fff; font-style: normal; font-size: 14px; font-weight: 800; }
.lp-toast { position: absolute; left: 0; right: 0; bottom: 26px; width: max-content; margin: 0 auto; padding: 12px 20px; border-radius: 10px; background: #141414; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.lp-cmt { padding: 12px 0; border-top: 1px solid #ededed; font-size: 13.5px; line-height: 1.55; }
.lp-ct + .lp-cmt { border-top: 0; padding-top: 4px; }
.lp-cmt > p:first-child { display: flex; align-items: center; gap: 8px; }
.lp-meta { margin: 2px 0 4px; font-size: 12px; color: #9a9a9a; }
.lp-cmt .lp-chip.file, .lp-work .lp-chip.file { margin-top: 6px; }
.lp-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; }
.lp-seg { display: flex; padding: 3px; border-radius: 8px; background: #e9e9eb; }
.lp-seg i { padding: 5px 12px; border-radius: 6px; font-style: normal; font-size: 13px; color: #6b6b6b; }
.lp-seg i.on { background: #fff; color: #141414; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lp-stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-stat { display: grid; gap: 2px; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
.lp-stat span { font-size: 13px; font-weight: 600; color: #6b6b6b; }
.lp-stat b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-stat small { margin-left: 2px; font-size: 14px; color: #6b6b6b; }
.lp-stat em { font-style: normal; font-size: 12px; color: #9a9a9a; }
.lp-stat em.up { font-weight: 700; color: #2aa56e; }
.lp-fd { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #ededed; }
.lp-fd:first-child { border-top: 0; padding-top: 0; }
.lp-av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fef2f2; color: #d32029; font-size: 14px; font-weight: 800; }
.lp-fd > div { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.55; }
.lp-fd > div > p:first-child { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.lp-fd small { margin-right: 4px; font-size: 12px; color: #9a9a9a; }
.lp-fd time { font-size: 12px; color: #9a9a9a; white-space: nowrap; }
.lp-reply { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #f7f6f3; font-size: 13px; }
.lp-reply b { margin-right: 6px; color: #d32029; }
.lp-allok { margin-top: 4px; padding-top: 12px; border-top: 1px solid #ededed; font-size: 13.5px; font-weight: 700; color: #2aa56e; transform-origin: left center; }
.lp-grid { padding: 14px 18px; }
.lp-grid table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lp-grid th, .lp-grid td { height: 34px; text-align: center; }
.lp-grid thead th { font-size: 11.5px; font-weight: 600; color: #9a9a9a; }
.lp-grid tbody th { width: 70px; padding-left: 4px; text-align: left; font-size: 13px; font-weight: 700; }
.lp-grid td { border-top: 1px solid #f0f0f1; }
.lp-grid .td { background: #fef2f2; }
.lp-grid td i, .lp-legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.lp-grid td.o i, .lp-legend .o { background: #2aa56e; }
.lp-grid td.p i, .lp-legend .p { background: #f5c445; }
.lp-grid td.x i, .lp-legend .x { background: #d96f1d; }
.lp-grid td.o i::after { content: '✓'; }
.lp-grid td.p i::after { content: '△'; color: #4a3a00; }
.lp-grid td.x i::after { content: '✕'; }
.lp-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: #6b6b6b; }
.lp-legend i { width: 12px; height: 12px; border-radius: 3px; margin-left: 10px; }
.lp-legend i:first-child { margin-left: 0; }
.lp-legend .n { background: #e4e4e7; }
.lp-work { margin-top: 10px; padding: 12px 14px; border: 1px solid #ededed; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.lp-work > p:first-child { display: flex; align-items: center; gap: 8px; }
.lp-work small { margin-left: auto; font-size: 11.5px; color: #9a9a9a; }
.lp-month { padding: 12px 0; border-top: 1px solid #ededed; }
.lp-ct + .lp-month { border-top: 0; padding-top: 4px; }
.lp-month b { font-size: 14px; }
.lp-month p:not(.lp-meta) { display: flex; gap: 6px; margin: 6px 0 2px; }
.sysx__slide.is-on .lp-btns i.on { animation: lp-on .2s var(--d, 0s) both; }
.sysx__slide.is-on .lp-btn .ap-tap { animation: mo-tap .8s 2.7s ease-out both; }
.sysx__slide.is-on .lp-state .mute { animation: mo-wait 3.25s both; }
.sysx__slide.is-on .lp-done { animation: mo-pop .45s 3.15s cubic-bezier(.3, 1.5, .5, 1) both; }
.sysx__slide.is-on .lp-deal { animation: srail-deal .55s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-on { from { border-color: #ededed; background: #fff; color: #9a9a9a; } }

/* 01 카톡 대화방 → 학부모 페이지가 아래에서 올라온다 */
.kk { position: absolute; inset: 54px 0 0; background: #b2c7da; }
.kk-hd { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; font-size: 22px; color: #3c4a57; }
.kk-hd b { font-size: 16px; color: #1a1a1a; }
.kk-day { width: max-content; margin: 4px auto 14px; padding: 3px 12px; border-radius: 99px; background: rgba(0, 0, 0, .12); color: #fff; font-size: 12px; }
.kk-msg { display: flex; gap: 8px; padding: 0 14px; }
.kk-pf { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 15px; background: #d32029; color: #fff; font-size: 17px; font-weight: 800; }
.kk-name { font-size: 12.5px; color: #3c4a57; margin-bottom: 4px; }
.kk-bub { max-width: 270px; overflow: hidden; border-radius: 4px 16px 16px 16px; background: #fff; }
.kk-bub > p { padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.kk-link { position: relative; display: grid; gap: 1px; padding: 12px; border-top: 1px solid #ededed; background: #fafafa; }
.kk-link b { font-size: 14.5px; }
.kk-link span:not(.ap-tap) { font-size: 12px; color: #9a9a9a; }
.ap-sheet { position: absolute; inset: 54px 0 0; background: #f4f4f5; }
.ap-sheet .ap-card + .ap-card { margin-top: 12px; }

/* 02 코멘트에 붙은 첨삭 파일 */
.ap-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 11px; border-radius: 10px; background: #f4f4f5; font-size: 12.5px; font-weight: 700; color: #141414; transform-origin: left center; }
.ap-file svg { width: 15px; height: 15px; fill: none; stroke: #d32029; stroke-width: 2; stroke-linejoin: round; }

/* 04 못 가는 날 미리 알리기(앱 홈의 칸 그대로) */
.ap-abs { padding: 14px; }
.ap-abs-row { display: flex; gap: 8px; }
.ap-field { position: relative; display: flex; align-items: center; flex: 1; height: 46px; padding: 0 14px; border-radius: 12px; background: #f4f4f5; font-size: 15px; font-weight: 600; }
.ap-field-wide { margin-top: 8px; gap: 4px; font-weight: 500; }
.ap-ph { position: absolute; left: 14px; color: #b0b0b4; opacity: 0; }
.ap-btn { position: relative; display: grid; place-items: center; padding: 0 18px; border-radius: 12px; background: #d32029; color: #fff; font-size: 15px; font-weight: 800; }
.ap-note { margin-top: 10px; font-size: 12px; color: #9a9a9a; }
.ap-req { margin-top: 12px; }
.ap-flip { position: relative; display: grid; justify-items: end; }
.ap-flip > span { grid-area: 1 / 1; }
.ap-wait { opacity: 0; }
.ap-st.ap-wait { background: #f4f4f5; color: #6b6b6b; }
.ap-keep { display: flex; align-items: center; gap: 6px; width: max-content; margin: 12px 0 0 4px; font-size: 13.5px; font-weight: 800; color: #2aa56e; transform-origin: left center; }
.ap-keep svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.sysx__slide.is-on .ap-sheet { animation: mo-sheet .6s 1.45s cubic-bezier(.2, .8, .2, 1) both; }
.sysx__slide.is-on .kk-link .ap-tap { animation: mo-tap .9s .75s ease-out both; }
.sysx__slide.is-on .ap-btn .ap-tap { animation: mo-tap .8s 1.25s ease-out both; }
.sysx__slide.is-on .ap-ph { animation: mo-ph .9s both; }
.sysx__slide.is-on .ap-wait { animation: mo-wait 2.9s both; }
.sysx__slide.is-on .ap-done { animation: mo-pop .45s 2.75s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes mo-sheet { from { transform: translateY(100%); } }
@keyframes mo-ph { 0%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mo-wait { 0%, 94% { opacity: 1; } 100% { opacity: 0; } }

.sysx__slide.is-on .mo-a { animation: mo-in .55s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both; }
.sysx__slide.is-on .mo-p { animation: mo-pop .45s var(--d, 0s) cubic-bezier(.3, 1.5, .5, 1) both; }
.sysx__slide.is-on .ap-grow { animation: mo-open .6s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both; }
.sysx__slide.is-on .ap-tap { animation: mo-tap .9s 1.1s ease-out both; }
.sysx__slide.is-on .ap-bars i { animation: mo-bar .8s 2.3s cubic-bezier(.2, .8, .2, 1) both; }
.sysx__slide.is-on .ap-bars i.ap-shrink { animation: mo-shrink .6s 2.1s cubic-bezier(.65, 0, .25, 1) both; }
.sysx__slide.is-on .mo-typing { animation: mo-typing .95s .4s both; }
.sysx__slide.is-on .mo-typing i { animation: mo-blink .5s infinite alternate; }
.sysx__slide.is-on .mo-typing i:nth-child(2) { animation-delay: .15s; }
.sysx__slide.is-on .mo-typing i:nth-child(3) { animation-delay: .3s; }
.sysx__slide.is-on .mo-w { animation: mo-word .25s var(--d, 0s) both; }
.sysx__slide.is-on .mo-minus { animation: mo-float 1.4s 1.8s ease-out both; }
.sysx__slide.is-on .mo-roll > span { animation: mo-roll .5s 2.1s cubic-bezier(.65, 0, .25, 1) both; }
.sysx__slide.is-on .mo-up { animation: mo-up 1.85s .2s both; }
.sysx__slide.is-on .mo-up i::after { animation: mo-grow 1.2s .35s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes mo-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes mo-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes mo-open { from { grid-template-rows: 0fr; opacity: 0; } }
@keyframes mo-grow { from { transform: scaleX(0); } }
@keyframes mo-bar { from { background-size: 0 100%; } }
@keyframes mo-shrink { from { background-size: var(--w0) 100%; } }
@keyframes mo-word { from { opacity: 0; } }
@keyframes mo-tap { 0% { opacity: 0; transform: scale(1.5); } 35% { opacity: 1; transform: scale(1); } 50% { transform: scale(.85); } 100% { opacity: 0; transform: scale(1.2); } }
@keyframes mo-typing { 0% { opacity: 0; } 20%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mo-blink { to { opacity: .3; } }
@keyframes mo-float { 0% { opacity: 0; transform: translateY(8px); } 30%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes mo-roll { from { transform: none; } }
@keyframes mo-up { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sysx__slide * { animation: none !important; }
}
@media (max-width: 1024px) {
  .sysx__head { grid-template-columns: 1fr; }
  .sysx__body { grid-template-columns: 1fr; gap: 64px; }
  .sysx__phone { width: clamp(92px, 17vw, 140px); }
  .sysx__phone:nth-child(2) { width: clamp(104px, 19.5vw, 160px); }
}
@media (max-width: 640px) {
  .sysx__feats { grid-template-columns: 1fr; gap: 28px; }
  .sysx__feats li { grid-template-columns: 52px 1fr; column-gap: 8px; }
  .sysx__num { grid-row: span 2; font-size: 30px; margin: 0; }
  .sysx__feats strong { font-size: 17.5px; }
  .sysx__feats span { font-size: 14.5px; }
  .sysx__phones { width: 100%; gap: 12px; }
  .sysx__phone { width: calc((100% - 24px) / 3.15); }
  .sysx__phone:nth-child(2) { width: calc((100% - 24px) / 2.7); }
  .sysx__app { justify-self: stretch; }
  .sysx__screen { border-width: 4px; border-radius: 14px; }
  .sysx__phone figcaption { font-size: 11.5px; }
}

/* ── 소개 — 선언문과 사진 둘 ── */
.statement {
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1.32;
  color: var(--ink); max-width: 21em;
}
.statement-sub { display: flex; justify-content: flex-end; margin-top: 34px; }
.statement-sub p { max-width: 34em; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; align-items: start; }
.duo figure { overflow: hidden; border-radius: var(--r); }
.duo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.duo-down { margin-top: 48px; }
/* 금만 긋는 구역 — 지브라 배경 대신 가는 선으로 끊는다 */
.section-line { padding-top: 0; }
.section-line .wrap { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }

/* ── 소개 ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; margin-top: 36px; align-items: start; }
.about-text { font-size: 16.5px; color: #3a3a40; line-height: 1.8; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points strong { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.points span { color: var(--muted); font-size: 15px; }

/* 철학 — 제목과 문단이 어깨를 나란히 */
.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.phil-text p { font-size: 16.5px; color: #3a3a40; line-height: 1.85; }
.phil-text p + p { margin-top: 18px; }
.phil-text .btn { margin-top: 28px; }

/* 철학 — 빨간 커튼을 꽉 채우고 그 위에 선언문 */
.phil {
  position: relative; overflow: hidden;
  min-height: min(78svh, 760px);
  display: flex; align-items: center; text-align: center;
  color: var(--on-dark); padding: clamp(80px, 10vw, 130px) 0;
}
.phil-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phil-shade { position: absolute; inset: 0; background: rgba(10, 10, 12, .58); }
.phil-in { position: relative; z-index: 1; display: grid; justify-items: center; }
.phil .eyebrow { color: rgba(244, 242, 236, .8); }
.phil .eyebrow::before { background: var(--brand-bright); }
.phil h2 { color: #fff; }
.phil .hl { color: var(--brand-bright); }
.phil-sub { margin-top: 18px; color: rgba(244, 242, 236, .82); font-size: 16px; line-height: 1.8; }
.phil .btn { margin-top: 36px; }
/* 어두운 바탕 위 숫자 — 틀 없이 가는 흰 금만 */
.stats.stats-dark { border: 0; border-radius: 0; margin-top: 44px; }
.stats.stats-dark li { background: none; padding: 10px 44px; }
.stats.stats-dark li + li { border-left: 1px solid rgba(255, 255, 255, .28); border-top: 0; }
.stats.stats-dark b { color: #fff; }
.stats.stats-dark span { color: rgba(244, 242, 236, .72); }

/* 숫자 스트립 — 금 그은 칸들 */
.stats { display: flex; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats li { flex: 1; display: grid; gap: 4px; justify-items: center; padding: 22px 10px; background: #fff; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-size: clamp(26px, 2.9vw, 38px); font-weight: 900; letter-spacing: -.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── 다섯 단계 — 윗금에 번호 달린 가로 탭 ── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 40px 0 8px; }
.steps li { border-top: 2px solid var(--line); padding-top: 16px; display: grid; gap: 2px; }
.steps li:first-child { border-top-color: var(--brand); }
.steps b { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.steps strong { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.steps span { color: var(--muted); font-size: 14px; }

/* ── 학생 앱 — 밝은 바탕에 폰 세 대 ── */
.app-section { background: var(--bg-alt); overflow: hidden; }
.app-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; margin-top: 40px; }
.app-points li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.app-points li:last-child { border-bottom: 1px solid var(--line); }
.app-points b { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.app-points strong { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.app-points div span { color: var(--muted); font-size: 15px; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 1.6vw, 20px); }
.phone { margin: 0; width: clamp(150px, 15vw, 215px); flex: 0 0 auto; }
.phone-main { width: clamp(170px, 17vw, 250px); }
.phone:not(.phone-main) { margin-top: 30px; }
.phone-screen {
  display: block; border-radius: clamp(22px, 2.2vw, 32px); border: 6px solid #1d1d20; overflow: hidden;
  background: #101013; box-shadow: 0 30px 70px rgba(14, 14, 16, .22);
}
.phone-screen img { display: block; width: 100%; height: auto; }
.phone figcaption { margin-top: 13px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.app-note { margin-top: 44px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ── 강사 카드 ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { background: #fff; border-radius: var(--r); padding: 24px 22px; border: 1px solid var(--line); }
.avatar {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  font-weight: 800; font-size: 24px; margin-bottom: 18px;
}
.av-blue { background: #eaf1ff; color: #3577f1; }
.av-pink { background: #fdeef2; color: #e2447e; }
.av-green { background: #e8f6ef; color: #23a26d; }
.av-purple { background: #f1edff; color: #7c5cf0; }
.av-orange { background: #fff3e0; color: #ef8f00; }
.av-gold { background: #fff8e0; color: #d99f00; }
/* ── 강사진 — 어두운 세로 사진 카드, 이름은 사진 위에. 사진이 없으면 옅은 큰 이니셜 ── */
.tch-head { display: grid; grid-template-columns: 1fr minmax(0, 25em); gap: 24px 64px; align-items: end; }
.tch-head .section-sub { margin-top: 0; max-width: none; }
.tch-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; gap: 16px; margin-top: clamp(36px, 4vw, 52px); }
.tch-photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 14px;
  background: linear-gradient(160deg, #26262a, #121214);
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.tch-photo:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
/* 눌러 볼 수 있다는 신호 — 올리면 카드가 살짝 뜨고, 오른쪽 아래에 '자세히 보기 +'가 올라온다 */
.tch-grid .tch-photo { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.tch-grid .tch:not(.is-open) .tch-photo:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(14, 14, 16, .22); }
.tch-go {
  position: absolute; right: 18px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: -.01em;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.tch-go i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: 16px; line-height: 1; }
.tch:not(.is-open) .tch-photo:hover .tch-go,
.tch:not(.is-open) .tch-photo:focus-visible .tch-go { opacity: 1; transform: none; }.tch-ini {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(96px, 11vw, 168px); font-weight: 200; letter-spacing: -.06em; color: rgba(255, 255, 255, .1);
}
.tch-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  filter: grayscale(1); transition: filter .4s, transform .6s;
}
.tch:hover .tch-photo img { filter: grayscale(0); transform: scale(1.03); }
/* 사진 2 — 펼쳤을 때만 사진 1 위로 떠오른다. 파일이 없으면 지워져서 사진 1이 그대로 보인다 */
.tch-photo .tch-img2 { opacity: 0; transition: opacity .5s, filter .4s, transform .6s; }
.tch.is-open .tch-photo .tch-img2 { opacity: 1; }
.tch.is-open .tch-photo img { filter: grayscale(0); }
.tch-photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 8, 10, .78)); pointer-events: none; }
.tch-no { position: absolute; top: 18px; left: 20px; z-index: 1; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.tch-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; }
.tch-role { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: rgba(255, 255, 255, .78); }
.tch-role::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--brand-bright); vertical-align: 2px; }
.tch-role { display: block; }
.tch-name { display: block; margin-top: 6px; font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -.04em; }

/* 펼친 강사 — 두 칸을 차지해 옆 카드를 밀어내고, 사진 옆에 상세가 선다 */
.tch-more { display: none; }
/* 강사 카드는 한 줄로 서 있다. 펼치면 누른 카드가 줄 전체로 넓어지면서
   오른쪽 카드는 오른쪽 밖으로 밀려 나가고, 왼쪽 카드는 왼쪽 밖으로 빠진다(--k = 누른 카드 순번).
   사진 칸은 한 칸 폭(--cw) 그대로라 넓어져도 사진 크기가 같다. */
.tch-grid {
  --gap: 16px; --cw: calc((100% - 2 * var(--gap)) / 3); --k: 0;
  display: flex; flex-wrap: nowrap; gap: var(--gap); overflow: hidden;
  /* 올렸을 때 뜨는 카드·그림자가 잘리지 않게 위아래 여유 */
  padding-block: 10px 28px; margin-bottom: -28px;
  container-type: inline-size;
}
/* 사진 폭은 늘 줄의 한 칸(cqw = 줄 폭 기준) — 카드가 넓어지고 좁아지는 동안에도 사진 크기가 그대로라 높이가 안 출렁인다 */
.tch-grid .tch-photo { width: calc((100cqw - 2 * var(--gap)) / 3); }
.tch-grid .tch { flex: 0 0 var(--cw); min-width: 0; transition: flex-basis .65s cubic-bezier(.65, 0, .25, 1), margin-left .65s cubic-bezier(.65, 0, .25, 1), opacity .7s ease, transform .7s ease; }
.tch-grid .tch:first-child { margin-left: calc(var(--k) * -1 * (var(--cw) + var(--gap))); }
.tch-grid .tch.is-open { flex-basis: 100%; display: flex; gap: clamp(28px, 3.4vw, 56px); align-items: flex-start; }
.tch-grid .tch-photo { flex: none; }.tch.is-open .tch-more { padding: 6px 4px 0 clamp(4px, 1.2vw, 16px); }
/* 상세는 카드가 다 넓어진 뒤(is-settled)에만 자리를 잡는다 — 좁을 때 붙으면 글이 길게 접혀 높이가 튄다 */
.tch.is-open.is-settled .tch-more { display: block; flex: 1; min-width: 0; animation: tch-in .4s ease both; }
@keyframes tch-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tch-quote { font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: -.035em; line-height: 1.45; color: var(--ink); }
.tch-info { margin-top: 22px; display: grid; gap: 14px; }
.tch-info > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tch-info dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.tch-info dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.tch-info ul { display: grid; gap: 4px; }
.tch-note { margin-top: 18px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.tch-close {
  margin-top: 20px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.tch-close:hover { border-color: var(--ink); }
/* 펼친 카드의 접기는 사진 오른쪽 위에 얹는다 — 상세 글 끝까지 내려가지 않아도 바로 닫히게.
   상세(.tch-more) 기준으로 사진과의 틈만큼 왼쪽으로 넘겨 놓는다. */
@media (min-width: 881px) {
  .tch-grid .tch.is-open .tch-more { position: relative; }
  .tch-grid .tch.is-open .tch-close {
    position: absolute; top: 14px; left: calc(-1 * clamp(28px, 3.4vw, 56px) - 14px); z-index: 2; margin: 0;
    transform: translateX(-100%); border-color: transparent; background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(8, 8, 10, .18); backdrop-filter: blur(6px);
  }
  .tch-grid .tch.is-open .tch-close:hover { background: #fff; border-color: transparent; }
}
@media (max-width: 880px) {
  .tch.is-open { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tch.is-open { grid-template-columns: 1fr; }
  .tch.is-open .tch-more { animation-name: tch-in-y; }
  @keyframes tch-in-y { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* 강사 프로필 사진 칸 — 세로 4:5. 사진이 없으면 큰 이니셜이 자리를 지킨다 */
.member-photo {
  position: relative; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 4 / 5; margin: -4px -2px 20px; border-radius: 12px;
  font-size: clamp(44px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.04em;
}
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.member h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.member-role { color: var(--brand); font-weight: 700; font-size: 14px; margin: 4px 0 10px; }
.member p:not(.member-role) { color: var(--muted); font-size: 15px; }

/* ── 인용 카드 ── */
.quote-card { margin: 24px 0 0; padding: 26px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.quote-card p { font-size: clamp(16.5px, 1.8vw, 20px); font-weight: 800; letter-spacing: -.03em; line-height: 1.45; color: var(--ink); }
.quote-card cite { display: block; margin-top: 14px; font-style: normal; color: var(--muted); font-size: 14.5px; }

/* ── 소식 카드 ── */
.news-strip, .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.news-card { display: grid; gap: 8px; align-content: start; background: #fff; border-radius: var(--r); padding: 28px 26px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 14, 16, .08); }
.news-tag { font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.news-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.news-card p { color: var(--muted); font-size: 14.5px; }
.news-card time { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ── 과목 카드 ── */
.panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border-radius: var(--r); padding: 24px 22px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 14, 16, .07); }
.card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -.02em; }
.card h3::after { content: ''; display: block; width: 24px; height: 2px; background: var(--brand); margin: 12px 0; }
.card p { color: var(--muted); font-size: 15px; }
.card-no { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--brand); margin-bottom: 10px; }
.card-link { display: block; }
.card-link .more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.card-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.card-dark p { color: var(--on-dark-muted); }
.card-dark h3::after { background: var(--brand-bright); }
.card-dark .card-no, .card-dark .more { color: var(--brand-bright); }
.card-dark .chips span { color: var(--on-dark-muted); border-color: rgba(255, 255, 255, .22); }

.panel-2 { grid-template-columns: 1fr 1fr; }
.mini-cards { display: grid; gap: 14px; align-content: start; }

/* ── 목적별 과정 — 한 구역에 2x2 카드 ── */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 30px 28px; scroll-margin-top: 90px; }
.course-tag { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.course-tag b { color: var(--brand); }
.course h3 { margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.course-desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.course-items { margin-top: 18px; border-top: 1px solid var(--line); }
.course-items li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.course-items strong { flex: 0 0 auto; min-width: 6.5em; font-weight: 700; color: var(--ink); }
.course-items span { color: var(--muted); }
.course .chips { margin-top: 16px; }
.course:target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(211, 32, 41, .12); }

/* ── 채널 — 연락·SNS 바로가기 카드. 주소가 아직 없으면 흐리게 '준비 중' ── */
.ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(36px, 4vw, 52px); }
.ch-card {
  position: relative; display: grid; align-content: start; gap: 4px; min-height: 148px;
  padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.ch-card[href]:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 14, 16, .06); }
.ch-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: #f3f3f2; }
.ch-ico svg { width: 20px; height: 20px; fill: var(--ink); }
.ch-card strong { font-size: 16.5px; font-weight: 800; letter-spacing: -.03em; }
.ch-desc { font-size: 13.5px; color: var(--muted); }
.ch-go { position: absolute; top: 22px; right: 22px; font-size: 16px; color: var(--muted); transition: transform .2s, color .2s; }
a.ch-card[href]:hover .ch-go { color: var(--brand); transform: translateX(3px); }
.ch-card[data-channel="phone"] { grid-row: span 2; align-content: end; background: var(--ink); color: #fff; border-color: var(--ink); }
.ch-card[data-channel="phone"] .ch-ico { position: absolute; top: 22px; left: 22px; }
.ch-card[data-channel="phone"] strong { font-size: 22px; }
.ch-card[data-channel="phone"] .ch-ico { background: var(--brand); }
.ch-card[data-channel="phone"] .ch-ico svg { fill: #fff; }
.ch-card[data-channel="phone"] .ch-desc, .ch-card[data-channel="phone"] .ch-go { color: rgba(255, 255, 255, .7); }
.ch-card.is-empty { cursor: default; }
.ch-card.is-empty strong, .ch-card.is-empty .ch-ico:not(.ch-logo) { opacity: .45; }
/* 실제 서비스 로고(앱 아이콘)는 흐리게 하지 않는다 — 흰 바탕 로고가 카드에 묻히지 않게 얇은 테두리만 */
.ch-logo { position: relative; overflow: hidden; background: none; }
.ch-logo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.ch-logo img { display: block; width: 100%; height: 100%; }
.ch-card.is-empty .ch-go { display: none; }
.ch-card.is-empty .ch-desc::after { content: ' · 준비 중'; color: #2f6fed; font-weight: 600; }
.ch-branches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ch-branches a { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, color .15s; }
.ch-branches a[href]:hover { border-color: var(--brand); color: var(--brand); }
.ch-branches a.is-empty { color: var(--faint); border-style: dashed; cursor: default; }

/* ── 상담 신청 폼 ── */
/* ── 프로그램 페이지 — 과정 탭(머리 아래 붙어 따라온다) + 과정마다 왼쪽 소개 · 오른쪽 반 카드 ── */
.prg-tabs { position: sticky; top: 64px; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.prg-tabs-in { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.prg-tabs a { flex: none; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.prg-tabs a:hover { color: var(--ink); }
.prg-tabs a.is-on { background: var(--ink); color: #fff; }
.prg { scroll-margin-top: 140px; }
.prg-in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prg-head { position: sticky; top: 150px; }
.prg-head-row { position: static; display: grid; grid-template-columns: 1fr minmax(0, 28em); gap: 16px 48px; align-items: end; }
.prg-no { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--brand); }
.prg-no small { margin-left: 10px; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.prg-head h2 { margin-top: 8px; }
.prg-lead { margin-top: 16px; font-size: 16px; line-height: 1.75; color: #3a3a40; }
.prg-for { display: grid; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.prg-for li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.prg-for li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--brand); }
.prg-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); font-size: 14px; line-height: 1.65; color: var(--ink); }
.section-alt .prg-note { background: #fff; }
.prg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prg-card { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.prg-card.is-best { border-color: var(--ink); box-shadow: 0 14px 34px rgba(14, 14, 16, .08); }
.prg-card-sub { background: transparent; border-style: dashed; }
.prg-tag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); }
.prg-best { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
.prg-card h3 { margin-top: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.prg-card > p:not(.prg-tag) { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.prg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.prg-chips li { padding: 5px 10px; border-radius: 8px; background: var(--bg-alt); font-size: 13px; font-weight: 600; color: var(--ink); }
.prg-chips b { margin-left: 4px; font-weight: 700; color: var(--brand); }
.prg-single { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.prg-group { padding: 24px 22px; border-radius: var(--r); background: var(--bg-alt); }
.prg-group h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 17px; font-weight: 800; }
.prg-group dl { display: grid; gap: 14px; margin-top: 14px; }
.prg-group dt { font-size: 15px; font-weight: 800; }
.prg-group dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1024px) {
  .prg-in, .prg-head-row { grid-template-columns: 1fr; }
  .prg-head { position: static; }
  .prg-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .prg-cards, .prg-single { grid-template-columns: 1fr; } }

.prg-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 800; transition: background .2s; }
.prg-more:hover { background: var(--brand); }
.prg-more i { font-style: normal; transition: transform .2s; }
.prg-more:hover i { transform: translateX(3px); }

/* ── 지점 안내 페이지 — 지점 카드(번호 · 운영 상태 · 주소 · 단추)와 '어느 지점이든 같다' ── */
.br-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.br { display: flex; flex-direction: column; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; scroll-margin-top: 100px; }
.br:first-child { border-color: var(--ink); box-shadow: 0 16px 36px rgba(14, 14, 16, .08); }
.br-top { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.br-no { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--brand); }
.br-state { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.br-state.is-open { background: #edf6f1; color: #2aa56e; }
.br-state.is-soon { background: var(--ink); color: #fff; }
.br-name { display: flex; align-items: center; margin-top: 10px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 900; letter-spacing: -.04em; }
.br-name .branch-badge { font-size: 12px; vertical-align: 0; }
.br-info { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.br-info div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.6; }
.br-info dt { color: var(--muted); font-weight: 600; }
.br-info dd { margin: 0; font-weight: 600; }
.br-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.br-btn { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--ink); transition: border-color .2s, background .2s; }
.br-btn:hover { border-color: var(--ink); }
.br-btn.is-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.br-btn.is-dark:hover { background: var(--brand); border-color: var(--brand); }
.br-btn.is-empty { display: none; }
.br-same { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.br-same li { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--r); background: #fff; }
.br-same b { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.br-same span { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.br-same a { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
.br-same a:hover { color: var(--brand); }
@media (max-width: 1024px) { .br-list, .br-same { grid-template-columns: 1fr; } }

/* ── 과정별 커리큘럼 페이지 — 반 × 과목 표(한 달 횟수), 단계, 과목 소개 ── */
.cur-head { display: grid; grid-template-columns: 1fr minmax(0, 28em); gap: 16px 48px; align-items: end; }
.cur-head .section-sub { margin-top: 0; }
.cur-table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.cur-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cur-table th, .cur-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.cur-table thead th { padding: 18px 16px; background: var(--bg-alt); vertical-align: bottom; }
.cur-table thead th:first-child { text-align: left; font-size: 13px; color: var(--muted); }
.cur-table thead th small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cur-table thead th b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.cur-table thead th em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; vertical-align: 2px; }
.cur-table tbody th { text-align: left; font-weight: 700; }
.cur-table tbody tr:last-child th, .cur-table tbody tr:last-child td { border-bottom: 0; }
.cur-table td b { font-size: 17px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.cur-table td span { margin-left: 2px; font-size: 12px; color: var(--muted); }
.cur-table td i { display: inline-block; width: 10px; height: 2px; background: #d9d9de; vertical-align: middle; }
.cur-table .is-best { background: rgba(211, 32, 41, .04); }
.cur-table thead .is-best { background: rgba(211, 32, 41, .08); }
.cur-extra { margin-top: 14px; font-size: 14px; color: var(--muted); }
.cur-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; counter-reset: s; }
.cur-steps li { position: relative; padding: 28px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.cur-steps li + li::before { content: ''; position: absolute; left: -14px; top: 50%; width: 14px; height: 2px; background: var(--brand); }
.cur-steps b { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.cur-steps strong { display: block; margin-top: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.cur-step-k { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cur-steps p { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.cur-subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.cur-subjects div { padding: 22px 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.cur-subjects dt { font-size: 16.5px; font-weight: 800; }
.cur-subjects dd { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.cur-care { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 64px; align-items: start; }
.cur-care ul { display: grid; gap: 10px; }
.cur-care li { padding: 18px 20px 18px 48px; position: relative; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.6; }
.cur-care li::before { content: ''; position: absolute; left: 20px; top: 24px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.cur-back { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--ink); }
.cur-back:hover { color: var(--brand); }
@media (max-width: 1024px) {
  .cur-head, .cur-care { grid-template-columns: 1fr; }
  .cur-steps, .cur-subjects { grid-template-columns: 1fr; }
  .cur-steps li + li::before { display: none; }
}

/* 학원 공지 — 관리시스템 공지가 그대로 뜬다(site.js). 제목 줄을 누르면 본문이 펼쳐진다 */
.ntc-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ntc-list { border-top: 2px solid var(--ink); }
.ntc { border-bottom: 1px solid var(--line); }
.ntc-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; width: 100%; padding: 22px 4px; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.ntc-q:hover strong { color: var(--brand); }
.ntc-q strong { grid-column: 2; font-size: 17px; font-weight: 800; letter-spacing: -.02em; transition: color .2s; }
.ntc-pin { grid-column: 1; padding: 3px 9px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.ntc-q time { grid-column: 3; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ntc-q i { grid-column: 4; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.ntc-q[aria-expanded="true"] i { transform: rotate(-135deg) translateY(-3px); }
.ntc-a { padding: 0 4px 26px; font-size: 15.5px; line-height: 1.8; color: #3a3a40; }
.ntc-a p + p, .ntc-a p + .ntc-tbl, .ntc-tbl + p { margin-top: 12px; }
.ntc-tbl { overflow-x: auto; }
.ntc-tbl table { border-collapse: collapse; font-size: 14px; }
.ntc-tbl th, .ntc-tbl td { padding: 8px 14px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ntc-tbl th { background: var(--bg-alt); font-weight: 700; }
.ntc-empty { padding: 28px 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .ntc-in { grid-template-columns: 1fr; } }

.apply-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.apply-call { display: inline-block; margin-top: 24px; font-weight: 800; color: var(--brand); }
.apply-call.is-empty { display: none; }
.apply-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 32px); }
.apply-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.apply-form small { font-weight: 500; color: var(--muted); }
.apply-form input, .apply-form select, .apply-form textarea {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border: 1px solid rgba(14, 14, 16, .16); border-radius: 10px; background: #fff; width: 100%;
}
.apply-form textarea { resize: vertical; min-height: 104px; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.apply-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; line-height: 1.5; }
.apply-agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.apply-agree small { display: block; margin-top: 4px; font-size: 12.5px; }
.apply-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.apply-form .btn:disabled { opacity: .6; cursor: wait; }
.apply-msg { min-height: 1.4em; font-size: 14px; font-weight: 700; color: #1f7a4d; }
.apply-msg.is-bad { color: var(--brand); }

/* ── 지점 안내(홈) ── */
.branch-badge { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 11.5px; font-weight: 700; color: var(--brand); border: 1px solid rgba(211, 32, 41, .35); border-radius: 999px; padding: 2px 8px; }

/* ── 대상/종목 리스트 ── */
.exam { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.exam .btn { margin-top: 30px; }
.exam-list li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.exam-list li:last-child { border-bottom: 1px solid var(--line); }
.exam-list b { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand); font-variant-numeric: tabular-nums; }
.exam-list div { display: grid; gap: 3px; }
.exam-list strong { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.exam-list span { color: var(--muted); font-size: 15px; }

/* ── 시설 사진 — 크게 보이고, 누르면 화면 가득 펼쳐진다 ── */
.space-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.space-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.space-grid figure { position: relative; overflow: hidden; border-radius: var(--r); cursor: zoom-in; }
.space-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .35s; }
.space-grid figure:hover img { transform: scale(1.03); }
.space-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 56px 20px 18px;
  color: #fff; font-weight: 700; font-size: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  display: flex; justify-content: space-between; align-items: center;
}
.space-grid figcaption::after { content: '크게 보기 +'; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.space-grid figure:hover figcaption::after { opacity: .9; }

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 8, 10, .94); color: #fff;
  align-items: center; justify-content: center;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; border-radius: 10px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .88); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 0; color: #fff; font-size: 22px; cursor: pointer; transition: background .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
figcaption { margin-top: 10px; font-weight: 700; }

/* ── 시설 — 가로로 넘기는 큰 카드 레일 (시안 B 채택) ── */
.srail { overflow: hidden; }
.srail .srail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.srail .srail-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.srail .srail-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(14, 14, 16, .2); background: #fff; color: var(--ink);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.srail .srail-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: #fff; }
.srail .srail-btn:disabled { opacity: .3; cursor: default; }
.srail .srail-btn svg { width: 18px; height: 18px; }
.srail .srail-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* 레일 — 왼쪽은 본문 폭에 맞추고 오른쪽은 화면 끝까지 */
.srail .srail-rail {
  --edge: max(24px, calc((100% - var(--wrap)) / 2));
  display: flex; gap: 20px;
  margin-top: 40px;
  padding: 0 var(--edge) 4px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.srail .srail-rail::-webkit-scrollbar { display: none; }
/* 천천히 흐르는 동안은 칸 맞춤을 꺼야 한 픽셀씩 움직일 수 있다 */
.srail .srail-rail.is-auto { scroll-snap-type: none; scroll-behavior: auto; }
.srail .srail-card {
  flex: 0 0 min(38vw, 500px);
  scroll-snap-align: start;
}
.srail .srail-ph { overflow: hidden; border-radius: var(--r); background: #e9e7e2; }
.srail .srail-ph img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
/* 시설 사진은 누르거나 올려도 커지지 않는다(사용자 요청) */
.srail .srail-card:focus-visible { outline: none; }
.srail .srail-card:focus-visible .srail-ph { outline: 2px solid var(--brand); outline-offset: 3px; }
.srail .srail-card figcaption {
  margin-top: 16px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.srail .srail-desc { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
/* 누르면 공간 사진 묶음이 열린다는 표시 */
.srail .srail-card[data-space] { cursor: pointer; }
.srail .srail-ph { position: relative; }
.srail-more { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgba(14, 14, 16, .62); color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px); transition: background .2s; }
.srail-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.srail .srail-card:hover .srail-more { background: var(--brand); }

/* 펼친 카드 — 강사진처럼 넓어지며 뒤 카드를 밀어낸다. 사진 칸 너비는 접혔을 때와 같아 사진이 튀지 않고,
   다 넓어진 뒤(.is-settled) 오른쪽에 설명과 그 공간 사진들이 카드 돌리듯 펼쳐진다(site.js). */
.srail-detail, .srail-extra, .srail-close { display: none; }
.srail .srail-card { transition: flex-basis .65s cubic-bezier(.65, 0, .25, 1); }
@media (min-width: 881px) {
  .srail .srail-card.is-open {
    flex-basis: 100%; display: grid; grid-template-columns: min(38vw, 500px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 3.4vw, 56px); align-content: start; cursor: default;
  }
  .srail .srail-card.is-open .srail-ph { grid-row: 1 / -1; align-self: start; }
  .srail .srail-card.is-open figcaption, .srail .srail-card.is-open .srail-desc, .srail .srail-card.is-open .srail-more { display: none; }
  .srail .srail-card.is-settled figcaption { display: block; grid-column: 2; margin-top: 4px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; animation: tch-in .4s ease both; }
  .srail .srail-card.is-settled .srail-detail { display: block; grid-column: 2; max-width: 34em; margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--muted); animation: tch-in .4s .05s ease both; }
  .srail .srail-card.is-settled .srail-extra { display: grid; grid-column: 2; align-self: start; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 26px; }
  .srail .srail-card.is-open .srail-close {
    display: block; position: absolute; top: 14px; right: 14px; z-index: 2; padding: 9px 16px; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(8, 8, 10, .18); backdrop-filter: blur(6px);
    font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  }
  .srail .srail-card.is-open .srail-close:hover { background: #fff; }
}
.srail-pic {
  aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e9e7e2; cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 14, 16, .12); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s;
  animation: srail-deal .55s calc(.1s + var(--i, 0) * .07s) cubic-bezier(.2, .8, .2, 1) both;
}
.srail-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.srail-pic:hover { transform: translateY(-3px); }
.srail-pic.is-on { outline-color: var(--brand); }
@keyframes srail-deal { from { opacity: 0; transform: translateX(-70px) rotate(-8deg) scale(.85); } }

/* 진행 막대 */
.srail .srail-foot { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.srail .srail-track { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.srail .srail-thumb {
  position: absolute; top: 0; left: 0; height: 100%; width: 20%;
  background: var(--brand); border-radius: 2px; will-change: transform;
}
.srail .srail-count { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.srail .srail-count b { color: var(--ink); font-weight: 800; }

@media (max-width: 880px) {
  .srail .srail-btn { width: 44px; height: 44px; }
  .srail .srail-rail { gap: 16px; margin-top: 32px; }
  .srail .srail-card { flex-basis: 56vw; }
}
@media (max-width: 600px) {
  .srail .srail-nav { display: none; }
  .srail .srail-rail { gap: 12px; margin-top: 28px; }
  .srail .srail-card { flex-basis: 80vw; }
  .srail .srail-card figcaption { margin-top: 12px; font-size: 16px; }
  .srail .srail-desc { font-size: 14px; }
  .srail .srail-foot { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .srail .srail-ph img { transition: none; }
}

/* ── FAQ ── */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 22px; font-weight: 700; font-size: 15.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: #3a3a40; font-size: 15.5px; }

/* ── 오시는 길 ── */
.loc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.loc-photo img { width: 100%; height: auto; border-radius: var(--r); }
.info { margin-top: 36px; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 110px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); }
.info dd { font-weight: 700; font-size: 16px; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.branch { background: #fff; border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line); }
.branch h3 { font-size: 19px; font-weight: 800; }
.branch-no { margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--brand); }
.branch .branch-no { margin-top: 0; color: var(--brand); font-size: 13px; }
.branch-badge.is-soon { color: #fff; background: var(--ink); border-color: var(--ink); }
.branch h3::after { content: ''; display: block; width: 24px; height: 2px; background: var(--brand); margin: 12px 0; }
.branch p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ── 상담 — 파스텔 그라데이션 띠 ── */
.consult {
  background:
    radial-gradient(60% 90% at 12% 20%, rgba(211, 32, 41, .10), transparent 60%),
    radial-gradient(50% 80% at 88% 80%, rgba(211, 32, 41, .07), transparent 60%),
    var(--bg-alt);
}
.consult-in { display: grid; grid-template-columns: 1.3fr auto; gap: 48px; align-items: center; }
.consult-phone { margin-top: 20px; font-size: clamp(24px, 3vw, 38px); font-weight: 900; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.consult-btns { display: grid; gap: 12px; justify-items: stretch; min-width: 240px; }
.consult-btns .btn { width: 100%; }
.consult-btns .btn-call { height: 58px; font-size: 16.5px; }
.btn-call::after { content: none; }
.btn-call::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 공개 전에 채울 자리 */
.todo { outline: 2px dashed #2f6fed; outline-offset: 4px; border-radius: 6px; color: #2f6fed !important; font-weight: 600; font-size: 15px !important; letter-spacing: 0; }
.sample-note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ── 하단 — 검정, 가운데 정렬 ── */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0; font-size: 14px; text-align: center; }
/* 하단 — 메뉴 없이 학원 정보만. 항목은 '이름 값'을 세로줄로 잇는다(site.js 가 빈 항목은 지운다) */
.footer-in { display: grid; gap: 10px; justify-items: center; }
.footer .brand { color: var(--on-dark); justify-content: center; margin-bottom: 10px; }
.footer-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 13.5px; line-height: 1.7; }
.footer-info li { display: inline-flex; gap: 6px; }
.footer-info li + li::before { content: ''; align-self: center; width: 1px; height: 11px; margin: 0 14px; background: rgba(255, 255, 255, .2); }
.footer-info b { font-weight: 600; color: rgba(255, 255, 255, .45); }
.footer-info span, .footer-info a { color: var(--on-dark-muted); }
.footer-info a:hover { color: #fff; }
.footer .copy { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .35); }
.copy { opacity: .55; }

/* ── 하위 페이지 머리 — 밝고 크게 ── */
/* 페이지 머리는 옅은 띠로 — 아래 섹션과 바로 구분된다 */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 140px 0 48px; }
.page-head .eyebrow { color: var(--muted); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 900; letter-spacing: -.045em; line-height: 1.1; color: var(--ink); }
.page-sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 36em; }

/* ── 움직임 ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.panel .reveal, .team-grid .reveal, .news-strip .reveal, .news-grid .reveal { transform: translateY(24px); }
.phones .reveal, .space-grid .reveal { transform: translateY(14px) scale(.965); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-in > *, .page-head .wrap > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in > :nth-child(1), .page-head .wrap > :nth-child(1) { animation-delay: .08s; }
.hero-in > :nth-child(2), .page-head .wrap > :nth-child(2) { animation-delay: .22s; }
.hero-in > :nth-child(3), .page-head .wrap > :nth-child(3) { animation-delay: .38s; }
.hero-in > :nth-child(4) { animation-delay: .52s; }

@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.phones .phone-screen { animation: bob 5.5s ease-in-out infinite alternate; }
.phones .phone:nth-child(1) .phone-screen { animation-delay: .6s; }
.phones .phone:nth-child(3) .phone-screen { animation-delay: 1.4s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(16, 16, 18, .97); border-radius: 20px; padding: 10px 22px 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  }
  .header.open .nav { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 16px; }
  .nav .nav-cta { margin-top: 14px; text-align: center; border: 0; padding: 14px; }
  .has-sub { display: block; }
  .has-sub > a { display: block; }
  .has-sub .sub { position: static; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; margin: 0; padding: 8px 0 10px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub .sub::before { display: none; }
  .has-sub .sub a { padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14px; }
  .brand em { display: none; }

  .hero-foot-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-foot-in p:last-child { text-align: left; }

  .class-list a { grid-template-columns: 1fr; gap: 14px; padding: 32px 4px; }
  .about-grid, .exam, .loc-grid, .app-grid, .consult-in, .phil-grid, .tch-head { grid-template-columns: 1fr; gap: 28px; }
  .tch-grid { grid-template-columns: 1fr 1fr; }
  .ch-grid { grid-template-columns: 1fr 1fr; }
  .apply-in, .apply-row { grid-template-columns: 1fr; }
  .ch-card[data-channel="phone"] { grid-row: auto; grid-column: 1 / -1; min-height: 0; align-content: start; }
  .ch-card[data-channel="phone"] .ch-ico { position: static; }
  .ch-card[data-channel="phone"] strong { font-size: 18px; }
  .feed-window:not(.feed-window--x) { height: 400px; }
  .panel { grid-template-columns: 1fr 1fr; }
  .space-grid, .space-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .space-grid figcaption::after { content: none; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
  .team-grid, .news-strip, .news-grid, .branch-grid, .course-grid { grid-template-columns: 1fr; }
  .pg-grid { grid-template-columns: 1fr 1fr; }
  .course { padding: 24px 22px; }
  .stats { flex-direction: column; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .stats.stats-dark { flex-direction: row; }
  .stats.stats-dark li { padding: 10px 18px; }
  .stats.stats-dark li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .28); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .phone { width: clamp(96px, 27vw, 150px); }
  .phone-main { width: clamp(110px, 31vw, 170px); }
  .info div { grid-template-columns: 88px 1fr; }
}
@media (max-width: 520px) {
  .panel { grid-template-columns: 1fr; }
  .tch-grid { grid-template-columns: 1fr; }
  .tch-photo { aspect-ratio: 4 / 4.4; }
  .pg-grid { grid-template-columns: 1fr; }
  .pg-tile { aspect-ratio: auto; min-height: 168px; }
  .pg-photo { aspect-ratio: 16 / 10; min-height: 0; }
  .hero-btns .btn { flex: 1 1 100%; }
}
/*
 * 큰 모니터 — 글자·칸이 px라 1200px 틀에 묶여 2560에서는 가운데 작게 떠 있었다(사용자 요청: 반응형).
 * 페이지 전체를 비율대로 키운다. 첫 화면(100svh)은 키운 만큼 나눠 화면 높이에 맞춘다.
 */
/* 사용자 요청(10/19, 두 번): 전체가 화면에 꽉 차 한눈에 안 들어온다 — 데스크톱은 0.81부터(10%씩 두 번). 폰은 글자가 작아져 그대로 둔다 */
@media (min-width: 1025px) { body { --z: .81; zoom: var(--z); } }
@media (min-width: 1680px) { body { --z: .9; } }
@media (min-width: 1900px) { body { --z: 1; } }
@media (min-width: 2300px) { body { --z: 1.17; } }
@media (min-width: 3000px) { body { --z: 1.46; } }
@media (min-width: 1025px) {
  .hero, .hv-c { min-height: calc(100svh / var(--z)); }
  .hv-c__top { padding-top: clamp(118px, calc(17vh / var(--z)), 170px); }
  .lightbox img { max-width: min(calc(92vw / var(--z)), 1100px); max-height: calc(84vh / var(--z)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pg-grid .pg-tile.reveal, .pg-grid .pg-tile.reveal:not(.in) { transform: none; animation: none; }
  .pg-grid .pg-tile.reveal::after { display: none; }
  .feed-track, .feed-dot { animation: none; }
  .feed-window { height: auto; -webkit-mask-image: none; mask-image: none; }
  .feed-track li[aria-hidden] { display: none; }
  .feed-window--x { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-in > *, .page-head .wrap > *, .phones .phone-screen { animation: none; }
  .header.hide { transform: none; }
}
