/* 디코잉글리시 디자인 샘플 — 키네틱 타이포그래피형 */
:root {
  --navy: #121A33;
  --navy-2: #1C2647;
  --yellow: #FFD60A;
  --coral: #FF6B5A;
  --mint: #7CE0C3;
  --cream: #F6F3EA;
  --paper: #FFFFFF;
  --ink: #121A33;
  --text: #2B3148;
  --text-sub: #5E6478;
  --line: #E2DED2;
  --header-h: 72px;
  --font-display: 'Archivo Black', 'Pretendard Variable', Pretendard, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--paper); line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-weight: 800; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.br-m { display: none; }
.ph { display: inline-block; padding: 0 6px; border: 1.5px dashed var(--coral); border-radius: 4px; color: #C03B2B; font-weight: 600; background: rgba(255, 107, 90, .06); }

/* 샘플 배너 */
.sample-banner { background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 500; }
.sample-banner__inner { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.sample-banner__tag { flex: none; padding: 1px 10px; background: var(--navy); color: var(--yellow); font-weight: 800; }
.sample-banner__link { font-weight: 800; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__en { font-family: var(--font-display); font-size: 18px; letter-spacing: .02em; color: #fff; }
.logo__ko { font-size: 12px; color: rgba(255, 255, 255, .6); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__list a { position: relative; display: block; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .2s; }
.site-nav__list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.7, 0, .3, 1); }
.site-nav__list a:hover, .site-nav__list a.is-active { color: #fff; }
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* 버튼 */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid transparent; overflow: hidden; isolation: isolate; transition: color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .35s cubic-bezier(.7, 0, .3, 1); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow::before { background: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost::before { background: #fff; }
.btn:hover::before { transform: none; }
.btn--ghost:hover { color: var(--navy); }
.btn--lg { padding: 17px 30px; font-size: 17px; }

/* 히어로 */
.hero { position: relative; min-height: calc(100vh - var(--header-h) - 36px); min-height: calc(100svh - var(--header-h) - 36px); padding: 64px 0 72px; background: var(--navy); color: #fff; overflow: hidden; display: flex; }
.hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.hero__kicker { font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; color: var(--yellow); }
.hero__title { color: #fff; }
.hero__ko { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; margin-bottom: 4px; }
.hero__word { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__word-inner { display: inline-block; font-family: var(--font-display); font-size: clamp(76px, 15.5vw, 236px); line-height: .92; letter-spacing: -.02em; color: var(--yellow); white-space: nowrap; perspective: 600px; }
.hero__word-inner .char { display: inline-block; transform-origin: 50% 100%; backface-visibility: hidden; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__lead { max-width: 30em; font-size: 18px; color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; padding: 12px 18px; border-radius: 22px 22px 22px 4px; background: #fff; color: var(--navy); font-weight: 800; font-size: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); white-space: nowrap; }
.bubble--1 { top: 12%; right: 10%; background: var(--mint); }
.bubble--2 { top: 30%; right: 26%; border-radius: 22px 22px 4px 22px; }
.bubble--3 { top: 46%; right: 6%; background: var(--coral); color: #fff; }
.bubble--4 { top: 6%; right: 38%; background: #A99BFF; color: #fff; border-radius: 22px 22px 4px 22px; }
.has-motion .bubble { animation: float 6s ease-in-out infinite; }
.has-motion .bubble--2 { animation-delay: -1.5s; animation-duration: 7s; }
.has-motion .bubble--3 { animation-delay: -3s; }
.has-motion .bubble--4 { animation-delay: -4.5s; animation-duration: 8s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* 단어 띠 */
/* 기울여 좌우로 내민 단어 띠가 문서 폭을 넓히지 않게 — body 의 overflow-x: clip 은 문서(html) 폭에는 걸리지 않는다 */
main { overflow-x: clip; }
.marquee { overflow: hidden; background: var(--yellow); border-block: 3px solid var(--navy); padding: 18px 0; transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 28px; width: max-content; font-family: var(--font-display); font-size: clamp(30px, 4vw, 54px); line-height: 1; color: var(--navy); text-transform: uppercase; will-change: transform; }
.marquee__track .dot { color: var(--coral); }

/* 섹션 공통 */
.section { padding: 130px 0; background: var(--paper); }
.section--cream { background: var(--cream); }
.eyebrow { font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; color: var(--coral); margin-bottom: 18px; }
.eyebrow--light { color: var(--yellow); }
.section-title { font-size: clamp(36px, 4.8vw, 64px); font-weight: 900; letter-spacing: -.03em; }
.section-title--light { color: #fff; }
.section-lead { margin-top: 20px; font-size: 17px; color: var(--text-sub); max-width: 32em; }

/* 수업 방식 */
.method__list { margin-top: 64px; border-top: 3px solid var(--navy); }
.method__row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.method__num { font-family: var(--font-display); font-size: 72px; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--navy); }
.method__head { font-size: clamp(26px, 3.2vw, 44px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 14px; }
.method__head .word { display: inline-block; }
.method__row p { max-width: 42em; font-size: 17px; color: var(--text-sub); }

/* 레벨별 과정 */
.programs { background: var(--navy); color: #fff; overflow: hidden; }
.programs__pin { padding: 110px 0 120px; }
.programs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: 56px; }
.programs__head .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.programs__hint { font-weight: 700; color: rgba(255, 255, 255, .6); }
.programs__rail { display: flex; gap: 28px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.programs__rail::-webkit-scrollbar { display: none; }
.course { flex: none; width: min(420px, 80vw); min-height: 440px; padding: 34px 32px; background: var(--navy-2); border-top: 10px solid var(--accent); scroll-snap-align: start; display: flex; flex-direction: column; transition: transform .4s; }
.course:hover { transform: translateY(-8px); }
.course__tag { align-self: flex-start; padding: 4px 12px; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 13px; }
.course__en { margin-top: 26px; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; color: #fff; }
.course__ko { margin: 8px 0 20px; font-weight: 700; color: var(--accent); }
.course > p:not([class]) { color: rgba(255, 255, 255, .8); font-size: 16px; }
.course__meta { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.course__meta li { padding: 4px 10px; border: 1.5px dashed rgba(255, 255, 255, .45); font-size: 13px; color: rgba(255, 255, 255, .8); }

/* 레벨 로드맵 */
.roadmap__board { position: relative; margin-top: 64px; aspect-ratio: 1100 / 440; }
.roadmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roadmap__base, .roadmap__line { fill: none; stroke-width: 14; stroke-linecap: round; }
.roadmap__base { stroke: #ECE6D6; }
.roadmap__line { stroke: var(--yellow); }
.roadmap__levels li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; gap: 2px; width: 150px; }
.lv { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-family: var(--font-display); font-size: 15px; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--navy); transition: background .4s, color .4s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.roadmap__levels li.is-on .lv { background: var(--yellow); color: var(--navy); transform: scale(1.15); }
.roadmap__levels b { font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--navy); background: #fff; padding: 0 6px; }
.roadmap__levels small { font-size: 13px; color: var(--text-sub); background: #fff; padding: 0 6px; }
.roadmap__note { margin-top: 28px; font-size: 13px; color: var(--text-sub); }

/* 수업 미리보기 */
.classroom__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.classroom__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin-top: 36px; }
.classroom__facts li { display: grid; gap: 4px; }
.classroom__facts b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--navy); }
.classroom__facts b.ph { font-family: var(--font-body); font-weight: 700; font-size: 15px; }
.classroom__facts span { font-size: 14px; color: var(--text-sub); }
.chat { padding: 28px; background: var(--navy); box-shadow: 16px 16px 0 var(--yellow); display: grid; gap: 14px; }
.chat__title { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); font-size: 14px; }
.chat__title b { color: #fff; }
.chat__live { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.has-motion .chat__live { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.msg { max-width: 82%; }
.msg__who { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.msg p { padding: 12px 16px; font-size: 16px; font-weight: 600; }
.msg--t p { background: #fff; color: var(--navy); border-radius: 4px 18px 18px 18px; }
.msg--s { justify-self: end; text-align: right; }
.msg--s p { background: var(--yellow); color: var(--navy); border-radius: 18px 4px 18px 18px; text-align: left; }
.chat__note { font-size: 12px; color: rgba(255, 255, 255, .45); }

/* 레벨 테스트 */
.test-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 3px solid var(--navy); }
.test-step { position: relative; padding: 40px 30px 36px; border-right: 3px solid var(--navy); overflow: hidden; isolation: isolate; transition: color .4s; }
.test-step:last-child { border-right: 0; }
.test-step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7, 0, .3, 1); }
.test-step:hover::before { transform: none; }
.test-step__n { display: block; font-family: var(--font-display); font-size: 96px; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--navy); margin-bottom: 26px; transition: color .4s; }
.test-step:hover .test-step__n { color: var(--navy); }
.test-step h3 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.test-step p { font-size: 16px; color: var(--text); }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.accordion { border-top: 3px solid var(--navy); }
.accordion__item { border-bottom: 1px solid #CFCABB; }
.accordion__trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; border: 0; background: none; font: inherit; font-size: 20px; font-weight: 800; color: var(--navy); text-align: left; cursor: pointer; }
.accordion__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--navy); color: var(--yellow); font-family: var(--font-display); font-size: 22px; transition: transform .4s cubic-bezier(.7, 0, .3, 1), background .3s; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(135deg); background: var(--coral); color: #fff; }
.accordion__panel { padding: 0 60px 26px 0; font-size: 17px; color: var(--text-sub); }

/* 상담 안내 */
.contact { padding: 120px 0 130px; background: var(--coral); color: #fff; overflow: hidden; }
.contact__inner { position: relative; text-align: center; }
.contact__big { font-family: var(--font-display); font-size: clamp(80px, 17vw, 260px); line-height: .9; color: var(--navy); letter-spacing: -.03em; white-space: nowrap; }
.contact__title { margin-top: 16px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; color: #fff; }
.contact__info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 44px 0 0; background: rgba(18, 26, 51, .25); border: 2px solid var(--navy); }
.contact__info > div { padding: 22px 16px; background: var(--coral); }
.contact__info dt { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.contact__info dd { margin: 0; }
.contact .ph { border-color: rgba(255, 255, 255, .8); color: #fff; background: none; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.contact .btn--yellow { background: var(--navy); color: var(--yellow); }
.contact .btn--yellow:hover { color: var(--navy); }
.contact__note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .85); }

/* 푸터 */
.site-footer { padding: 44px 0; background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 14px; }
.site-footer__inner { display: grid; gap: 8px; }
.site-footer__brand strong { font-family: var(--font-display); font-weight: 400; color: var(--yellow); margin-right: 8px; font-size: 20px; }
.site-footer .ph { border-color: rgba(255, 214, 10, .5); color: var(--yellow); background: none; }
.site-footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.credit-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.credit-link img { filter: brightness(0) invert(1); }
.site-footer__copy { font-size: 13px; color: rgba(255, 255, 255, .45); }

/* 스크롤 진행 막대 */
.progress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 6px; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--coral); transform: scaleX(0); transform-origin: left; }

/* 반응형 */
@media (max-width: 1119.98px) {
  .nav-toggle { display: block; padding: 10px 14px; border: 2px solid var(--yellow); background: none; color: var(--yellow); font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; cursor: pointer; }
  .nav-toggle[aria-expanded="true"] { background: var(--yellow); color: var(--navy); }
  .site-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; flex-direction: column; align-items: stretch; gap: 24px; padding: 32px 24px; background: var(--navy); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s cubic-bezier(.7, 0, .3, 1), visibility .55s; overflow-y: auto; z-index: 45; }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { font-size: 30px; font-weight: 900; padding: 10px 0; color: #fff; }
  .site-nav__list a::after { left: 0; right: auto; width: 60px; }
  .site-nav__cta { padding: 18px; font-size: 18px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .bubble--2, .bubble--4 { display: none; }
  .classroom__grid, .faq__grid { grid-template-columns: 1fr; gap: 44px; }
  .test-steps { grid-template-columns: repeat(2, 1fr); }
  .test-step:nth-child(2) { border-right: 0; }
  .test-step:nth-child(-n+2) { border-bottom: 3px solid var(--navy); }
  .contact__info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899.98px) {
  .roadmap__board { aspect-ratio: auto; }
  .roadmap__svg { display: none; }
  .roadmap__levels { position: relative; display: grid; gap: 0; padding-left: 8px; }
  .roadmap__levels::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 8px; border-radius: 8px; background: var(--yellow); }
  .roadmap__levels li { position: relative; left: auto; top: auto; transform: none; width: auto; grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 18px; padding: 10px 0; }
  .roadmap__levels li .lv { grid-row: span 2; margin: 0; }
  .roadmap__levels b, .roadmap__levels small { background: none; padding: 0; align-self: end; }
  .roadmap__levels small { align-self: start; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 40px); }
  .br-m { display: inline; }
  .sample-banner__inner { align-items: flex-start; font-size: 12px; }
  .hero { padding: 40px 0 56px; min-height: 0; }
  .hero__inner { gap: 32px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { width: 100%; }
  .btn--lg { flex: 1 1 100%; }
  .bubbles { display: none; }
  .section { padding: 90px 0; }
  .method__row { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .method__num { font-size: 48px; }
  .programs__pin { padding: 84px 0; }
  .programs__head { margin-bottom: 36px; }
  .programs__hint::after { content: " (밀어서 보기)"; }
  .programs__rail { padding: 0 20px; gap: 16px; }
  .course { min-height: 400px; padding: 28px 24px; }
  .classroom__facts { grid-template-columns: 1fr 1fr; }
  .chat { padding: 20px; box-shadow: 10px 10px 0 var(--yellow); margin-right: 10px; }
  .msg { max-width: 92%; }
  .test-steps { grid-template-columns: 1fr; }
  .test-step { border-right: 0; border-bottom: 3px solid var(--navy); }
  .test-step:last-child { border-bottom: 0; }
  .test-step__n { font-size: 64px; margin-bottom: 14px; }
  .accordion__trigger { font-size: 18px; }
  .accordion__panel { padding-right: 0; }
  .contact { padding: 90px 0; }
  .contact__info { grid-template-columns: 1fr; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
