/* ============================================================
   발레린 무용학원 — 공개 웹사이트 스타일 (4차: 블러시 톤 · 로고 대문 · 사진 슬라이드)
   - 배경: 토슈즈 리본에서 따온 옅은 블러시(노란 기 없는 따뜻한 분홍빛 회백색)
   - 포인트: 로고의 골드 + 먹색. 디자인 토큰(:root)만 바꾸면 전체 톤 변경
   - PC: 섹션 1개 = 화면 1장 크기 (자동 스크롤 맞춤 없음)
   ============================================================ */
:root {
  --bg: #f6efed;          /* 블러시 포슬린 — 기본 배경 */
  --bg-alt: #efe4e1;      /* 로즈 미스트 — 화면 구분 */
  --paper: #fcf9f8;       /* 카드 */
  --ink: #241d1f;
  --ink-2: #5b5053;
  --ink-3: #978b8e;
  --line: #e3d6d3;
  --gold: #a98552;        /* 로고 골드 (글자용, 대비 확보) */
  --gold-2: #d9c39e;      /* 로고 밝은 골드 (선·장식) */
  --rose: #c18e94;        /* 토슈즈 리본 */
  --dark: #2b2225;        /* 상담 띠·푸터 */
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --display: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  --header: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.35; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.mt { margin-top: 28px; }
.gold { color: var(--gold); }
.en { font-family: var(--display); font-style: italic; letter-spacing: .01em; }

/* ---------- 대문(인트로) — 약 8초 ----------
   html.intro 일 때만 표시. CSS 시간표만으로 자동 종료(스크립트 오류가 있어도 화면이 막히지 않음).
   기존 로고 자세를 유지하는 연출. 금색 원 · 몸 · 왼팔 · 오른팔 · 글자로 나눠 움직임:
   0.3s 무대 조명처럼 은은한 빛
   0.5s 머리 위로 팔을 든 원래 실루엣으로 등장
   1.7s 양팔이 어깨 중심으로 4도 이내에서 원래 자세로 모이고, 몸은 형태를 유지한 채 살짝 상승
   3.4s 금색 원이 그녀를 감싸듯 그려짐 (원 뒤쪽은 완성된 자세에 가려 끊김이 보이지 않음)
   5.0s 금색 원 위로 빛이 한 번 스침
   5.2s 'Balletlin' 글자 → 6.2s 금색 선·문구 → 7.2s 막이 위로 걷히며 메인(8.2s 완료) */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
/* 대문 그림을 다 받기 전(최대 3초)에는 모든 대문·첫 화면 애니메이션을 멈춰 둠 → 받은 뒤 처음부터 재생 */
html.intro-wait .gate, html.intro-wait .gate::before, html.intro-wait .gate *,
html.intro-wait .hero .enter, html.intro-wait .hero .arch-slides { animation-play-state: paused !important; }
.gate { display: none; }
html.intro body { overflow: hidden; }
html.intro .gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center;
  background: var(--bg);
  animation: gate-out 1s var(--ease) 7.2s forwards;
}
html.intro .gate::before { /* 무대 조명 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 38% at 50% 40%, #fffbf9 0%, rgba(255, 251, 249, .6) 45%, transparent 75%);
  animation: calm-in 1.6s ease .2s both;
}
.gate-inner { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px; }
.gate-emblem { position: relative; width: clamp(160px, 21vw, 220px); aspect-ratio: 527 / 480; }
.gate-emblem img, .gate-dancer { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 발레리나 (몸 + 두 팔) */
.gate-dancer { transform-origin: 54% 100%; animation: dancer-in 1.2s var(--ease) .5s both, releve 1.5s cubic-bezier(.4, 0, .2, 1) 1.8s both; }
@keyframes dancer-in { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: none; } }
/* 몸의 비율을 바꾸지 않고 호흡하듯 살짝 상승 */
@keyframes releve { from { transform: translateY(5px); } to { transform: none; } }
/* 팔 길이·두께를 유지한다. 반전/축소 없이 어깨에서 작은 각도로 원래 로고 자세에 안착한다. */
.gate-arm { animation: arm-settle 1.7s cubic-bezier(.4, 0, .2, 1) 1.7s both; }
.gate-arm.l { --arm-open: -4deg; transform-origin: 46.5% 38.75%; }
.gate-arm.r { --arm-open: 4deg; transform-origin: 56.55% 37.9%; animation-delay: 1.82s; }
@keyframes arm-settle {
  from { transform: rotate(var(--arm-open)); }
  to { transform: rotate(0deg); }
}

/* 금색 원: 완성된 자세를 감싸듯 시계 방향으로 그려짐 */
.gate-ring {
  -webkit-mask-image: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
  mask-image: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
  animation: ring-draw 1.8s cubic-bezier(.45, .05, .25, 1) 3.4s both;
}
@keyframes ring-draw { from { --sweep: 0deg; opacity: .3; } to { --sweep: 360deg; opacity: 1; } }
/* 금색 원 위로 빛이 한 번 스침 (원 모양으로 잘린 빛 띠) */
.gate-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url('/assets/img/gate-ring.webp') center / 100% 100% no-repeat;
  mask: url('/assets/img/gate-ring.webp') center / 100% 100% no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 252, 240, .95) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0; opacity: 0;
  animation: shine 1.3s ease-in-out 5s both;
}
@keyframes shine { 0% { opacity: 0; background-position: 130% 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
/* 원이 다 그려질 때 은은한 금빛 */
.gate-glow { position: absolute; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.5); border-radius: 50%; background: radial-gradient(circle, rgba(217, 195, 158, .45) 0%, rgba(217, 195, 158, 0) 62%); opacity: 0; animation: glow 2s ease-out 4.6s both; pointer-events: none; }
@keyframes glow { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }

/* 글자 → 선 → 문구 */
.gate-word { width: clamp(200px, 26vw, 300px); height: auto; animation: word-in 1.3s var(--ease) 5.2s both; }
@keyframes word-in { from { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(3px); transform: translateY(4px); } 30% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); filter: none; transform: none; } }
.gate-line { width: 0; height: 1px; background: var(--gold-2); animation: line-in 1s var(--ease) 6.1s forwards; }
.gate-tag { font-family: var(--display); font-style: italic; font-size: clamp(17px, 2vw, 22px); color: var(--ink-2); animation: fade-up 1s var(--ease) 6.3s both; }
.gate-skip {
  position: absolute; right: 24px; bottom: 24px; background: rgba(255, 255, 255, .5); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.gate-skip:hover { border-color: var(--ink); color: var(--ink); }
html.intro-skip .gate { animation: gate-out .5s var(--ease) forwards; }
@keyframes line-in { to { width: min(240px, 50vw); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gate-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
/* 대문이 걷힌 뒤 메인 첫 화면 요소가 차례로 들어옴 (건너뛰면 바로) */
html.intro .hero .enter { animation: fade-up 1s var(--ease) both; animation-delay: calc(7.5s + var(--d, 0s)); }
html.intro .hero .arch-slides { animation: arch-in 1.4s var(--ease) 7.4s both; }
/* '동작 줄이기' 설정(Windows 애니메이션 끄기 등): 회전·이동 없이 서서히 나타나는 순한 대문, 약 4.4초 */
html.intro-calm .gate { animation: gate-fade .8s ease 3.6s forwards; }
html.intro-calm .gate-ring, html.intro-calm .gate-dancer, html.intro-calm .gate-word, html.intro-calm .gate-tag {
  -webkit-mask-image: none; mask-image: none; clip-path: none; transform: none; filter: none;
  animation: calm-in 1s ease .3s both;
}
html.intro-calm .gate-word { animation-delay: 1s; }
html.intro-calm .gate-tag { animation-delay: 1.7s; }
html.intro-calm .gate-line { animation: line-in 1s ease 1.4s forwards; }
html.intro-calm .gate-glow, html.intro-calm .gate-shine { display: none; }
html.intro-calm .gate-arm { animation: none; transform: none; }
html.intro-calm .hero .enter { animation-delay: calc(4.2s + var(--d, 0s)); }
html.intro-calm .hero .arch-slides { animation-delay: 4.1s; }
@keyframes gate-fade { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes calm-in { from { opacity: 0; } to { opacity: 1; } }
html.intro-skip .hero .enter { animation-delay: calc(.4s + var(--d, 0s)); }
html.intro-skip .hero .arch-slides { animation-delay: .3s; }
@keyframes arch-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
html:not(.intro) .hero .enter { animation: fade-up .9s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 239, 237, .86); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"], .nav a.on { color: var(--ink); }
.nav a.on { box-shadow: inset 0 -1px 0 var(--gold); }
.nav .call { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 14px; box-shadow: none; }
.nav .call:hover { background: var(--gold); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; }
@media (max-width: 860px) {
  :root { --header: 64px; }
  .logo img { height: 38px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(43, 34, 37, .08); display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.on { box-shadow: none; color: var(--gold); }
  .nav .call { margin-top: 16px; text-align: center; padding: 13px; border-bottom: 0; }
  body.menu-open .nav { display: flex; }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- 화면 단위 구성 (자동 스크롤 맞춤 없음) ---------- */
.screen { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.screen.alt { background: var(--bg-alt); }
@media (min-width: 900px) and (min-height: 640px) {
  .screen { min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; justify-content: center; padding: 56px 0; }
}
.pager { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 15; display: none; flex-direction: column; gap: 14px; }
@media (min-width: 1100px) and (min-height: 640px) { .pager { display: flex; } }
.pager a { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.pager a.on { background: var(--gold); transform: scale(1.4); }
.pager a span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; opacity: 0; pointer-events: none; }
.pager a:hover span, .pager a:focus-visible span { opacity: 1; }

/* 스크롤하면 부드럽게 나타남 (스크립트가 준비된 경우에만 숨김 → 스크립트 오류 시에도 내용 보임) */
html.io .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.io .reveal.in { opacity: 1; transform: none; }

/* ---------- 공통 요소 ---------- */
.eyebrow { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; margin-bottom: clamp(28px, 4vw, 48px); align-items: start; }
.sec-num { font-family: var(--display); font-size: 15px; color: var(--gold); letter-spacing: .08em; }
.sec-num b { display: block; font-size: 44px; font-weight: 500; line-height: 1; margin-bottom: 6px; letter-spacing: 0; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec-head p { margin-top: 14px; color: var(--ink-2); max-width: 38em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 10px; } .sec-num b { font-size: 34px; } }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; padding: 14px 26px; font-size: 15px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.tbd { background: linear-gradient(transparent 62%, rgba(193, 142, 148, .22) 0); }

/* ---------- 아치형 사진 슬라이드 (첫 화면 수업장면 자리) ---------- */
.arch-slides { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--bg-alt); box-shadow: 0 30px 60px -30px rgba(43, 34, 37, .35); }
.arch-slides::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: inherit; pointer-events: none; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.on { opacity: 1; }
.slide.on img { transform: scale(1); }
.slide:first-child { opacity: 1; } /* 스크립트 전에도 첫 장 표시 */
html.io .slide:first-child:not(.on) { opacity: 0; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 28px 26px; background: linear-gradient(transparent, rgba(36, 29, 31, .55)); color: #fff; font-size: 14px; }
.slide figcaption b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: .02em; }
.slide-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.slide-bars { display: flex; gap: 8px; flex: 1; }
.slide-bars button { flex: 1; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.slide-bars button::before, .slide-bars button i { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.slide-bars button i { background: var(--gold); transform-origin: left; transform: scaleX(0); }
.slide-bars button.on i { animation: bar var(--slide-ms, 5000ms) linear forwards; }
.slide-bars button.done i { transform: scaleX(1); }
.paused .slide-bars button.on i { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.slide-ctrl .count { font-family: var(--display); font-size: 16px; color: var(--ink-2); min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }
.slide-ctrl .pp { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 11px; color: var(--ink-2); }
.slide-ctrl .pp:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -10vw; top: -20vh; width: 60vw; height: 60vw; border-radius: 50%; border: 1px solid var(--gold-2); opacity: .45; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .en-sub { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--ink-2); margin-top: 14px; }
.hero .lead { margin-top: 26px; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 18px); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; border-top: 1px solid var(--line); }
.facts div { padding: 18px 14px 0 0; }
.facts dt { font-family: var(--display); font-size: 22px; color: var(--ink); line-height: 1.2; }
.facts dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.hero .media { justify-self: end; width: min(100%, 470px); }
.hero .arch-slides { max-height: calc(100svh - var(--header) - 150px); width: 100%; margin-left: auto; }
/* 슬라이드별 초점 (PC 아치 틀에서 잘리는 부분이 있어도 핵심이 보이도록) */
.slide[data-focus="entrance"] img { object-position: 38% 50%; }
.slide[data-focus="lobby"] img { object-position: 62% 50%; }
/* 작은 화면: 사진 원래 비율(3:2)로 전체를 보여 줌 — 잘림 없음 */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .media { order: -1; justify-self: stretch; width: 100%; }
  .hero .arch-slides { aspect-ratio: 3 / 2; max-height: none; border-radius: 22px; }
  .arch-slides::after { inset: 8px; }
  .slide figcaption { padding: 36px 18px 14px; font-size: 13px; }
  .slide figcaption b { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts dt { font-size: 18px; }
}

/* 흐르는 띠 문구 */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--ink-2); padding: 16px 0; white-space: nowrap; }
.marquee span::after { content: '✦'; font-style: normal; font-size: .5em; color: var(--gold); margin: 0 28px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 프로그램 (간판 내용 기반) */
.statement { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.6; max-width: 26em; }
.statement em { font-style: normal; color: var(--gold); }
.benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.benefits li { list-style: none; padding: 7px 16px; border: 1px solid var(--gold-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--paper); }
.benefits { padding: 0; }
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.programs article { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.programs article:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(43, 34, 37, .35); }
.programs .n { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 20px; }
.programs h3 { font-size: 20px; margin: 14px 0 10px; }
.programs p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 960px) { .programs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .programs { grid-template-columns: 1fr; } }

/* 클래스 */
.classes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--ink); }
.classes li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'age meta' 'body body'; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.classes .age { grid-area: age; font-size: 13px; color: var(--ink-3); }
.classes .meta { grid-area: meta; font-size: 14px; color: var(--ink-2); }
.classes li > div { grid-area: body; }
.classes h3 { font-size: 23px; }
.classes h3 small { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--gold); margin-left: 8px; font-weight: 400; }
.classes .desc { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
@media (max-width: 760px) { .classes { grid-template-columns: 1fr; } }
.consult { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.consult p { color: var(--ink-2); }
.consult b { color: var(--ink); font-weight: 600; }

/* 시간표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
table.timetable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.timetable th, .timetable td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.timetable tr:last-child th, .timetable tr:last-child td { border-bottom: 0; }
.timetable thead th { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.timetable tbody th { font-family: var(--display); font-size: 17px; font-weight: 500; white-space: nowrap; color: var(--gold); }
.timetable .k { display: inline-block; font-size: 12px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }

/* 원장 */
.teacher { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.arch-ph { aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; background: radial-gradient(120% 70% at 50% 15%, #fff 0%, transparent 60%), linear-gradient(170deg, #ece0dd, #dccdc9); position: relative; max-height: calc(100svh - var(--header) - 160px); }
.arch-ph::after { content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 12px; color: rgba(36, 29, 31, .5); }
.teacher h3 { font-size: 30px; }
.teacher .role { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.teacher blockquote { margin: 26px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.75; color: var(--ink); border-left: 2px solid var(--gold-2); padding-left: 20px; }
.career { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.career li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.career span { color: var(--gold); min-width: 3.5em; font-family: var(--display); font-style: italic; }
@media (max-width: 860px) { .teacher { grid-template-columns: 1fr; } .arch-ph { max-width: 300px; max-height: none; } }

/* 첫 방문 절차 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.steps .n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--gold-2); }
.steps h3 { font-size: 19px; margin: 16px 0 4px; }
.steps .tag { font-size: 11.5px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.steps p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--gold); font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.visit dl { margin: 0; border-top: 1px solid var(--ink); }
.visit dl div { display: grid; grid-template-columns: 96px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit dt { color: var(--gold); font-size: 14px; }
.visit dd { margin: 0; }
.visit .map { border-radius: 18px; overflow: hidden; }
.visit .map img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* 소개 페이지 */
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.page-hero .lead { margin-top: 24px; color: var(--ink-2); max-width: 32em; font-size: 17px; }
.page-hero .arch-photo { aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; max-height: calc(100svh - var(--header) - 120px); }
.page-hero .arch-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .arch-photo { order: -1; aspect-ratio: 3 / 2; max-height: none; border-radius: 22px; } }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles article { padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.principles .num { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 22px; }
.principles h3 { font-size: 21px; margin: 14px 0 12px; }
.principles p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.prose { max-width: 40em; color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 1.1em; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-alt); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease); }
.gallery figure:first-child img { aspect-ratio: auto; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.gallery figcaption b { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 18px; margin-right: 6px; }
@media (min-width: 900px) and (min-height: 640px) { .gallery img { height: min(26vh, 240px); aspect-ratio: auto; } .gallery figure:first-child img { height: calc(min(26vh, 240px) * 2 + 14px); } }
/* 작은 화면: 사진을 한 줄에 하나씩, 원래 비율(3:2)로 — 잘림 없음 */
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery figure:first-child, .gallery figure:nth-child(4) { grid-row: auto; grid-column: auto; } .gallery img, .gallery figure:first-child img { aspect-ratio: 3 / 2; height: auto; } }

/* 상담 띠 */
.cta { background: var(--dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: -12vw; bottom: -40vw; width: 60vw; height: 60vw; border-radius: 50%; border: 1px solid rgba(217, 195, 158, .35); }
.cta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; position: relative; }
.cta .en { color: var(--gold-2); font-size: 20px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 16em; margin-top: 10px; }
.cta p { color: #cbbfc1; margin-top: 12px; }
.cta .btn { border-color: var(--gold-2); color: #fff; }
.cta .btn:hover { background: var(--gold-2); color: var(--dark); }

/* Footer */
.site-footer { padding: 44px 0 52px; font-size: 13px; color: #a99ea0; background: var(--dark); border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.site-footer .f-logo { height: 40px; width: auto; filter: brightness(0) invert(1) opacity(.85); }
.site-footer address { font-style: normal; line-height: 1.9; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .slide, .slide img { transition: none; }
  html.io .reveal { opacity: 1; transform: none; transition: none; }
  .slide-bars button.on i { animation: none; transform: scaleX(1); }
}

/* 등장 순서 지연 (인라인 style 은 보안 정책상 쓰지 않음) */
.d1 { --d: .12s; } .d2 { --d: .24s; } .d3 { --d: .36s; } .d4 { --d: .48s; } .d5 { --d: .6s; }
.timetable .tt-class { margin: 0 0 8px; line-height: 1.45; }
.timetable .tt-class:last-child { margin-bottom: 0; }
.timetable .tt-sub { font-size: 12px; color: var(--ink-3); }
