/* 엔젤시니어에듀 홈페이지 시안 — 공통 스타일(메인 + 하위 4쪽)
   레퍼런스(musical-moments.co.uk)에서 가져온 것: 영상/사진 위 흰 둥근 카드 첫 화면, 알약 메뉴 막대,
   색 띠 구역(보라·핑크)과 크림 바탕의 리듬, 좌우로 번갈아 놓인 큰 둥근 카드 + 물방울 장식, 지역 알약 목록.
   색은 로고에서 뽑음(보라·하늘·연두·금색·하트 핑크). */
:root {
  --purple: #7B2CBF;        /* 로고 보라(띠 바탕용으로 살짝 진하게) */
  --edu-green: #3BB912;     /* 로고 "EDU" 녹색 — 꼬리말 바탕(2026-10-19 마스터) */
  --purple-ink: #5A1E8F;    /* 큰 제목 글자 */
  --purple-soft: #F1E8FA;
  --pink: #E0457B;          /* 로고 하트 → 레퍼런스 마젠타 역할 */
  --sky: #1E9BE0;           /* SENIOR 하늘 */
  --green: #3BAA35;         /* EDU 연두(작은 포인트만) */
  --gold: #C9973A;          /* 뿔 금색(선·작은 장식) */
  --cream: #F5F3EE;         /* 레퍼런스 크림 바탕 */
  --white: #FFFFFF;
  --ink: #2A2233;           /* 본문 글자 */
  --ink-2: #5D5566;
  --line: #E6E1EA;
  --r-lg: 44px; --r-md: 28px; --r-sm: 18px;
  --f-display: 'GmarketSans', 'Pretendard Variable', sans-serif;
  --f-body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-en: 'Montserrat', 'Pretendard Variable', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 96px;
}
@font-face { font-family: 'GmarketSans'; font-weight: 700; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff'); }
@font-face { font-family: 'GmarketSans'; font-weight: 500; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff'); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.22; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - 64px); margin: 0 auto; }
.eyebrow { font-family: var(--f-en); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 버튼(알약) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(60, 20, 90, .55); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-sky { background: var(--sky); color: #fff; }
.btn-white { background: #fff; color: var(--purple-ink); }
.btn-line { background: transparent; color: var(--purple-ink); border-color: var(--purple); font-weight: 500; }
.btn-line:hover { background: var(--purple); color: #fff; }
.btn-line-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-line-w:hover { background: #fff; color: var(--purple-ink); }

/* ── 머리말: 둥근 로고 배지 + 알약 메뉴 + 오른쪽 업무 메뉴. 상단 고정, 스크롤하면 줄고 흰 유리 ── */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: height .35s var(--ease), background .35s, box-shadow .35s; }
.hd.scrolled { --nav-h: 72px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hd-in { position: relative; height: 100%; display: flex; align-items: center; gap: 22px; width: min(1360px, 100% - 48px); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-img { display: block; height: 84px; width: auto; transition: height .35s var(--ease); }
.hd.scrolled .logo-img { height: 64px; }
/* 알약 메뉴 = 화면 가운데(2026-10-19 마스터). 로고는 왼쪽, 로그인은 오른쪽 끝 */
.pill-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; height: 42px; padding: 3px; background: var(--purple); border-radius: 999px; box-shadow: 0 10px 24px -14px rgba(90, 30, 143, .8); }
.pill-nav a { padding: 4px 20px 0; line-height: 32px; /* GmarketSans는 글자가 위로 떠서 4px 내려 가운데 맞춤 */ border-radius: 999px; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 15.5px; white-space: nowrap; transition: background .25s, color .25s; }
.pill-nav a:hover { background: rgba(255,255,255,.16); }
.pill-nav a[aria-current="page"] { background: #fff; color: var(--purple-ink); }
.util { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.util > a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 14.5px var(--f-display); color: var(--purple-ink); text-decoration: none; white-space: nowrap; }
.util > a:hover { background: var(--purple-soft); }
.util a.login { background: var(--pink); color: #fff; padding: 0 20px; margin-left: 4px; }
.util a.login:hover { background: #c93468; }
.burger { display: none; margin-left: auto; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--purple); cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 15px; width: 20px; height: 2px; background: #fff; border-radius: 2px; content: ''; transition: transform .3s var(--ease), opacity .2s; }
.burger i { top: 24px; } .burger i::before { left: 0; top: -7px; } .burger i::after { left: 0; top: 7px; }
.hd.open .burger i { background: transparent; } .hd.open .burger i::before { transform: translateY(7px) rotate(45deg); } .hd.open .burger i::after { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; }
/* 함정(CONTRACT §17): backdrop-filter가 있으면 안쪽 fixed 서랍이 머리말 높이에 갇힘 */
.hd.open { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #fff; }

@media (max-width: 1240px) {
  .pill-nav a { padding: 4px 15px 0; font-size: 15px; }
}
@media (max-width: 1060px) {
  :root { --nav-h: 76px; }
  .hd.scrolled { --nav-h: 62px; }
  .pill-nav, .util { display: none; }
  .burger { display: block; }
  .logo-img { height: 66px; } .hd.scrolled .logo-img { height: 54px; }
  .drawer { display: block; position: fixed; inset: var(--nav-h) 0 0; background: #fff; overflow-y: auto; padding: 18px 20px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
  .hd.open .drawer { opacity: 1; visibility: visible; transform: none; }
  .drawer .d-main a { display: block; padding: 15px 6px; border-bottom: 1px solid var(--line); font: 700 21px var(--f-display); color: var(--purple-ink); text-decoration: none; }
  .drawer .d-main a[aria-current="page"] { color: var(--pink); }
  .drawer .login { display: flex; margin-top: 22px; width: 100%; }
}

/* ── 메인 첫 화면: 영상 + 아래쪽 가로로 긴 반투명 카드(영상을 가리지 않게) ── */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 28px) 0 40px; display: flex; align-items: flex-end; overflow: hidden; background: #2b2233; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: kenburns 22s ease-in-out infinite alternate; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40, 20, 60, .3), rgba(40, 20, 60, 0) 40%), linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 22%); }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; padding: 30px 44px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .5); /* 흰색 50%(2026-10-19 마스터) — 메인·하위 쪽 첫 화면 공통 */ backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 30px 60px -30px rgba(40, 10, 70, .45); }
/* 배경이 거의 투명이라 글자 둘레에 흰 빛을 깔아 영상 위에서도 읽히게 */
/* 제목은 줄 올라오기 틀(overflow:hidden)에 글자 그림자가 잘려 네모가 생겨서 filter로 h1 전체에 흰 빛 */
.hero-card h1 { filter: drop-shadow(0 0 1.5px rgba(255,255,255,.95)) drop-shadow(0 0 6px rgba(255,255,255,.7)); }
.hero-card .sub, .hero-card .lede { text-shadow: 0 0 1px #fff, 0 0 3px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.75); }
.hero-card h1 { font-size: clamp(34px, 3.6vw, 52px); color: var(--purple-ink); line-height: 1.12; }
.hero-card h1 em { font-style: normal; color: var(--pink); }
.hero-card .sub { font: 700 20px/1.5 var(--f-display); color: var(--purple-ink); }
.hero-card .lede { margin-top: 8px; color: var(--ink); font-size: 15.5px; font-weight: 700; }
/* 글래스 버튼(첫 화면 전용) */
.hero-card .btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 24px -14px rgba(40, 10, 70, .6); }
.hero-card .btn-purple { background: rgba(123, 44, 191, .9); border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero-card .btn-purple:hover { background: rgba(123, 44, 191, 1); }
.hero-card .btn-line { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .75); color: var(--purple-ink); }
.hero-card .btn-line:hover { background: rgba(255, 255, 255, .8); color: var(--purple-ink); }
.hero-card .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 1060px) { .hero-card { grid-template-columns: 1fr; } }
/* 하위 쪽 첫 화면(page_hero — includes/helpers.php) = 메인과 같은 사진+반투명 카드, 높이만 낮게 */
.sub-hero { min-height: min(74svh, 720px); }
.sub-hero .hero-card { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.sub-hero .hero-card .eyebrow { margin-bottom: 8px; text-shadow: 0 0 2px #fff, 0 0 8px rgba(255,255,255,.9); }
.sub-hero .hero-card h1 { font-size: clamp(32px, 3.4vw, 50px); }
.sub-hero .hero-card .sub { font-size: 18px; }
@media (max-width: 1060px) { .sub-hero .hero-card { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sub-hero { min-height: 64svh; } .sub-hero .hero-card { padding: 24px 22px; } .sub-hero .hero-card .sub { font-size: 16px; } }
/* 2026-10-20 하위 첫 화면 = 인물 없는 종이공예 그림(왼쪽이 제목 자리로 비어 있음) → 카드는 왼쪽에 좁게·세로 가운데,
   어두운 아래 그늘 빼고(아이보리가 탁해짐) 확대 움직임 끔(위아래 사물이 잘림). 사물은 오른쪽이 보이게 */
.sub-hero { align-items: center; }
.sub-hero .hero-media img { animation: none; object-position: 72% 45%; }
.sub-hero .hero-media::after { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 22%); }
.sub-hero .hero-card { max-width: 560px; grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 760px) { .sub-hero { align-items: flex-end; } .sub-hero .hero-media img { object-position: 78% 30%; } .sub-hero .hero-card .sub { font-size: 15px; } }

/* ── 보라 띠: 이야기 + 흩어진 둥근 사진 ── */
.band { position: relative; padding: 140px 0; overflow: hidden; }
.band-purple { background: var(--purple); color: #fff; }
.band-pink { background: var(--pink); color: #fff; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story h2 { font-size: clamp(36px, 4.4vw, 60px); }
.story h2 em { font-style: normal; color: #FFD9EC; }
.story p { margin-top: 28px; font-size: 18px; line-height: 1.85; color: rgba(255,255,255,.92); }
.story .btn { margin-top: 36px; }
.scatter { position: relative; height: 620px; }
.scatter figure { position: absolute; margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); will-change: transform; }
.scatter figure img { width: 100%; height: 100%; object-fit: cover; }
/* 마우스 올리면 5초 영상(첫 장면 = 같은 사진이라 바뀌는 티가 안 남) */
.scatter figure video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.scatter figure.playing video { opacity: 1; }
.scatter figure[data-hover-video] { cursor: pointer; transition: box-shadow .3s; }
.scatter figure[data-hover-video]:hover { box-shadow: 0 0 0 5px var(--pink), 0 30px 60px -24px rgba(0,0,0,.6); }
.scatter .f1 { left: 0; top: 160px; width: 46%; aspect-ratio: 4/4.4; }
.scatter .f2 { right: 4%; top: 0; width: 44%; aspect-ratio: 1/.9; }
.scatter .f3 { right: 0; bottom: 0; width: 40%; aspect-ratio: 5/6; }
.blob { position: absolute; border-radius: 52% 48% 46% 54% / 58% 54% 46% 42%; animation: wobble 9s ease-in-out infinite; }
@keyframes wobble { 50% { border-radius: 44% 56% 58% 42% / 48% 58% 42% 52%; transform: translateY(-12px) rotate(6deg); } }
.band-purple .blob.b1 { width: 180px; height: 210px; left: -60px; bottom: 60px; background: rgba(255,255,255,.07); }
.band-purple .blob.b2 { width: 90px; height: 100px; right: 42%; top: 70px; background: var(--sky); opacity: .9; }

/* ── 크림: 우리가 드리는 것 — 번갈아 놓인 큰 둥근 카드 ── */
.offer { padding: 140px 0 120px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 70px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 54px); color: var(--purple-ink); margin-top: 12px; }
.offer-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin-bottom: 46px; }
.offer-row.flip .card { order: 2; } .offer-row.flip .deco { order: 1; }
.card { padding: 56px 60px; border-radius: var(--r-lg); background: #fff; color: var(--purple-ink); }
.card h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; }
.card p { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 460px; }
.card .no { display: inline-block; margin-bottom: 18px; font: 700 13px var(--f-en); letter-spacing: .14em; color: var(--pink); }
.card.c-pink { background: var(--pink); color: #fff; } .card.c-sky { background: var(--sky); color: #fff; } .card.c-purple { background: var(--purple); color: #fff; }
.card.c-pink p, .card.c-sky p, .card.c-purple p { color: rgba(255,255,255,.92); }
.card.c-pink .no, .card.c-sky .no, .card.c-purple .no { color: rgba(255,255,255,.75); }
.deco { position: relative; height: 240px; display: grid; place-items: center; }
.deco svg.ic { position: relative; z-index: 1; width: 70px; height: 70px; } /* 아이콘은 도형 한가운데 */
.deco.on-color svg.ic { stroke: #fff; } /* 색 도형(분홍·하늘·보라) 위에서는 흰 선 */
.deco .blob { width: 150px; height: 160px; left: 50%; top: 50%; margin: -80px 0 0 -75px; }
.offer .center { text-align: center; margin-top: 30px; }

/* ── 핑크 띠: 이렇게 달라집니다 — 계단처럼 놓인 흰 카드 ── */
.expect h2 { font-size: clamp(36px, 4.4vw, 60px); max-width: 760px; }
.expect .lead { margin-top: 20px; max-width: 560px; color: rgba(255,255,255,.92); font-size: 18px; }
.steps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 70px; }
.steps-cards .wc { padding: 44px 36px; border-radius: var(--r-md); background: #fff; color: var(--ink-2); font-size: 17px; line-height: 1.8; text-align: center; }
.steps-cards .wc:nth-child(2) { transform: translateY(60px); } .steps-cards .wc:nth-child(3) { transform: translateY(120px); }
.steps-cards .wc b { color: var(--purple-ink); }
.steps-cards .wc .k { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font: 700 22px var(--f-display); color: #fff; }
.expect .end { display: flex; justify-content: flex-end; margin-top: 160px; }
.band-pink .blob.b1 { width: 260px; height: 280px; right: -80px; top: -60px; background: rgba(255,255,255,.1); }


/* ── 꼬리말 ── */
.ft { background: var(--edu-green); color: #111; padding: 90px 0 40px; font-size: 15px; font-family: var(--f-display); font-weight: 500; } /* 글꼴 = 머리말 알약 메뉴와 같은 GmarketSans, 글자 검정(2026-10-19 마스터) */
.ft-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.ft-logo { display: block; width: 360px; max-width: 100%; height: auto; } /* logo-footer-h.jpg = 가로형 로고의 바탕만 --edu-green(#3BB912)으로 채우고 여백 없이 잘라 왼쪽 끝이 아래 글자와 맞음(그림을 바꾸면 footer.php ?v= 올림). 꼬리말 색을 바꾸면 이 그림도 다시 만든다 */
.ft h4 { margin: 0 0 16px; font: 700 13px var(--f-display); letter-spacing: .16em; color: #111; }
.ft a { text-decoration: none; } .ft a:hover { text-decoration: underline; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft .tel { font: 700 30px var(--f-display); color: #111; display: block; margin-bottom: 6px; }
.ft-bot { margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(0,0,0,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #111; }
.sns { display: flex; gap: 10px; margin-top: 22px; }
.sns a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.1); }
.sns svg { width: 18px; height: 18px; fill: #111; }

/* ── 하위 쪽 공통 — 레퍼런스 하위 쪽처럼 사진 첫머리 없이 크림 바탕에서 가운데 큰 제목으로 시작 ── */
.page-top { padding: calc(var(--nav-h) + 80px) 0 70px; text-align: center; }
.page-top h1 { font-size: clamp(36px, 4.6vw, 62px); color: var(--purple-ink); }
.page-top h1 em { font-style: normal; color: var(--pink); }
.page-top .lead { margin: 22px auto 0; max-width: 720px; color: var(--ink-2); font-size: 18px; }
.page-top .mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14.5px; }
.sec { padding: 110px 0; }
.sec.white { background: #fff; }
.sec h2 { font-size: clamp(30px, 3.6vw, 48px); color: var(--purple-ink); }
.sec h2.c, .band h2.c { text-align: center; }
.band-sky { background: var(--sky); color: #fff; }
.band-sky h2 { color: #fff; }

/* 프로그램(Sessions): 글 + 큰 둥근 영상 자리 */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.split p { margin-top: 20px; color: var(--ink-2); font-size: 17.5px; line-height: 1.9; }
.split .media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: 0 40px 70px -40px rgba(60, 20, 90, .5); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span, .chips a { padding: 9px 18px; border-radius: 999px; font: 700 14.5px var(--f-display); color: #fff; text-decoration: none; }
.chips a:hover { filter: brightness(1.1); }
.prog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 70px; }
.prog-list article { border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.prog-list .ph { aspect-ratio: 4/3; overflow: hidden; }
.prog-list .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prog-list article:hover .ph img { transform: scale(1.06); }
.prog-list .tx { padding: 30px 32px 36px; }
.prog-list .tag { display: inline-block; padding: 6px 15px; border-radius: 999px; color: #fff; font: 700 13.5px var(--f-display); }
.prog-list h3 { margin-top: 14px; font-size: 25px; color: var(--purple-ink); }
.prog-list p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* ── 프로그램 쪽: 사진 중심(모자이크 + 구역별 갤러리) ── */
.pg-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 12px;
  grid-template-areas: "a a b" "a a c" "d e e"; }
.pg-mosaic figure, .pg-gallery figure { margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--purple-soft); }
.pg-mosaic img, .pg-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pg-mosaic figure:hover img, .pg-gallery figure:hover img { transform: scale(1.06); }
.pg-mosaic figure:nth-child(1) { grid-area: a; } .pg-mosaic figure:nth-child(2) { grid-area: b; } .pg-mosaic figure:nth-child(3) { grid-area: c; }
.pg-mosaic figure:nth-child(4) { grid-area: d; } .pg-mosaic figure:nth-child(5) { grid-area: e; }
.pg-sec { padding: 110px 0; }
.pg-sec.pg-white { background: #fff; }
.pg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 34px; }
.pg-head .tag { padding: 7px 16px; border-radius: 999px; color: #fff; font: 700 14px var(--f-display); }
.pg-head h2 { font-size: clamp(30px, 3.4vw, 46px); color: var(--purple-ink); }
.pg-head p { flex-basis: 100%; color: var(--ink-2); font-size: 17px; font-weight: 500; }
.pg-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px;
  grid-template-areas: "a a b c" "a a d c" "e e f f"; }
.pg-gallery.flip { grid-template-areas: "b c a a" "d c a a" "f f e e"; }
.pg-gallery figure:nth-child(1) { grid-area: a; } .pg-gallery figure:nth-child(2) { grid-area: b; } .pg-gallery figure:nth-child(3) { grid-area: c; }
.pg-gallery figure:nth-child(4) { grid-area: d; } .pg-gallery figure:nth-child(5) { grid-area: e; } .pg-gallery figure:nth-child(6) { grid-area: f; }
@media (max-width: 760px) {
  .pg-sec { padding: 70px 0; }
  .pg-mosaic { grid-auto-rows: 110px; margin-top: 30px; }
  .pg-gallery, .pg-gallery.flip { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; grid-template-areas: "a a" "a a" "b c" "d c" "e e" "f f"; }
}

/* 하늘 띠: 흰 카드 격자(3+2) */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.grid-cards .wc { padding: 40px 34px; border-radius: var(--r-md); background: #fff; color: var(--ink-2); text-align: center; font-size: 16.5px; line-height: 1.8; }
.grid-cards .wc b { color: var(--purple-ink); }

/* 예약 띠 */
.book { padding: 90px 0; text-align: center; }
.book h2 { font-size: clamp(30px, 3.4vw, 44px); color: var(--purple-ink); }
.book p { margin: 14px auto 28px; color: var(--ink-2); max-width: 560px; }

/* 화면 가득 사진(레퍼런스의 검은 영상 띠 자리) */
.wide-media { position: relative; height: min(78vh, 720px); overflow: hidden; background: #1c1622; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.wide-media .cap { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; background: rgba(255,255,255,.9); font: 700 15px var(--f-display); color: var(--purple-ink); white-space: nowrap; }

/* 핑크 띠: 후기 슬라이더 */
.quotes { padding: 110px 0; text-align: center; }
.quotes .qm { font: 700 84px/0.6 var(--f-en); color: rgba(255,255,255,.85); display: block; margin-bottom: 26px; }
.quotes .q-item p { max-width: 820px; margin: 0 auto; font: 500 clamp(19px, 2vw, 25px)/1.7 var(--f-display); }
.quotes .q-item cite { display: block; margin-top: 22px; font: 400 15px var(--f-body); font-style: normal; color: rgba(255,255,255,.85); }
.quotes .q-row { position: relative; }
.quotes .q-prev, .quotes .q-next { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: none; color: #fff; font-size: 22px; cursor: pointer; }
.quotes .q-prev { left: 0; } .quotes .q-next { right: 0; }
.quotes .q-prev:hover, .quotes .q-next:hover { background: rgba(255,255,255,.15); }
.q-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.q-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.q-dots button[aria-current="true"] { background: #fff; width: 28px; border-radius: 6px; }

/* 협력 기관 로고 격자 */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 860px; margin: 50px auto 0; }
.logo-grid span { aspect-ratio: 16/10; display: grid; place-items: center; border-radius: var(--r-sm); background: #fff; color: #A9A1B2; font: 500 14px var(--f-display); text-align: center; }

/* 회사소개(About): 긴 글 + 보라 테두리 액자 사진 */
.about-body { display: grid; grid-template-columns: 6fr 5fr; gap: 70px; align-items: start; text-align: left; }
.about-body p { margin-top: 20px; color: var(--ink-2); font-size: 17.5px; line-height: 1.95; }
.about-body p:first-child { margin-top: 0; }
.about-body .sign { margin-top: 30px; font: 500 18px var(--f-display); color: var(--purple-ink); }
.framed { border: 7px solid var(--purple); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60,20,90,.5); }
.framed img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-body .framed { position: sticky; top: 110px; }
.center-btn { text-align: center; margin-top: 70px; }

/* 강사소개(Meet the team): 둥근 사진 카드 격자 */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; }
.team article { text-align: center; }
.team .ring { width: 210px; height: 210px; margin: 0 auto; border-radius: 50%; padding: 6px; background: var(--purple); }
.team .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.team h3 { margin-top: 20px; font-size: 22px; color: var(--purple-ink); }
.team .area { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; background: var(--purple-soft); font: 500 13.5px var(--f-display); color: var(--purple); }
.team p { margin: 12px auto 0; max-width: 300px; color: var(--ink-2); font-size: 15.5px; }
.join { text-align: center; }
.join h2 { color: #fff; }
.join p { margin: 14px auto 28px; max-width: 560px; color: rgba(255,255,255,.92); }
.join .mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 강사모집(Franchise) */
.hero-photo { max-width: 760px; margin: 50px auto 0; border-radius: var(--r-md); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.story2 { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: center; }
.story2 p { margin-top: 18px; color: var(--ink-2); line-height: 1.9; }
.story2 .ph { border-radius: var(--r-lg); overflow: hidden; }
.story2 .ph img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.voices article { text-align: center; }
.voices .ring { width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; padding: 5px; background: var(--purple); }
.voices .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.voices h3 { margin-top: 18px; font-size: 20px; color: var(--purple-ink); }
.voices p { margin: 12px auto 0; max-width: 320px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.perks .wc { position: relative; padding: 36px 30px 30px; border-radius: var(--r-md); background: #fff; color: var(--ink-2); font-size: 15.5px; }
.perks .wc:nth-child(3n+2) { transform: translateY(50px); }
.perks .wc h3 { font-size: 20px; color: var(--purple-ink); margin-bottom: 10px; }
.perks .wc img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 20px auto 0; border: 4px solid var(--purple-soft); }
.why { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.why .ph img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.why .tx { padding: 80px 70px; background: var(--cream); }
.why ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--ink-2); }
.why li { padding-left: 22px; position: relative; }
.why li::before { content: ''; position: absolute; left: 0; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.ideal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 50px auto 0; }
.ideal div { padding: 34px 26px; border-radius: var(--r-md); background: var(--sky); color: #fff; text-align: center; }
.ideal i { display: block; font-style: normal; font-size: 30px; line-height: 1; }
.ideal b { display: block; margin-top: 12px; font: 700 19px var(--f-display); }
.ideal span { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.92); }

/* 밑줄 입력 폼(레퍼런스 문의·지원 폼) */
.uform { max-width: 760px; margin: 40px auto 0; text-align: left; }
.uform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.uform .f { display: grid; gap: 4px; margin-top: 20px; }
.uform label { font: 500 14.5px var(--f-display); color: var(--purple-ink); }
.uform input, .uform select, .uform textarea { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1.5px solid #CFC6D8; background: transparent; font: 16px var(--f-body); color: var(--ink); border-radius: 0; }
.uform textarea { min-height: 96px; resize: vertical; }
.uform input:focus, .uform select:focus, .uform textarea:focus { outline: none; border-bottom-color: var(--purple); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.agree input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--purple); }
.uform .btn { margin-top: 26px; }
.form-note { margin-top: 14px; min-height: 1.6em; font-size: 15px; color: var(--pink); }

/* 문의(Contact): 사진 왼쪽 + 연락처·폼 오른쪽 */
.contact2 { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: stretch; }
.contact2 .ph { border-radius: var(--r-lg); overflow: hidden; }
.contact2 .ph img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.contact2 .who { font: 500 16px var(--f-display); color: var(--purple-ink); line-height: 1.9; }
.contact2 .who a { color: var(--purple); }
.contact2 .uform { margin-top: 10px; max-width: none; }
.contact2 .sns-row { display: flex; gap: 22px; margin-top: 28px; }
.contact2 .sns-row a { color: var(--purple); font-weight: 600; }

/* 꼬리말 협력 기관 자리 */

/* ── 메인 모션그래픽 ── */
/* 첫 화면: 음표가 사진 위로 천천히 떠오름 */
.notes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.notes i { position: absolute; left: var(--x); bottom: -60px; font: 700 46px/1 var(--f-display); font-style: normal; color: var(--c); text-shadow: 0 2px 0 rgba(255,255,255,.5), 0 6px 18px rgba(40, 10, 70, .45); opacity: 0;
  animation: noteUp 11s linear var(--d) infinite; }
@keyframes noteUp { 0% { transform: translate(0, 0) rotate(-12deg); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(26px, -50vh) rotate(10deg); } 85% { opacity: .7; } 100% { transform: translate(-10px, -100vh) rotate(-8deg); opacity: 0; } }
/* 제목: 줄마다 아래에서 올라오고, "웃음 한 소절"에 형광펜 */
.hero-card h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-card h1 .ln > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero-card h1 .ln:nth-child(1) > span { animation-delay: .35s; } .hero-card h1 .ln:nth-child(2) > span { animation-delay: .55s; }
@keyframes lineUp { from { transform: translateY(110%); } }
/* 제목 강조 밑줄(그어지는 움직임) — 2026-10-19: 분홍 20%가 같은 분홍 글자 뒤·흰 빛에 묻혀 안 보여서 → 로고 SENIOR 하늘색(--sky) 진하게, 글자 아래쪽 띠로 */
.hero-card h1 em { background: linear-gradient(transparent 76%, rgba(30, 155, 224, .8) 76%, rgba(30, 155, 224, .8) 92%, transparent 92%) no-repeat 0 0 / 0 100%; animation: marker .9s var(--ease) 1.3s forwards; }
@keyframes marker { to { background-size: 100% 100%; } }
/* 다섯 가지 이유: 아이콘 선이 그려짐(pathLength=1은 site.js가 붙임) */
.deco.rv svg.ic > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .35s; }
.deco.rv.in svg.ic > * { stroke-dashoffset: 0; }
/* 달라집니다: 번호가 톡 튀어나오고 물결 */
.steps-cards .wc .k { position: relative; }
.steps-cards .wc.rv.in .k { animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
.steps-cards .wc.rv.in .k::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rc); animation: ripple 2.4s ease-out 1s infinite; }
.steps-cards .wc:nth-child(1) { --rc: var(--purple); } .steps-cards .wc:nth-child(2) { --rc: var(--sky); } .steps-cards .wc:nth-child(3) { --rc: var(--green); }
@keyframes pop { from { transform: scale(0); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
@media (max-width: 640px) { .notes i { font-size: 32px; } .notes i:nth-child(n+5) { display: none; } }

/* ── 등장 움직임 ── */
.rv { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }
.steps-cards .wc.rv.in:nth-child(2) { transform: translateY(60px); } .steps-cards .wc.rv.in:nth-child(3) { transform: translateY(120px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .notes { display: none; }
  .deco.rv svg.ic > * { stroke-dashoffset: 0; }
  .hero-card h1 em { background-size: 100% 100%; }
  html { scroll-behavior: auto; }
}

/* ── 휴대폰·태블릿 ── */
@media (max-width: 960px) {
  .story, .offer-row, .split, .about-body, .story2, .why, .contact2 { grid-template-columns: 1fr; }
  .offer-row.flip .card { order: 0; }
  .offer-row .deco { display: none; }
  .band-purple .blob.b2 { display: none; }
  .scatter { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .scatter .f1, .scatter .f2, .scatter .f3 { position: relative; inset: auto; width: auto; transform: none !important; }
  .scatter .f1 { grid-row: span 2; aspect-ratio: auto; }
  .scatter .f2, .scatter .f3 { aspect-ratio: 1; }
  .steps-cards, .prog-list { grid-template-columns: 1fr; }
  .steps-cards .wc:nth-child(n), .steps-cards .wc.rv.in:nth-child(n) { transform: none; }
  .expect .end { margin-top: 50px; justify-content: flex-start; }
  .grid-cards, .team, .voices, .perks, .ideal { grid-template-columns: 1fr 1fr; }
  .perks .wc:nth-child(n) { transform: none; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .about-body .framed { position: static; max-width: 420px; }
  .why .tx { padding: 56px 32px; }
  .ft-top { grid-template-columns: 1fr; gap: 36px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { align-items: flex-end; padding-bottom: 24px; }
  .hero-card { padding: 26px 22px 24px; border-radius: 28px; }
  .hero-card .sub { font-size: 18px; }
  .hero-card .cta .btn { flex: 1 1 100%; }
  .band, .offer, .sec, .quotes { padding: 84px 0; }
  .page-top { padding: calc(var(--nav-h) + 50px) 0 50px; }
  .card { padding: 38px 28px; border-radius: 32px; }
  .grid-cards, .team, .voices, .perks, .ideal, .uform .two { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .quotes .q-prev, .quotes .q-next { top: auto; bottom: -78px; transform: none; width: 44px; height: 44px; }
  .quotes .q-prev { left: calc(50% - 110px); } .quotes .q-next { right: calc(50% - 110px); }
  .wide-media { height: 52vh; }
  .wide-media .cap { white-space: normal; text-align: center; width: calc(100% - 40px); bottom: 24px; }
  .contact2 .ph img { min-height: 260px; }
}

/* 스팸 방지 숨은 칸(website) — 화면·스크린리더에서 숨김 */
.uform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree a { color: var(--purple); text-decoration: underline; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { margin: 0 0 8px; padding-left: 22px; }

/* ── 버튼 글자 세로 가운데(2026-10-15 마스터: 모든 버튼은 도형 위아래 같은 거리) ──
   GmarketSans는 글자가 줄 가운데보다 0.1em 위에 그려짐(실측: 16px 버튼 1.5~2.3px 위) → 위 여백을 .1em만큼 더 줌.
   알약 메뉴(.pill-nav a)는 위에서 이미 4px 보정. 크기 비례(em)라 버튼 크기가 달라도 맞음 */
.btn, .util > a, .util a.login { padding-top: .2em; padding-bottom: 0; } /* 높이 고정(min-height) 버튼: 위 .2em = 글자 .1em 아래로 */
.chips span { padding-top: calc(9px + .1em); padding-bottom: calc(9px - .1em); }
.prog-list .tag { padding-top: calc(6px + .1em); padding-bottom: calc(6px - .1em); }
.wide-media .cap { padding-top: calc(12px + .1em); padding-bottom: calc(12px - .1em); }
.quotes .q-prev, .quotes .q-next { padding: 0 0 2px; line-height: 1; } /* ‹ › 화살표는 반대로 1px 아래 */
