/* 링구아교육컨설팅 랜딩, Foldfolio 판(대표 10-17 「거의 그대로 · 내용은 같게 · 화이트로」).
   빌려 온 것 = 구조 · 움직임 · 비율(양쪽으로 갈라지는 큰 이름, 가운데 접히는 기기, 기기 화면 안에서 바뀌는 구역, 아래 알약 탭).
   Framer 의 코드 · 그림 · 글은 쓰지 않았다. 흰 · 연회색 · 검정 + 강조 한 색(교육컨설팅 진홍).
   두 모드: 기본(흐름) = 글이 그대로 쌓이는 쪽(움직임 줄이기 · JS 없음 · 낮은 화면) / html.ff-live = 기기 장면(fold.js 가 그린다). */
:root {
  --bg: #ffffff;
  --bg-2: #f4f4f5;
  --bg-3: #e9e9ec;
  --ink: #111114;
  --ink-2: #55555c;
  --line: #dcdce0;
  --dark: #111114;
  --dark-2: #1d1d22;
  --on-dark: #ffffff;
  --on-dark-2: #c4c4cc;
  --accent: #740017;
  --accent-2: #5c0012;
  --accent-soft: #f6e8eb;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --narrow: 0.82; /* 큰 글자 장평 */
  --page: min(1200px, 100% - 40px);
  --r: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 599px) { body { font-size: 16px; } }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
em { font-style: normal; color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
.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; }
.lede { color: var(--ink-2); max-width: 36em; margin-top: 14px; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
/* 장평을 줄인 큰 글자(Foldfolio 의 압축 굵은 글꼴 자리). 자리 폭은 그대로라 어느 쪽으로 붙일지 origin 으로 정한다 */
.nx { display: inline-block; transform: scaleX(var(--narrow)); transform-origin: 0 50%; font-weight: 900; letter-spacing: -0.03em; line-height: 0.9; }
.nx.r { transform-origin: 100% 50%; }

/* ── 단추 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.9375rem; white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--accent); }
.btn.line { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 머리 ── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(14px, 3vw, 28px);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 900; letter-spacing: -0.02em; font-size: 1.125rem; }
.brand b { font-weight: 900; }
/* 왼쪽 위 로고 = 링구아어학원 홈으로(대표 10-18) */
.brand img { display: block; height: 22px; width: auto; }
.brand span { font-weight: 700; font-size: 0.875rem; color: var(--ink-2); }
.top-pill { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.92); box-shadow: 0 1px 2px rgb(17 17 20 / 0.06), 0 6px 18px rgb(17 17 20 / 0.08); }
.top-pill .btn { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.top-pill .tel { color: var(--ink); }
.top-pill .tel:hover { background: var(--bg-2); }
@media (max-width: 479px) { .top-pill .tel { display: none; } .brand span { display: none; } }

/* ── 아래 알약 탭 ── */
.tabs {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
  transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 1px 2px rgb(17 17 20 / 0.08), 0 10px 30px rgb(17 17 20 / 0.14);
  max-width: calc(100vw - 16px);
}
.tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; }
.tabs a.go-call { color: var(--accent); }
.tabs a.go-call[aria-current="true"] { background: var(--accent); color: #fff; }
@media (max-width: 719px) { .tabs .wide { display: none; } .tabs a { padding: 0 11px; } }

/* ═════════════ 첫 장면: 큰 이름 + 기기 ═════════════ */
.fold { position: relative; }
.stage { position: relative; }
.giant { margin: 0; font-size: inherit; }
.giant .w { display: block; color: var(--ink); font-weight: 900; letter-spacing: -0.04em; line-height: 0.86; white-space: nowrap; user-select: none; }
/* 「Lingua / Edu」 두 줄(오른쪽 맞춤) + 「Consulting」 한 줄(대표 10-18 「Lingua Edu / Consulting 으로」).
   영어가 한글보다 길어 크기는 휴대폰 옆에 남는 폭에서 정한다(Lingua ≈ 2.5em · Consulting ≈ 4.08em, 장평 0.82 포함).
   두 줄 판은 줄 간격을 0.98 로 — 윗줄 g 꼬리가 아랫줄 E 머리에 닿지 않는다. */
.giant .w1 { text-align: right; line-height: 0.98; }

/* 기기 틀(흐름 모드에서는 상자 셋이 각자 틀을 쓴다) */
.device { display: contents; }
.lock, .screen, .call { position: relative; background: var(--bg); border: 10px solid var(--dark); border-radius: 36px; box-shadow: 0 0 0 1px #c9c9cf, 0 30px 60px -30px rgb(17 17 20 / 0.45); }
.screen { overflow: clip; }
.seam { display: none; }

/* 흐름 모드 배치 */
.fold .stage { padding: 88px 0 40px; display: grid; justify-items: center; gap: 24px; }
.giant { display: contents; }
.giant .w { font-size: clamp(3.5rem, 18vw, 12rem); transform: scaleX(var(--narrow)); }
.lock { width: min(360px, 100% - 32px); }
.screen { width: min(1120px, 100% - 20px); }
.call { width: min(360px, 100% - 32px); }
@media (min-width: 900px) {
  .fold .stage {
    grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr); align-items: center; column-gap: 0; /* 가운데 = 잠금화면 폭 고정(아래 넓은 화면이 걸쳐도 늘지 않게) */
    --gap: clamp(24px, 2.5vw, 40px);
    --side: calc((100vw - 360px) / 2 - var(--gap) - clamp(28px, 3.2vw, 64px));
  }
  .giant .w1 { grid-column: 1; grid-row: 1; justify-self: end; transform-origin: 100% 50%; margin-right: var(--gap); font-size: min(var(--side) / 2.6, 13rem); }
  .lock { grid-column: 2; grid-row: 1; z-index: 1; width: 100%; }
  .giant .w2 { grid-column: 3; grid-row: 1; justify-self: start; transform-origin: 0 50%; margin-left: var(--gap); font-size: min(var(--side) / 4.2, 9rem); }
  .screen, .call { grid-column: 1 / -1; }
}

/* ── 잠금화면 ── */
.lock { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--bg-2), var(--bg) 46%); }
.bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.bar svg { width: 38px; height: 12px; fill: currentColor; }
.lock .when { margin-top: 18px; text-align: center; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.lock .clock { text-align: center; line-height: 0.86; }
.lock .clock .nx { font-size: clamp(5rem, 3.6rem + 5vw, 6.75rem); transform-origin: 50% 50%; white-space: nowrap; }
.lock .what { text-align: center; font-size: 0.9375rem; font-weight: 700; }
.notes { margin-top: 14px; display: grid; gap: 8px; }
.note { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 18px; background: rgb(255 255 255 / 0.9); box-shadow: 0 1px 2px rgb(17 17 20 / 0.06), 0 8px 20px -8px rgb(17 17 20 / 0.16); }
.note .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1rem; }
.note .ico.k { background: var(--ink); }
.note b { display: block; font-size: 0.8125rem; color: var(--ink-2); font-weight: 700; }
.note p { font-size: 0.9375rem; font-weight: 700; line-height: 1.4; }
.lock .unfold { margin: auto auto 0; }

/* ── 통화 화면(끝) ── */
.call { padding: 26px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: var(--bg-2); }
.call .bar { align-self: stretch; }
.call .who-calls { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.call h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.call .face { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin-top: 8px; box-shadow: 0 0 0 6px #fff, 0 18px 30px -16px rgb(17 17 20 / 0.5); }
.call .face-cap { font-size: 0.875rem; font-weight: 700; }
.call .lede { margin: 0; font-size: 0.9375rem; }
.slide { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; min-height: 60px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; transition: background-color 200ms var(--ease); }
.slide:hover { background: var(--accent); }
.slide i { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; transition: transform 300ms var(--ease); }
.slide:hover i { background: var(--accent-2); transform: translateX(4px); }
.slide svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.slide span { flex: 1; text-align: center; font-size: 1rem; }

/* ═════════════ 기기 화면 안(스크롤하면 바뀌는 구역들) ═════════════ */
.scroller { position: relative; container-type: inline-size; }
.in { padding: 44px 22px; }
@container (min-width: 700px) { .in { padding: 64px 52px; } }
.in > h2 + .lede { margin-top: 12px; }
.in.alt { background: var(--bg-2); }
.in.black { background: var(--dark); color: var(--on-dark); }
.in.black .lede { color: var(--on-dark-2); }

/* 통계 띠(Foldfolio 화면 맨 위 숫자 줄) */
.facts { display: grid; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); font-weight: 600; }
.facts > span { padding: 16px 22px; }
.facts > span + span { border-top: 1px solid var(--line); }
.facts b { display: inline-block; font-size: clamp(1.75rem, 1rem + 3.6cqi, 2.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); vertical-align: -0.12em; margin: 0 2px; }
@container (min-width: 700px) {
  .facts { grid-template-columns: 1fr 1.5fr 1fr; }
  .facts > span { padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .facts > span + span { border-top: 0; border-left: 1px solid var(--line); }
}
.headband { display: grid; gap: 16px; background: var(--dark); color: #fff; padding: 36px 22px 28px; }
.headband h2 { font-size: clamp(2rem, 1rem + 6cqi, 4.25rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }
.headband .total { justify-self: start; display: inline-flex; align-items: baseline; padding: 6px 22px 4px; border-radius: 16px; background: var(--accent); color: #fff; }
.headband .total .nx { font-size: clamp(5rem, 2rem + 16cqi, 10rem); }
.headband .total small { font-size: 1.5rem; font-weight: 800; margin-left: -0.5em; }
@container (min-width: 700px) {
  .headband { grid-template-columns: 1fr auto; align-items: end; padding: 52px 52px 40px; }
}
/* 학교 번호 격자 */
.schools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.schools > div { background: var(--bg); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 10px; min-height: 92px; }
.schools .no { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); grid-row: 1; grid-column: 1; }
.schools .nm { grid-row: 1; grid-column: 2; font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.schools b { grid-row: 2; grid-column: 1 / -1; align-self: end; justify-self: end; font-size: 2.25rem; font-weight: 900; line-height: 0.9; letter-spacing: -0.03em; }
.schools b > span:not(.cnt, .sr-only) { font-size: 0.875rem; font-weight: 700; margin-left: 2px; }
.schools .big b { font-size: clamp(3.5rem, 1.5rem + 10cqi, 7.5rem); }
.schools .big:first-child { background: var(--accent); color: #fff; }
.schools .big:first-child .no { color: rgb(255 255 255 / 0.8); }
.schools .big { min-height: 168px; }
.schools .last { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; min-height: 0; }
.schools .last b { margin-left: auto; font-size: 1.75rem; }
@container (min-width: 700px) {
  .schools { grid-template-columns: repeat(4, 1fr); }
  .schools > div { padding: 18px 20px; min-height: 108px; }
  .schools .big { grid-column: span 2; min-height: 220px; }
  
}
/* 합격률 */
.rates { padding: 40px 22px 48px; }
.rates h3 { font-size: clamp(1.25rem, 0.9rem + 2cqi, 1.75rem); font-weight: 800; letter-spacing: -0.03em; max-width: 20em; text-wrap: balance; }
.rates table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 0.9375rem; }
.rates th, .rates td { text-align: left; padding: 12px 8px 12px 0; vertical-align: middle; }
.rates thead th { font-size: 0.8125rem; color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--ink); }
.rates tbody th { font-weight: 700; white-space: nowrap; }
.rates tbody tr + tr > * { border-top: 1px solid var(--line); }
.rates td { font-weight: 800; }
.rates td.all { color: var(--ink-2); font-weight: 600; }
.rates .bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--accent); width: calc(var(--v) * 1%); }
.rates td.all .bar { background: #a7a7ae; }
@container (min-width: 700px) { .rates { padding: 56px 52px 64px; } .rates td { width: 34%; } }

/* 프로그램 번호 카드 */
.progs { display: grid; gap: 10px; margin-top: 28px; }
.prog { position: relative; border-radius: var(--r); padding: 22px; background: var(--bg-2); display: grid; gap: 14px; align-content: start; }
.prog .num { font-size: clamp(4rem, 2rem + 10cqi, 7rem); line-height: 0.82; }
.prog header { display: grid; gap: 4px; }
.prog .meta { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.prog p { font-size: 0.9375rem; }
.prog ul { display: grid; gap: 4px; font-size: 0.9375rem; }
.prog li { padding-left: 14px; position: relative; }
.prog li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: currentColor; }
.prog .viz { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.prog .figure b { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.prog .figure > span { font-size: 0.875rem; font-weight: 700; margin-left: 4px; }
.prog .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prog .chips li { padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: 0.8125rem; font-weight: 700; }
.prog .chips li::before { display: none; }
.prog .weeks { display: flex; gap: 4px; }
.prog .weeks li { width: 30px; height: 30px; padding: 0; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 0.75rem; }
.prog .weeks li::before { display: none; }
.prog .split { display: flex; width: 100%; height: 40px; gap: 3px; }
.prog .split i { display: flex; align-items: center; padding: 0 10px; border-radius: 8px; font-style: normal; font-size: 0.8125rem; font-weight: 800; background: var(--ink); color: #fff; white-space: nowrap; }
.prog .split i + i { background: var(--bg-3); color: var(--ink); }
.prog.p1 { background: var(--accent); color: #fff; }
.prog.p1 .meta, .prog.p3 .meta { color: rgb(255 255 255 / 0.78); }
.prog.p3 { background: var(--dark); color: #fff; }
.prog.p3 .rec { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.8125rem; }
.prog.p3 .rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; }
.prog.p5 { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.prog.p4 { background: var(--bg-3); }
@container (min-width: 700px) {
  .progs { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .prog { padding: 28px; }
  .prog.p1, .prog.p2 { grid-column: span 3; }
  .prog.p3, .prog.p4, .prog.p5 { grid-column: span 2; }
}

/* 핵심(검정 줄 목록) */
.keys { margin-top: 26px; display: grid; gap: 8px; }
.keys li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; align-items: baseline; padding: 16px 18px; border-radius: 12px; background: var(--dark-2); }
.keys .no { font-family: var(--mono); font-size: 0.75rem; color: var(--on-dark-2); }
.keys p { font-weight: 700; }
.keys b { grid-column: 2; font-size: clamp(2.25rem, 1.2rem + 5cqi, 3.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.keys b > span:not(.cnt, .sr-only) { font-size: max(0.875rem, 0.42em); margin-left: 3px; font-weight: 800; }
.keys small { grid-column: 2; color: var(--on-dark-2); font-size: 0.875rem; }
@container (min-width: 700px) {
  .keys li { grid-template-columns: 44px 1fr minmax(180px, auto); padding: 20px 26px; }
  .keys p { grid-column: 2; }
  .keys b { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: center; }
  .keys small { grid-column: 2; }
}

/* 준비 프로세스(번호 단계) */
.kicker { font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.in h2 strong { font-weight: 900; }
.steps-track { position: relative; margin-top: 28px; }
.steps5 { display: grid; gap: 0; counter-reset: s; }
.steps5 li { position: relative; padding: 0 0 26px 30px; }
.steps5 li::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 1px; background: var(--line); }
.steps5 li:last-child::before { display: none; }
.steps5 li::after { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.steps5 li:last-child::after { background: var(--accent); box-shadow: none; }
.steps5 .mono { color: var(--accent); font-weight: 700; }
.steps5 h3 { margin-top: 2px; font-size: 1.375rem; font-weight: 800; }
.steps5 p { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; max-width: 28em; }
@container (min-width: 700px) {
  .steps5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps5 li { padding: 30px 0 0; }
  .steps5 li::before { left: 13px; right: -16px; top: 6px; bottom: auto; width: auto; height: 1px; }
  .steps5 li::after { top: 0; }
}

/* 준비 프로세스 — 스크롤 연동(대표 10-18 「스크롤이랑 연동 · 이전 로컬 페이지처럼」, 본보기 lingua-consulting-site #schedule).
   기기 장면에서 fold.js 가 #process 에 .pinned 를 붙이고, 화면 안 글을 잠시 붙잡은 채 줄(.fill)을 긋고 점(.runner)을 달린다.
   줄이 닿은 단계만 .on — 점이 차고 STEP · 제목 · 설명이 또렷해진다. 움직임 줄이기 · JS 없음 · 낮은 화면 = .pinned 가 없어 다섯 단계가 그대로 다 보인다. */
.steps-track .fill, .steps-track .runner { display: none; position: absolute; z-index: 1; pointer-events: none; }
.ff-live #process.pinned { min-height: calc(var(--H) - 2 * var(--b)); display: flex; flex-direction: column; justify-content: center; }
.ff-live .pinned .fill { display: block; left: 6px; top: 5px; width: var(--len, 0px); height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.ff-live .pinned .runner { display: block; left: -3px; top: -3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); outline: 6px solid rgb(116 0 23 / 0.16); }
.ff-live .pinned .upright .fill { left: 5px; top: 10px; width: 3px; height: var(--len, 0px); transform: scaleY(0); transform-origin: 50% 0; }
.ff-live .pinned .upright .runner { left: -3px; top: 1px; }
.ff-live .pinned .steps5 li > * { opacity: 0.34; transition: opacity 320ms var(--ease), transform 420ms var(--ease); }
.ff-live .pinned .steps5 li h3 { transform: translateY(6px); }
.ff-live .pinned .steps5 li.on > * { opacity: 1; transform: none; }
.ff-live .pinned .steps5 li::after { background: var(--bg); box-shadow: inset 0 0 0 2px #b4b4bb; }
.ff-live .pinned .steps5 li.on::after { background: var(--accent); box-shadow: none; }
.ff-live .pinned .steps5 li:last-child.on::after { animation: pass-pop 640ms var(--ease) both; }
.ff-live .pinned .steps5 li:last-child.on h3 { color: var(--accent); }
@keyframes pass-pop { 0% { transform: scale(1); } 40% { transform: scale(2.1); } 100% { transform: scale(1); } }

/* 입시 일정(날짜 판) */
.dates { margin-top: 28px; display: grid; gap: 8px; }
.dates > div { padding: 18px; border-radius: 12px; background: var(--bg); display: grid; gap: 4px; }
.dates > div:first-child { background: var(--ink); color: #fff; }
.dates > div:first-child small { color: var(--on-dark-2); }
.dates h3 { font-size: 0.9375rem; font-weight: 700; }
.dates p { overflow-wrap: normal; word-break: keep-all; font-size: clamp(1.75rem, 1rem + 3.2cqi, 2.5rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.dates small { font-size: 0.8125rem; color: var(--ink-2); }
.in .note-line { margin-top: 18px; color: var(--ink-2); font-size: 0.9375rem; max-width: 46em; }
@container (min-width: 700px) {
  .dates { grid-template-columns: repeat(5, 1fr); }
  .dates > div { min-height: 168px; align-content: space-between; }
}

/* 컨설턴트 격자 */
.people { margin-top: 28px; display: grid; gap: 18px; }
.person { display: grid; grid-template-columns: 92px 1fr; gap: 6px 16px; align-items: start; }
.person img { grid-row: 1 / span 3; width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.person h3 { font-size: 1.1875rem; font-weight: 800; }
.person .field { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.person ul { font-size: 0.875rem; color: var(--ink-2); display: grid; gap: 2px; }
@container (min-width: 700px) {
  .people { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
  .person { grid-template-columns: 1fr; }
  .person img { grid-row: auto; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 8px; }
}

/* 이야기(큰 글 줄) */
.beats { display: grid; gap: 22px; }
.beats p { font-size: clamp(1.75rem, 1rem + 5.2cqi, 3.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.12; }
.beats p:nth-child(even) { justify-self: end; text-align: right; }

/* ═════════════ 링구아에서 세계로(기기 밖 · 바닥 바로 위) ═════════════
   원래 컨설팅 랜딩(lingua-consulting-site #world)의 끝 자막을 흰 톤으로. 흐름은 motion.js 가 .rolling 을 붙일 때만 —
   스크립트 없음 · 움직임 줄이기 = 명단이 그대로 펼쳐진다. */
.credits { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); border-top: 1px solid var(--ink); }
.credits .wrap { width: var(--page); margin-inline: auto; }
.credits h2 { font-size: clamp(2.5rem, 1rem + 6.4vw, 6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.credits .lede { margin-top: 16px; }
.roll-bar { display: flex; justify-content: flex-end; margin-top: 24px; }
.roll-bar[hidden] { display: none; }
.roll-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer;
  transition: box-shadow 180ms var(--ease), transform 160ms var(--ease);
}
.roll-toggle:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.roll-toggle:active { transform: scale(0.97); }
.roll-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.roll-toggle .play, .paused-roll .roll-toggle .pause { display: none; }
.paused-roll .roll-toggle .play { display: inline; fill: currentColor; }
.reel { position: relative; margin-top: clamp(28px, 4vw, 44px); }
.reel:focus-visible { outline-offset: -2px; border-radius: 0; }
.alumni { display: grid; }
/* 한 사람 = 왼쪽 단(이름 · 고교) + 오른쪽 단(대학 · 진로 · 재원 과정) */
.alumni li { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); align-items: start; gap: 36px; width: min(980px, 100% - 48px); margin-inline: auto; padding: 20px 0; }
.alumni .who { text-align: right; }
.alumni .who b { display: block; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: 0.08em; line-height: 1.2; color: var(--ink); }
.alumni .who span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }
.alumni .path { display: grid; gap: 4px; padding-top: 0.35em; }
.alumni strong { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.015em; }
.alumni em { font-weight: 700; }
.alumni em::before { content: "→ "; }
.alumni small { color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.alumni small i { font-style: normal; margin-right: 8px; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
@media (max-width: 599px) {
  /* 휴대폰: 영화 자막처럼 가운데 한 줄로 */
  .alumni li { grid-template-columns: 1fr; gap: 6px; text-align: center; width: calc(100% - 32px); padding: 18px 0; }
  .alumni .who { text-align: center; }
  .alumni .path { padding-top: 0; justify-items: center; }
}
/* 흐르지 않을 때(움직임 줄이기 · 스크립트 없음): 넓은 화면은 두 단으로 펼친 목록 */
@media (min-width: 1000px) { .credits:not(.rolling) .alumni { grid-template-columns: 1fr 1fr; width: var(--page); margin-inline: auto; } .credits:not(.rolling) .alumni li { width: 100%; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 24px; } }

.credits.rolling .reel {
  height: min(78svh, 760px); overflow: hidden;
  /* 깊이: 가운데 띠는 또렷하고 위 · 아래로 갈수록 두 단계로 옅어진다 */
  mask-image: linear-gradient(transparent, rgb(0 0 0 / 0.28) 9%, #000 26%, #000 74%, rgb(0 0 0 / 0.28) 91%, transparent);
  -webkit-mask-image: linear-gradient(transparent, rgb(0 0 0 / 0.28) 9%, #000 26%, #000 74%, rgb(0 0 0 / 0.28) 91%, transparent);
}
.credits.rolling .roll { animation: roll 210s linear infinite; will-change: transform; }
.credits.rolling .reel:focus-visible .roll, .paused-roll .roll, .credits.away .roll { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .credits.rolling .reel:hover .roll { animation-play-state: paused; } }
@keyframes roll { to { transform: translateY(-50%); } }

/* ═════════════ 기기 아래 흰 구역 ═════════════ */
.after { padding-bottom: 40px; }
.after .wrap { width: var(--page); margin-inline: auto; }
.intro { padding: clamp(72px, 10vw, 140px) 0 clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--ink); }
.intro p { font-size: 1.0625rem; font-weight: 700; color: var(--ink-2); }
.intro h2 { margin-top: 8px; font-size: clamp(2.5rem, 1rem + 6.4vw, 6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.part { display: grid; gap: 18px; padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.part > .mono { font-weight: 700; color: var(--accent); }
.part .body { min-width: 0; display: grid; gap: 22px; }
@media (min-width: 900px) {
  .part { grid-template-columns: 160px 1fr; gap: 40px; }
  .part > .mono { padding-top: 14px; }
}
.part .badge { display: inline-block; margin-left: 10px; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0; }

/* [01] 합격 실적 */
.proof { display: grid; gap: 22px; }
.proof .lead { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.proof .lead-small { font-weight: 700; color: var(--ink-2); }
.cum { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 24px; }
.cum .big { font-size: clamp(5rem, 3rem + 9vw, 10rem); }
.cum .big small { font-size: 0.24em; font-weight: 800; margin-left: 6px; }
.cum .cap { font-weight: 700; padding-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--bg-2); font-size: 0.875rem; font-weight: 700; }
.trio { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.trio > div { background: var(--bg); padding: 20px 22px; display: grid; gap: 4px; }
.trio .k { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.trio .v { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.trio .v small { font-size: 0.45em; margin-left: 3px; }
.trio .g { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
@media (min-width: 700px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.chart { margin-top: 10px; }
.chart h3 { font-size: 1.25rem; font-weight: 800; }
.chart > p { color: var(--ink-2); font-size: 0.9375rem; }
.bars { margin-top: 22px; height: 260px; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1.4vw, 18px); align-items: end; }
.bars li { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 8px; }
.bars .col { align-self: end; display: grid; align-content: start; justify-items: center; height: calc(var(--v) / 2689 * 100%); min-height: 40px; border-radius: 8px 8px 2px 2px; background: var(--bg-3); padding: 8px 4px 0; }
.bars .col b { font-size: clamp(0.75rem, 0.5rem + 0.8vw, 1rem); font-weight: 800; }
.bars li:last-child .col { background: var(--accent); color: #fff; }
.bars .y { text-align: center; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); }

/* [02] 로드맵 */
.road { display: grid; gap: 4px; }
.road-head, .track { display: grid; grid-template-columns: 96px repeat(11, minmax(0, 1fr)); gap: 4px; align-items: center; }
.road-head span { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); text-align: center; padding: 6px 0; }
.road-head span:first-child { text-align: left; font-family: var(--sans); font-weight: 700; }
.track { min-height: 56px; background: var(--bg-2); border-radius: 12px; padding: 6px; }
.track > b { grid-column: 1; font-size: 0.875rem; font-weight: 800; line-height: 1.3; white-space: pre-line; padding-left: 8px; }
.track li { grid-row: 1; grid-column: var(--from) / var(--to); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 4px 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 800; line-height: 1.25; }
.track.t1 li { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.track.t2 li { background: var(--accent); color: #fff; }
.track.t3 li { background: var(--ink); color: #fff; }
.track ul { display: contents; }
@media (max-width: 759px) {
  /* 휴대폰: 달이 세로로 내려가고 세 줄이 세 칸이 된다 */
  .road { grid-template-columns: 38px repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(11, 40px); gap: 4px; }
  .road-head, .track, .track ul { display: contents; }
  .road-head span { grid-column: 1; grid-row: var(--m); text-align: left; align-self: center; padding: 0; }
  .road-head span:first-child { grid-row: 1; }
  .track > b { grid-row: 1; grid-column: var(--c); padding: 0 0 6px; font-size: 0.8125rem; white-space: normal; align-self: end; }
  .track li { grid-column: var(--c); grid-row: var(--from) / var(--to); border-radius: 12px; min-height: 0; }
}

/* [03] 컨설팅 프로그램 */
.pillars { display: grid; gap: 10px; }
.pillars li { padding: 22px; border-radius: var(--r); background: var(--bg-2); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.pillars li strong { font-weight: 900; color: var(--accent); }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(4, 1fr); } .pillars li { min-height: 148px; } }
.deep { border-radius: var(--r); padding: clamp(22px, 3vw, 40px); background: var(--dark); color: #fff; display: grid; gap: 16px; }
.deep .pill { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--accent); font-size: 0.8125rem; font-weight: 800; }
.deep h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 900; letter-spacing: -0.03em; }
.deep p { color: var(--on-dark-2); max-width: 46em; }
.deep p strong { color: #fff; }

/* [04] 학교별 면접 수업 */
.iv { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: -10px; }
.iv thead th { text-align: left; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); padding: 0 16px 4px; }
.iv tbody th, .iv tbody td { text-align: left; vertical-align: top; padding: 20px 16px; background: var(--bg-2); font-size: 0.9375rem; }
.iv tbody th { border-radius: 12px 0 0 12px; width: 24%; font-size: 1.0625rem; font-weight: 800; }
.iv tbody th span { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.iv tbody td:last-child { border-radius: 0 12px 12px 0; width: 18%; font-weight: 800; white-space: nowrap; }
.iv strong { font-weight: 800; }
@media (max-width: 759px) {
  .iv thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .iv, .iv tbody, .iv tr, .iv th, .iv td { display: block; width: auto !important; }
  .iv tr { margin-bottom: 10px; border-radius: 12px; overflow: hidden; }
  .iv tbody th, .iv tbody td { border-radius: 0 !important; padding: 14px 16px 0; }
  .iv tbody td:last-child { padding-bottom: 16px; white-space: normal; }
  .iv tbody td::before { content: attr(data-k); display: block; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
}

/* [05] 끝까지 */
.close-note { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; max-width: 34em; }
.close-note strong { font-weight: 900; }
.feats { display: grid; gap: 10px; }
.feats li { padding: 24px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.feats h3 { font-size: 1.25rem; font-weight: 800; }
.feats p { color: var(--ink-2); font-size: 0.9375rem; }
.feats li:nth-child(2) { background: var(--bg-2); box-shadow: none; }
.feats li:nth-child(3) { background: var(--ink); color: #fff; box-shadow: none; }
.feats li:nth-child(3) p { color: var(--on-dark-2); }
@media (min-width: 700px) { .feats { grid-template-columns: 1.2fr 1fr 1fr; } }

/* 찾아오시는 길 */
.visit { display: grid; gap: 28px; padding: clamp(56px, 8vw, 110px) 0 24px; }
.visit .phone { white-space: nowrap; font-size: clamp(2.5rem, 0.8rem + 4.2vw, 4.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.visit .phone:hover { color: var(--accent); }
.visit dl { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.visit dl > div { background: var(--bg-2); padding: 18px 20px; }
.visit dt { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.visit dd { margin-top: 4px; font-weight: 700; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.2fr; align-items: end; } .visit dl { grid-template-columns: 1fr 1fr; } .visit dl > div:first-child { grid-column: 1 / -1; } }

footer { padding: 28px 0 110px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
footer .wrap { width: var(--page); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ═════════════ 기기 장면(움직임 허용 · JS 가 켰을 때) ═════════════ */
.ff-live .fold { height: 900svh; }
.ff-live .fold .stage {
  position: sticky; top: 0; height: 100svh; padding: 0; display: block; overflow: hidden;
  --u: 0;
  --b: 10px;
}
.ff-live .giant { display: block; }
.ff-live .giant .w { position: absolute; z-index: 1; will-change: transform; }
.ff-live .device {
  display: block; position: absolute; left: 50%; top: 50%; z-index: 2;
  border: var(--b) solid var(--dark); border-radius: 40px; background: var(--bg); overflow: clip;
  box-shadow: 0 0 0 1px #c9c9cf, 0 2px 0 1px #e4e4e8, 0 40px 80px -40px rgb(17 17 20 / 0.55);
  transform: translate(-50%, -50%);
}
.ff-live .lock, .ff-live .screen, .ff-live .call {
  position: absolute; border: 0; border-radius: 0; box-shadow: none; margin: 0;
}
.ff-live .screen { top: 0; left: 50%; transform: translateX(-50%); overflow: clip; }
.ff-live .scroller { will-change: transform; }
.ff-live .lock, .ff-live .call { top: 0; left: 50%; transform: translateX(-50%); height: 100%; }
.ff-live .call { opacity: 0; visibility: hidden; }
.ff-live .floor { position: absolute; left: 50%; z-index: 0; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgb(17 17 20 / 0.22), transparent); transform: translateX(-50%); }

/* PC: 접힌 폰 ↔ 펼친 태블릿(높이는 같고 폭만 바뀐다) */
@media (min-width: 900px) {
  .ff-live .stage {
    --H: min(700px, 100svh - 136px);
    --PW: calc(var(--H) * 0.5);
    --TW: min(1120px, 100vw - 80px, var(--H) * 1.64);
    /* 처음 화면부터 휴대폰과 글 사이 틈(대표 10-18 「살짝 떨어뜨리는 게」) · 펼치면 이 틈에서 바깥으로 밀려난다 */
    --gap: clamp(24px, 2.5vw, 40px);
    --edge: clamp(28px, 3.2vw, 64px);
    --side: calc((100vw - var(--PW)) / 2 - var(--gap) - var(--edge));
    --f1: min(var(--side) / 2.6, var(--H) * 0.36); /* Lingua / Edu */
    --f2: min(var(--side) / 4.2, var(--H) * 0.3); /* Consulting */
  }
  .ff-live .device { width: calc(var(--PW) + (var(--TW) - var(--PW)) * var(--u)); height: var(--H); margin-top: 4px; }
  .ff-live .screen { width: calc(var(--TW) - 2 * var(--b)); height: calc(var(--H) - 2 * var(--b)); }
  .ff-live .lock, .ff-live .call { width: calc(var(--PW) - 2 * var(--b)); }
  .ff-live .seam { display: block; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgb(17 17 20 / 0.10) 20%, rgb(17 17 20 / 0.10) 80%, transparent); opacity: var(--u); }
  .ff-live .giant .w { top: 50%; margin: 4px 0 0; }
  .ff-live .giant .w1 { font-size: var(--f1); right: calc(50% + var(--PW) / 2 + var(--gap)); transform-origin: 100% 50%; transform: translate(calc((var(--TW) - var(--PW)) / -2 * var(--u) - 30vw * var(--u)), -50%) scaleX(var(--narrow)); }
  /* Consulting 은 Edu 와 같은 기준선에 앉는다(두 줄 판 기준선 = 가운데 + 0.84em(f1) · 한 줄 판 = 윗변 + 0.78em(f2), Pretendard 실측) */
  .ff-live .giant .w2 { font-size: var(--f2); top: calc(50% + 0.84 * var(--f1) - 0.78 * var(--f2)); left: calc(50% + var(--PW) / 2 + var(--gap)); transform-origin: 0 50%; transform: translate(calc((var(--TW) - var(--PW)) / 2 * var(--u) + 30vw * var(--u)), 0) scaleX(var(--narrow)); }
  .ff-live .floor { top: calc(50% + var(--H) / 2 + 2px); width: calc((var(--PW) + (var(--TW) - var(--PW)) * var(--u)) * 0.9); }
}
/* 휴대폰 · 좁은 화면: 폭은 그대로, 키가 커진다. 이름은 위 · 아래로 */
@media (max-width: 899px) {
  .ff-live .stage {
    --TW: min(100vw - 20px, 560px);
    --H: calc(100svh - 64px - 78px);
    --PH: min(var(--H) * 0.6, var(--TW) * 1.06);
    --gap: clamp(12px, 2svh, 20px); /* 기기 위 · 아래 틈 */
  }
  .ff-live .device { width: var(--TW); height: calc(var(--PH) + (var(--H) - var(--PH)) * var(--u)); top: calc(64px + var(--H) / 2); border-radius: 34px; }
  .ff-live .screen { width: calc(var(--TW) - 2 * var(--b)); height: calc(var(--H) - 2 * var(--b)); top: 0; }
  .ff-live .lock { width: 100%; height: calc(var(--PH) - 2 * var(--b)); }
  .ff-live .call { width: 100%; }
  .ff-live .lock { padding: 12px 14px 14px; gap: 6px; }
  .ff-live .lock .when { margin-top: 4px; }
  .ff-live .lock .clock .nx { font-size: min(5.5rem, 11svh); }
  .ff-live .lock .notes { margin-top: 6px; }
  .ff-live .lock .note:nth-child(n + 3), .ff-live .lock .unfold { display: none; }
  .ff-live .giant .w { left: 50%; }
  /* 휴대폰은 기기 위 · 아래 자리가 낮아 「Lingua Edu」 한 줄(위) · 「Consulting」 한 줄(아래) — 두 덩이 폭이 거의 같다(4.07em · 4.08em) */
  .ff-live .giant .w1 br { display: none; }
  .ff-live .giant .w1, .ff-live .giant .w2 { font-size: min(20vw, 11svh); line-height: 0.86; }
  /* 위 덩이는 g 꼬리(줄 상자 밑으로 약 0.14em 나옴)가 틈을 다 먹지 않게 0.08em 더 띄운다 */
  .ff-live .giant .w1 { bottom: calc(100% - 64px - var(--H) / 2 + var(--PH) / 2 + var(--gap) + 0.08em); transform-origin: 50% 100%; transform: translate(-50%, calc((var(--H) - var(--PH)) / -2 * var(--u) - 30svh * var(--u))) scaleX(var(--narrow)); }
  .ff-live .giant .w2 { top: calc(64px + var(--H) / 2 + var(--PH) / 2 + var(--gap)); transform-origin: 50% 0; transform: translate(-50%, calc((var(--H) - var(--PH)) / 2 * var(--u) + 30svh * var(--u))) scaleX(var(--narrow)); }
  .ff-live .floor { display: none; }
  .ff-live .call { height: calc(var(--PH) - 2 * var(--b)); padding: 12px 14px 14px; gap: 8px; }
  .ff-live .call .who-calls { display: none; }
  .ff-live .call h2 { font-size: 1.375rem; }
  .ff-live .call .face { width: 72px; height: 72px; margin-top: 2px; box-shadow: 0 0 0 4px #fff; }
  .ff-live .call .lede { font-size: 0.875rem; line-height: 1.45; }
  .ff-live .slide { min-height: 54px; }
  .ff-live .slide i { width: 42px; height: 42px; }
}

/* 움직임 줄이기: 장면을 켜지 않는다(head 스크립트가 ff-live 를 붙이지 않음). 혹시 남아도 시간은 0 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 10-17 대표: 휴대폰에 링구아 나무 · 문자가 실제로 오는 것처럼(진동과 함께) */
.bar-brand { display: inline-flex; align-items: center; gap: 5px; }
.bar-brand img { width: 17px; height: auto; }
.lock { position: relative; }
.lock > * { position: relative; }
.lock > .lock-tree { position: absolute; left: 50%; top: 34%; width: 62%; max-width: 230px; transform: translate(-50%, -50%); opacity: 0.05; pointer-events: none; }
.note { position: relative; }
.note .ico img { width: 22px; height: auto; display: block; }
.note .ago { position: absolute; top: 12px; right: 14px; font-size: 0.6875rem; font-weight: 600; color: var(--ink-2); }
.notes.waiting .note { opacity: 0; transform: translateY(-14px) scale(0.97); }
.notes .note.arrive { animation: note-in 520ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-18px) scale(0.96); } to { opacity: 1; transform: none; } }
/* 11-09 디자인부 백이화 님 「진동이 좀 강하다, 조금만 약하게」 — 흔들림 3px → 2px · 420 → 360ms */
.buzz { animation: phone-buzz 360ms linear; }
@keyframes phone-buzz {
  0%, 100% { translate: 0 0; } 10% { translate: -2px 0; } 20% { translate: 2px 0; } 30% { translate: -2px 0; } 40% { translate: 2px 0; }
  50% { translate: -1.5px 0; } 60% { translate: 1.5px 0; } 70% { translate: -1px 0; } 80% { translate: 1px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .notes.waiting .note { opacity: 1; transform: none; }
  .notes .note.arrive, .buzz { animation: none; }
}
.note b { padding-right: 34px; }

/* ── 움직임(motion.js) ──
   세는 숫자: 최종 값이 자리를 잡고(.cnt-s, 안 보임) 세는 숫자(.cnt-n)가 그 위에 겹친다 — 세는 동안 칸 폭이 그대로다.
   숨긴 시작 상태는 motion.js 가 다 준비한 뒤 붙이는 html.mx 아래에만, 그리고 움직임 허용일 때만. */
.cnt { display: inline-grid; justify-items: end; font-variant-numeric: tabular-nums; }
.cnt > * { grid-area: 1 / 1; }
.cnt-s { visibility: hidden; }
:root { --spring: cubic-bezier(0.3, 1.25, 0.55, 1); } /* 끝에서 조금 넘었다 돌아오는 곡선(위치에만 · 숫자 값은 넘지 않는다) */
@media (prefers-reduced-motion: no-preference) {
  .mx .cnt { opacity: 0; transform: translateY(0.34em); }
  .mx .cnt.go { opacity: 1; transform: none; transition: transform 820ms var(--spring), opacity 240ms ease-out; }

  /* 제목: 줄마다 아래에서 밀려 올라온다(줄 사이 110ms) */
  .mx .ln { display: block; clip-path: inset(-0.3em -0.6em -0.16em -0.6em); }
  .mx .ln-i { display: block; transform: translateY(118%); }
  .mx .seen .ln-i { transform: none; transition: transform 900ms var(--ease) calc(var(--i, 0) * 110ms); }

  /* 연도별 막대: 숫자는 제 높이에서 세고, 막대가 바닥에서 차례로 자라 올라와 숫자에 닿는다 */
  .mx .bars li .col { position: relative; isolation: isolate; background: transparent; }
  .mx .bars .col::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg-3); transform: scaleY(0); transform-origin: 50% 100%; }
  .mx .bars li:last-child .col::before { background: var(--accent); }
  .mx .bars.seen .col::before { transform: none; transition: transform 1000ms var(--ease) calc(var(--i, 0) * 90ms); }
  /* 합격률 막대: 줄마다 차례로 왼쪽에서 뻗는다 */
  .mx .rates .bar { transform: scaleX(0); transform-origin: 0 50%; }
  .mx .rates .seen .bar { transform: none; transition: transform 1000ms var(--ease) calc(var(--i, 0) * 90ms + 120ms); }
}

/* 휴대폰 · 태블릿(~899px): 작은 글(12 · 13px)을 읽는 바닥 14 로(2026-10-25 휴대폰 점검). 넓은 화면은 위 값 그대로. */
@media (max-width: 899px) {
  .mono, .bar, .note b, .call .who-calls, .schools .no, .rates thead th, .prog .chips li, .prog .split i, .prog.p3 .rec,
  .keys .no, .dates small, .alumni small i, .part .badge, .bars .y, .road-head span, .track li, .track > b, .deep .pill,
  .iv thead th, .iv tbody td::before, .visit dt {
    font-size: 0.875rem;
  }
}

/* 떠 있는 「상담 · 예약」 단추(바깥 float.js)가 휴대폰에서 아래 알약 탭을 덮지 않게 — 탭 위 오른쪽으로 · 조금 작게(11-10) */
@media (max-width: 719px) {
  #lingua-consult-float {
    left: auto !important; right: 12px !important;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px) !important;
    padding: 11px 16px !important; font-size: 14px !important;
  }
}
